diff --git a/java-notebooks/README.md b/java-notebooks/README.md index c42cbe04acb1..0dbf31e45549 100644 --- a/java-notebooks/README.md +++ b/java-notebooks/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-notebooks - 1.3.0 + 1.4.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-notebooks:1.3.0' +implementation 'com.google.cloud:google-cloud-notebooks:1.4.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "1.3.0" +libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "1.4.0" ``` ## Authentication @@ -159,16 +159,16 @@ Java is a registered trademark of Oracle and/or its affiliates. [product-docs]: https://cloud.google.com/ai-platform-notebooks [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-notebooks/latest/overview -[kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-notebooks/java7.svg -[kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-notebooks/java7.html -[kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-notebooks/java8.svg -[kokoro-badge-link-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-notebooks/java8.html -[kokoro-badge-image-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-notebooks/java8-osx.svg -[kokoro-badge-link-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-notebooks/java8-osx.html -[kokoro-badge-image-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-notebooks/java8-win.svg -[kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-notebooks/java8-win.html -[kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-notebooks/java11.svg -[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-notebooks/java11.html +[kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java7.svg +[kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java7.html +[kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8.svg +[kokoro-badge-link-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8.html +[kokoro-badge-image-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-osx.svg +[kokoro-badge-link-3]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-osx.html +[kokoro-badge-image-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-win.svg +[kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java8-win.html +[kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.svg +[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-notebooks.svg [maven-version-link]: https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-notebooks&core=gav @@ -180,9 +180,9 @@ Java is a registered trademark of Oracle and/or its affiliates. [create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects [cloud-sdk]: https://cloud.google.com/sdk/ [troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/main/troubleshooting/readme.md#troubleshooting -[contributing]: https://github.com/googleapis/java-notebooks/blob/main/CONTRIBUTING.md -[code-of-conduct]: https://github.com/googleapis/java-notebooks/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct -[license]: https://github.com/googleapis/java-notebooks/blob/main/LICENSE +[contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md +[code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct +[license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE [enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing [enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=notebooks.googleapis.com [libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM diff --git a/owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceClient.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceClient.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceClient.java rename to java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceClient.java diff --git a/owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceSettings.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceSettings.java similarity index 99% rename from owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceSettings.java rename to java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceSettings.java index 02e3625a2205..fb44355234a6 100644 --- a/owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceSettings.java +++ b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceSettings.java @@ -29,7 +29,6 @@ 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.location.GetLocationRequest; diff --git a/owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceClient.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceClient.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceClient.java rename to java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceClient.java diff --git a/owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceSettings.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceSettings.java similarity index 99% rename from owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceSettings.java rename to java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceSettings.java index 5d4e401254df..ef04bd546c02 100644 --- a/owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceSettings.java +++ b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceSettings.java @@ -32,7 +32,6 @@ 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.location.GetLocationRequest; diff --git a/owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/gapic_metadata.json b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/gapic_metadata.json rename to java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/gapic_metadata.json diff --git a/owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/package-info.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/package-info.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/package-info.java rename to java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/package-info.java diff --git a/owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/GrpcManagedNotebookServiceCallableFactory.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/GrpcManagedNotebookServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/GrpcManagedNotebookServiceCallableFactory.java rename to java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/GrpcManagedNotebookServiceCallableFactory.java diff --git a/owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/GrpcManagedNotebookServiceStub.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/GrpcManagedNotebookServiceStub.java similarity index 99% rename from owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/GrpcManagedNotebookServiceStub.java rename to java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/GrpcManagedNotebookServiceStub.java index fbba2434c008..f7101b93a067 100644 --- a/owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/GrpcManagedNotebookServiceStub.java +++ b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/GrpcManagedNotebookServiceStub.java @@ -59,7 +59,6 @@ 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/owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/GrpcNotebookServiceCallableFactory.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/GrpcNotebookServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/GrpcNotebookServiceCallableFactory.java rename to java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/GrpcNotebookServiceCallableFactory.java diff --git a/owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/GrpcNotebookServiceStub.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/GrpcNotebookServiceStub.java similarity index 99% rename from owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/GrpcNotebookServiceStub.java rename to java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/GrpcNotebookServiceStub.java index 90e51ba6ed85..861a0c09eae9 100644 --- a/owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/GrpcNotebookServiceStub.java +++ b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/GrpcNotebookServiceStub.java @@ -91,7 +91,6 @@ 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/owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/ManagedNotebookServiceStub.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/ManagedNotebookServiceStub.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/ManagedNotebookServiceStub.java rename to java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/ManagedNotebookServiceStub.java diff --git a/owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/ManagedNotebookServiceStubSettings.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/ManagedNotebookServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/ManagedNotebookServiceStubSettings.java rename to java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/ManagedNotebookServiceStubSettings.java diff --git a/owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/NotebookServiceStub.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/NotebookServiceStub.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/NotebookServiceStub.java rename to java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/NotebookServiceStub.java diff --git a/owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/NotebookServiceStubSettings.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/NotebookServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/NotebookServiceStubSettings.java rename to java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/NotebookServiceStubSettings.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceClient.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceClient.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceClient.java rename to java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceClient.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceSettings.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceSettings.java similarity index 99% rename from owl-bot-staging/java-notebooks/v1beta1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceSettings.java rename to java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceSettings.java index 1c8f99240d8a..c22578e16e82 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceSettings.java +++ b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceSettings.java @@ -30,7 +30,6 @@ 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.location.GetLocationRequest; diff --git a/owl-bot-staging/java-notebooks/v1beta1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/gapic_metadata.json b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/gapic_metadata.json rename to java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/gapic_metadata.json diff --git a/owl-bot-staging/java-notebooks/v1beta1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/package-info.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/package-info.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/package-info.java rename to java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/package-info.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/GrpcNotebookServiceCallableFactory.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/GrpcNotebookServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/GrpcNotebookServiceCallableFactory.java rename to java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/GrpcNotebookServiceCallableFactory.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/GrpcNotebookServiceStub.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/GrpcNotebookServiceStub.java similarity index 99% rename from owl-bot-staging/java-notebooks/v1beta1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/GrpcNotebookServiceStub.java rename to java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/GrpcNotebookServiceStub.java index 77281b09dbfb..c837d7197ff3 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/GrpcNotebookServiceStub.java +++ b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/GrpcNotebookServiceStub.java @@ -69,7 +69,6 @@ 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/owl-bot-staging/java-notebooks/v1beta1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/NotebookServiceStub.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/NotebookServiceStub.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/NotebookServiceStub.java rename to java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/NotebookServiceStub.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/NotebookServiceStubSettings.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/NotebookServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/NotebookServiceStubSettings.java rename to java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/NotebookServiceStubSettings.java diff --git a/owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceClientTest.java b/java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceClientTest.java rename to java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceClientTest.java diff --git a/owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/MockIAMPolicy.java b/java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/MockIAMPolicy.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/MockIAMPolicy.java rename to java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/MockIAMPolicy.java diff --git a/owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/MockIAMPolicyImpl.java b/java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/MockIAMPolicyImpl.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/MockIAMPolicyImpl.java rename to java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/MockIAMPolicyImpl.java diff --git a/owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/MockLocations.java b/java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/MockLocations.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/MockLocations.java rename to java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/MockLocations.java diff --git a/owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/MockLocationsImpl.java b/java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/MockLocationsImpl.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/MockLocationsImpl.java rename to java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/MockLocationsImpl.java diff --git a/owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/MockManagedNotebookService.java b/java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/MockManagedNotebookService.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/MockManagedNotebookService.java rename to java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/MockManagedNotebookService.java diff --git a/owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/MockManagedNotebookServiceImpl.java b/java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/MockManagedNotebookServiceImpl.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/MockManagedNotebookServiceImpl.java rename to java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/MockManagedNotebookServiceImpl.java diff --git a/owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/MockNotebookService.java b/java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/MockNotebookService.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/MockNotebookService.java rename to java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/MockNotebookService.java diff --git a/owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/MockNotebookServiceImpl.java b/java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/MockNotebookServiceImpl.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/MockNotebookServiceImpl.java rename to java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/MockNotebookServiceImpl.java diff --git a/owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/NotebookServiceClientTest.java b/java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/NotebookServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/NotebookServiceClientTest.java rename to java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1/NotebookServiceClientTest.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1beta1/MockIAMPolicy.java b/java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1beta1/MockIAMPolicy.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1beta1/MockIAMPolicy.java rename to java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1beta1/MockIAMPolicy.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1beta1/MockIAMPolicyImpl.java b/java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1beta1/MockIAMPolicyImpl.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1beta1/MockIAMPolicyImpl.java rename to java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1beta1/MockIAMPolicyImpl.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1beta1/MockLocations.java b/java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1beta1/MockLocations.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1beta1/MockLocations.java rename to java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1beta1/MockLocations.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1beta1/MockLocationsImpl.java b/java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1beta1/MockLocationsImpl.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1beta1/MockLocationsImpl.java rename to java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1beta1/MockLocationsImpl.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1beta1/MockNotebookService.java b/java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1beta1/MockNotebookService.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1beta1/MockNotebookService.java rename to java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1beta1/MockNotebookService.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1beta1/MockNotebookServiceImpl.java b/java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1beta1/MockNotebookServiceImpl.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1beta1/MockNotebookServiceImpl.java rename to java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1beta1/MockNotebookServiceImpl.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1beta1/NotebookServiceClientTest.java b/java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1beta1/NotebookServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1beta1/NotebookServiceClientTest.java rename to java-notebooks/google-cloud-notebooks/src/test/java/com/google/cloud/notebooks/v1beta1/NotebookServiceClientTest.java diff --git a/java-notebooks/grpc-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceGrpc.java b/java-notebooks/grpc-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceGrpc.java new file mode 100644 index 000000000000..bac16a032630 --- /dev/null +++ b/java-notebooks/grpc-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceGrpc.java @@ -0,0 +1,1772 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.notebooks.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * API v1 service for Managed Notebooks.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/notebooks/v1/managed_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ManagedNotebookServiceGrpc { + + private ManagedNotebookServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.notebooks.v1.ManagedNotebookService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ListRuntimesRequest, + com.google.cloud.notebooks.v1.ListRuntimesResponse> + getListRuntimesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRuntimes", + requestType = com.google.cloud.notebooks.v1.ListRuntimesRequest.class, + responseType = com.google.cloud.notebooks.v1.ListRuntimesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ListRuntimesRequest, + com.google.cloud.notebooks.v1.ListRuntimesResponse> + getListRuntimesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ListRuntimesRequest, + com.google.cloud.notebooks.v1.ListRuntimesResponse> + getListRuntimesMethod; + if ((getListRuntimesMethod = ManagedNotebookServiceGrpc.getListRuntimesMethod) == null) { + synchronized (ManagedNotebookServiceGrpc.class) { + if ((getListRuntimesMethod = ManagedNotebookServiceGrpc.getListRuntimesMethod) == null) { + ManagedNotebookServiceGrpc.getListRuntimesMethod = + getListRuntimesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRuntimes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.ListRuntimesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.ListRuntimesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ManagedNotebookServiceMethodDescriptorSupplier("ListRuntimes")) + .build(); + } + } + } + return getListRuntimesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.GetRuntimeRequest, com.google.cloud.notebooks.v1.Runtime> + getGetRuntimeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRuntime", + requestType = com.google.cloud.notebooks.v1.GetRuntimeRequest.class, + responseType = com.google.cloud.notebooks.v1.Runtime.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.GetRuntimeRequest, com.google.cloud.notebooks.v1.Runtime> + getGetRuntimeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.GetRuntimeRequest, com.google.cloud.notebooks.v1.Runtime> + getGetRuntimeMethod; + if ((getGetRuntimeMethod = ManagedNotebookServiceGrpc.getGetRuntimeMethod) == null) { + synchronized (ManagedNotebookServiceGrpc.class) { + if ((getGetRuntimeMethod = ManagedNotebookServiceGrpc.getGetRuntimeMethod) == null) { + ManagedNotebookServiceGrpc.getGetRuntimeMethod = + getGetRuntimeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRuntime")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.GetRuntimeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.Runtime.getDefaultInstance())) + .setSchemaDescriptor( + new ManagedNotebookServiceMethodDescriptorSupplier("GetRuntime")) + .build(); + } + } + } + return getGetRuntimeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.CreateRuntimeRequest, com.google.longrunning.Operation> + getCreateRuntimeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateRuntime", + requestType = com.google.cloud.notebooks.v1.CreateRuntimeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.CreateRuntimeRequest, com.google.longrunning.Operation> + getCreateRuntimeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.CreateRuntimeRequest, com.google.longrunning.Operation> + getCreateRuntimeMethod; + if ((getCreateRuntimeMethod = ManagedNotebookServiceGrpc.getCreateRuntimeMethod) == null) { + synchronized (ManagedNotebookServiceGrpc.class) { + if ((getCreateRuntimeMethod = ManagedNotebookServiceGrpc.getCreateRuntimeMethod) == null) { + ManagedNotebookServiceGrpc.getCreateRuntimeMethod = + getCreateRuntimeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRuntime")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.CreateRuntimeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ManagedNotebookServiceMethodDescriptorSupplier("CreateRuntime")) + .build(); + } + } + } + return getCreateRuntimeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.UpdateRuntimeRequest, com.google.longrunning.Operation> + getUpdateRuntimeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateRuntime", + requestType = com.google.cloud.notebooks.v1.UpdateRuntimeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.UpdateRuntimeRequest, com.google.longrunning.Operation> + getUpdateRuntimeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.UpdateRuntimeRequest, com.google.longrunning.Operation> + getUpdateRuntimeMethod; + if ((getUpdateRuntimeMethod = ManagedNotebookServiceGrpc.getUpdateRuntimeMethod) == null) { + synchronized (ManagedNotebookServiceGrpc.class) { + if ((getUpdateRuntimeMethod = ManagedNotebookServiceGrpc.getUpdateRuntimeMethod) == null) { + ManagedNotebookServiceGrpc.getUpdateRuntimeMethod = + getUpdateRuntimeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRuntime")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.UpdateRuntimeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ManagedNotebookServiceMethodDescriptorSupplier("UpdateRuntime")) + .build(); + } + } + } + return getUpdateRuntimeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.DeleteRuntimeRequest, com.google.longrunning.Operation> + getDeleteRuntimeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteRuntime", + requestType = com.google.cloud.notebooks.v1.DeleteRuntimeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.DeleteRuntimeRequest, com.google.longrunning.Operation> + getDeleteRuntimeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.DeleteRuntimeRequest, com.google.longrunning.Operation> + getDeleteRuntimeMethod; + if ((getDeleteRuntimeMethod = ManagedNotebookServiceGrpc.getDeleteRuntimeMethod) == null) { + synchronized (ManagedNotebookServiceGrpc.class) { + if ((getDeleteRuntimeMethod = ManagedNotebookServiceGrpc.getDeleteRuntimeMethod) == null) { + ManagedNotebookServiceGrpc.getDeleteRuntimeMethod = + getDeleteRuntimeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRuntime")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.DeleteRuntimeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ManagedNotebookServiceMethodDescriptorSupplier("DeleteRuntime")) + .build(); + } + } + } + return getDeleteRuntimeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.StartRuntimeRequest, com.google.longrunning.Operation> + getStartRuntimeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartRuntime", + requestType = com.google.cloud.notebooks.v1.StartRuntimeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.StartRuntimeRequest, com.google.longrunning.Operation> + getStartRuntimeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.StartRuntimeRequest, com.google.longrunning.Operation> + getStartRuntimeMethod; + if ((getStartRuntimeMethod = ManagedNotebookServiceGrpc.getStartRuntimeMethod) == null) { + synchronized (ManagedNotebookServiceGrpc.class) { + if ((getStartRuntimeMethod = ManagedNotebookServiceGrpc.getStartRuntimeMethod) == null) { + ManagedNotebookServiceGrpc.getStartRuntimeMethod = + getStartRuntimeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartRuntime")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.StartRuntimeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ManagedNotebookServiceMethodDescriptorSupplier("StartRuntime")) + .build(); + } + } + } + return getStartRuntimeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.StopRuntimeRequest, com.google.longrunning.Operation> + getStopRuntimeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopRuntime", + requestType = com.google.cloud.notebooks.v1.StopRuntimeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.StopRuntimeRequest, com.google.longrunning.Operation> + getStopRuntimeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.StopRuntimeRequest, com.google.longrunning.Operation> + getStopRuntimeMethod; + if ((getStopRuntimeMethod = ManagedNotebookServiceGrpc.getStopRuntimeMethod) == null) { + synchronized (ManagedNotebookServiceGrpc.class) { + if ((getStopRuntimeMethod = ManagedNotebookServiceGrpc.getStopRuntimeMethod) == null) { + ManagedNotebookServiceGrpc.getStopRuntimeMethod = + getStopRuntimeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopRuntime")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.StopRuntimeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ManagedNotebookServiceMethodDescriptorSupplier("StopRuntime")) + .build(); + } + } + } + return getStopRuntimeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.SwitchRuntimeRequest, com.google.longrunning.Operation> + getSwitchRuntimeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SwitchRuntime", + requestType = com.google.cloud.notebooks.v1.SwitchRuntimeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.SwitchRuntimeRequest, com.google.longrunning.Operation> + getSwitchRuntimeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.SwitchRuntimeRequest, com.google.longrunning.Operation> + getSwitchRuntimeMethod; + if ((getSwitchRuntimeMethod = ManagedNotebookServiceGrpc.getSwitchRuntimeMethod) == null) { + synchronized (ManagedNotebookServiceGrpc.class) { + if ((getSwitchRuntimeMethod = ManagedNotebookServiceGrpc.getSwitchRuntimeMethod) == null) { + ManagedNotebookServiceGrpc.getSwitchRuntimeMethod = + getSwitchRuntimeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SwitchRuntime")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.SwitchRuntimeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ManagedNotebookServiceMethodDescriptorSupplier("SwitchRuntime")) + .build(); + } + } + } + return getSwitchRuntimeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ResetRuntimeRequest, com.google.longrunning.Operation> + getResetRuntimeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ResetRuntime", + requestType = com.google.cloud.notebooks.v1.ResetRuntimeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ResetRuntimeRequest, com.google.longrunning.Operation> + getResetRuntimeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ResetRuntimeRequest, com.google.longrunning.Operation> + getResetRuntimeMethod; + if ((getResetRuntimeMethod = ManagedNotebookServiceGrpc.getResetRuntimeMethod) == null) { + synchronized (ManagedNotebookServiceGrpc.class) { + if ((getResetRuntimeMethod = ManagedNotebookServiceGrpc.getResetRuntimeMethod) == null) { + ManagedNotebookServiceGrpc.getResetRuntimeMethod = + getResetRuntimeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResetRuntime")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.ResetRuntimeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ManagedNotebookServiceMethodDescriptorSupplier("ResetRuntime")) + .build(); + } + } + } + return getResetRuntimeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.UpgradeRuntimeRequest, com.google.longrunning.Operation> + getUpgradeRuntimeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpgradeRuntime", + requestType = com.google.cloud.notebooks.v1.UpgradeRuntimeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.UpgradeRuntimeRequest, com.google.longrunning.Operation> + getUpgradeRuntimeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.UpgradeRuntimeRequest, com.google.longrunning.Operation> + getUpgradeRuntimeMethod; + if ((getUpgradeRuntimeMethod = ManagedNotebookServiceGrpc.getUpgradeRuntimeMethod) == null) { + synchronized (ManagedNotebookServiceGrpc.class) { + if ((getUpgradeRuntimeMethod = ManagedNotebookServiceGrpc.getUpgradeRuntimeMethod) + == null) { + ManagedNotebookServiceGrpc.getUpgradeRuntimeMethod = + getUpgradeRuntimeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpgradeRuntime")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.UpgradeRuntimeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ManagedNotebookServiceMethodDescriptorSupplier("UpgradeRuntime")) + .build(); + } + } + } + return getUpgradeRuntimeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ReportRuntimeEventRequest, com.google.longrunning.Operation> + getReportRuntimeEventMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ReportRuntimeEvent", + requestType = com.google.cloud.notebooks.v1.ReportRuntimeEventRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ReportRuntimeEventRequest, com.google.longrunning.Operation> + getReportRuntimeEventMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ReportRuntimeEventRequest, + com.google.longrunning.Operation> + getReportRuntimeEventMethod; + if ((getReportRuntimeEventMethod = ManagedNotebookServiceGrpc.getReportRuntimeEventMethod) + == null) { + synchronized (ManagedNotebookServiceGrpc.class) { + if ((getReportRuntimeEventMethod = ManagedNotebookServiceGrpc.getReportRuntimeEventMethod) + == null) { + ManagedNotebookServiceGrpc.getReportRuntimeEventMethod = + getReportRuntimeEventMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReportRuntimeEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.ReportRuntimeEventRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ManagedNotebookServiceMethodDescriptorSupplier("ReportRuntimeEvent")) + .build(); + } + } + } + return getReportRuntimeEventMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest, + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse> + getRefreshRuntimeTokenInternalMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RefreshRuntimeTokenInternal", + requestType = com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest.class, + responseType = com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest, + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse> + getRefreshRuntimeTokenInternalMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest, + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse> + getRefreshRuntimeTokenInternalMethod; + if ((getRefreshRuntimeTokenInternalMethod = + ManagedNotebookServiceGrpc.getRefreshRuntimeTokenInternalMethod) + == null) { + synchronized (ManagedNotebookServiceGrpc.class) { + if ((getRefreshRuntimeTokenInternalMethod = + ManagedNotebookServiceGrpc.getRefreshRuntimeTokenInternalMethod) + == null) { + ManagedNotebookServiceGrpc.getRefreshRuntimeTokenInternalMethod = + getRefreshRuntimeTokenInternalMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "RefreshRuntimeTokenInternal")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ManagedNotebookServiceMethodDescriptorSupplier( + "RefreshRuntimeTokenInternal")) + .build(); + } + } + } + return getRefreshRuntimeTokenInternalMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest, com.google.longrunning.Operation> + getDiagnoseRuntimeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DiagnoseRuntime", + requestType = com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest, com.google.longrunning.Operation> + getDiagnoseRuntimeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest, com.google.longrunning.Operation> + getDiagnoseRuntimeMethod; + if ((getDiagnoseRuntimeMethod = ManagedNotebookServiceGrpc.getDiagnoseRuntimeMethod) == null) { + synchronized (ManagedNotebookServiceGrpc.class) { + if ((getDiagnoseRuntimeMethod = ManagedNotebookServiceGrpc.getDiagnoseRuntimeMethod) + == null) { + ManagedNotebookServiceGrpc.getDiagnoseRuntimeMethod = + getDiagnoseRuntimeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DiagnoseRuntime")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ManagedNotebookServiceMethodDescriptorSupplier("DiagnoseRuntime")) + .build(); + } + } + } + return getDiagnoseRuntimeMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static ManagedNotebookServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ManagedNotebookServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ManagedNotebookServiceStub(channel, callOptions); + } + }; + return ManagedNotebookServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static ManagedNotebookServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ManagedNotebookServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ManagedNotebookServiceBlockingStub(channel, callOptions); + } + }; + return ManagedNotebookServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ManagedNotebookServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ManagedNotebookServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ManagedNotebookServiceFutureStub(channel, callOptions); + } + }; + return ManagedNotebookServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * API v1 service for Managed Notebooks.
+   * 
+ */ + public abstract static class ManagedNotebookServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists Runtimes in a given project and location.
+     * 
+ */ + public void listRuntimes( + com.google.cloud.notebooks.v1.ListRuntimesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListRuntimesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Runtime. The location must be a regional endpoint
+     * rather than zonal.
+     * 
+ */ + public void getRuntime( + com.google.cloud.notebooks.v1.GetRuntimeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRuntimeMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Runtime in a given project and location.
+     * 
+ */ + public void createRuntime( + com.google.cloud.notebooks.v1.CreateRuntimeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateRuntimeMethod(), responseObserver); + } + + /** + * + * + *
+     * Update Notebook Runtime configuration.
+     * 
+ */ + public void updateRuntime( + com.google.cloud.notebooks.v1.UpdateRuntimeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateRuntimeMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single Runtime.
+     * 
+ */ + public void deleteRuntime( + com.google.cloud.notebooks.v1.DeleteRuntimeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteRuntimeMethod(), responseObserver); + } + + /** + * + * + *
+     * Starts a Managed Notebook Runtime.
+     * Perform "Start" on GPU instances; "Resume" on CPU instances
+     * See:
+     * https://cloud.google.com/compute/docs/instances/stop-start-instance
+     * https://cloud.google.com/compute/docs/instances/suspend-resume-instance
+     * 
+ */ + public void startRuntime( + com.google.cloud.notebooks.v1.StartRuntimeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStartRuntimeMethod(), responseObserver); + } + + /** + * + * + *
+     * Stops a Managed Notebook Runtime.
+     * Perform "Stop" on GPU instances; "Suspend" on CPU instances
+     * See:
+     * https://cloud.google.com/compute/docs/instances/stop-start-instance
+     * https://cloud.google.com/compute/docs/instances/suspend-resume-instance
+     * 
+ */ + public void stopRuntime( + com.google.cloud.notebooks.v1.StopRuntimeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStopRuntimeMethod(), responseObserver); + } + + /** + * + * + *
+     * Switch a Managed Notebook Runtime.
+     * 
+ */ + public void switchRuntime( + com.google.cloud.notebooks.v1.SwitchRuntimeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSwitchRuntimeMethod(), responseObserver); + } + + /** + * + * + *
+     * Resets a Managed Notebook Runtime.
+     * 
+ */ + public void resetRuntime( + com.google.cloud.notebooks.v1.ResetRuntimeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getResetRuntimeMethod(), responseObserver); + } + + /** + * + * + *
+     * Upgrades a Managed Notebook Runtime to the latest version.
+     * 
+ */ + public void upgradeRuntime( + com.google.cloud.notebooks.v1.UpgradeRuntimeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpgradeRuntimeMethod(), responseObserver); + } + + /** + * + * + *
+     * Report and process a runtime event.
+     * 
+ */ + public void reportRuntimeEvent( + com.google.cloud.notebooks.v1.ReportRuntimeEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getReportRuntimeEventMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets an access token for the consumer service account that the customer
+     * attached to the runtime. Only accessible from the tenant instance.
+     * 
+ */ + public void refreshRuntimeTokenInternal( + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRefreshRuntimeTokenInternalMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a Diagnostic File and runs Diagnostic Tool given a Runtime.
+     * 
+ */ + public void diagnoseRuntime( + com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDiagnoseRuntimeMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListRuntimesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.ListRuntimesRequest, + com.google.cloud.notebooks.v1.ListRuntimesResponse>( + this, METHODID_LIST_RUNTIMES))) + .addMethod( + getGetRuntimeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.GetRuntimeRequest, + com.google.cloud.notebooks.v1.Runtime>(this, METHODID_GET_RUNTIME))) + .addMethod( + getCreateRuntimeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.CreateRuntimeRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_RUNTIME))) + .addMethod( + getUpdateRuntimeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.UpdateRuntimeRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_RUNTIME))) + .addMethod( + getDeleteRuntimeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.DeleteRuntimeRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_RUNTIME))) + .addMethod( + getStartRuntimeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.StartRuntimeRequest, + com.google.longrunning.Operation>(this, METHODID_START_RUNTIME))) + .addMethod( + getStopRuntimeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.StopRuntimeRequest, + com.google.longrunning.Operation>(this, METHODID_STOP_RUNTIME))) + .addMethod( + getSwitchRuntimeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.SwitchRuntimeRequest, + com.google.longrunning.Operation>(this, METHODID_SWITCH_RUNTIME))) + .addMethod( + getResetRuntimeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.ResetRuntimeRequest, + com.google.longrunning.Operation>(this, METHODID_RESET_RUNTIME))) + .addMethod( + getUpgradeRuntimeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.UpgradeRuntimeRequest, + com.google.longrunning.Operation>(this, METHODID_UPGRADE_RUNTIME))) + .addMethod( + getReportRuntimeEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.ReportRuntimeEventRequest, + com.google.longrunning.Operation>(this, METHODID_REPORT_RUNTIME_EVENT))) + .addMethod( + getRefreshRuntimeTokenInternalMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest, + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse>( + this, METHODID_REFRESH_RUNTIME_TOKEN_INTERNAL))) + .addMethod( + getDiagnoseRuntimeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest, + com.google.longrunning.Operation>(this, METHODID_DIAGNOSE_RUNTIME))) + .build(); + } + } + + /** + * + * + *
+   * API v1 service for Managed Notebooks.
+   * 
+ */ + public static final class ManagedNotebookServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private ManagedNotebookServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ManagedNotebookServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ManagedNotebookServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Runtimes in a given project and location.
+     * 
+ */ + public void listRuntimes( + com.google.cloud.notebooks.v1.ListRuntimesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRuntimesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Runtime. The location must be a regional endpoint
+     * rather than zonal.
+     * 
+ */ + public void getRuntime( + com.google.cloud.notebooks.v1.GetRuntimeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRuntimeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a new Runtime in a given project and location.
+     * 
+ */ + public void createRuntime( + com.google.cloud.notebooks.v1.CreateRuntimeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateRuntimeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update Notebook Runtime configuration.
+     * 
+ */ + public void updateRuntime( + com.google.cloud.notebooks.v1.UpdateRuntimeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateRuntimeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single Runtime.
+     * 
+ */ + public void deleteRuntime( + com.google.cloud.notebooks.v1.DeleteRuntimeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteRuntimeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Starts a Managed Notebook Runtime.
+     * Perform "Start" on GPU instances; "Resume" on CPU instances
+     * See:
+     * https://cloud.google.com/compute/docs/instances/stop-start-instance
+     * https://cloud.google.com/compute/docs/instances/suspend-resume-instance
+     * 
+ */ + public void startRuntime( + com.google.cloud.notebooks.v1.StartRuntimeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartRuntimeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Stops a Managed Notebook Runtime.
+     * Perform "Stop" on GPU instances; "Suspend" on CPU instances
+     * See:
+     * https://cloud.google.com/compute/docs/instances/stop-start-instance
+     * https://cloud.google.com/compute/docs/instances/suspend-resume-instance
+     * 
+ */ + public void stopRuntime( + com.google.cloud.notebooks.v1.StopRuntimeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopRuntimeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Switch a Managed Notebook Runtime.
+     * 
+ */ + public void switchRuntime( + com.google.cloud.notebooks.v1.SwitchRuntimeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSwitchRuntimeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Resets a Managed Notebook Runtime.
+     * 
+ */ + public void resetRuntime( + com.google.cloud.notebooks.v1.ResetRuntimeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getResetRuntimeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Upgrades a Managed Notebook Runtime to the latest version.
+     * 
+ */ + public void upgradeRuntime( + com.google.cloud.notebooks.v1.UpgradeRuntimeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpgradeRuntimeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Report and process a runtime event.
+     * 
+ */ + public void reportRuntimeEvent( + com.google.cloud.notebooks.v1.ReportRuntimeEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getReportRuntimeEventMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets an access token for the consumer service account that the customer
+     * attached to the runtime. Only accessible from the tenant instance.
+     * 
+ */ + public void refreshRuntimeTokenInternal( + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRefreshRuntimeTokenInternalMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a Diagnostic File and runs Diagnostic Tool given a Runtime.
+     * 
+ */ + public void diagnoseRuntime( + com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDiagnoseRuntimeMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * API v1 service for Managed Notebooks.
+   * 
+ */ + public static final class ManagedNotebookServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ManagedNotebookServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ManagedNotebookServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ManagedNotebookServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Runtimes in a given project and location.
+     * 
+ */ + public com.google.cloud.notebooks.v1.ListRuntimesResponse listRuntimes( + com.google.cloud.notebooks.v1.ListRuntimesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRuntimesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Runtime. The location must be a regional endpoint
+     * rather than zonal.
+     * 
+ */ + public com.google.cloud.notebooks.v1.Runtime getRuntime( + com.google.cloud.notebooks.v1.GetRuntimeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRuntimeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Runtime in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createRuntime( + com.google.cloud.notebooks.v1.CreateRuntimeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateRuntimeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update Notebook Runtime configuration.
+     * 
+ */ + public com.google.longrunning.Operation updateRuntime( + com.google.cloud.notebooks.v1.UpdateRuntimeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateRuntimeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Runtime.
+     * 
+ */ + public com.google.longrunning.Operation deleteRuntime( + com.google.cloud.notebooks.v1.DeleteRuntimeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRuntimeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Starts a Managed Notebook Runtime.
+     * Perform "Start" on GPU instances; "Resume" on CPU instances
+     * See:
+     * https://cloud.google.com/compute/docs/instances/stop-start-instance
+     * https://cloud.google.com/compute/docs/instances/suspend-resume-instance
+     * 
+ */ + public com.google.longrunning.Operation startRuntime( + com.google.cloud.notebooks.v1.StartRuntimeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartRuntimeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Stops a Managed Notebook Runtime.
+     * Perform "Stop" on GPU instances; "Suspend" on CPU instances
+     * See:
+     * https://cloud.google.com/compute/docs/instances/stop-start-instance
+     * https://cloud.google.com/compute/docs/instances/suspend-resume-instance
+     * 
+ */ + public com.google.longrunning.Operation stopRuntime( + com.google.cloud.notebooks.v1.StopRuntimeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopRuntimeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Switch a Managed Notebook Runtime.
+     * 
+ */ + public com.google.longrunning.Operation switchRuntime( + com.google.cloud.notebooks.v1.SwitchRuntimeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSwitchRuntimeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Resets a Managed Notebook Runtime.
+     * 
+ */ + public com.google.longrunning.Operation resetRuntime( + com.google.cloud.notebooks.v1.ResetRuntimeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResetRuntimeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Upgrades a Managed Notebook Runtime to the latest version.
+     * 
+ */ + public com.google.longrunning.Operation upgradeRuntime( + com.google.cloud.notebooks.v1.UpgradeRuntimeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpgradeRuntimeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Report and process a runtime event.
+     * 
+ */ + public com.google.longrunning.Operation reportRuntimeEvent( + com.google.cloud.notebooks.v1.ReportRuntimeEventRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getReportRuntimeEventMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets an access token for the consumer service account that the customer
+     * attached to the runtime. Only accessible from the tenant instance.
+     * 
+ */ + public com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse + refreshRuntimeTokenInternal( + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRefreshRuntimeTokenInternalMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a Diagnostic File and runs Diagnostic Tool given a Runtime.
+     * 
+ */ + public com.google.longrunning.Operation diagnoseRuntime( + com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDiagnoseRuntimeMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * API v1 service for Managed Notebooks.
+   * 
+ */ + public static final class ManagedNotebookServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ManagedNotebookServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ManagedNotebookServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ManagedNotebookServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Runtimes in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.notebooks.v1.ListRuntimesResponse> + listRuntimes(com.google.cloud.notebooks.v1.ListRuntimesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRuntimesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single Runtime. The location must be a regional endpoint
+     * rather than zonal.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getRuntime(com.google.cloud.notebooks.v1.GetRuntimeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRuntimeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new Runtime in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createRuntime(com.google.cloud.notebooks.v1.CreateRuntimeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateRuntimeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update Notebook Runtime configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateRuntime(com.google.cloud.notebooks.v1.UpdateRuntimeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateRuntimeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single Runtime.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteRuntime(com.google.cloud.notebooks.v1.DeleteRuntimeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteRuntimeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Starts a Managed Notebook Runtime.
+     * Perform "Start" on GPU instances; "Resume" on CPU instances
+     * See:
+     * https://cloud.google.com/compute/docs/instances/stop-start-instance
+     * https://cloud.google.com/compute/docs/instances/suspend-resume-instance
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + startRuntime(com.google.cloud.notebooks.v1.StartRuntimeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartRuntimeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Stops a Managed Notebook Runtime.
+     * Perform "Stop" on GPU instances; "Suspend" on CPU instances
+     * See:
+     * https://cloud.google.com/compute/docs/instances/stop-start-instance
+     * https://cloud.google.com/compute/docs/instances/suspend-resume-instance
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + stopRuntime(com.google.cloud.notebooks.v1.StopRuntimeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopRuntimeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Switch a Managed Notebook Runtime.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + switchRuntime(com.google.cloud.notebooks.v1.SwitchRuntimeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSwitchRuntimeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Resets a Managed Notebook Runtime.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + resetRuntime(com.google.cloud.notebooks.v1.ResetRuntimeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getResetRuntimeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Upgrades a Managed Notebook Runtime to the latest version.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + upgradeRuntime(com.google.cloud.notebooks.v1.UpgradeRuntimeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpgradeRuntimeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Report and process a runtime event.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + reportRuntimeEvent(com.google.cloud.notebooks.v1.ReportRuntimeEventRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getReportRuntimeEventMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets an access token for the consumer service account that the customer
+     * attached to the runtime. Only accessible from the tenant instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse> + refreshRuntimeTokenInternal( + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRefreshRuntimeTokenInternalMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a Diagnostic File and runs Diagnostic Tool given a Runtime.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + diagnoseRuntime(com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDiagnoseRuntimeMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_RUNTIMES = 0; + private static final int METHODID_GET_RUNTIME = 1; + private static final int METHODID_CREATE_RUNTIME = 2; + private static final int METHODID_UPDATE_RUNTIME = 3; + private static final int METHODID_DELETE_RUNTIME = 4; + private static final int METHODID_START_RUNTIME = 5; + private static final int METHODID_STOP_RUNTIME = 6; + private static final int METHODID_SWITCH_RUNTIME = 7; + private static final int METHODID_RESET_RUNTIME = 8; + private static final int METHODID_UPGRADE_RUNTIME = 9; + private static final int METHODID_REPORT_RUNTIME_EVENT = 10; + private static final int METHODID_REFRESH_RUNTIME_TOKEN_INTERNAL = 11; + private static final int METHODID_DIAGNOSE_RUNTIME = 12; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final ManagedNotebookServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ManagedNotebookServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_RUNTIMES: + serviceImpl.listRuntimes( + (com.google.cloud.notebooks.v1.ListRuntimesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_RUNTIME: + serviceImpl.getRuntime( + (com.google.cloud.notebooks.v1.GetRuntimeRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_RUNTIME: + serviceImpl.createRuntime( + (com.google.cloud.notebooks.v1.CreateRuntimeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_RUNTIME: + serviceImpl.updateRuntime( + (com.google.cloud.notebooks.v1.UpdateRuntimeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_RUNTIME: + serviceImpl.deleteRuntime( + (com.google.cloud.notebooks.v1.DeleteRuntimeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_RUNTIME: + serviceImpl.startRuntime( + (com.google.cloud.notebooks.v1.StartRuntimeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STOP_RUNTIME: + serviceImpl.stopRuntime( + (com.google.cloud.notebooks.v1.StopRuntimeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SWITCH_RUNTIME: + serviceImpl.switchRuntime( + (com.google.cloud.notebooks.v1.SwitchRuntimeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESET_RUNTIME: + serviceImpl.resetRuntime( + (com.google.cloud.notebooks.v1.ResetRuntimeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPGRADE_RUNTIME: + serviceImpl.upgradeRuntime( + (com.google.cloud.notebooks.v1.UpgradeRuntimeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_REPORT_RUNTIME_EVENT: + serviceImpl.reportRuntimeEvent( + (com.google.cloud.notebooks.v1.ReportRuntimeEventRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_REFRESH_RUNTIME_TOKEN_INTERNAL: + serviceImpl.refreshRuntimeTokenInternal( + (com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse>) + responseObserver); + break; + case METHODID_DIAGNOSE_RUNTIME: + serviceImpl.diagnoseRuntime( + (com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class ManagedNotebookServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ManagedNotebookServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ManagedNotebookService"); + } + } + + private static final class ManagedNotebookServiceFileDescriptorSupplier + extends ManagedNotebookServiceBaseDescriptorSupplier { + ManagedNotebookServiceFileDescriptorSupplier() {} + } + + private static final class ManagedNotebookServiceMethodDescriptorSupplier + extends ManagedNotebookServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ManagedNotebookServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (ManagedNotebookServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ManagedNotebookServiceFileDescriptorSupplier()) + .addMethod(getListRuntimesMethod()) + .addMethod(getGetRuntimeMethod()) + .addMethod(getCreateRuntimeMethod()) + .addMethod(getUpdateRuntimeMethod()) + .addMethod(getDeleteRuntimeMethod()) + .addMethod(getStartRuntimeMethod()) + .addMethod(getStopRuntimeMethod()) + .addMethod(getSwitchRuntimeMethod()) + .addMethod(getResetRuntimeMethod()) + .addMethod(getUpgradeRuntimeMethod()) + .addMethod(getReportRuntimeEventMethod()) + .addMethod(getRefreshRuntimeTokenInternalMethod()) + .addMethod(getDiagnoseRuntimeMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-notebooks/grpc-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceGrpc.java b/java-notebooks/grpc-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceGrpc.java new file mode 100644 index 000000000000..720d3c168839 --- /dev/null +++ b/java-notebooks/grpc-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceGrpc.java @@ -0,0 +1,4216 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.notebooks.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * API v1 service for Cloud AI Platform Notebooks.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/notebooks/v1/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class NotebookServiceGrpc { + + private NotebookServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.notebooks.v1.NotebookService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ListInstancesRequest, + com.google.cloud.notebooks.v1.ListInstancesResponse> + getListInstancesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListInstances", + requestType = com.google.cloud.notebooks.v1.ListInstancesRequest.class, + responseType = com.google.cloud.notebooks.v1.ListInstancesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ListInstancesRequest, + com.google.cloud.notebooks.v1.ListInstancesResponse> + getListInstancesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ListInstancesRequest, + com.google.cloud.notebooks.v1.ListInstancesResponse> + getListInstancesMethod; + if ((getListInstancesMethod = NotebookServiceGrpc.getListInstancesMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getListInstancesMethod = NotebookServiceGrpc.getListInstancesMethod) == null) { + NotebookServiceGrpc.getListInstancesMethod = + getListInstancesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.ListInstancesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.ListInstancesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("ListInstances")) + .build(); + } + } + } + return getListInstancesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.GetInstanceRequest, com.google.cloud.notebooks.v1.Instance> + getGetInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetInstance", + requestType = com.google.cloud.notebooks.v1.GetInstanceRequest.class, + responseType = com.google.cloud.notebooks.v1.Instance.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.GetInstanceRequest, com.google.cloud.notebooks.v1.Instance> + getGetInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.GetInstanceRequest, + com.google.cloud.notebooks.v1.Instance> + getGetInstanceMethod; + if ((getGetInstanceMethod = NotebookServiceGrpc.getGetInstanceMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getGetInstanceMethod = NotebookServiceGrpc.getGetInstanceMethod) == null) { + NotebookServiceGrpc.getGetInstanceMethod = + getGetInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.GetInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.Instance.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("GetInstance")) + .build(); + } + } + } + return getGetInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.CreateInstanceRequest, com.google.longrunning.Operation> + getCreateInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateInstance", + requestType = com.google.cloud.notebooks.v1.CreateInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.CreateInstanceRequest, com.google.longrunning.Operation> + getCreateInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.CreateInstanceRequest, com.google.longrunning.Operation> + getCreateInstanceMethod; + if ((getCreateInstanceMethod = NotebookServiceGrpc.getCreateInstanceMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getCreateInstanceMethod = NotebookServiceGrpc.getCreateInstanceMethod) == null) { + NotebookServiceGrpc.getCreateInstanceMethod = + getCreateInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.CreateInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("CreateInstance")) + .build(); + } + } + } + return getCreateInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.RegisterInstanceRequest, com.google.longrunning.Operation> + getRegisterInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RegisterInstance", + requestType = com.google.cloud.notebooks.v1.RegisterInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.RegisterInstanceRequest, com.google.longrunning.Operation> + getRegisterInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.RegisterInstanceRequest, com.google.longrunning.Operation> + getRegisterInstanceMethod; + if ((getRegisterInstanceMethod = NotebookServiceGrpc.getRegisterInstanceMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getRegisterInstanceMethod = NotebookServiceGrpc.getRegisterInstanceMethod) == null) { + NotebookServiceGrpc.getRegisterInstanceMethod = + getRegisterInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RegisterInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.RegisterInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("RegisterInstance")) + .build(); + } + } + } + return getRegisterInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest, + com.google.longrunning.Operation> + getSetInstanceAcceleratorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetInstanceAccelerator", + requestType = com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest, + com.google.longrunning.Operation> + getSetInstanceAcceleratorMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest, + com.google.longrunning.Operation> + getSetInstanceAcceleratorMethod; + if ((getSetInstanceAcceleratorMethod = NotebookServiceGrpc.getSetInstanceAcceleratorMethod) + == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getSetInstanceAcceleratorMethod = NotebookServiceGrpc.getSetInstanceAcceleratorMethod) + == null) { + NotebookServiceGrpc.getSetInstanceAcceleratorMethod = + getSetInstanceAcceleratorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SetInstanceAccelerator")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("SetInstanceAccelerator")) + .build(); + } + } + } + return getSetInstanceAcceleratorMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest, + com.google.longrunning.Operation> + getSetInstanceMachineTypeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetInstanceMachineType", + requestType = com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest, + com.google.longrunning.Operation> + getSetInstanceMachineTypeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest, + com.google.longrunning.Operation> + getSetInstanceMachineTypeMethod; + if ((getSetInstanceMachineTypeMethod = NotebookServiceGrpc.getSetInstanceMachineTypeMethod) + == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getSetInstanceMachineTypeMethod = NotebookServiceGrpc.getSetInstanceMachineTypeMethod) + == null) { + NotebookServiceGrpc.getSetInstanceMachineTypeMethod = + getSetInstanceMachineTypeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SetInstanceMachineType")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("SetInstanceMachineType")) + .build(); + } + } + } + return getSetInstanceMachineTypeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest, + com.google.longrunning.Operation> + getUpdateInstanceConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateInstanceConfig", + requestType = com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest, + com.google.longrunning.Operation> + getUpdateInstanceConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest, + com.google.longrunning.Operation> + getUpdateInstanceConfigMethod; + if ((getUpdateInstanceConfigMethod = NotebookServiceGrpc.getUpdateInstanceConfigMethod) + == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getUpdateInstanceConfigMethod = NotebookServiceGrpc.getUpdateInstanceConfigMethod) + == null) { + NotebookServiceGrpc.getUpdateInstanceConfigMethod = + getUpdateInstanceConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateInstanceConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("UpdateInstanceConfig")) + .build(); + } + } + } + return getUpdateInstanceConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest, + com.google.longrunning.Operation> + getUpdateShieldedInstanceConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateShieldedInstanceConfig", + requestType = com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest, + com.google.longrunning.Operation> + getUpdateShieldedInstanceConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest, + com.google.longrunning.Operation> + getUpdateShieldedInstanceConfigMethod; + if ((getUpdateShieldedInstanceConfigMethod = + NotebookServiceGrpc.getUpdateShieldedInstanceConfigMethod) + == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getUpdateShieldedInstanceConfigMethod = + NotebookServiceGrpc.getUpdateShieldedInstanceConfigMethod) + == null) { + NotebookServiceGrpc.getUpdateShieldedInstanceConfigMethod = + getUpdateShieldedInstanceConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateShieldedInstanceConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier( + "UpdateShieldedInstanceConfig")) + .build(); + } + } + } + return getUpdateShieldedInstanceConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.SetInstanceLabelsRequest, com.google.longrunning.Operation> + getSetInstanceLabelsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetInstanceLabels", + requestType = com.google.cloud.notebooks.v1.SetInstanceLabelsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.SetInstanceLabelsRequest, com.google.longrunning.Operation> + getSetInstanceLabelsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.SetInstanceLabelsRequest, + com.google.longrunning.Operation> + getSetInstanceLabelsMethod; + if ((getSetInstanceLabelsMethod = NotebookServiceGrpc.getSetInstanceLabelsMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getSetInstanceLabelsMethod = NotebookServiceGrpc.getSetInstanceLabelsMethod) == null) { + NotebookServiceGrpc.getSetInstanceLabelsMethod = + getSetInstanceLabelsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetInstanceLabels")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.SetInstanceLabelsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("SetInstanceLabels")) + .build(); + } + } + } + return getSetInstanceLabelsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest, + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse> + getUpdateInstanceMetadataItemsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateInstanceMetadataItems", + requestType = com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest.class, + responseType = com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest, + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse> + getUpdateInstanceMetadataItemsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest, + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse> + getUpdateInstanceMetadataItemsMethod; + if ((getUpdateInstanceMetadataItemsMethod = + NotebookServiceGrpc.getUpdateInstanceMetadataItemsMethod) + == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getUpdateInstanceMetadataItemsMethod = + NotebookServiceGrpc.getUpdateInstanceMetadataItemsMethod) + == null) { + NotebookServiceGrpc.getUpdateInstanceMetadataItemsMethod = + getUpdateInstanceMetadataItemsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateInstanceMetadataItems")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier( + "UpdateInstanceMetadataItems")) + .build(); + } + } + } + return getUpdateInstanceMetadataItemsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.DeleteInstanceRequest, com.google.longrunning.Operation> + getDeleteInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteInstance", + requestType = com.google.cloud.notebooks.v1.DeleteInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.DeleteInstanceRequest, com.google.longrunning.Operation> + getDeleteInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.DeleteInstanceRequest, com.google.longrunning.Operation> + getDeleteInstanceMethod; + if ((getDeleteInstanceMethod = NotebookServiceGrpc.getDeleteInstanceMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getDeleteInstanceMethod = NotebookServiceGrpc.getDeleteInstanceMethod) == null) { + NotebookServiceGrpc.getDeleteInstanceMethod = + getDeleteInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.DeleteInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("DeleteInstance")) + .build(); + } + } + } + return getDeleteInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.StartInstanceRequest, com.google.longrunning.Operation> + getStartInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartInstance", + requestType = com.google.cloud.notebooks.v1.StartInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.StartInstanceRequest, com.google.longrunning.Operation> + getStartInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.StartInstanceRequest, com.google.longrunning.Operation> + getStartInstanceMethod; + if ((getStartInstanceMethod = NotebookServiceGrpc.getStartInstanceMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getStartInstanceMethod = NotebookServiceGrpc.getStartInstanceMethod) == null) { + NotebookServiceGrpc.getStartInstanceMethod = + getStartInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.StartInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("StartInstance")) + .build(); + } + } + } + return getStartInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.StopInstanceRequest, com.google.longrunning.Operation> + getStopInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopInstance", + requestType = com.google.cloud.notebooks.v1.StopInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.StopInstanceRequest, com.google.longrunning.Operation> + getStopInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.StopInstanceRequest, com.google.longrunning.Operation> + getStopInstanceMethod; + if ((getStopInstanceMethod = NotebookServiceGrpc.getStopInstanceMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getStopInstanceMethod = NotebookServiceGrpc.getStopInstanceMethod) == null) { + NotebookServiceGrpc.getStopInstanceMethod = + getStopInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.StopInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("StopInstance")) + .build(); + } + } + } + return getStopInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ResetInstanceRequest, com.google.longrunning.Operation> + getResetInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ResetInstance", + requestType = com.google.cloud.notebooks.v1.ResetInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ResetInstanceRequest, com.google.longrunning.Operation> + getResetInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ResetInstanceRequest, com.google.longrunning.Operation> + getResetInstanceMethod; + if ((getResetInstanceMethod = NotebookServiceGrpc.getResetInstanceMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getResetInstanceMethod = NotebookServiceGrpc.getResetInstanceMethod) == null) { + NotebookServiceGrpc.getResetInstanceMethod = + getResetInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResetInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.ResetInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("ResetInstance")) + .build(); + } + } + } + return getResetInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ReportInstanceInfoRequest, com.google.longrunning.Operation> + getReportInstanceInfoMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ReportInstanceInfo", + requestType = com.google.cloud.notebooks.v1.ReportInstanceInfoRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ReportInstanceInfoRequest, com.google.longrunning.Operation> + getReportInstanceInfoMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ReportInstanceInfoRequest, + com.google.longrunning.Operation> + getReportInstanceInfoMethod; + if ((getReportInstanceInfoMethod = NotebookServiceGrpc.getReportInstanceInfoMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getReportInstanceInfoMethod = NotebookServiceGrpc.getReportInstanceInfoMethod) + == null) { + NotebookServiceGrpc.getReportInstanceInfoMethod = + getReportInstanceInfoMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReportInstanceInfo")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.ReportInstanceInfoRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("ReportInstanceInfo")) + .build(); + } + } + } + return getReportInstanceInfoMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest, + com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse> + getIsInstanceUpgradeableMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "IsInstanceUpgradeable", + requestType = com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest.class, + responseType = com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest, + com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse> + getIsInstanceUpgradeableMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest, + com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse> + getIsInstanceUpgradeableMethod; + if ((getIsInstanceUpgradeableMethod = NotebookServiceGrpc.getIsInstanceUpgradeableMethod) + == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getIsInstanceUpgradeableMethod = NotebookServiceGrpc.getIsInstanceUpgradeableMethod) + == null) { + NotebookServiceGrpc.getIsInstanceUpgradeableMethod = + getIsInstanceUpgradeableMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "IsInstanceUpgradeable")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("IsInstanceUpgradeable")) + .build(); + } + } + } + return getIsInstanceUpgradeableMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.GetInstanceHealthRequest, + com.google.cloud.notebooks.v1.GetInstanceHealthResponse> + getGetInstanceHealthMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetInstanceHealth", + requestType = com.google.cloud.notebooks.v1.GetInstanceHealthRequest.class, + responseType = com.google.cloud.notebooks.v1.GetInstanceHealthResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.GetInstanceHealthRequest, + com.google.cloud.notebooks.v1.GetInstanceHealthResponse> + getGetInstanceHealthMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.GetInstanceHealthRequest, + com.google.cloud.notebooks.v1.GetInstanceHealthResponse> + getGetInstanceHealthMethod; + if ((getGetInstanceHealthMethod = NotebookServiceGrpc.getGetInstanceHealthMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getGetInstanceHealthMethod = NotebookServiceGrpc.getGetInstanceHealthMethod) == null) { + NotebookServiceGrpc.getGetInstanceHealthMethod = + getGetInstanceHealthMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstanceHealth")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.GetInstanceHealthRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.GetInstanceHealthResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("GetInstanceHealth")) + .build(); + } + } + } + return getGetInstanceHealthMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.UpgradeInstanceRequest, com.google.longrunning.Operation> + getUpgradeInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpgradeInstance", + requestType = com.google.cloud.notebooks.v1.UpgradeInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.UpgradeInstanceRequest, com.google.longrunning.Operation> + getUpgradeInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.UpgradeInstanceRequest, com.google.longrunning.Operation> + getUpgradeInstanceMethod; + if ((getUpgradeInstanceMethod = NotebookServiceGrpc.getUpgradeInstanceMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getUpgradeInstanceMethod = NotebookServiceGrpc.getUpgradeInstanceMethod) == null) { + NotebookServiceGrpc.getUpgradeInstanceMethod = + getUpgradeInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpgradeInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.UpgradeInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("UpgradeInstance")) + .build(); + } + } + } + return getUpgradeInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.RollbackInstanceRequest, com.google.longrunning.Operation> + getRollbackInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RollbackInstance", + requestType = com.google.cloud.notebooks.v1.RollbackInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.RollbackInstanceRequest, com.google.longrunning.Operation> + getRollbackInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.RollbackInstanceRequest, com.google.longrunning.Operation> + getRollbackInstanceMethod; + if ((getRollbackInstanceMethod = NotebookServiceGrpc.getRollbackInstanceMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getRollbackInstanceMethod = NotebookServiceGrpc.getRollbackInstanceMethod) == null) { + NotebookServiceGrpc.getRollbackInstanceMethod = + getRollbackInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RollbackInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.RollbackInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("RollbackInstance")) + .build(); + } + } + } + return getRollbackInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.DiagnoseInstanceRequest, com.google.longrunning.Operation> + getDiagnoseInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DiagnoseInstance", + requestType = com.google.cloud.notebooks.v1.DiagnoseInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.DiagnoseInstanceRequest, com.google.longrunning.Operation> + getDiagnoseInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.DiagnoseInstanceRequest, com.google.longrunning.Operation> + getDiagnoseInstanceMethod; + if ((getDiagnoseInstanceMethod = NotebookServiceGrpc.getDiagnoseInstanceMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getDiagnoseInstanceMethod = NotebookServiceGrpc.getDiagnoseInstanceMethod) == null) { + NotebookServiceGrpc.getDiagnoseInstanceMethod = + getDiagnoseInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DiagnoseInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.DiagnoseInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("DiagnoseInstance")) + .build(); + } + } + } + return getDiagnoseInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest, + com.google.longrunning.Operation> + getUpgradeInstanceInternalMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpgradeInstanceInternal", + requestType = com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest, + com.google.longrunning.Operation> + getUpgradeInstanceInternalMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest, + com.google.longrunning.Operation> + getUpgradeInstanceInternalMethod; + if ((getUpgradeInstanceInternalMethod = NotebookServiceGrpc.getUpgradeInstanceInternalMethod) + == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getUpgradeInstanceInternalMethod = + NotebookServiceGrpc.getUpgradeInstanceInternalMethod) + == null) { + NotebookServiceGrpc.getUpgradeInstanceInternalMethod = + getUpgradeInstanceInternalMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpgradeInstanceInternal")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("UpgradeInstanceInternal")) + .build(); + } + } + } + return getUpgradeInstanceInternalMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ListEnvironmentsRequest, + com.google.cloud.notebooks.v1.ListEnvironmentsResponse> + getListEnvironmentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListEnvironments", + requestType = com.google.cloud.notebooks.v1.ListEnvironmentsRequest.class, + responseType = com.google.cloud.notebooks.v1.ListEnvironmentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ListEnvironmentsRequest, + com.google.cloud.notebooks.v1.ListEnvironmentsResponse> + getListEnvironmentsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ListEnvironmentsRequest, + com.google.cloud.notebooks.v1.ListEnvironmentsResponse> + getListEnvironmentsMethod; + if ((getListEnvironmentsMethod = NotebookServiceGrpc.getListEnvironmentsMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getListEnvironmentsMethod = NotebookServiceGrpc.getListEnvironmentsMethod) == null) { + NotebookServiceGrpc.getListEnvironmentsMethod = + getListEnvironmentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEnvironments")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.ListEnvironmentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.ListEnvironmentsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("ListEnvironments")) + .build(); + } + } + } + return getListEnvironmentsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.GetEnvironmentRequest, + com.google.cloud.notebooks.v1.Environment> + getGetEnvironmentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetEnvironment", + requestType = com.google.cloud.notebooks.v1.GetEnvironmentRequest.class, + responseType = com.google.cloud.notebooks.v1.Environment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.GetEnvironmentRequest, + com.google.cloud.notebooks.v1.Environment> + getGetEnvironmentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.GetEnvironmentRequest, + com.google.cloud.notebooks.v1.Environment> + getGetEnvironmentMethod; + if ((getGetEnvironmentMethod = NotebookServiceGrpc.getGetEnvironmentMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getGetEnvironmentMethod = NotebookServiceGrpc.getGetEnvironmentMethod) == null) { + NotebookServiceGrpc.getGetEnvironmentMethod = + getGetEnvironmentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEnvironment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.GetEnvironmentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.Environment.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("GetEnvironment")) + .build(); + } + } + } + return getGetEnvironmentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.CreateEnvironmentRequest, com.google.longrunning.Operation> + getCreateEnvironmentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateEnvironment", + requestType = com.google.cloud.notebooks.v1.CreateEnvironmentRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.CreateEnvironmentRequest, com.google.longrunning.Operation> + getCreateEnvironmentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.CreateEnvironmentRequest, + com.google.longrunning.Operation> + getCreateEnvironmentMethod; + if ((getCreateEnvironmentMethod = NotebookServiceGrpc.getCreateEnvironmentMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getCreateEnvironmentMethod = NotebookServiceGrpc.getCreateEnvironmentMethod) == null) { + NotebookServiceGrpc.getCreateEnvironmentMethod = + getCreateEnvironmentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateEnvironment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.CreateEnvironmentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("CreateEnvironment")) + .build(); + } + } + } + return getCreateEnvironmentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.DeleteEnvironmentRequest, com.google.longrunning.Operation> + getDeleteEnvironmentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteEnvironment", + requestType = com.google.cloud.notebooks.v1.DeleteEnvironmentRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.DeleteEnvironmentRequest, com.google.longrunning.Operation> + getDeleteEnvironmentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.DeleteEnvironmentRequest, + com.google.longrunning.Operation> + getDeleteEnvironmentMethod; + if ((getDeleteEnvironmentMethod = NotebookServiceGrpc.getDeleteEnvironmentMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getDeleteEnvironmentMethod = NotebookServiceGrpc.getDeleteEnvironmentMethod) == null) { + NotebookServiceGrpc.getDeleteEnvironmentMethod = + getDeleteEnvironmentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteEnvironment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.DeleteEnvironmentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("DeleteEnvironment")) + .build(); + } + } + } + return getDeleteEnvironmentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ListSchedulesRequest, + com.google.cloud.notebooks.v1.ListSchedulesResponse> + getListSchedulesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSchedules", + requestType = com.google.cloud.notebooks.v1.ListSchedulesRequest.class, + responseType = com.google.cloud.notebooks.v1.ListSchedulesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ListSchedulesRequest, + com.google.cloud.notebooks.v1.ListSchedulesResponse> + getListSchedulesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ListSchedulesRequest, + com.google.cloud.notebooks.v1.ListSchedulesResponse> + getListSchedulesMethod; + if ((getListSchedulesMethod = NotebookServiceGrpc.getListSchedulesMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getListSchedulesMethod = NotebookServiceGrpc.getListSchedulesMethod) == null) { + NotebookServiceGrpc.getListSchedulesMethod = + getListSchedulesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSchedules")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.ListSchedulesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.ListSchedulesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("ListSchedules")) + .build(); + } + } + } + return getListSchedulesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.GetScheduleRequest, com.google.cloud.notebooks.v1.Schedule> + getGetScheduleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSchedule", + requestType = com.google.cloud.notebooks.v1.GetScheduleRequest.class, + responseType = com.google.cloud.notebooks.v1.Schedule.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.GetScheduleRequest, com.google.cloud.notebooks.v1.Schedule> + getGetScheduleMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.GetScheduleRequest, + com.google.cloud.notebooks.v1.Schedule> + getGetScheduleMethod; + if ((getGetScheduleMethod = NotebookServiceGrpc.getGetScheduleMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getGetScheduleMethod = NotebookServiceGrpc.getGetScheduleMethod) == null) { + NotebookServiceGrpc.getGetScheduleMethod = + getGetScheduleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSchedule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.GetScheduleRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.Schedule.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("GetSchedule")) + .build(); + } + } + } + return getGetScheduleMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.DeleteScheduleRequest, com.google.longrunning.Operation> + getDeleteScheduleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSchedule", + requestType = com.google.cloud.notebooks.v1.DeleteScheduleRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.DeleteScheduleRequest, com.google.longrunning.Operation> + getDeleteScheduleMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.DeleteScheduleRequest, com.google.longrunning.Operation> + getDeleteScheduleMethod; + if ((getDeleteScheduleMethod = NotebookServiceGrpc.getDeleteScheduleMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getDeleteScheduleMethod = NotebookServiceGrpc.getDeleteScheduleMethod) == null) { + NotebookServiceGrpc.getDeleteScheduleMethod = + getDeleteScheduleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSchedule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.DeleteScheduleRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("DeleteSchedule")) + .build(); + } + } + } + return getDeleteScheduleMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.CreateScheduleRequest, com.google.longrunning.Operation> + getCreateScheduleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSchedule", + requestType = com.google.cloud.notebooks.v1.CreateScheduleRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.CreateScheduleRequest, com.google.longrunning.Operation> + getCreateScheduleMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.CreateScheduleRequest, com.google.longrunning.Operation> + getCreateScheduleMethod; + if ((getCreateScheduleMethod = NotebookServiceGrpc.getCreateScheduleMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getCreateScheduleMethod = NotebookServiceGrpc.getCreateScheduleMethod) == null) { + NotebookServiceGrpc.getCreateScheduleMethod = + getCreateScheduleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSchedule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.CreateScheduleRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("CreateSchedule")) + .build(); + } + } + } + return getCreateScheduleMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.TriggerScheduleRequest, com.google.longrunning.Operation> + getTriggerScheduleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "TriggerSchedule", + requestType = com.google.cloud.notebooks.v1.TriggerScheduleRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.TriggerScheduleRequest, com.google.longrunning.Operation> + getTriggerScheduleMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.TriggerScheduleRequest, com.google.longrunning.Operation> + getTriggerScheduleMethod; + if ((getTriggerScheduleMethod = NotebookServiceGrpc.getTriggerScheduleMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getTriggerScheduleMethod = NotebookServiceGrpc.getTriggerScheduleMethod) == null) { + NotebookServiceGrpc.getTriggerScheduleMethod = + getTriggerScheduleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TriggerSchedule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.TriggerScheduleRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("TriggerSchedule")) + .build(); + } + } + } + return getTriggerScheduleMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ListExecutionsRequest, + com.google.cloud.notebooks.v1.ListExecutionsResponse> + getListExecutionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListExecutions", + requestType = com.google.cloud.notebooks.v1.ListExecutionsRequest.class, + responseType = com.google.cloud.notebooks.v1.ListExecutionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ListExecutionsRequest, + com.google.cloud.notebooks.v1.ListExecutionsResponse> + getListExecutionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.ListExecutionsRequest, + com.google.cloud.notebooks.v1.ListExecutionsResponse> + getListExecutionsMethod; + if ((getListExecutionsMethod = NotebookServiceGrpc.getListExecutionsMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getListExecutionsMethod = NotebookServiceGrpc.getListExecutionsMethod) == null) { + NotebookServiceGrpc.getListExecutionsMethod = + getListExecutionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListExecutions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.ListExecutionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.ListExecutionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("ListExecutions")) + .build(); + } + } + } + return getListExecutionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.GetExecutionRequest, + com.google.cloud.notebooks.v1.Execution> + getGetExecutionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetExecution", + requestType = com.google.cloud.notebooks.v1.GetExecutionRequest.class, + responseType = com.google.cloud.notebooks.v1.Execution.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.GetExecutionRequest, + com.google.cloud.notebooks.v1.Execution> + getGetExecutionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.GetExecutionRequest, + com.google.cloud.notebooks.v1.Execution> + getGetExecutionMethod; + if ((getGetExecutionMethod = NotebookServiceGrpc.getGetExecutionMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getGetExecutionMethod = NotebookServiceGrpc.getGetExecutionMethod) == null) { + NotebookServiceGrpc.getGetExecutionMethod = + getGetExecutionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExecution")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.GetExecutionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.Execution.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("GetExecution")) + .build(); + } + } + } + return getGetExecutionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.DeleteExecutionRequest, com.google.longrunning.Operation> + getDeleteExecutionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteExecution", + requestType = com.google.cloud.notebooks.v1.DeleteExecutionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.DeleteExecutionRequest, com.google.longrunning.Operation> + getDeleteExecutionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.DeleteExecutionRequest, com.google.longrunning.Operation> + getDeleteExecutionMethod; + if ((getDeleteExecutionMethod = NotebookServiceGrpc.getDeleteExecutionMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getDeleteExecutionMethod = NotebookServiceGrpc.getDeleteExecutionMethod) == null) { + NotebookServiceGrpc.getDeleteExecutionMethod = + getDeleteExecutionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteExecution")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.DeleteExecutionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("DeleteExecution")) + .build(); + } + } + } + return getDeleteExecutionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.CreateExecutionRequest, com.google.longrunning.Operation> + getCreateExecutionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateExecution", + requestType = com.google.cloud.notebooks.v1.CreateExecutionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.CreateExecutionRequest, com.google.longrunning.Operation> + getCreateExecutionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1.CreateExecutionRequest, com.google.longrunning.Operation> + getCreateExecutionMethod; + if ((getCreateExecutionMethod = NotebookServiceGrpc.getCreateExecutionMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getCreateExecutionMethod = NotebookServiceGrpc.getCreateExecutionMethod) == null) { + NotebookServiceGrpc.getCreateExecutionMethod = + getCreateExecutionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateExecution")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1.CreateExecutionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("CreateExecution")) + .build(); + } + } + } + return getCreateExecutionMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static NotebookServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public NotebookServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NotebookServiceStub(channel, callOptions); + } + }; + return NotebookServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static NotebookServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public NotebookServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NotebookServiceBlockingStub(channel, callOptions); + } + }; + return NotebookServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static NotebookServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public NotebookServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NotebookServiceFutureStub(channel, callOptions); + } + }; + return NotebookServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * API v1 service for Cloud AI Platform Notebooks.
+   * 
+ */ + public abstract static class NotebookServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists instances in a given project and location.
+     * 
+ */ + public void listInstances( + com.google.cloud.notebooks.v1.ListInstancesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListInstancesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Instance.
+     * 
+ */ + public void getInstance( + com.google.cloud.notebooks.v1.GetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Instance in a given project and location.
+     * 
+ */ + public void createInstance( + com.google.cloud.notebooks.v1.CreateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Registers an existing legacy notebook instance to the Notebooks API server.
+     * Legacy instances are instances created with the legacy Compute Engine
+     * calls. They are not manageable by the Notebooks API out of the box. This
+     * call makes these instances manageable by the Notebooks API.
+     * 
+ */ + public void registerInstance( + com.google.cloud.notebooks.v1.RegisterInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRegisterInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the guest accelerators of a single Instance.
+     * 
+ */ + public void setInstanceAccelerator( + com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetInstanceAcceleratorMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the machine type of a single Instance.
+     * 
+ */ + public void setInstanceMachineType( + com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetInstanceMachineTypeMethod(), responseObserver); + } + + /** + * + * + *
+     * Update Notebook Instance configurations.
+     * 
+ */ + public void updateInstanceConfig( + com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateInstanceConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the Shielded instance configuration of a single Instance.
+     * 
+ */ + public void updateShieldedInstanceConfig( + com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateShieldedInstanceConfigMethod(), responseObserver); + } + + /** + * + * + *
+     * Replaces all the labels of an Instance.
+     * 
+ */ + public void setInstanceLabels( + com.google.cloud.notebooks.v1.SetInstanceLabelsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetInstanceLabelsMethod(), responseObserver); + } + + /** + * + * + *
+     * Add/update metadata items for an instance.
+     * 
+ */ + public void updateInstanceMetadataItems( + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateInstanceMetadataItemsMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single Instance.
+     * 
+ */ + public void deleteInstance( + com.google.cloud.notebooks.v1.DeleteInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Starts a notebook instance.
+     * 
+ */ + public void startInstance( + com.google.cloud.notebooks.v1.StartInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStartInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Stops a notebook instance.
+     * 
+ */ + public void stopInstance( + com.google.cloud.notebooks.v1.StopInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStopInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Resets a notebook instance.
+     * 
+ */ + public void resetInstance( + com.google.cloud.notebooks.v1.ResetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getResetInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Allows notebook instances to
+     * report their latest instance information to the Notebooks
+     * API server. The server will merge the reported information to
+     * the instance metadata store. Do not use this method directly.
+     * 
+ */ + public void reportInstanceInfo( + com.google.cloud.notebooks.v1.ReportInstanceInfoRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getReportInstanceInfoMethod(), responseObserver); + } + + /** + * + * + *
+     * Check if a notebook instance is upgradable.
+     * 
+ */ + public void isInstanceUpgradeable( + com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getIsInstanceUpgradeableMethod(), responseObserver); + } + + /** + * + * + *
+     * Check if a notebook instance is healthy.
+     * 
+ */ + public void getInstanceHealth( + com.google.cloud.notebooks.v1.GetInstanceHealthRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetInstanceHealthMethod(), responseObserver); + } + + /** + * + * + *
+     * Upgrades a notebook instance to the latest version.
+     * 
+ */ + public void upgradeInstance( + com.google.cloud.notebooks.v1.UpgradeInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpgradeInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Rollbacks a notebook instance to the previous version.
+     * 
+ */ + public void rollbackInstance( + com.google.cloud.notebooks.v1.RollbackInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRollbackInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a Diagnostic File and runs Diagnostic Tool given an Instance.
+     * 
+ */ + public void diagnoseInstance( + com.google.cloud.notebooks.v1.DiagnoseInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDiagnoseInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Allows notebook instances to
+     * call this endpoint to upgrade themselves. Do not use this method directly.
+     * 
+ */ + public void upgradeInstanceInternal( + com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpgradeInstanceInternalMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists environments in a project.
+     * 
+ */ + public void listEnvironments( + com.google.cloud.notebooks.v1.ListEnvironmentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListEnvironmentsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Environment.
+     * 
+ */ + public void getEnvironment( + com.google.cloud.notebooks.v1.GetEnvironmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetEnvironmentMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Environment.
+     * 
+ */ + public void createEnvironment( + com.google.cloud.notebooks.v1.CreateEnvironmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateEnvironmentMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single Environment.
+     * 
+ */ + public void deleteEnvironment( + com.google.cloud.notebooks.v1.DeleteEnvironmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteEnvironmentMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists schedules in a given project and location.
+     * 
+ */ + public void listSchedules( + com.google.cloud.notebooks.v1.ListSchedulesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSchedulesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of schedule
+     * 
+ */ + public void getSchedule( + com.google.cloud.notebooks.v1.GetScheduleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetScheduleMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes schedule and all underlying jobs
+     * 
+ */ + public void deleteSchedule( + com.google.cloud.notebooks.v1.DeleteScheduleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteScheduleMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Scheduled Notebook in a given project and location.
+     * 
+ */ + public void createSchedule( + com.google.cloud.notebooks.v1.CreateScheduleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateScheduleMethod(), responseObserver); + } + + /** + * + * + *
+     * Triggers execution of an existing schedule.
+     * 
+ */ + public void triggerSchedule( + com.google.cloud.notebooks.v1.TriggerScheduleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTriggerScheduleMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists executions in a given project and location
+     * 
+ */ + public void listExecutions( + com.google.cloud.notebooks.v1.ListExecutionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListExecutionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of executions
+     * 
+ */ + public void getExecution( + com.google.cloud.notebooks.v1.GetExecutionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetExecutionMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes execution
+     * 
+ */ + public void deleteExecution( + com.google.cloud.notebooks.v1.DeleteExecutionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteExecutionMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Execution in a given project and location.
+     * 
+ */ + public void createExecution( + com.google.cloud.notebooks.v1.CreateExecutionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateExecutionMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListInstancesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.ListInstancesRequest, + com.google.cloud.notebooks.v1.ListInstancesResponse>( + this, METHODID_LIST_INSTANCES))) + .addMethod( + getGetInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.GetInstanceRequest, + com.google.cloud.notebooks.v1.Instance>(this, METHODID_GET_INSTANCE))) + .addMethod( + getCreateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.CreateInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_INSTANCE))) + .addMethod( + getRegisterInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.RegisterInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_REGISTER_INSTANCE))) + .addMethod( + getSetInstanceAcceleratorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest, + com.google.longrunning.Operation>(this, METHODID_SET_INSTANCE_ACCELERATOR))) + .addMethod( + getSetInstanceMachineTypeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest, + com.google.longrunning.Operation>(this, METHODID_SET_INSTANCE_MACHINE_TYPE))) + .addMethod( + getUpdateInstanceConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_INSTANCE_CONFIG))) + .addMethod( + getUpdateShieldedInstanceConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest, + com.google.longrunning.Operation>( + this, METHODID_UPDATE_SHIELDED_INSTANCE_CONFIG))) + .addMethod( + getSetInstanceLabelsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.SetInstanceLabelsRequest, + com.google.longrunning.Operation>(this, METHODID_SET_INSTANCE_LABELS))) + .addMethod( + getUpdateInstanceMetadataItemsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest, + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse>( + this, METHODID_UPDATE_INSTANCE_METADATA_ITEMS))) + .addMethod( + getDeleteInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.DeleteInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_INSTANCE))) + .addMethod( + getStartInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.StartInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_START_INSTANCE))) + .addMethod( + getStopInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.StopInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_STOP_INSTANCE))) + .addMethod( + getResetInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.ResetInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_RESET_INSTANCE))) + .addMethod( + getReportInstanceInfoMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.ReportInstanceInfoRequest, + com.google.longrunning.Operation>(this, METHODID_REPORT_INSTANCE_INFO))) + .addMethod( + getIsInstanceUpgradeableMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest, + com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse>( + this, METHODID_IS_INSTANCE_UPGRADEABLE))) + .addMethod( + getGetInstanceHealthMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.GetInstanceHealthRequest, + com.google.cloud.notebooks.v1.GetInstanceHealthResponse>( + this, METHODID_GET_INSTANCE_HEALTH))) + .addMethod( + getUpgradeInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.UpgradeInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_UPGRADE_INSTANCE))) + .addMethod( + getRollbackInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.RollbackInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_ROLLBACK_INSTANCE))) + .addMethod( + getDiagnoseInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.DiagnoseInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_DIAGNOSE_INSTANCE))) + .addMethod( + getUpgradeInstanceInternalMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest, + com.google.longrunning.Operation>(this, METHODID_UPGRADE_INSTANCE_INTERNAL))) + .addMethod( + getListEnvironmentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.ListEnvironmentsRequest, + com.google.cloud.notebooks.v1.ListEnvironmentsResponse>( + this, METHODID_LIST_ENVIRONMENTS))) + .addMethod( + getGetEnvironmentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.GetEnvironmentRequest, + com.google.cloud.notebooks.v1.Environment>(this, METHODID_GET_ENVIRONMENT))) + .addMethod( + getCreateEnvironmentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.CreateEnvironmentRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_ENVIRONMENT))) + .addMethod( + getDeleteEnvironmentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.DeleteEnvironmentRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_ENVIRONMENT))) + .addMethod( + getListSchedulesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.ListSchedulesRequest, + com.google.cloud.notebooks.v1.ListSchedulesResponse>( + this, METHODID_LIST_SCHEDULES))) + .addMethod( + getGetScheduleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.GetScheduleRequest, + com.google.cloud.notebooks.v1.Schedule>(this, METHODID_GET_SCHEDULE))) + .addMethod( + getDeleteScheduleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.DeleteScheduleRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_SCHEDULE))) + .addMethod( + getCreateScheduleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.CreateScheduleRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_SCHEDULE))) + .addMethod( + getTriggerScheduleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.TriggerScheduleRequest, + com.google.longrunning.Operation>(this, METHODID_TRIGGER_SCHEDULE))) + .addMethod( + getListExecutionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.ListExecutionsRequest, + com.google.cloud.notebooks.v1.ListExecutionsResponse>( + this, METHODID_LIST_EXECUTIONS))) + .addMethod( + getGetExecutionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.GetExecutionRequest, + com.google.cloud.notebooks.v1.Execution>(this, METHODID_GET_EXECUTION))) + .addMethod( + getDeleteExecutionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.DeleteExecutionRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_EXECUTION))) + .addMethod( + getCreateExecutionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1.CreateExecutionRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_EXECUTION))) + .build(); + } + } + + /** + * + * + *
+   * API v1 service for Cloud AI Platform Notebooks.
+   * 
+ */ + public static final class NotebookServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private NotebookServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected NotebookServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NotebookServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists instances in a given project and location.
+     * 
+ */ + public void listInstances( + com.google.cloud.notebooks.v1.ListInstancesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Instance.
+     * 
+ */ + public void getInstance( + com.google.cloud.notebooks.v1.GetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new Instance in a given project and location.
+     * 
+ */ + public void createInstance( + com.google.cloud.notebooks.v1.CreateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Registers an existing legacy notebook instance to the Notebooks API server.
+     * Legacy instances are instances created with the legacy Compute Engine
+     * calls. They are not manageable by the Notebooks API out of the box. This
+     * call makes these instances manageable by the Notebooks API.
+     * 
+ */ + public void registerInstance( + com.google.cloud.notebooks.v1.RegisterInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRegisterInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the guest accelerators of a single Instance.
+     * 
+ */ + public void setInstanceAccelerator( + com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetInstanceAcceleratorMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the machine type of a single Instance.
+     * 
+ */ + public void setInstanceMachineType( + com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetInstanceMachineTypeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update Notebook Instance configurations.
+     * 
+ */ + public void updateInstanceConfig( + com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateInstanceConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the Shielded instance configuration of a single Instance.
+     * 
+ */ + public void updateShieldedInstanceConfig( + com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateShieldedInstanceConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Replaces all the labels of an Instance.
+     * 
+ */ + public void setInstanceLabels( + com.google.cloud.notebooks.v1.SetInstanceLabelsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetInstanceLabelsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Add/update metadata items for an instance.
+     * 
+ */ + public void updateInstanceMetadataItems( + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateInstanceMetadataItemsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single Instance.
+     * 
+ */ + public void deleteInstance( + com.google.cloud.notebooks.v1.DeleteInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Starts a notebook instance.
+     * 
+ */ + public void startInstance( + com.google.cloud.notebooks.v1.StartInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Stops a notebook instance.
+     * 
+ */ + public void stopInstance( + com.google.cloud.notebooks.v1.StopInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Resets a notebook instance.
+     * 
+ */ + public void resetInstance( + com.google.cloud.notebooks.v1.ResetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getResetInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Allows notebook instances to
+     * report their latest instance information to the Notebooks
+     * API server. The server will merge the reported information to
+     * the instance metadata store. Do not use this method directly.
+     * 
+ */ + public void reportInstanceInfo( + com.google.cloud.notebooks.v1.ReportInstanceInfoRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getReportInstanceInfoMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Check if a notebook instance is upgradable.
+     * 
+ */ + public void isInstanceUpgradeable( + com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getIsInstanceUpgradeableMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Check if a notebook instance is healthy.
+     * 
+ */ + public void getInstanceHealth( + com.google.cloud.notebooks.v1.GetInstanceHealthRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetInstanceHealthMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Upgrades a notebook instance to the latest version.
+     * 
+ */ + public void upgradeInstance( + com.google.cloud.notebooks.v1.UpgradeInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpgradeInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Rollbacks a notebook instance to the previous version.
+     * 
+ */ + public void rollbackInstance( + com.google.cloud.notebooks.v1.RollbackInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRollbackInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a Diagnostic File and runs Diagnostic Tool given an Instance.
+     * 
+ */ + public void diagnoseInstance( + com.google.cloud.notebooks.v1.DiagnoseInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDiagnoseInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Allows notebook instances to
+     * call this endpoint to upgrade themselves. Do not use this method directly.
+     * 
+ */ + public void upgradeInstanceInternal( + com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpgradeInstanceInternalMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists environments in a project.
+     * 
+ */ + public void listEnvironments( + com.google.cloud.notebooks.v1.ListEnvironmentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListEnvironmentsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Environment.
+     * 
+ */ + public void getEnvironment( + com.google.cloud.notebooks.v1.GetEnvironmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetEnvironmentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new Environment.
+     * 
+ */ + public void createEnvironment( + com.google.cloud.notebooks.v1.CreateEnvironmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateEnvironmentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single Environment.
+     * 
+ */ + public void deleteEnvironment( + com.google.cloud.notebooks.v1.DeleteEnvironmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteEnvironmentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists schedules in a given project and location.
+     * 
+ */ + public void listSchedules( + com.google.cloud.notebooks.v1.ListSchedulesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSchedulesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of schedule
+     * 
+ */ + public void getSchedule( + com.google.cloud.notebooks.v1.GetScheduleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetScheduleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes schedule and all underlying jobs
+     * 
+ */ + public void deleteSchedule( + com.google.cloud.notebooks.v1.DeleteScheduleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteScheduleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new Scheduled Notebook in a given project and location.
+     * 
+ */ + public void createSchedule( + com.google.cloud.notebooks.v1.CreateScheduleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateScheduleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Triggers execution of an existing schedule.
+     * 
+ */ + public void triggerSchedule( + com.google.cloud.notebooks.v1.TriggerScheduleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getTriggerScheduleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists executions in a given project and location
+     * 
+ */ + public void listExecutions( + com.google.cloud.notebooks.v1.ListExecutionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListExecutionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of executions
+     * 
+ */ + public void getExecution( + com.google.cloud.notebooks.v1.GetExecutionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetExecutionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes execution
+     * 
+ */ + public void deleteExecution( + com.google.cloud.notebooks.v1.DeleteExecutionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteExecutionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new Execution in a given project and location.
+     * 
+ */ + public void createExecution( + com.google.cloud.notebooks.v1.CreateExecutionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateExecutionMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * API v1 service for Cloud AI Platform Notebooks.
+   * 
+ */ + public static final class NotebookServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private NotebookServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected NotebookServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NotebookServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists instances in a given project and location.
+     * 
+ */ + public com.google.cloud.notebooks.v1.ListInstancesResponse listInstances( + com.google.cloud.notebooks.v1.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListInstancesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Instance.
+     * 
+ */ + public com.google.cloud.notebooks.v1.Instance getInstance( + com.google.cloud.notebooks.v1.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Instance in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createInstance( + com.google.cloud.notebooks.v1.CreateInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Registers an existing legacy notebook instance to the Notebooks API server.
+     * Legacy instances are instances created with the legacy Compute Engine
+     * calls. They are not manageable by the Notebooks API out of the box. This
+     * call makes these instances manageable by the Notebooks API.
+     * 
+ */ + public com.google.longrunning.Operation registerInstance( + com.google.cloud.notebooks.v1.RegisterInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRegisterInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the guest accelerators of a single Instance.
+     * 
+ */ + public com.google.longrunning.Operation setInstanceAccelerator( + com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetInstanceAcceleratorMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the machine type of a single Instance.
+     * 
+ */ + public com.google.longrunning.Operation setInstanceMachineType( + com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetInstanceMachineTypeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update Notebook Instance configurations.
+     * 
+ */ + public com.google.longrunning.Operation updateInstanceConfig( + com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateInstanceConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the Shielded instance configuration of a single Instance.
+     * 
+ */ + public com.google.longrunning.Operation updateShieldedInstanceConfig( + com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateShieldedInstanceConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Replaces all the labels of an Instance.
+     * 
+ */ + public com.google.longrunning.Operation setInstanceLabels( + com.google.cloud.notebooks.v1.SetInstanceLabelsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetInstanceLabelsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Add/update metadata items for an instance.
+     * 
+ */ + public com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse + updateInstanceMetadataItems( + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateInstanceMetadataItemsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Instance.
+     * 
+ */ + public com.google.longrunning.Operation deleteInstance( + com.google.cloud.notebooks.v1.DeleteInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Starts a notebook instance.
+     * 
+ */ + public com.google.longrunning.Operation startInstance( + com.google.cloud.notebooks.v1.StartInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Stops a notebook instance.
+     * 
+ */ + public com.google.longrunning.Operation stopInstance( + com.google.cloud.notebooks.v1.StopInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Resets a notebook instance.
+     * 
+ */ + public com.google.longrunning.Operation resetInstance( + com.google.cloud.notebooks.v1.ResetInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResetInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Allows notebook instances to
+     * report their latest instance information to the Notebooks
+     * API server. The server will merge the reported information to
+     * the instance metadata store. Do not use this method directly.
+     * 
+ */ + public com.google.longrunning.Operation reportInstanceInfo( + com.google.cloud.notebooks.v1.ReportInstanceInfoRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getReportInstanceInfoMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Check if a notebook instance is upgradable.
+     * 
+ */ + public com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse isInstanceUpgradeable( + com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getIsInstanceUpgradeableMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Check if a notebook instance is healthy.
+     * 
+ */ + public com.google.cloud.notebooks.v1.GetInstanceHealthResponse getInstanceHealth( + com.google.cloud.notebooks.v1.GetInstanceHealthRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetInstanceHealthMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Upgrades a notebook instance to the latest version.
+     * 
+ */ + public com.google.longrunning.Operation upgradeInstance( + com.google.cloud.notebooks.v1.UpgradeInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpgradeInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Rollbacks a notebook instance to the previous version.
+     * 
+ */ + public com.google.longrunning.Operation rollbackInstance( + com.google.cloud.notebooks.v1.RollbackInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRollbackInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a Diagnostic File and runs Diagnostic Tool given an Instance.
+     * 
+ */ + public com.google.longrunning.Operation diagnoseInstance( + com.google.cloud.notebooks.v1.DiagnoseInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDiagnoseInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Allows notebook instances to
+     * call this endpoint to upgrade themselves. Do not use this method directly.
+     * 
+ */ + public com.google.longrunning.Operation upgradeInstanceInternal( + com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpgradeInstanceInternalMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists environments in a project.
+     * 
+ */ + public com.google.cloud.notebooks.v1.ListEnvironmentsResponse listEnvironments( + com.google.cloud.notebooks.v1.ListEnvironmentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEnvironmentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Environment.
+     * 
+ */ + public com.google.cloud.notebooks.v1.Environment getEnvironment( + com.google.cloud.notebooks.v1.GetEnvironmentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEnvironmentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Environment.
+     * 
+ */ + public com.google.longrunning.Operation createEnvironment( + com.google.cloud.notebooks.v1.CreateEnvironmentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateEnvironmentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Environment.
+     * 
+ */ + public com.google.longrunning.Operation deleteEnvironment( + com.google.cloud.notebooks.v1.DeleteEnvironmentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteEnvironmentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists schedules in a given project and location.
+     * 
+ */ + public com.google.cloud.notebooks.v1.ListSchedulesResponse listSchedules( + com.google.cloud.notebooks.v1.ListSchedulesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSchedulesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of schedule
+     * 
+ */ + public com.google.cloud.notebooks.v1.Schedule getSchedule( + com.google.cloud.notebooks.v1.GetScheduleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetScheduleMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes schedule and all underlying jobs
+     * 
+ */ + public com.google.longrunning.Operation deleteSchedule( + com.google.cloud.notebooks.v1.DeleteScheduleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteScheduleMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Scheduled Notebook in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createSchedule( + com.google.cloud.notebooks.v1.CreateScheduleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateScheduleMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Triggers execution of an existing schedule.
+     * 
+ */ + public com.google.longrunning.Operation triggerSchedule( + com.google.cloud.notebooks.v1.TriggerScheduleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTriggerScheduleMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists executions in a given project and location
+     * 
+ */ + public com.google.cloud.notebooks.v1.ListExecutionsResponse listExecutions( + com.google.cloud.notebooks.v1.ListExecutionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListExecutionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of executions
+     * 
+ */ + public com.google.cloud.notebooks.v1.Execution getExecution( + com.google.cloud.notebooks.v1.GetExecutionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetExecutionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes execution
+     * 
+ */ + public com.google.longrunning.Operation deleteExecution( + com.google.cloud.notebooks.v1.DeleteExecutionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteExecutionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Execution in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createExecution( + com.google.cloud.notebooks.v1.CreateExecutionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateExecutionMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * API v1 service for Cloud AI Platform Notebooks.
+   * 
+ */ + public static final class NotebookServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private NotebookServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected NotebookServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NotebookServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists instances in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.notebooks.v1.ListInstancesResponse> + listInstances(com.google.cloud.notebooks.v1.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.notebooks.v1.Instance> + getInstance(com.google.cloud.notebooks.v1.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new Instance in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createInstance(com.google.cloud.notebooks.v1.CreateInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Registers an existing legacy notebook instance to the Notebooks API server.
+     * Legacy instances are instances created with the legacy Compute Engine
+     * calls. They are not manageable by the Notebooks API out of the box. This
+     * call makes these instances manageable by the Notebooks API.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + registerInstance(com.google.cloud.notebooks.v1.RegisterInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRegisterInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the guest accelerators of a single Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + setInstanceAccelerator( + com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetInstanceAcceleratorMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the machine type of a single Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + setInstanceMachineType( + com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetInstanceMachineTypeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update Notebook Instance configurations.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateInstanceConfig(com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateInstanceConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the Shielded instance configuration of a single Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateShieldedInstanceConfig( + com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateShieldedInstanceConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Replaces all the labels of an Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + setInstanceLabels(com.google.cloud.notebooks.v1.SetInstanceLabelsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetInstanceLabelsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Add/update metadata items for an instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse> + updateInstanceMetadataItems( + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateInstanceMetadataItemsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteInstance(com.google.cloud.notebooks.v1.DeleteInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Starts a notebook instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + startInstance(com.google.cloud.notebooks.v1.StartInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Stops a notebook instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + stopInstance(com.google.cloud.notebooks.v1.StopInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Resets a notebook instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + resetInstance(com.google.cloud.notebooks.v1.ResetInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getResetInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Allows notebook instances to
+     * report their latest instance information to the Notebooks
+     * API server. The server will merge the reported information to
+     * the instance metadata store. Do not use this method directly.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + reportInstanceInfo(com.google.cloud.notebooks.v1.ReportInstanceInfoRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getReportInstanceInfoMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Check if a notebook instance is upgradable.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse> + isInstanceUpgradeable(com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getIsInstanceUpgradeableMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Check if a notebook instance is healthy.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.notebooks.v1.GetInstanceHealthResponse> + getInstanceHealth(com.google.cloud.notebooks.v1.GetInstanceHealthRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetInstanceHealthMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Upgrades a notebook instance to the latest version.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + upgradeInstance(com.google.cloud.notebooks.v1.UpgradeInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpgradeInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Rollbacks a notebook instance to the previous version.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + rollbackInstance(com.google.cloud.notebooks.v1.RollbackInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRollbackInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a Diagnostic File and runs Diagnostic Tool given an Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + diagnoseInstance(com.google.cloud.notebooks.v1.DiagnoseInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDiagnoseInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Allows notebook instances to
+     * call this endpoint to upgrade themselves. Do not use this method directly.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + upgradeInstanceInternal( + com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpgradeInstanceInternalMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists environments in a project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.notebooks.v1.ListEnvironmentsResponse> + listEnvironments(com.google.cloud.notebooks.v1.ListEnvironmentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListEnvironmentsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single Environment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.notebooks.v1.Environment> + getEnvironment(com.google.cloud.notebooks.v1.GetEnvironmentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetEnvironmentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new Environment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createEnvironment(com.google.cloud.notebooks.v1.CreateEnvironmentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateEnvironmentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single Environment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteEnvironment(com.google.cloud.notebooks.v1.DeleteEnvironmentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteEnvironmentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists schedules in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.notebooks.v1.ListSchedulesResponse> + listSchedules(com.google.cloud.notebooks.v1.ListSchedulesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSchedulesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of schedule
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.notebooks.v1.Schedule> + getSchedule(com.google.cloud.notebooks.v1.GetScheduleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetScheduleMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes schedule and all underlying jobs
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteSchedule(com.google.cloud.notebooks.v1.DeleteScheduleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteScheduleMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new Scheduled Notebook in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createSchedule(com.google.cloud.notebooks.v1.CreateScheduleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateScheduleMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Triggers execution of an existing schedule.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + triggerSchedule(com.google.cloud.notebooks.v1.TriggerScheduleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTriggerScheduleMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists executions in a given project and location
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.notebooks.v1.ListExecutionsResponse> + listExecutions(com.google.cloud.notebooks.v1.ListExecutionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListExecutionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of executions
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.notebooks.v1.Execution> + getExecution(com.google.cloud.notebooks.v1.GetExecutionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetExecutionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes execution
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteExecution(com.google.cloud.notebooks.v1.DeleteExecutionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteExecutionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new Execution in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createExecution(com.google.cloud.notebooks.v1.CreateExecutionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateExecutionMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_INSTANCES = 0; + private static final int METHODID_GET_INSTANCE = 1; + private static final int METHODID_CREATE_INSTANCE = 2; + private static final int METHODID_REGISTER_INSTANCE = 3; + private static final int METHODID_SET_INSTANCE_ACCELERATOR = 4; + private static final int METHODID_SET_INSTANCE_MACHINE_TYPE = 5; + private static final int METHODID_UPDATE_INSTANCE_CONFIG = 6; + private static final int METHODID_UPDATE_SHIELDED_INSTANCE_CONFIG = 7; + private static final int METHODID_SET_INSTANCE_LABELS = 8; + private static final int METHODID_UPDATE_INSTANCE_METADATA_ITEMS = 9; + private static final int METHODID_DELETE_INSTANCE = 10; + private static final int METHODID_START_INSTANCE = 11; + private static final int METHODID_STOP_INSTANCE = 12; + private static final int METHODID_RESET_INSTANCE = 13; + private static final int METHODID_REPORT_INSTANCE_INFO = 14; + private static final int METHODID_IS_INSTANCE_UPGRADEABLE = 15; + private static final int METHODID_GET_INSTANCE_HEALTH = 16; + private static final int METHODID_UPGRADE_INSTANCE = 17; + private static final int METHODID_ROLLBACK_INSTANCE = 18; + private static final int METHODID_DIAGNOSE_INSTANCE = 19; + private static final int METHODID_UPGRADE_INSTANCE_INTERNAL = 20; + private static final int METHODID_LIST_ENVIRONMENTS = 21; + private static final int METHODID_GET_ENVIRONMENT = 22; + private static final int METHODID_CREATE_ENVIRONMENT = 23; + private static final int METHODID_DELETE_ENVIRONMENT = 24; + private static final int METHODID_LIST_SCHEDULES = 25; + private static final int METHODID_GET_SCHEDULE = 26; + private static final int METHODID_DELETE_SCHEDULE = 27; + private static final int METHODID_CREATE_SCHEDULE = 28; + private static final int METHODID_TRIGGER_SCHEDULE = 29; + private static final int METHODID_LIST_EXECUTIONS = 30; + private static final int METHODID_GET_EXECUTION = 31; + private static final int METHODID_DELETE_EXECUTION = 32; + private static final int METHODID_CREATE_EXECUTION = 33; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final NotebookServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(NotebookServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_INSTANCES: + serviceImpl.listInstances( + (com.google.cloud.notebooks.v1.ListInstancesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_INSTANCE: + serviceImpl.getInstance( + (com.google.cloud.notebooks.v1.GetInstanceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_INSTANCE: + serviceImpl.createInstance( + (com.google.cloud.notebooks.v1.CreateInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_REGISTER_INSTANCE: + serviceImpl.registerInstance( + (com.google.cloud.notebooks.v1.RegisterInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_INSTANCE_ACCELERATOR: + serviceImpl.setInstanceAccelerator( + (com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_INSTANCE_MACHINE_TYPE: + serviceImpl.setInstanceMachineType( + (com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_INSTANCE_CONFIG: + serviceImpl.updateInstanceConfig( + (com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SHIELDED_INSTANCE_CONFIG: + serviceImpl.updateShieldedInstanceConfig( + (com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_INSTANCE_LABELS: + serviceImpl.setInstanceLabels( + (com.google.cloud.notebooks.v1.SetInstanceLabelsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_INSTANCE_METADATA_ITEMS: + serviceImpl.updateInstanceMetadataItems( + (com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse>) + responseObserver); + break; + case METHODID_DELETE_INSTANCE: + serviceImpl.deleteInstance( + (com.google.cloud.notebooks.v1.DeleteInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_INSTANCE: + serviceImpl.startInstance( + (com.google.cloud.notebooks.v1.StartInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STOP_INSTANCE: + serviceImpl.stopInstance( + (com.google.cloud.notebooks.v1.StopInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESET_INSTANCE: + serviceImpl.resetInstance( + (com.google.cloud.notebooks.v1.ResetInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_REPORT_INSTANCE_INFO: + serviceImpl.reportInstanceInfo( + (com.google.cloud.notebooks.v1.ReportInstanceInfoRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IS_INSTANCE_UPGRADEABLE: + serviceImpl.isInstanceUpgradeable( + (com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse>) + responseObserver); + break; + case METHODID_GET_INSTANCE_HEALTH: + serviceImpl.getInstanceHealth( + (com.google.cloud.notebooks.v1.GetInstanceHealthRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPGRADE_INSTANCE: + serviceImpl.upgradeInstance( + (com.google.cloud.notebooks.v1.UpgradeInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ROLLBACK_INSTANCE: + serviceImpl.rollbackInstance( + (com.google.cloud.notebooks.v1.RollbackInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DIAGNOSE_INSTANCE: + serviceImpl.diagnoseInstance( + (com.google.cloud.notebooks.v1.DiagnoseInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPGRADE_INSTANCE_INTERNAL: + serviceImpl.upgradeInstanceInternal( + (com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ENVIRONMENTS: + serviceImpl.listEnvironments( + (com.google.cloud.notebooks.v1.ListEnvironmentsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_ENVIRONMENT: + serviceImpl.getEnvironment( + (com.google.cloud.notebooks.v1.GetEnvironmentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_ENVIRONMENT: + serviceImpl.createEnvironment( + (com.google.cloud.notebooks.v1.CreateEnvironmentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_ENVIRONMENT: + serviceImpl.deleteEnvironment( + (com.google.cloud.notebooks.v1.DeleteEnvironmentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_SCHEDULES: + serviceImpl.listSchedules( + (com.google.cloud.notebooks.v1.ListSchedulesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_SCHEDULE: + serviceImpl.getSchedule( + (com.google.cloud.notebooks.v1.GetScheduleRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_SCHEDULE: + serviceImpl.deleteSchedule( + (com.google.cloud.notebooks.v1.DeleteScheduleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SCHEDULE: + serviceImpl.createSchedule( + (com.google.cloud.notebooks.v1.CreateScheduleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_TRIGGER_SCHEDULE: + serviceImpl.triggerSchedule( + (com.google.cloud.notebooks.v1.TriggerScheduleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_EXECUTIONS: + serviceImpl.listExecutions( + (com.google.cloud.notebooks.v1.ListExecutionsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_EXECUTION: + serviceImpl.getExecution( + (com.google.cloud.notebooks.v1.GetExecutionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_EXECUTION: + serviceImpl.deleteExecution( + (com.google.cloud.notebooks.v1.DeleteExecutionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_EXECUTION: + serviceImpl.createExecution( + (com.google.cloud.notebooks.v1.CreateExecutionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class NotebookServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + NotebookServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("NotebookService"); + } + } + + private static final class NotebookServiceFileDescriptorSupplier + extends NotebookServiceBaseDescriptorSupplier { + NotebookServiceFileDescriptorSupplier() {} + } + + private static final class NotebookServiceMethodDescriptorSupplier + extends NotebookServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + NotebookServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (NotebookServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new NotebookServiceFileDescriptorSupplier()) + .addMethod(getListInstancesMethod()) + .addMethod(getGetInstanceMethod()) + .addMethod(getCreateInstanceMethod()) + .addMethod(getRegisterInstanceMethod()) + .addMethod(getSetInstanceAcceleratorMethod()) + .addMethod(getSetInstanceMachineTypeMethod()) + .addMethod(getUpdateInstanceConfigMethod()) + .addMethod(getUpdateShieldedInstanceConfigMethod()) + .addMethod(getSetInstanceLabelsMethod()) + .addMethod(getUpdateInstanceMetadataItemsMethod()) + .addMethod(getDeleteInstanceMethod()) + .addMethod(getStartInstanceMethod()) + .addMethod(getStopInstanceMethod()) + .addMethod(getResetInstanceMethod()) + .addMethod(getReportInstanceInfoMethod()) + .addMethod(getIsInstanceUpgradeableMethod()) + .addMethod(getGetInstanceHealthMethod()) + .addMethod(getUpgradeInstanceMethod()) + .addMethod(getRollbackInstanceMethod()) + .addMethod(getDiagnoseInstanceMethod()) + .addMethod(getUpgradeInstanceInternalMethod()) + .addMethod(getListEnvironmentsMethod()) + .addMethod(getGetEnvironmentMethod()) + .addMethod(getCreateEnvironmentMethod()) + .addMethod(getDeleteEnvironmentMethod()) + .addMethod(getListSchedulesMethod()) + .addMethod(getGetScheduleMethod()) + .addMethod(getDeleteScheduleMethod()) + .addMethod(getCreateScheduleMethod()) + .addMethod(getTriggerScheduleMethod()) + .addMethod(getListExecutionsMethod()) + .addMethod(getGetExecutionMethod()) + .addMethod(getDeleteExecutionMethod()) + .addMethod(getCreateExecutionMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-notebooks/grpc-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceGrpc.java b/java-notebooks/grpc-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceGrpc.java new file mode 100644 index 000000000000..eb0fea688128 --- /dev/null +++ b/java-notebooks/grpc-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceGrpc.java @@ -0,0 +1,2521 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.notebooks.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * API v1beta1 service for Cloud AI Platform Notebooks.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/notebooks/v1beta1/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class NotebookServiceGrpc { + + private NotebookServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.notebooks.v1beta1.NotebookService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.ListInstancesRequest, + com.google.cloud.notebooks.v1beta1.ListInstancesResponse> + getListInstancesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListInstances", + requestType = com.google.cloud.notebooks.v1beta1.ListInstancesRequest.class, + responseType = com.google.cloud.notebooks.v1beta1.ListInstancesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.ListInstancesRequest, + com.google.cloud.notebooks.v1beta1.ListInstancesResponse> + getListInstancesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.ListInstancesRequest, + com.google.cloud.notebooks.v1beta1.ListInstancesResponse> + getListInstancesMethod; + if ((getListInstancesMethod = NotebookServiceGrpc.getListInstancesMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getListInstancesMethod = NotebookServiceGrpc.getListInstancesMethod) == null) { + NotebookServiceGrpc.getListInstancesMethod = + getListInstancesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1beta1.ListInstancesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1beta1.ListInstancesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("ListInstances")) + .build(); + } + } + } + return getListInstancesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.GetInstanceRequest, + com.google.cloud.notebooks.v1beta1.Instance> + getGetInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetInstance", + requestType = com.google.cloud.notebooks.v1beta1.GetInstanceRequest.class, + responseType = com.google.cloud.notebooks.v1beta1.Instance.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.GetInstanceRequest, + com.google.cloud.notebooks.v1beta1.Instance> + getGetInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.GetInstanceRequest, + com.google.cloud.notebooks.v1beta1.Instance> + getGetInstanceMethod; + if ((getGetInstanceMethod = NotebookServiceGrpc.getGetInstanceMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getGetInstanceMethod = NotebookServiceGrpc.getGetInstanceMethod) == null) { + NotebookServiceGrpc.getGetInstanceMethod = + getGetInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1beta1.GetInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1beta1.Instance.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("GetInstance")) + .build(); + } + } + } + return getGetInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.CreateInstanceRequest, + com.google.longrunning.Operation> + getCreateInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateInstance", + requestType = com.google.cloud.notebooks.v1beta1.CreateInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.CreateInstanceRequest, + com.google.longrunning.Operation> + getCreateInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.CreateInstanceRequest, + com.google.longrunning.Operation> + getCreateInstanceMethod; + if ((getCreateInstanceMethod = NotebookServiceGrpc.getCreateInstanceMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getCreateInstanceMethod = NotebookServiceGrpc.getCreateInstanceMethod) == null) { + NotebookServiceGrpc.getCreateInstanceMethod = + getCreateInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1beta1.CreateInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("CreateInstance")) + .build(); + } + } + } + return getCreateInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest, + com.google.longrunning.Operation> + getRegisterInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RegisterInstance", + requestType = com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest, + com.google.longrunning.Operation> + getRegisterInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest, + com.google.longrunning.Operation> + getRegisterInstanceMethod; + if ((getRegisterInstanceMethod = NotebookServiceGrpc.getRegisterInstanceMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getRegisterInstanceMethod = NotebookServiceGrpc.getRegisterInstanceMethod) == null) { + NotebookServiceGrpc.getRegisterInstanceMethod = + getRegisterInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RegisterInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("RegisterInstance")) + .build(); + } + } + } + return getRegisterInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest, + com.google.longrunning.Operation> + getSetInstanceAcceleratorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetInstanceAccelerator", + requestType = com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest, + com.google.longrunning.Operation> + getSetInstanceAcceleratorMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest, + com.google.longrunning.Operation> + getSetInstanceAcceleratorMethod; + if ((getSetInstanceAcceleratorMethod = NotebookServiceGrpc.getSetInstanceAcceleratorMethod) + == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getSetInstanceAcceleratorMethod = NotebookServiceGrpc.getSetInstanceAcceleratorMethod) + == null) { + NotebookServiceGrpc.getSetInstanceAcceleratorMethod = + getSetInstanceAcceleratorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SetInstanceAccelerator")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("SetInstanceAccelerator")) + .build(); + } + } + } + return getSetInstanceAcceleratorMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest, + com.google.longrunning.Operation> + getSetInstanceMachineTypeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetInstanceMachineType", + requestType = com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest, + com.google.longrunning.Operation> + getSetInstanceMachineTypeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest, + com.google.longrunning.Operation> + getSetInstanceMachineTypeMethod; + if ((getSetInstanceMachineTypeMethod = NotebookServiceGrpc.getSetInstanceMachineTypeMethod) + == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getSetInstanceMachineTypeMethod = NotebookServiceGrpc.getSetInstanceMachineTypeMethod) + == null) { + NotebookServiceGrpc.getSetInstanceMachineTypeMethod = + getSetInstanceMachineTypeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SetInstanceMachineType")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("SetInstanceMachineType")) + .build(); + } + } + } + return getSetInstanceMachineTypeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest, + com.google.longrunning.Operation> + getSetInstanceLabelsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetInstanceLabels", + requestType = com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest, + com.google.longrunning.Operation> + getSetInstanceLabelsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest, + com.google.longrunning.Operation> + getSetInstanceLabelsMethod; + if ((getSetInstanceLabelsMethod = NotebookServiceGrpc.getSetInstanceLabelsMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getSetInstanceLabelsMethod = NotebookServiceGrpc.getSetInstanceLabelsMethod) == null) { + NotebookServiceGrpc.getSetInstanceLabelsMethod = + getSetInstanceLabelsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetInstanceLabels")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("SetInstanceLabels")) + .build(); + } + } + } + return getSetInstanceLabelsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest, + com.google.longrunning.Operation> + getDeleteInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteInstance", + requestType = com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest, + com.google.longrunning.Operation> + getDeleteInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest, + com.google.longrunning.Operation> + getDeleteInstanceMethod; + if ((getDeleteInstanceMethod = NotebookServiceGrpc.getDeleteInstanceMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getDeleteInstanceMethod = NotebookServiceGrpc.getDeleteInstanceMethod) == null) { + NotebookServiceGrpc.getDeleteInstanceMethod = + getDeleteInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("DeleteInstance")) + .build(); + } + } + } + return getDeleteInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.StartInstanceRequest, com.google.longrunning.Operation> + getStartInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartInstance", + requestType = com.google.cloud.notebooks.v1beta1.StartInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.StartInstanceRequest, com.google.longrunning.Operation> + getStartInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.StartInstanceRequest, + com.google.longrunning.Operation> + getStartInstanceMethod; + if ((getStartInstanceMethod = NotebookServiceGrpc.getStartInstanceMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getStartInstanceMethod = NotebookServiceGrpc.getStartInstanceMethod) == null) { + NotebookServiceGrpc.getStartInstanceMethod = + getStartInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1beta1.StartInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("StartInstance")) + .build(); + } + } + } + return getStartInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.StopInstanceRequest, com.google.longrunning.Operation> + getStopInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopInstance", + requestType = com.google.cloud.notebooks.v1beta1.StopInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.StopInstanceRequest, com.google.longrunning.Operation> + getStopInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.StopInstanceRequest, + com.google.longrunning.Operation> + getStopInstanceMethod; + if ((getStopInstanceMethod = NotebookServiceGrpc.getStopInstanceMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getStopInstanceMethod = NotebookServiceGrpc.getStopInstanceMethod) == null) { + NotebookServiceGrpc.getStopInstanceMethod = + getStopInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1beta1.StopInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("StopInstance")) + .build(); + } + } + } + return getStopInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.ResetInstanceRequest, com.google.longrunning.Operation> + getResetInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ResetInstance", + requestType = com.google.cloud.notebooks.v1beta1.ResetInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.ResetInstanceRequest, com.google.longrunning.Operation> + getResetInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.ResetInstanceRequest, + com.google.longrunning.Operation> + getResetInstanceMethod; + if ((getResetInstanceMethod = NotebookServiceGrpc.getResetInstanceMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getResetInstanceMethod = NotebookServiceGrpc.getResetInstanceMethod) == null) { + NotebookServiceGrpc.getResetInstanceMethod = + getResetInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResetInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1beta1.ResetInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("ResetInstance")) + .build(); + } + } + } + return getResetInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest, + com.google.longrunning.Operation> + getReportInstanceInfoMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ReportInstanceInfo", + requestType = com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest, + com.google.longrunning.Operation> + getReportInstanceInfoMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest, + com.google.longrunning.Operation> + getReportInstanceInfoMethod; + if ((getReportInstanceInfoMethod = NotebookServiceGrpc.getReportInstanceInfoMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getReportInstanceInfoMethod = NotebookServiceGrpc.getReportInstanceInfoMethod) + == null) { + NotebookServiceGrpc.getReportInstanceInfoMethod = + getReportInstanceInfoMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReportInstanceInfo")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("ReportInstanceInfo")) + .build(); + } + } + } + return getReportInstanceInfoMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest, + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse> + getIsInstanceUpgradeableMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "IsInstanceUpgradeable", + requestType = com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest.class, + responseType = com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest, + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse> + getIsInstanceUpgradeableMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest, + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse> + getIsInstanceUpgradeableMethod; + if ((getIsInstanceUpgradeableMethod = NotebookServiceGrpc.getIsInstanceUpgradeableMethod) + == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getIsInstanceUpgradeableMethod = NotebookServiceGrpc.getIsInstanceUpgradeableMethod) + == null) { + NotebookServiceGrpc.getIsInstanceUpgradeableMethod = + getIsInstanceUpgradeableMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "IsInstanceUpgradeable")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("IsInstanceUpgradeable")) + .build(); + } + } + } + return getIsInstanceUpgradeableMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest, + com.google.longrunning.Operation> + getUpgradeInstanceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpgradeInstance", + requestType = com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest, + com.google.longrunning.Operation> + getUpgradeInstanceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest, + com.google.longrunning.Operation> + getUpgradeInstanceMethod; + if ((getUpgradeInstanceMethod = NotebookServiceGrpc.getUpgradeInstanceMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getUpgradeInstanceMethod = NotebookServiceGrpc.getUpgradeInstanceMethod) == null) { + NotebookServiceGrpc.getUpgradeInstanceMethod = + getUpgradeInstanceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpgradeInstance")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("UpgradeInstance")) + .build(); + } + } + } + return getUpgradeInstanceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest, + com.google.longrunning.Operation> + getUpgradeInstanceInternalMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpgradeInstanceInternal", + requestType = com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest, + com.google.longrunning.Operation> + getUpgradeInstanceInternalMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest, + com.google.longrunning.Operation> + getUpgradeInstanceInternalMethod; + if ((getUpgradeInstanceInternalMethod = NotebookServiceGrpc.getUpgradeInstanceInternalMethod) + == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getUpgradeInstanceInternalMethod = + NotebookServiceGrpc.getUpgradeInstanceInternalMethod) + == null) { + NotebookServiceGrpc.getUpgradeInstanceInternalMethod = + getUpgradeInstanceInternalMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpgradeInstanceInternal")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("UpgradeInstanceInternal")) + .build(); + } + } + } + return getUpgradeInstanceInternalMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest, + com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse> + getListEnvironmentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListEnvironments", + requestType = com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest.class, + responseType = com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest, + com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse> + getListEnvironmentsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest, + com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse> + getListEnvironmentsMethod; + if ((getListEnvironmentsMethod = NotebookServiceGrpc.getListEnvironmentsMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getListEnvironmentsMethod = NotebookServiceGrpc.getListEnvironmentsMethod) == null) { + NotebookServiceGrpc.getListEnvironmentsMethod = + getListEnvironmentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEnvironments")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("ListEnvironments")) + .build(); + } + } + } + return getListEnvironmentsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest, + com.google.cloud.notebooks.v1beta1.Environment> + getGetEnvironmentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetEnvironment", + requestType = com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest.class, + responseType = com.google.cloud.notebooks.v1beta1.Environment.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest, + com.google.cloud.notebooks.v1beta1.Environment> + getGetEnvironmentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest, + com.google.cloud.notebooks.v1beta1.Environment> + getGetEnvironmentMethod; + if ((getGetEnvironmentMethod = NotebookServiceGrpc.getGetEnvironmentMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getGetEnvironmentMethod = NotebookServiceGrpc.getGetEnvironmentMethod) == null) { + NotebookServiceGrpc.getGetEnvironmentMethod = + getGetEnvironmentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEnvironment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1beta1.Environment.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("GetEnvironment")) + .build(); + } + } + } + return getGetEnvironmentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest, + com.google.longrunning.Operation> + getCreateEnvironmentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateEnvironment", + requestType = com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest, + com.google.longrunning.Operation> + getCreateEnvironmentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest, + com.google.longrunning.Operation> + getCreateEnvironmentMethod; + if ((getCreateEnvironmentMethod = NotebookServiceGrpc.getCreateEnvironmentMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getCreateEnvironmentMethod = NotebookServiceGrpc.getCreateEnvironmentMethod) == null) { + NotebookServiceGrpc.getCreateEnvironmentMethod = + getCreateEnvironmentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateEnvironment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("CreateEnvironment")) + .build(); + } + } + } + return getCreateEnvironmentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest, + com.google.longrunning.Operation> + getDeleteEnvironmentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteEnvironment", + requestType = com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest, + com.google.longrunning.Operation> + getDeleteEnvironmentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest, + com.google.longrunning.Operation> + getDeleteEnvironmentMethod; + if ((getDeleteEnvironmentMethod = NotebookServiceGrpc.getDeleteEnvironmentMethod) == null) { + synchronized (NotebookServiceGrpc.class) { + if ((getDeleteEnvironmentMethod = NotebookServiceGrpc.getDeleteEnvironmentMethod) == null) { + NotebookServiceGrpc.getDeleteEnvironmentMethod = + getDeleteEnvironmentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteEnvironment")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NotebookServiceMethodDescriptorSupplier("DeleteEnvironment")) + .build(); + } + } + } + return getDeleteEnvironmentMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static NotebookServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public NotebookServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NotebookServiceStub(channel, callOptions); + } + }; + return NotebookServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static NotebookServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public NotebookServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NotebookServiceBlockingStub(channel, callOptions); + } + }; + return NotebookServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static NotebookServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public NotebookServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NotebookServiceFutureStub(channel, callOptions); + } + }; + return NotebookServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * API v1beta1 service for Cloud AI Platform Notebooks.
+   * 
+ */ + public abstract static class NotebookServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists instances in a given project and location.
+     * 
+ */ + public void listInstances( + com.google.cloud.notebooks.v1beta1.ListInstancesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListInstancesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Instance.
+     * 
+ */ + public void getInstance( + com.google.cloud.notebooks.v1beta1.GetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Instance in a given project and location.
+     * 
+ */ + public void createInstance( + com.google.cloud.notebooks.v1beta1.CreateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Registers an existing legacy notebook instance to the Notebooks API server.
+     * Legacy instances are instances created with the legacy Compute Engine
+     * calls. They are not manageable by the Notebooks API out of the box. This
+     * call makes these instances manageable by the Notebooks API.
+     * 
+ */ + public void registerInstance( + com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRegisterInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the guest accelerators of a single Instance.
+     * 
+ */ + public void setInstanceAccelerator( + com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetInstanceAcceleratorMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the machine type of a single Instance.
+     * 
+ */ + public void setInstanceMachineType( + com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetInstanceMachineTypeMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the labels of an Instance.
+     * 
+ */ + public void setInstanceLabels( + com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetInstanceLabelsMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single Instance.
+     * 
+ */ + public void deleteInstance( + com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Starts a notebook instance.
+     * 
+ */ + public void startInstance( + com.google.cloud.notebooks.v1beta1.StartInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStartInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Stops a notebook instance.
+     * 
+ */ + public void stopInstance( + com.google.cloud.notebooks.v1beta1.StopInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStopInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Resets a notebook instance.
+     * 
+ */ + public void resetInstance( + com.google.cloud.notebooks.v1beta1.ResetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getResetInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Allows notebook instances to
+     * report their latest instance information to the Notebooks
+     * API server. The server will merge the reported information to
+     * the instance metadata store. Do not use this method directly.
+     * 
+ */ + public void reportInstanceInfo( + com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getReportInstanceInfoMethod(), responseObserver); + } + + /** + * + * + *
+     * Check if a notebook instance is upgradable.
+     * Deprecated. Please consider using v1.
+     * 
+ */ + @java.lang.Deprecated + public void isInstanceUpgradeable( + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getIsInstanceUpgradeableMethod(), responseObserver); + } + + /** + * + * + *
+     * Upgrades a notebook instance to the latest version.
+     * Deprecated. Please consider using v1.
+     * 
+ */ + @java.lang.Deprecated + public void upgradeInstance( + com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpgradeInstanceMethod(), responseObserver); + } + + /** + * + * + *
+     * Allows notebook instances to
+     * call this endpoint to upgrade themselves. Do not use this method directly.
+     * Deprecated. Please consider using v1.
+     * 
+ */ + @java.lang.Deprecated + public void upgradeInstanceInternal( + com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpgradeInstanceInternalMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists environments in a project.
+     * 
+ */ + public void listEnvironments( + com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListEnvironmentsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Environment.
+     * 
+ */ + public void getEnvironment( + com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetEnvironmentMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Environment.
+     * 
+ */ + public void createEnvironment( + com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateEnvironmentMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single Environment.
+     * 
+ */ + public void deleteEnvironment( + com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteEnvironmentMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListInstancesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1beta1.ListInstancesRequest, + com.google.cloud.notebooks.v1beta1.ListInstancesResponse>( + this, METHODID_LIST_INSTANCES))) + .addMethod( + getGetInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1beta1.GetInstanceRequest, + com.google.cloud.notebooks.v1beta1.Instance>(this, METHODID_GET_INSTANCE))) + .addMethod( + getCreateInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1beta1.CreateInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_INSTANCE))) + .addMethod( + getRegisterInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_REGISTER_INSTANCE))) + .addMethod( + getSetInstanceAcceleratorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest, + com.google.longrunning.Operation>(this, METHODID_SET_INSTANCE_ACCELERATOR))) + .addMethod( + getSetInstanceMachineTypeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest, + com.google.longrunning.Operation>(this, METHODID_SET_INSTANCE_MACHINE_TYPE))) + .addMethod( + getSetInstanceLabelsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest, + com.google.longrunning.Operation>(this, METHODID_SET_INSTANCE_LABELS))) + .addMethod( + getDeleteInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_INSTANCE))) + .addMethod( + getStartInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1beta1.StartInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_START_INSTANCE))) + .addMethod( + getStopInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1beta1.StopInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_STOP_INSTANCE))) + .addMethod( + getResetInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1beta1.ResetInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_RESET_INSTANCE))) + .addMethod( + getReportInstanceInfoMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest, + com.google.longrunning.Operation>(this, METHODID_REPORT_INSTANCE_INFO))) + .addMethod( + getIsInstanceUpgradeableMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest, + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse>( + this, METHODID_IS_INSTANCE_UPGRADEABLE))) + .addMethod( + getUpgradeInstanceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest, + com.google.longrunning.Operation>(this, METHODID_UPGRADE_INSTANCE))) + .addMethod( + getUpgradeInstanceInternalMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest, + com.google.longrunning.Operation>(this, METHODID_UPGRADE_INSTANCE_INTERNAL))) + .addMethod( + getListEnvironmentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest, + com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse>( + this, METHODID_LIST_ENVIRONMENTS))) + .addMethod( + getGetEnvironmentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest, + com.google.cloud.notebooks.v1beta1.Environment>( + this, METHODID_GET_ENVIRONMENT))) + .addMethod( + getCreateEnvironmentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_ENVIRONMENT))) + .addMethod( + getDeleteEnvironmentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_ENVIRONMENT))) + .build(); + } + } + + /** + * + * + *
+   * API v1beta1 service for Cloud AI Platform Notebooks.
+   * 
+ */ + public static final class NotebookServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private NotebookServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected NotebookServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NotebookServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists instances in a given project and location.
+     * 
+ */ + public void listInstances( + com.google.cloud.notebooks.v1beta1.ListInstancesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Instance.
+     * 
+ */ + public void getInstance( + com.google.cloud.notebooks.v1beta1.GetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new Instance in a given project and location.
+     * 
+ */ + public void createInstance( + com.google.cloud.notebooks.v1beta1.CreateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Registers an existing legacy notebook instance to the Notebooks API server.
+     * Legacy instances are instances created with the legacy Compute Engine
+     * calls. They are not manageable by the Notebooks API out of the box. This
+     * call makes these instances manageable by the Notebooks API.
+     * 
+ */ + public void registerInstance( + com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRegisterInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the guest accelerators of a single Instance.
+     * 
+ */ + public void setInstanceAccelerator( + com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetInstanceAcceleratorMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the machine type of a single Instance.
+     * 
+ */ + public void setInstanceMachineType( + com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetInstanceMachineTypeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the labels of an Instance.
+     * 
+ */ + public void setInstanceLabels( + com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetInstanceLabelsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single Instance.
+     * 
+ */ + public void deleteInstance( + com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Starts a notebook instance.
+     * 
+ */ + public void startInstance( + com.google.cloud.notebooks.v1beta1.StartInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Stops a notebook instance.
+     * 
+ */ + public void stopInstance( + com.google.cloud.notebooks.v1beta1.StopInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Resets a notebook instance.
+     * 
+ */ + public void resetInstance( + com.google.cloud.notebooks.v1beta1.ResetInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getResetInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Allows notebook instances to
+     * report their latest instance information to the Notebooks
+     * API server. The server will merge the reported information to
+     * the instance metadata store. Do not use this method directly.
+     * 
+ */ + public void reportInstanceInfo( + com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getReportInstanceInfoMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Check if a notebook instance is upgradable.
+     * Deprecated. Please consider using v1.
+     * 
+ */ + @java.lang.Deprecated + public void isInstanceUpgradeable( + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getIsInstanceUpgradeableMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Upgrades a notebook instance to the latest version.
+     * Deprecated. Please consider using v1.
+     * 
+ */ + @java.lang.Deprecated + public void upgradeInstance( + com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpgradeInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Allows notebook instances to
+     * call this endpoint to upgrade themselves. Do not use this method directly.
+     * Deprecated. Please consider using v1.
+     * 
+ */ + @java.lang.Deprecated + public void upgradeInstanceInternal( + com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpgradeInstanceInternalMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists environments in a project.
+     * 
+ */ + public void listEnvironments( + com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListEnvironmentsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Environment.
+     * 
+ */ + public void getEnvironment( + com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetEnvironmentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new Environment.
+     * 
+ */ + public void createEnvironment( + com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateEnvironmentMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single Environment.
+     * 
+ */ + public void deleteEnvironment( + com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteEnvironmentMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * API v1beta1 service for Cloud AI Platform Notebooks.
+   * 
+ */ + public static final class NotebookServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private NotebookServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected NotebookServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NotebookServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists instances in a given project and location.
+     * 
+ */ + public com.google.cloud.notebooks.v1beta1.ListInstancesResponse listInstances( + com.google.cloud.notebooks.v1beta1.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListInstancesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Instance.
+     * 
+ */ + public com.google.cloud.notebooks.v1beta1.Instance getInstance( + com.google.cloud.notebooks.v1beta1.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Instance in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createInstance( + com.google.cloud.notebooks.v1beta1.CreateInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Registers an existing legacy notebook instance to the Notebooks API server.
+     * Legacy instances are instances created with the legacy Compute Engine
+     * calls. They are not manageable by the Notebooks API out of the box. This
+     * call makes these instances manageable by the Notebooks API.
+     * 
+ */ + public com.google.longrunning.Operation registerInstance( + com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRegisterInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the guest accelerators of a single Instance.
+     * 
+ */ + public com.google.longrunning.Operation setInstanceAccelerator( + com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetInstanceAcceleratorMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the machine type of a single Instance.
+     * 
+ */ + public com.google.longrunning.Operation setInstanceMachineType( + com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetInstanceMachineTypeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the labels of an Instance.
+     * 
+ */ + public com.google.longrunning.Operation setInstanceLabels( + com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetInstanceLabelsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Instance.
+     * 
+ */ + public com.google.longrunning.Operation deleteInstance( + com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Starts a notebook instance.
+     * 
+ */ + public com.google.longrunning.Operation startInstance( + com.google.cloud.notebooks.v1beta1.StartInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Stops a notebook instance.
+     * 
+ */ + public com.google.longrunning.Operation stopInstance( + com.google.cloud.notebooks.v1beta1.StopInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Resets a notebook instance.
+     * 
+ */ + public com.google.longrunning.Operation resetInstance( + com.google.cloud.notebooks.v1beta1.ResetInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResetInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Allows notebook instances to
+     * report their latest instance information to the Notebooks
+     * API server. The server will merge the reported information to
+     * the instance metadata store. Do not use this method directly.
+     * 
+ */ + public com.google.longrunning.Operation reportInstanceInfo( + com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getReportInstanceInfoMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Check if a notebook instance is upgradable.
+     * Deprecated. Please consider using v1.
+     * 
+ */ + @java.lang.Deprecated + public com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse isInstanceUpgradeable( + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getIsInstanceUpgradeableMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Upgrades a notebook instance to the latest version.
+     * Deprecated. Please consider using v1.
+     * 
+ */ + @java.lang.Deprecated + public com.google.longrunning.Operation upgradeInstance( + com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpgradeInstanceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Allows notebook instances to
+     * call this endpoint to upgrade themselves. Do not use this method directly.
+     * Deprecated. Please consider using v1.
+     * 
+ */ + @java.lang.Deprecated + public com.google.longrunning.Operation upgradeInstanceInternal( + com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpgradeInstanceInternalMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists environments in a project.
+     * 
+ */ + public com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse listEnvironments( + com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEnvironmentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Environment.
+     * 
+ */ + public com.google.cloud.notebooks.v1beta1.Environment getEnvironment( + com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEnvironmentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Environment.
+     * 
+ */ + public com.google.longrunning.Operation createEnvironment( + com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateEnvironmentMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Environment.
+     * 
+ */ + public com.google.longrunning.Operation deleteEnvironment( + com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteEnvironmentMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * API v1beta1 service for Cloud AI Platform Notebooks.
+   * 
+ */ + public static final class NotebookServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private NotebookServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected NotebookServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new NotebookServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists instances in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.notebooks.v1beta1.ListInstancesResponse> + listInstances(com.google.cloud.notebooks.v1beta1.ListInstancesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.notebooks.v1beta1.Instance> + getInstance(com.google.cloud.notebooks.v1beta1.GetInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new Instance in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createInstance(com.google.cloud.notebooks.v1beta1.CreateInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Registers an existing legacy notebook instance to the Notebooks API server.
+     * Legacy instances are instances created with the legacy Compute Engine
+     * calls. They are not manageable by the Notebooks API out of the box. This
+     * call makes these instances manageable by the Notebooks API.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + registerInstance(com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRegisterInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the guest accelerators of a single Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + setInstanceAccelerator( + com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetInstanceAcceleratorMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the machine type of a single Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + setInstanceMachineType( + com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetInstanceMachineTypeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the labels of an Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + setInstanceLabels(com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetInstanceLabelsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single Instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteInstance(com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Starts a notebook instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + startInstance(com.google.cloud.notebooks.v1beta1.StartInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Stops a notebook instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + stopInstance(com.google.cloud.notebooks.v1beta1.StopInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Resets a notebook instance.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + resetInstance(com.google.cloud.notebooks.v1beta1.ResetInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getResetInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Allows notebook instances to
+     * report their latest instance information to the Notebooks
+     * API server. The server will merge the reported information to
+     * the instance metadata store. Do not use this method directly.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + reportInstanceInfo(com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getReportInstanceInfoMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Check if a notebook instance is upgradable.
+     * Deprecated. Please consider using v1.
+     * 
+ */ + @java.lang.Deprecated + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse> + isInstanceUpgradeable( + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getIsInstanceUpgradeableMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Upgrades a notebook instance to the latest version.
+     * Deprecated. Please consider using v1.
+     * 
+ */ + @java.lang.Deprecated + public com.google.common.util.concurrent.ListenableFuture + upgradeInstance(com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpgradeInstanceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Allows notebook instances to
+     * call this endpoint to upgrade themselves. Do not use this method directly.
+     * Deprecated. Please consider using v1.
+     * 
+ */ + @java.lang.Deprecated + public com.google.common.util.concurrent.ListenableFuture + upgradeInstanceInternal( + com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpgradeInstanceInternalMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists environments in a project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse> + listEnvironments(com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListEnvironmentsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single Environment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.notebooks.v1beta1.Environment> + getEnvironment(com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetEnvironmentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new Environment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createEnvironment(com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateEnvironmentMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single Environment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteEnvironment(com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteEnvironmentMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_INSTANCES = 0; + private static final int METHODID_GET_INSTANCE = 1; + private static final int METHODID_CREATE_INSTANCE = 2; + private static final int METHODID_REGISTER_INSTANCE = 3; + private static final int METHODID_SET_INSTANCE_ACCELERATOR = 4; + private static final int METHODID_SET_INSTANCE_MACHINE_TYPE = 5; + private static final int METHODID_SET_INSTANCE_LABELS = 6; + private static final int METHODID_DELETE_INSTANCE = 7; + private static final int METHODID_START_INSTANCE = 8; + private static final int METHODID_STOP_INSTANCE = 9; + private static final int METHODID_RESET_INSTANCE = 10; + private static final int METHODID_REPORT_INSTANCE_INFO = 11; + private static final int METHODID_IS_INSTANCE_UPGRADEABLE = 12; + private static final int METHODID_UPGRADE_INSTANCE = 13; + private static final int METHODID_UPGRADE_INSTANCE_INTERNAL = 14; + private static final int METHODID_LIST_ENVIRONMENTS = 15; + private static final int METHODID_GET_ENVIRONMENT = 16; + private static final int METHODID_CREATE_ENVIRONMENT = 17; + private static final int METHODID_DELETE_ENVIRONMENT = 18; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final NotebookServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(NotebookServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_INSTANCES: + serviceImpl.listInstances( + (com.google.cloud.notebooks.v1beta1.ListInstancesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.notebooks.v1beta1.ListInstancesResponse>) + responseObserver); + break; + case METHODID_GET_INSTANCE: + serviceImpl.getInstance( + (com.google.cloud.notebooks.v1beta1.GetInstanceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_INSTANCE: + serviceImpl.createInstance( + (com.google.cloud.notebooks.v1beta1.CreateInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_REGISTER_INSTANCE: + serviceImpl.registerInstance( + (com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_INSTANCE_ACCELERATOR: + serviceImpl.setInstanceAccelerator( + (com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_INSTANCE_MACHINE_TYPE: + serviceImpl.setInstanceMachineType( + (com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_INSTANCE_LABELS: + serviceImpl.setInstanceLabels( + (com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_INSTANCE: + serviceImpl.deleteInstance( + (com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_INSTANCE: + serviceImpl.startInstance( + (com.google.cloud.notebooks.v1beta1.StartInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STOP_INSTANCE: + serviceImpl.stopInstance( + (com.google.cloud.notebooks.v1beta1.StopInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESET_INSTANCE: + serviceImpl.resetInstance( + (com.google.cloud.notebooks.v1beta1.ResetInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_REPORT_INSTANCE_INFO: + serviceImpl.reportInstanceInfo( + (com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IS_INSTANCE_UPGRADEABLE: + serviceImpl.isInstanceUpgradeable( + (com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse>) + responseObserver); + break; + case METHODID_UPGRADE_INSTANCE: + serviceImpl.upgradeInstance( + (com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPGRADE_INSTANCE_INTERNAL: + serviceImpl.upgradeInstanceInternal( + (com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ENVIRONMENTS: + serviceImpl.listEnvironments( + (com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse>) + responseObserver); + break; + case METHODID_GET_ENVIRONMENT: + serviceImpl.getEnvironment( + (com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_ENVIRONMENT: + serviceImpl.createEnvironment( + (com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_ENVIRONMENT: + serviceImpl.deleteEnvironment( + (com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class NotebookServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + NotebookServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("NotebookService"); + } + } + + private static final class NotebookServiceFileDescriptorSupplier + extends NotebookServiceBaseDescriptorSupplier { + NotebookServiceFileDescriptorSupplier() {} + } + + private static final class NotebookServiceMethodDescriptorSupplier + extends NotebookServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + NotebookServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (NotebookServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new NotebookServiceFileDescriptorSupplier()) + .addMethod(getListInstancesMethod()) + .addMethod(getGetInstanceMethod()) + .addMethod(getCreateInstanceMethod()) + .addMethod(getRegisterInstanceMethod()) + .addMethod(getSetInstanceAcceleratorMethod()) + .addMethod(getSetInstanceMachineTypeMethod()) + .addMethod(getSetInstanceLabelsMethod()) + .addMethod(getDeleteInstanceMethod()) + .addMethod(getStartInstanceMethod()) + .addMethod(getStopInstanceMethod()) + .addMethod(getResetInstanceMethod()) + .addMethod(getReportInstanceInfoMethod()) + .addMethod(getIsInstanceUpgradeableMethod()) + .addMethod(getUpgradeInstanceMethod()) + .addMethod(getUpgradeInstanceInternalMethod()) + .addMethod(getListEnvironmentsMethod()) + .addMethod(getGetEnvironmentMethod()) + .addMethod(getCreateEnvironmentMethod()) + .addMethod(getDeleteEnvironmentMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ContainerImage.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ContainerImage.java similarity index 68% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ContainerImage.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ContainerImage.java index a6f8e5ce9724..b3d151793156 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ContainerImage.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ContainerImage.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/environment.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Definition of a container image for starting a notebook instance with the
  * environment installed in a container.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.notebooks.v1.ContainerImage}
  */
-public final class ContainerImage extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ContainerImage extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.ContainerImage)
     ContainerImageOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ContainerImage.newBuilder() to construct.
   private ContainerImage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ContainerImage() {
     repository_ = "";
     tag_ = "";
@@ -27,38 +45,42 @@ private ContainerImage() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ContainerImage();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.notebooks.v1.EnvironmentProto.internal_static_google_cloud_notebooks_v1_ContainerImage_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.notebooks.v1.EnvironmentProto
+        .internal_static_google_cloud_notebooks_v1_ContainerImage_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.notebooks.v1.EnvironmentProto.internal_static_google_cloud_notebooks_v1_ContainerImage_fieldAccessorTable
+    return com.google.cloud.notebooks.v1.EnvironmentProto
+        .internal_static_google_cloud_notebooks_v1_ContainerImage_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.notebooks.v1.ContainerImage.class, com.google.cloud.notebooks.v1.ContainerImage.Builder.class);
+            com.google.cloud.notebooks.v1.ContainerImage.class,
+            com.google.cloud.notebooks.v1.ContainerImage.Builder.class);
   }
 
   public static final int REPOSITORY_FIELD_NUMBER = 1;
   private volatile java.lang.Object repository_;
   /**
+   *
+   *
    * 
    * Required. The path to the container image repository. For example:
    * `gcr.io/{project_id}/{image_name}`
    * 
* * string repository = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The repository. */ @java.lang.Override @@ -67,30 +89,30 @@ public java.lang.String getRepository() { 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(); repository_ = s; return s; } } /** + * + * *
    * Required. The path to the container image repository. For example:
    * `gcr.io/{project_id}/{image_name}`
    * 
* * string repository = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for repository. */ @java.lang.Override - public com.google.protobuf.ByteString - getRepositoryBytes() { + public com.google.protobuf.ByteString getRepositoryBytes() { java.lang.Object ref = repository_; 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); repository_ = b; return b; } else { @@ -101,12 +123,15 @@ public java.lang.String getRepository() { public static final int TAG_FIELD_NUMBER = 2; private volatile java.lang.Object tag_; /** + * + * *
    * The tag of the container image. If not specified, this defaults
    * to the latest tag.
    * 
* * string tag = 2; + * * @return The tag. */ @java.lang.Override @@ -115,30 +140,30 @@ 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; } } /** + * + * *
    * The tag of the container image. If not specified, this defaults
    * to the latest tag.
    * 
* * string tag = 2; + * * @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 { @@ -147,6 +172,7 @@ public java.lang.String getTag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -158,8 +184,7 @@ 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(repository_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, repository_); } @@ -189,17 +214,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.cloud.notebooks.v1.ContainerImage)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.ContainerImage other = (com.google.cloud.notebooks.v1.ContainerImage) obj; + com.google.cloud.notebooks.v1.ContainerImage other = + (com.google.cloud.notebooks.v1.ContainerImage) obj; - if (!getRepository() - .equals(other.getRepository())) return false; - if (!getTag() - .equals(other.getTag())) return false; + if (!getRepository().equals(other.getRepository())) return false; + if (!getTag().equals(other.getTag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -220,97 +244,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.notebooks.v1.ContainerImage parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.notebooks.v1.ContainerImage parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ContainerImage 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.cloud.notebooks.v1.ContainerImage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ContainerImage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.ContainerImage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ContainerImage 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.cloud.notebooks.v1.ContainerImage 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.cloud.notebooks.v1.ContainerImage 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.cloud.notebooks.v1.ContainerImage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ContainerImage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.ContainerImage 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.cloud.notebooks.v1.ContainerImage 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.cloud.notebooks.v1.ContainerImage 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.cloud.notebooks.v1.ContainerImage 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; } /** + * + * *
    * Definition of a container image for starting a notebook instance with the
    * environment installed in a container.
@@ -318,33 +349,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.notebooks.v1.ContainerImage}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.ContainerImage)
       com.google.cloud.notebooks.v1.ContainerImageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.notebooks.v1.EnvironmentProto.internal_static_google_cloud_notebooks_v1_ContainerImage_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.notebooks.v1.EnvironmentProto
+          .internal_static_google_cloud_notebooks_v1_ContainerImage_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.notebooks.v1.EnvironmentProto.internal_static_google_cloud_notebooks_v1_ContainerImage_fieldAccessorTable
+      return com.google.cloud.notebooks.v1.EnvironmentProto
+          .internal_static_google_cloud_notebooks_v1_ContainerImage_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.notebooks.v1.ContainerImage.class, com.google.cloud.notebooks.v1.ContainerImage.Builder.class);
+              com.google.cloud.notebooks.v1.ContainerImage.class,
+              com.google.cloud.notebooks.v1.ContainerImage.Builder.class);
     }
 
     // Construct using com.google.cloud.notebooks.v1.ContainerImage.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -356,9 +386,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.notebooks.v1.EnvironmentProto.internal_static_google_cloud_notebooks_v1_ContainerImage_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.notebooks.v1.EnvironmentProto
+          .internal_static_google_cloud_notebooks_v1_ContainerImage_descriptor;
     }
 
     @java.lang.Override
@@ -377,7 +407,8 @@ public com.google.cloud.notebooks.v1.ContainerImage build() {
 
     @java.lang.Override
     public com.google.cloud.notebooks.v1.ContainerImage buildPartial() {
-      com.google.cloud.notebooks.v1.ContainerImage result = new com.google.cloud.notebooks.v1.ContainerImage(this);
+      com.google.cloud.notebooks.v1.ContainerImage result =
+          new com.google.cloud.notebooks.v1.ContainerImage(this);
       result.repository_ = repository_;
       result.tag_ = tag_;
       onBuilt();
@@ -388,38 +419,39 @@ public com.google.cloud.notebooks.v1.ContainerImage buildPartial() {
     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.cloud.notebooks.v1.ContainerImage) {
-        return mergeFrom((com.google.cloud.notebooks.v1.ContainerImage)other);
+        return mergeFrom((com.google.cloud.notebooks.v1.ContainerImage) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -462,22 +494,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              repository_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            case 18: {
-              tag_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                repository_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            case 18:
+              {
+                tag_ = input.readStringRequireUtf8();
+
+                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) {
@@ -490,19 +525,21 @@ public Builder mergeFrom(
 
     private java.lang.Object repository_ = "";
     /**
+     *
+     *
      * 
      * Required. The path to the container image repository. For example:
      * `gcr.io/{project_id}/{image_name}`
      * 
* * string repository = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The repository. */ public java.lang.String getRepository() { java.lang.Object ref = repository_; 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(); repository_ = s; return s; @@ -511,21 +548,22 @@ public java.lang.String getRepository() { } } /** + * + * *
      * Required. The path to the container image repository. For example:
      * `gcr.io/{project_id}/{image_name}`
      * 
* * string repository = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for repository. */ - public com.google.protobuf.ByteString - getRepositoryBytes() { + public com.google.protobuf.ByteString getRepositoryBytes() { java.lang.Object ref = repository_; 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); repository_ = b; return b; } else { @@ -533,57 +571,64 @@ public java.lang.String getRepository() { } } /** + * + * *
      * Required. The path to the container image repository. For example:
      * `gcr.io/{project_id}/{image_name}`
      * 
* * string repository = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The repository to set. * @return This builder for chaining. */ - public Builder setRepository( - java.lang.String value) { + public Builder setRepository(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + repository_ = value; onChanged(); return this; } /** + * + * *
      * Required. The path to the container image repository. For example:
      * `gcr.io/{project_id}/{image_name}`
      * 
* * string repository = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRepository() { - + repository_ = getDefaultInstance().getRepository(); onChanged(); return this; } /** + * + * *
      * Required. The path to the container image repository. For example:
      * `gcr.io/{project_id}/{image_name}`
      * 
* * string repository = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for repository to set. * @return This builder for chaining. */ - public Builder setRepositoryBytes( - com.google.protobuf.ByteString value) { + public Builder setRepositoryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + repository_ = value; onChanged(); return this; @@ -591,19 +636,21 @@ public Builder setRepositoryBytes( private java.lang.Object tag_ = ""; /** + * + * *
      * The tag of the container image. If not specified, this defaults
      * to the latest tag.
      * 
* * string tag = 2; + * * @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; @@ -612,21 +659,22 @@ public java.lang.String getTag() { } } /** + * + * *
      * The tag of the container image. If not specified, this defaults
      * to the latest tag.
      * 
* * string tag = 2; + * * @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 { @@ -634,64 +682,71 @@ public java.lang.String getTag() { } } /** + * + * *
      * The tag of the container image. If not specified, this defaults
      * to the latest tag.
      * 
* * string tag = 2; + * * @param value The tag to set. * @return This builder for chaining. */ - public Builder setTag( - java.lang.String value) { + public Builder setTag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + tag_ = value; onChanged(); return this; } /** + * + * *
      * The tag of the container image. If not specified, this defaults
      * to the latest tag.
      * 
* * string tag = 2; + * * @return This builder for chaining. */ public Builder clearTag() { - + tag_ = getDefaultInstance().getTag(); onChanged(); return this; } /** + * + * *
      * The tag of the container image. If not specified, this defaults
      * to the latest tag.
      * 
* * string tag = 2; + * * @param value The bytes for tag to set. * @return This builder for chaining. */ - public Builder setTagBytes( - com.google.protobuf.ByteString value) { + public Builder setTagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tag_ = 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); } @@ -701,12 +756,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.ContainerImage) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.ContainerImage) private static final com.google.cloud.notebooks.v1.ContainerImage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.ContainerImage(); } @@ -715,27 +770,27 @@ public static com.google.cloud.notebooks.v1.ContainerImage getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContainerImage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContainerImage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -750,6 +805,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.ContainerImage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ContainerImageOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ContainerImageOrBuilder.java similarity index 61% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ContainerImageOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ContainerImageOrBuilder.java index f4793d3232c2..0605a8000aba 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ContainerImageOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ContainerImageOrBuilder.java @@ -1,53 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/environment.proto package com.google.cloud.notebooks.v1; -public interface ContainerImageOrBuilder extends +public interface ContainerImageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.ContainerImage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The path to the container image repository. For example:
    * `gcr.io/{project_id}/{image_name}`
    * 
* * string repository = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The repository. */ java.lang.String getRepository(); /** + * + * *
    * Required. The path to the container image repository. For example:
    * `gcr.io/{project_id}/{image_name}`
    * 
* * string repository = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for repository. */ - com.google.protobuf.ByteString - getRepositoryBytes(); + com.google.protobuf.ByteString getRepositoryBytes(); /** + * + * *
    * The tag of the container image. If not specified, this defaults
    * to the latest tag.
    * 
* * string tag = 2; + * * @return The tag. */ java.lang.String getTag(); /** + * + * *
    * The tag of the container image. If not specified, this defaults
    * to the latest tag.
    * 
* * string tag = 2; + * * @return The bytes for tag. */ - com.google.protobuf.ByteString - getTagBytes(); + com.google.protobuf.ByteString getTagBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateEnvironmentRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateEnvironmentRequest.java similarity index 67% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateEnvironmentRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateEnvironmentRequest.java index 17a6faf4b1aa..acdbc8b4e6bf 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateEnvironmentRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateEnvironmentRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for creating a notebook environment.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.CreateEnvironmentRequest} */ -public final class CreateEnvironmentRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateEnvironmentRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.CreateEnvironmentRequest) CreateEnvironmentRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateEnvironmentRequest.newBuilder() to construct. private CreateEnvironmentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateEnvironmentRequest() { parent_ = ""; environmentId_ = ""; @@ -26,37 +44,41 @@ private CreateEnvironmentRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateEnvironmentRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_CreateEnvironmentRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_CreateEnvironmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_CreateEnvironmentRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_CreateEnvironmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.CreateEnvironmentRequest.class, com.google.cloud.notebooks.v1.CreateEnvironmentRequest.Builder.class); + com.google.cloud.notebooks.v1.CreateEnvironmentRequest.class, + com.google.cloud.notebooks.v1.CreateEnvironmentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Format: `projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -65,29 +87,29 @@ 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; } } /** + * + * *
    * Required. Format: `projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -98,6 +120,8 @@ public java.lang.String getParent() { public static final int ENVIRONMENT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object environmentId_; /** + * + * *
    * Required. User-defined unique ID of this environment. The `environment_id` must
    * be 1 to 63 characters long and contain only lowercase letters,
@@ -106,6 +130,7 @@ public java.lang.String getParent() {
    * 
* * string environment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The environmentId. */ @java.lang.Override @@ -114,14 +139,15 @@ public java.lang.String getEnvironmentId() { 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(); environmentId_ = s; return s; } } /** + * + * *
    * Required. User-defined unique ID of this environment. The `environment_id` must
    * be 1 to 63 characters long and contain only lowercase letters,
@@ -130,16 +156,15 @@ public java.lang.String getEnvironmentId() {
    * 
* * string environment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for environmentId. */ @java.lang.Override - public com.google.protobuf.ByteString - getEnvironmentIdBytes() { + public com.google.protobuf.ByteString getEnvironmentIdBytes() { java.lang.Object ref = environmentId_; 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); environmentId_ = b; return b; } else { @@ -150,11 +175,16 @@ public java.lang.String getEnvironmentId() { public static final int ENVIRONMENT_FIELD_NUMBER = 3; private com.google.cloud.notebooks.v1.Environment environment_; /** + * + * *
    * Required. The environment to be created.
    * 
* - * .google.cloud.notebooks.v1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the environment field is set. */ @java.lang.Override @@ -162,23 +192,34 @@ public boolean hasEnvironment() { return environment_ != null; } /** + * + * *
    * Required. The environment to be created.
    * 
* - * .google.cloud.notebooks.v1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The environment. */ @java.lang.Override public com.google.cloud.notebooks.v1.Environment getEnvironment() { - return environment_ == null ? com.google.cloud.notebooks.v1.Environment.getDefaultInstance() : environment_; + return environment_ == null + ? com.google.cloud.notebooks.v1.Environment.getDefaultInstance() + : environment_; } /** + * + * *
    * Required. The environment to be created.
    * 
* - * .google.cloud.notebooks.v1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.notebooks.v1.EnvironmentOrBuilder getEnvironmentOrBuilder() { @@ -186,6 +227,7 @@ public com.google.cloud.notebooks.v1.EnvironmentOrBuilder getEnvironmentOrBuilde } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -197,8 +239,7 @@ 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_); } @@ -224,8 +265,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, environmentId_); } if (environment_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getEnvironment()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEnvironment()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -235,21 +275,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.cloud.notebooks.v1.CreateEnvironmentRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.CreateEnvironmentRequest other = (com.google.cloud.notebooks.v1.CreateEnvironmentRequest) obj; + com.google.cloud.notebooks.v1.CreateEnvironmentRequest other = + (com.google.cloud.notebooks.v1.CreateEnvironmentRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getEnvironmentId() - .equals(other.getEnvironmentId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getEnvironmentId().equals(other.getEnvironmentId())) return false; if (hasEnvironment() != other.hasEnvironment()) return false; if (hasEnvironment()) { - if (!getEnvironment() - .equals(other.getEnvironment())) return false; + if (!getEnvironment().equals(other.getEnvironment())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -276,129 +314,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.CreateEnvironmentRequest 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.cloud.notebooks.v1.CreateEnvironmentRequest 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.cloud.notebooks.v1.CreateEnvironmentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.CreateEnvironmentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.CreateEnvironmentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.CreateEnvironmentRequest 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.cloud.notebooks.v1.CreateEnvironmentRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.CreateEnvironmentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.CreateEnvironmentRequest 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.cloud.notebooks.v1.CreateEnvironmentRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.CreateEnvironmentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.CreateEnvironmentRequest 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.cloud.notebooks.v1.CreateEnvironmentRequest 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.cloud.notebooks.v1.CreateEnvironmentRequest 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.cloud.notebooks.v1.CreateEnvironmentRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1.CreateEnvironmentRequest 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; } /** + * + * *
    * Request for creating a notebook environment.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.CreateEnvironmentRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.CreateEnvironmentRequest) com.google.cloud.notebooks.v1.CreateEnvironmentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_CreateEnvironmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_CreateEnvironmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_CreateEnvironmentRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_CreateEnvironmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.CreateEnvironmentRequest.class, com.google.cloud.notebooks.v1.CreateEnvironmentRequest.Builder.class); + com.google.cloud.notebooks.v1.CreateEnvironmentRequest.class, + com.google.cloud.notebooks.v1.CreateEnvironmentRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.CreateEnvironmentRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -416,9 +461,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_CreateEnvironmentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_CreateEnvironmentRequest_descriptor; } @java.lang.Override @@ -437,7 +482,8 @@ public com.google.cloud.notebooks.v1.CreateEnvironmentRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.CreateEnvironmentRequest buildPartial() { - com.google.cloud.notebooks.v1.CreateEnvironmentRequest result = new com.google.cloud.notebooks.v1.CreateEnvironmentRequest(this); + com.google.cloud.notebooks.v1.CreateEnvironmentRequest result = + new com.google.cloud.notebooks.v1.CreateEnvironmentRequest(this); result.parent_ = parent_; result.environmentId_ = environmentId_; if (environmentBuilder_ == null) { @@ -453,38 +499,39 @@ public com.google.cloud.notebooks.v1.CreateEnvironmentRequest buildPartial() { 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.cloud.notebooks.v1.CreateEnvironmentRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.CreateEnvironmentRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.CreateEnvironmentRequest) other); } else { super.mergeFrom(other); return this; @@ -492,7 +539,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.CreateEnvironmentRequest other) { - if (other == com.google.cloud.notebooks.v1.CreateEnvironmentRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.CreateEnvironmentRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -530,29 +578,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - environmentId_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + environmentId_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - input.readMessage( - getEnvironmentFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 18 + case 26: + { + input.readMessage(getEnvironmentFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -565,18 +615,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Format: `projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -585,20 +637,21 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Format: `projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -606,54 +659,61 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Format: `projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format: `projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Format: `projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -661,6 +721,8 @@ public Builder setParentBytes( private java.lang.Object environmentId_ = ""; /** + * + * *
      * Required. User-defined unique ID of this environment. The `environment_id` must
      * be 1 to 63 characters long and contain only lowercase letters,
@@ -669,13 +731,13 @@ public Builder setParentBytes(
      * 
* * string environment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The environmentId. */ public java.lang.String getEnvironmentId() { java.lang.Object ref = environmentId_; 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(); environmentId_ = s; return s; @@ -684,6 +746,8 @@ public java.lang.String getEnvironmentId() { } } /** + * + * *
      * Required. User-defined unique ID of this environment. The `environment_id` must
      * be 1 to 63 characters long and contain only lowercase letters,
@@ -692,15 +756,14 @@ public java.lang.String getEnvironmentId() {
      * 
* * string environment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for environmentId. */ - public com.google.protobuf.ByteString - getEnvironmentIdBytes() { + public com.google.protobuf.ByteString getEnvironmentIdBytes() { java.lang.Object ref = environmentId_; 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); environmentId_ = b; return b; } else { @@ -708,6 +771,8 @@ public java.lang.String getEnvironmentId() { } } /** + * + * *
      * Required. User-defined unique ID of this environment. The `environment_id` must
      * be 1 to 63 characters long and contain only lowercase letters,
@@ -716,20 +781,22 @@ public java.lang.String getEnvironmentId() {
      * 
* * string environment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The environmentId to set. * @return This builder for chaining. */ - public Builder setEnvironmentId( - java.lang.String value) { + public Builder setEnvironmentId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + environmentId_ = value; onChanged(); return this; } /** + * + * *
      * Required. User-defined unique ID of this environment. The `environment_id` must
      * be 1 to 63 characters long and contain only lowercase letters,
@@ -738,15 +805,18 @@ public Builder setEnvironmentId(
      * 
* * string environment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearEnvironmentId() { - + environmentId_ = getDefaultInstance().getEnvironmentId(); onChanged(); return this; } /** + * + * *
      * Required. User-defined unique ID of this environment. The `environment_id` must
      * be 1 to 63 characters long and contain only lowercase letters,
@@ -755,16 +825,16 @@ public Builder clearEnvironmentId() {
      * 
* * string environment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for environmentId to set. * @return This builder for chaining. */ - public Builder setEnvironmentIdBytes( - com.google.protobuf.ByteString value) { + public Builder setEnvironmentIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + environmentId_ = value; onChanged(); return this; @@ -772,39 +842,58 @@ public Builder setEnvironmentIdBytes( private com.google.cloud.notebooks.v1.Environment environment_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.Environment, com.google.cloud.notebooks.v1.Environment.Builder, com.google.cloud.notebooks.v1.EnvironmentOrBuilder> environmentBuilder_; + com.google.cloud.notebooks.v1.Environment, + com.google.cloud.notebooks.v1.Environment.Builder, + com.google.cloud.notebooks.v1.EnvironmentOrBuilder> + environmentBuilder_; /** + * + * *
      * Required. The environment to be created.
      * 
* - * .google.cloud.notebooks.v1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the environment field is set. */ public boolean hasEnvironment() { return environmentBuilder_ != null || environment_ != null; } /** + * + * *
      * Required. The environment to be created.
      * 
* - * .google.cloud.notebooks.v1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The environment. */ public com.google.cloud.notebooks.v1.Environment getEnvironment() { if (environmentBuilder_ == null) { - return environment_ == null ? com.google.cloud.notebooks.v1.Environment.getDefaultInstance() : environment_; + return environment_ == null + ? com.google.cloud.notebooks.v1.Environment.getDefaultInstance() + : environment_; } else { return environmentBuilder_.getMessage(); } } /** + * + * *
      * Required. The environment to be created.
      * 
* - * .google.cloud.notebooks.v1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setEnvironment(com.google.cloud.notebooks.v1.Environment value) { if (environmentBuilder_ == null) { @@ -820,11 +909,15 @@ public Builder setEnvironment(com.google.cloud.notebooks.v1.Environment value) { return this; } /** + * + * *
      * Required. The environment to be created.
      * 
* - * .google.cloud.notebooks.v1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setEnvironment( com.google.cloud.notebooks.v1.Environment.Builder builderForValue) { @@ -838,17 +931,23 @@ public Builder setEnvironment( return this; } /** + * + * *
      * Required. The environment to be created.
      * 
* - * .google.cloud.notebooks.v1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeEnvironment(com.google.cloud.notebooks.v1.Environment value) { if (environmentBuilder_ == null) { if (environment_ != null) { environment_ = - com.google.cloud.notebooks.v1.Environment.newBuilder(environment_).mergeFrom(value).buildPartial(); + com.google.cloud.notebooks.v1.Environment.newBuilder(environment_) + .mergeFrom(value) + .buildPartial(); } else { environment_ = value; } @@ -860,11 +959,15 @@ public Builder mergeEnvironment(com.google.cloud.notebooks.v1.Environment value) return this; } /** + * + * *
      * Required. The environment to be created.
      * 
* - * .google.cloud.notebooks.v1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearEnvironment() { if (environmentBuilder_ == null) { @@ -878,55 +981,71 @@ public Builder clearEnvironment() { return this; } /** + * + * *
      * Required. The environment to be created.
      * 
* - * .google.cloud.notebooks.v1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.notebooks.v1.Environment.Builder getEnvironmentBuilder() { - + onChanged(); return getEnvironmentFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The environment to be created.
      * 
* - * .google.cloud.notebooks.v1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.notebooks.v1.EnvironmentOrBuilder getEnvironmentOrBuilder() { if (environmentBuilder_ != null) { return environmentBuilder_.getMessageOrBuilder(); } else { - return environment_ == null ? - com.google.cloud.notebooks.v1.Environment.getDefaultInstance() : environment_; + return environment_ == null + ? com.google.cloud.notebooks.v1.Environment.getDefaultInstance() + : environment_; } } /** + * + * *
      * Required. The environment to be created.
      * 
* - * .google.cloud.notebooks.v1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.Environment, com.google.cloud.notebooks.v1.Environment.Builder, com.google.cloud.notebooks.v1.EnvironmentOrBuilder> + com.google.cloud.notebooks.v1.Environment, + com.google.cloud.notebooks.v1.Environment.Builder, + com.google.cloud.notebooks.v1.EnvironmentOrBuilder> getEnvironmentFieldBuilder() { if (environmentBuilder_ == null) { - environmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.Environment, com.google.cloud.notebooks.v1.Environment.Builder, com.google.cloud.notebooks.v1.EnvironmentOrBuilder>( - getEnvironment(), - getParentForChildren(), - isClean()); + environmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.Environment, + com.google.cloud.notebooks.v1.Environment.Builder, + com.google.cloud.notebooks.v1.EnvironmentOrBuilder>( + getEnvironment(), getParentForChildren(), isClean()); environment_ = null; } return environmentBuilder_; } + @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 +1055,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.CreateEnvironmentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.CreateEnvironmentRequest) private static final com.google.cloud.notebooks.v1.CreateEnvironmentRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.CreateEnvironmentRequest(); } @@ -950,27 +1069,27 @@ public static com.google.cloud.notebooks.v1.CreateEnvironmentRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateEnvironmentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateEnvironmentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -985,6 +1104,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.CreateEnvironmentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateEnvironmentRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateEnvironmentRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateEnvironmentRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateEnvironmentRequestOrBuilder.java index 94d3af749734..d07631bf03d8 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateEnvironmentRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateEnvironmentRequestOrBuilder.java @@ -1,33 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface CreateEnvironmentRequestOrBuilder extends +public interface CreateEnvironmentRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.CreateEnvironmentRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format: `projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Format: `projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. User-defined unique ID of this environment. The `environment_id` must
    * be 1 to 63 characters long and contain only lowercase letters,
@@ -36,10 +59,13 @@ public interface CreateEnvironmentRequestOrBuilder extends
    * 
* * string environment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The environmentId. */ java.lang.String getEnvironmentId(); /** + * + * *
    * Required. User-defined unique ID of this environment. The `environment_id` must
    * be 1 to 63 characters long and contain only lowercase letters,
@@ -48,35 +74,49 @@ public interface CreateEnvironmentRequestOrBuilder extends
    * 
* * string environment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for environmentId. */ - com.google.protobuf.ByteString - getEnvironmentIdBytes(); + com.google.protobuf.ByteString getEnvironmentIdBytes(); /** + * + * *
    * Required. The environment to be created.
    * 
* - * .google.cloud.notebooks.v1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the environment field is set. */ boolean hasEnvironment(); /** + * + * *
    * Required. The environment to be created.
    * 
* - * .google.cloud.notebooks.v1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The environment. */ com.google.cloud.notebooks.v1.Environment getEnvironment(); /** + * + * *
    * Required. The environment to be created.
    * 
* - * .google.cloud.notebooks.v1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.notebooks.v1.EnvironmentOrBuilder getEnvironmentOrBuilder(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateExecutionRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateExecutionRequest.java similarity index 63% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateExecutionRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateExecutionRequest.java index 311161b459e0..c372f379e1ba 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateExecutionRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateExecutionRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request to create notebook execution
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.CreateExecutionRequest} */ -public final class CreateExecutionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateExecutionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.CreateExecutionRequest) CreateExecutionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateExecutionRequest.newBuilder() to construct. private CreateExecutionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateExecutionRequest() { parent_ = ""; executionId_ = ""; @@ -26,38 +44,44 @@ private CreateExecutionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateExecutionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_CreateExecutionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_CreateExecutionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_CreateExecutionRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_CreateExecutionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.CreateExecutionRequest.class, com.google.cloud.notebooks.v1.CreateExecutionRequest.Builder.class); + com.google.cloud.notebooks.v1.CreateExecutionRequest.class, + com.google.cloud.notebooks.v1.CreateExecutionRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -66,30 +90,32 @@ 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; } } /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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 { @@ -100,11 +126,14 @@ public java.lang.String getParent() { public static final int EXECUTION_ID_FIELD_NUMBER = 2; private volatile java.lang.Object executionId_; /** + * + * *
    * Required. User-defined unique ID of this execution.
    * 
* * string execution_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The executionId. */ @java.lang.Override @@ -113,29 +142,29 @@ public java.lang.String getExecutionId() { 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(); executionId_ = s; return s; } } /** + * + * *
    * Required. User-defined unique ID of this execution.
    * 
* * string execution_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for executionId. */ @java.lang.Override - public com.google.protobuf.ByteString - getExecutionIdBytes() { + public com.google.protobuf.ByteString getExecutionIdBytes() { java.lang.Object ref = executionId_; 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); executionId_ = b; return b; } else { @@ -146,11 +175,16 @@ public java.lang.String getExecutionId() { public static final int EXECUTION_FIELD_NUMBER = 3; private com.google.cloud.notebooks.v1.Execution execution_; /** + * + * *
    * Required. The execution to be created.
    * 
* - * .google.cloud.notebooks.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the execution field is set. */ @java.lang.Override @@ -158,23 +192,34 @@ public boolean hasExecution() { return execution_ != null; } /** + * + * *
    * Required. The execution to be created.
    * 
* - * .google.cloud.notebooks.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The execution. */ @java.lang.Override public com.google.cloud.notebooks.v1.Execution getExecution() { - return execution_ == null ? com.google.cloud.notebooks.v1.Execution.getDefaultInstance() : execution_; + return execution_ == null + ? com.google.cloud.notebooks.v1.Execution.getDefaultInstance() + : execution_; } /** + * + * *
    * Required. The execution to be created.
    * 
* - * .google.cloud.notebooks.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.notebooks.v1.ExecutionOrBuilder getExecutionOrBuilder() { @@ -182,6 +227,7 @@ public com.google.cloud.notebooks.v1.ExecutionOrBuilder getExecutionOrBuilder() } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -193,8 +239,7 @@ 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_); } @@ -220,8 +265,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, executionId_); } if (execution_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getExecution()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExecution()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -231,21 +275,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.cloud.notebooks.v1.CreateExecutionRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.CreateExecutionRequest other = (com.google.cloud.notebooks.v1.CreateExecutionRequest) obj; + com.google.cloud.notebooks.v1.CreateExecutionRequest other = + (com.google.cloud.notebooks.v1.CreateExecutionRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getExecutionId() - .equals(other.getExecutionId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getExecutionId().equals(other.getExecutionId())) return false; if (hasExecution() != other.hasExecution()) return false; if (hasExecution()) { - if (!getExecution() - .equals(other.getExecution())) return false; + if (!getExecution().equals(other.getExecution())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -272,129 +314,135 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.CreateExecutionRequest 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.cloud.notebooks.v1.CreateExecutionRequest 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.cloud.notebooks.v1.CreateExecutionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.CreateExecutionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.CreateExecutionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.CreateExecutionRequest 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.cloud.notebooks.v1.CreateExecutionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.CreateExecutionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.CreateExecutionRequest 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.cloud.notebooks.v1.CreateExecutionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.CreateExecutionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.CreateExecutionRequest 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.cloud.notebooks.v1.CreateExecutionRequest 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.cloud.notebooks.v1.CreateExecutionRequest 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.cloud.notebooks.v1.CreateExecutionRequest 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; } /** + * + * *
    * Request to create notebook execution
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.CreateExecutionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.CreateExecutionRequest) com.google.cloud.notebooks.v1.CreateExecutionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_CreateExecutionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_CreateExecutionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_CreateExecutionRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_CreateExecutionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.CreateExecutionRequest.class, com.google.cloud.notebooks.v1.CreateExecutionRequest.Builder.class); + com.google.cloud.notebooks.v1.CreateExecutionRequest.class, + com.google.cloud.notebooks.v1.CreateExecutionRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.CreateExecutionRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +460,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_CreateExecutionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_CreateExecutionRequest_descriptor; } @java.lang.Override @@ -433,7 +481,8 @@ public com.google.cloud.notebooks.v1.CreateExecutionRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.CreateExecutionRequest buildPartial() { - com.google.cloud.notebooks.v1.CreateExecutionRequest result = new com.google.cloud.notebooks.v1.CreateExecutionRequest(this); + com.google.cloud.notebooks.v1.CreateExecutionRequest result = + new com.google.cloud.notebooks.v1.CreateExecutionRequest(this); result.parent_ = parent_; result.executionId_ = executionId_; if (executionBuilder_ == null) { @@ -449,38 +498,39 @@ public com.google.cloud.notebooks.v1.CreateExecutionRequest buildPartial() { 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.cloud.notebooks.v1.CreateExecutionRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.CreateExecutionRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.CreateExecutionRequest) other); } else { super.mergeFrom(other); return this; @@ -488,7 +538,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.CreateExecutionRequest other) { - if (other == com.google.cloud.notebooks.v1.CreateExecutionRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.CreateExecutionRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -526,29 +577,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - executionId_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + executionId_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - input.readMessage( - getExecutionFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 18 + case 26: + { + input.readMessage(getExecutionFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -561,19 +614,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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; @@ -582,21 +639,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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 { @@ -604,57 +664,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -662,18 +735,20 @@ public Builder setParentBytes( private java.lang.Object executionId_ = ""; /** + * + * *
      * Required. User-defined unique ID of this execution.
      * 
* * string execution_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The executionId. */ public java.lang.String getExecutionId() { java.lang.Object ref = executionId_; 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(); executionId_ = s; return s; @@ -682,20 +757,21 @@ public java.lang.String getExecutionId() { } } /** + * + * *
      * Required. User-defined unique ID of this execution.
      * 
* * string execution_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for executionId. */ - public com.google.protobuf.ByteString - getExecutionIdBytes() { + public com.google.protobuf.ByteString getExecutionIdBytes() { java.lang.Object ref = executionId_; 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); executionId_ = b; return b; } else { @@ -703,54 +779,61 @@ public java.lang.String getExecutionId() { } } /** + * + * *
      * Required. User-defined unique ID of this execution.
      * 
* * string execution_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The executionId to set. * @return This builder for chaining. */ - public Builder setExecutionId( - java.lang.String value) { + public Builder setExecutionId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + executionId_ = value; onChanged(); return this; } /** + * + * *
      * Required. User-defined unique ID of this execution.
      * 
* * string execution_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearExecutionId() { - + executionId_ = getDefaultInstance().getExecutionId(); onChanged(); return this; } /** + * + * *
      * Required. User-defined unique ID of this execution.
      * 
* * string execution_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for executionId to set. * @return This builder for chaining. */ - public Builder setExecutionIdBytes( - com.google.protobuf.ByteString value) { + public Builder setExecutionIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + executionId_ = value; onChanged(); return this; @@ -758,39 +841,58 @@ public Builder setExecutionIdBytes( private com.google.cloud.notebooks.v1.Execution execution_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.Execution, com.google.cloud.notebooks.v1.Execution.Builder, com.google.cloud.notebooks.v1.ExecutionOrBuilder> executionBuilder_; + com.google.cloud.notebooks.v1.Execution, + com.google.cloud.notebooks.v1.Execution.Builder, + com.google.cloud.notebooks.v1.ExecutionOrBuilder> + executionBuilder_; /** + * + * *
      * Required. The execution to be created.
      * 
* - * .google.cloud.notebooks.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the execution field is set. */ public boolean hasExecution() { return executionBuilder_ != null || execution_ != null; } /** + * + * *
      * Required. The execution to be created.
      * 
* - * .google.cloud.notebooks.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The execution. */ public com.google.cloud.notebooks.v1.Execution getExecution() { if (executionBuilder_ == null) { - return execution_ == null ? com.google.cloud.notebooks.v1.Execution.getDefaultInstance() : execution_; + return execution_ == null + ? com.google.cloud.notebooks.v1.Execution.getDefaultInstance() + : execution_; } else { return executionBuilder_.getMessage(); } } /** + * + * *
      * Required. The execution to be created.
      * 
* - * .google.cloud.notebooks.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setExecution(com.google.cloud.notebooks.v1.Execution value) { if (executionBuilder_ == null) { @@ -806,14 +908,17 @@ public Builder setExecution(com.google.cloud.notebooks.v1.Execution value) { return this; } /** + * + * *
      * Required. The execution to be created.
      * 
* - * .google.cloud.notebooks.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setExecution( - com.google.cloud.notebooks.v1.Execution.Builder builderForValue) { + public Builder setExecution(com.google.cloud.notebooks.v1.Execution.Builder builderForValue) { if (executionBuilder_ == null) { execution_ = builderForValue.build(); onChanged(); @@ -824,17 +929,23 @@ public Builder setExecution( return this; } /** + * + * *
      * Required. The execution to be created.
      * 
* - * .google.cloud.notebooks.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeExecution(com.google.cloud.notebooks.v1.Execution value) { if (executionBuilder_ == null) { if (execution_ != null) { execution_ = - com.google.cloud.notebooks.v1.Execution.newBuilder(execution_).mergeFrom(value).buildPartial(); + com.google.cloud.notebooks.v1.Execution.newBuilder(execution_) + .mergeFrom(value) + .buildPartial(); } else { execution_ = value; } @@ -846,11 +957,15 @@ public Builder mergeExecution(com.google.cloud.notebooks.v1.Execution value) { return this; } /** + * + * *
      * Required. The execution to be created.
      * 
* - * .google.cloud.notebooks.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearExecution() { if (executionBuilder_ == null) { @@ -864,55 +979,71 @@ public Builder clearExecution() { return this; } /** + * + * *
      * Required. The execution to be created.
      * 
* - * .google.cloud.notebooks.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.notebooks.v1.Execution.Builder getExecutionBuilder() { - + onChanged(); return getExecutionFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The execution to be created.
      * 
* - * .google.cloud.notebooks.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.notebooks.v1.ExecutionOrBuilder getExecutionOrBuilder() { if (executionBuilder_ != null) { return executionBuilder_.getMessageOrBuilder(); } else { - return execution_ == null ? - com.google.cloud.notebooks.v1.Execution.getDefaultInstance() : execution_; + return execution_ == null + ? com.google.cloud.notebooks.v1.Execution.getDefaultInstance() + : execution_; } } /** + * + * *
      * Required. The execution to be created.
      * 
* - * .google.cloud.notebooks.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.Execution, com.google.cloud.notebooks.v1.Execution.Builder, com.google.cloud.notebooks.v1.ExecutionOrBuilder> + com.google.cloud.notebooks.v1.Execution, + com.google.cloud.notebooks.v1.Execution.Builder, + com.google.cloud.notebooks.v1.ExecutionOrBuilder> getExecutionFieldBuilder() { if (executionBuilder_ == null) { - executionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.Execution, com.google.cloud.notebooks.v1.Execution.Builder, com.google.cloud.notebooks.v1.ExecutionOrBuilder>( - getExecution(), - getParentForChildren(), - isClean()); + executionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.Execution, + com.google.cloud.notebooks.v1.Execution.Builder, + com.google.cloud.notebooks.v1.ExecutionOrBuilder>( + getExecution(), getParentForChildren(), isClean()); execution_ = null; } return executionBuilder_; } + @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); } @@ -922,12 +1053,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.CreateExecutionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.CreateExecutionRequest) private static final com.google.cloud.notebooks.v1.CreateExecutionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.CreateExecutionRequest(); } @@ -936,27 +1067,27 @@ public static com.google.cloud.notebooks.v1.CreateExecutionRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateExecutionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateExecutionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -971,6 +1102,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.CreateExecutionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateExecutionRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateExecutionRequestOrBuilder.java similarity index 51% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateExecutionRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateExecutionRequestOrBuilder.java index be571cdbadea..b68151af3d97 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateExecutionRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateExecutionRequestOrBuilder.java @@ -1,78 +1,122 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface CreateExecutionRequestOrBuilder extends +public interface CreateExecutionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.CreateExecutionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. User-defined unique ID of this execution.
    * 
* * string execution_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The executionId. */ java.lang.String getExecutionId(); /** + * + * *
    * Required. User-defined unique ID of this execution.
    * 
* * string execution_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for executionId. */ - com.google.protobuf.ByteString - getExecutionIdBytes(); + com.google.protobuf.ByteString getExecutionIdBytes(); /** + * + * *
    * Required. The execution to be created.
    * 
* - * .google.cloud.notebooks.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the execution field is set. */ boolean hasExecution(); /** + * + * *
    * Required. The execution to be created.
    * 
* - * .google.cloud.notebooks.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The execution. */ com.google.cloud.notebooks.v1.Execution getExecution(); /** + * + * *
    * Required. The execution to be created.
    * 
* - * .google.cloud.notebooks.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Execution execution = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.notebooks.v1.ExecutionOrBuilder getExecutionOrBuilder(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateInstanceRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateInstanceRequest.java similarity index 65% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateInstanceRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateInstanceRequest.java index 84df632e8db1..f6a40c2a5be2 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateInstanceRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateInstanceRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for creating a notebook instance.
  * 
* * Protobuf type {@code google.cloud.notebooks.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.cloud.notebooks.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_ = ""; @@ -26,38 +44,42 @@ private CreateInstanceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_CreateInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_CreateInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.CreateInstanceRequest.class, com.google.cloud.notebooks.v1.CreateInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1.CreateInstanceRequest.class, + com.google.cloud.notebooks.v1.CreateInstanceRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -66,30 +88,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; } } /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -100,11 +122,14 @@ public java.lang.String getParent() { public static final int INSTANCE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object instanceId_; /** + * + * *
    * Required. User-defined unique ID of this instance.
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The instanceId. */ @java.lang.Override @@ -113,29 +138,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; } } /** + * + * *
    * Required. User-defined unique ID of this instance.
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -146,11 +171,16 @@ public java.lang.String getInstanceId() { public static final int INSTANCE_FIELD_NUMBER = 3; private com.google.cloud.notebooks.v1.Instance instance_; /** + * + * *
    * Required. The instance to be created.
    * 
* - * .google.cloud.notebooks.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ @java.lang.Override @@ -158,23 +188,34 @@ public boolean hasInstance() { return instance_ != null; } /** + * + * *
    * Required. The instance to be created.
    * 
* - * .google.cloud.notebooks.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ @java.lang.Override public com.google.cloud.notebooks.v1.Instance getInstance() { - return instance_ == null ? com.google.cloud.notebooks.v1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.notebooks.v1.Instance.getDefaultInstance() + : instance_; } /** + * + * *
    * Required. The instance to be created.
    * 
* - * .google.cloud.notebooks.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.notebooks.v1.InstanceOrBuilder getInstanceOrBuilder() { @@ -182,6 +223,7 @@ public com.google.cloud.notebooks.v1.InstanceOrBuilder getInstanceOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -193,8 +235,7 @@ 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_); } @@ -220,8 +261,7 @@ 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; @@ -231,21 +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.cloud.notebooks.v1.CreateInstanceRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.CreateInstanceRequest other = (com.google.cloud.notebooks.v1.CreateInstanceRequest) obj; + com.google.cloud.notebooks.v1.CreateInstanceRequest other = + (com.google.cloud.notebooks.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; @@ -272,129 +310,135 @@ public int hashCode() { } public static com.google.cloud.notebooks.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.cloud.notebooks.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.cloud.notebooks.v1.CreateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.CreateInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.CreateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.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.cloud.notebooks.v1.CreateInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.CreateInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.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.cloud.notebooks.v1.CreateInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.CreateInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.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.cloud.notebooks.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.cloud.notebooks.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.cloud.notebooks.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; } /** + * + * *
    * Request for creating a notebook instance.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.CreateInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.CreateInstanceRequest) com.google.cloud.notebooks.v1.CreateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_CreateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_CreateInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.CreateInstanceRequest.class, com.google.cloud.notebooks.v1.CreateInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1.CreateInstanceRequest.class, + com.google.cloud.notebooks.v1.CreateInstanceRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.CreateInstanceRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +456,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_CreateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_CreateInstanceRequest_descriptor; } @java.lang.Override @@ -433,7 +477,8 @@ public com.google.cloud.notebooks.v1.CreateInstanceRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.CreateInstanceRequest buildPartial() { - com.google.cloud.notebooks.v1.CreateInstanceRequest result = new com.google.cloud.notebooks.v1.CreateInstanceRequest(this); + com.google.cloud.notebooks.v1.CreateInstanceRequest result = + new com.google.cloud.notebooks.v1.CreateInstanceRequest(this); result.parent_ = parent_; result.instanceId_ = instanceId_; if (instanceBuilder_ == null) { @@ -449,38 +494,39 @@ public com.google.cloud.notebooks.v1.CreateInstanceRequest buildPartial() { 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.cloud.notebooks.v1.CreateInstanceRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.CreateInstanceRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.CreateInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -488,7 +534,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.CreateInstanceRequest other) { - if (other == com.google.cloud.notebooks.v1.CreateInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.CreateInstanceRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -526,29 +573,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - instanceId_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + instanceId_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - input.readMessage( - getInstanceFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 18 + case 26: + { + input.readMessage(getInstanceFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -561,19 +610,21 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -582,21 +633,22 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -604,57 +656,64 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -662,18 +721,20 @@ public Builder setParentBytes( private java.lang.Object instanceId_ = ""; /** + * + * *
      * Required. User-defined unique ID of this instance.
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -682,20 +743,21 @@ public java.lang.String getInstanceId() { } } /** + * + * *
      * Required. User-defined unique ID of this instance.
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -703,54 +765,61 @@ public java.lang.String getInstanceId() { } } /** + * + * *
      * Required. User-defined unique ID of this instance.
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId( - java.lang.String value) { + public Builder setInstanceId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instanceId_ = value; onChanged(); return this; } /** + * + * *
      * Required. User-defined unique ID of this instance.
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearInstanceId() { - + instanceId_ = getDefaultInstance().getInstanceId(); onChanged(); return this; } /** + * + * *
      * Required. User-defined unique ID of this instance.
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceIdBytes( - com.google.protobuf.ByteString value) { + public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceId_ = value; onChanged(); return this; @@ -758,39 +827,58 @@ public Builder setInstanceIdBytes( private com.google.cloud.notebooks.v1.Instance instance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.Instance, com.google.cloud.notebooks.v1.Instance.Builder, com.google.cloud.notebooks.v1.InstanceOrBuilder> instanceBuilder_; + com.google.cloud.notebooks.v1.Instance, + com.google.cloud.notebooks.v1.Instance.Builder, + com.google.cloud.notebooks.v1.InstanceOrBuilder> + instanceBuilder_; /** + * + * *
      * Required. The instance to be created.
      * 
* - * .google.cloud.notebooks.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ public boolean hasInstance() { return instanceBuilder_ != null || instance_ != null; } /** + * + * *
      * Required. The instance to be created.
      * 
* - * .google.cloud.notebooks.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ public com.google.cloud.notebooks.v1.Instance getInstance() { if (instanceBuilder_ == null) { - return instance_ == null ? com.google.cloud.notebooks.v1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.notebooks.v1.Instance.getDefaultInstance() + : instance_; } else { return instanceBuilder_.getMessage(); } } /** + * + * *
      * Required. The instance to be created.
      * 
* - * .google.cloud.notebooks.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInstance(com.google.cloud.notebooks.v1.Instance value) { if (instanceBuilder_ == null) { @@ -806,14 +894,17 @@ public Builder setInstance(com.google.cloud.notebooks.v1.Instance value) { return this; } /** + * + * *
      * Required. The instance to be created.
      * 
* - * .google.cloud.notebooks.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setInstance( - com.google.cloud.notebooks.v1.Instance.Builder builderForValue) { + public Builder setInstance(com.google.cloud.notebooks.v1.Instance.Builder builderForValue) { if (instanceBuilder_ == null) { instance_ = builderForValue.build(); onChanged(); @@ -824,17 +915,23 @@ public Builder setInstance( return this; } /** + * + * *
      * Required. The instance to be created.
      * 
* - * .google.cloud.notebooks.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeInstance(com.google.cloud.notebooks.v1.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = - com.google.cloud.notebooks.v1.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); + com.google.cloud.notebooks.v1.Instance.newBuilder(instance_) + .mergeFrom(value) + .buildPartial(); } else { instance_ = value; } @@ -846,11 +943,15 @@ public Builder mergeInstance(com.google.cloud.notebooks.v1.Instance value) { return this; } /** + * + * *
      * Required. The instance to be created.
      * 
* - * .google.cloud.notebooks.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInstance() { if (instanceBuilder_ == null) { @@ -864,55 +965,71 @@ public Builder clearInstance() { return this; } /** + * + * *
      * Required. The instance to be created.
      * 
* - * .google.cloud.notebooks.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.notebooks.v1.Instance.Builder getInstanceBuilder() { - + onChanged(); return getInstanceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The instance to be created.
      * 
* - * .google.cloud.notebooks.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.notebooks.v1.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null ? - com.google.cloud.notebooks.v1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.notebooks.v1.Instance.getDefaultInstance() + : instance_; } } /** + * + * *
      * Required. The instance to be created.
      * 
* - * .google.cloud.notebooks.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.Instance, com.google.cloud.notebooks.v1.Instance.Builder, com.google.cloud.notebooks.v1.InstanceOrBuilder> + com.google.cloud.notebooks.v1.Instance, + com.google.cloud.notebooks.v1.Instance.Builder, + com.google.cloud.notebooks.v1.InstanceOrBuilder> getInstanceFieldBuilder() { if (instanceBuilder_ == null) { - instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.Instance, com.google.cloud.notebooks.v1.Instance.Builder, com.google.cloud.notebooks.v1.InstanceOrBuilder>( - getInstance(), - getParentForChildren(), - isClean()); + instanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.Instance, + com.google.cloud.notebooks.v1.Instance.Builder, + com.google.cloud.notebooks.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); } @@ -922,12 +1039,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.CreateInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.CreateInstanceRequest) private static final com.google.cloud.notebooks.v1.CreateInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.CreateInstanceRequest(); } @@ -936,27 +1053,27 @@ public static com.google.cloud.notebooks.v1.CreateInstanceRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @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 PARSER = + new com.google.protobuf.AbstractParser() { + @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 parser() { return PARSER; @@ -971,6 +1088,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.CreateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateInstanceRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateInstanceRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateInstanceRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateInstanceRequestOrBuilder.java index acb1787e7aec..5b68b9d64566 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateInstanceRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateInstanceRequestOrBuilder.java @@ -1,78 +1,118 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface CreateInstanceRequestOrBuilder extends +public interface CreateInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.CreateInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. User-defined unique ID of this instance.
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The instanceId. */ java.lang.String getInstanceId(); /** + * + * *
    * Required. User-defined unique ID of this instance.
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString - getInstanceIdBytes(); + com.google.protobuf.ByteString getInstanceIdBytes(); /** + * + * *
    * Required. The instance to be created.
    * 
* - * .google.cloud.notebooks.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ boolean hasInstance(); /** + * + * *
    * Required. The instance to be created.
    * 
* - * .google.cloud.notebooks.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ com.google.cloud.notebooks.v1.Instance getInstance(); /** + * + * *
    * Required. The instance to be created.
    * 
* - * .google.cloud.notebooks.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.notebooks.v1.InstanceOrBuilder getInstanceOrBuilder(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateRuntimeRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateRuntimeRequest.java similarity index 65% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateRuntimeRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateRuntimeRequest.java index c1e8bcbf106d..848319f34e35 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateRuntimeRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateRuntimeRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/managed_service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for creating a Managed Notebook Runtime.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.CreateRuntimeRequest} */ -public final class CreateRuntimeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateRuntimeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.CreateRuntimeRequest) CreateRuntimeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateRuntimeRequest.newBuilder() to construct. private CreateRuntimeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateRuntimeRequest() { parent_ = ""; runtimeId_ = ""; @@ -27,38 +45,44 @@ private CreateRuntimeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateRuntimeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_CreateRuntimeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_CreateRuntimeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_CreateRuntimeRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_CreateRuntimeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.CreateRuntimeRequest.class, com.google.cloud.notebooks.v1.CreateRuntimeRequest.Builder.class); + com.google.cloud.notebooks.v1.CreateRuntimeRequest.class, + com.google.cloud.notebooks.v1.CreateRuntimeRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -67,30 +91,32 @@ 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; } } /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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 { @@ -101,11 +127,14 @@ public java.lang.String getParent() { public static final int RUNTIME_ID_FIELD_NUMBER = 2; private volatile java.lang.Object runtimeId_; /** + * + * *
    * Required. User-defined unique ID of this Runtime.
    * 
* * string runtime_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The runtimeId. */ @java.lang.Override @@ -114,29 +143,29 @@ public java.lang.String getRuntimeId() { 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(); runtimeId_ = s; return s; } } /** + * + * *
    * Required. User-defined unique ID of this Runtime.
    * 
* * string runtime_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for runtimeId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRuntimeIdBytes() { + public com.google.protobuf.ByteString getRuntimeIdBytes() { java.lang.Object ref = runtimeId_; 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); runtimeId_ = b; return b; } else { @@ -147,11 +176,15 @@ public java.lang.String getRuntimeId() { public static final int RUNTIME_FIELD_NUMBER = 3; private com.google.cloud.notebooks.v1.Runtime runtime_; /** + * + * *
    * Required. The Runtime to be created.
    * 
* - * .google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the runtime field is set. */ @java.lang.Override @@ -159,11 +192,15 @@ public boolean hasRuntime() { return runtime_ != null; } /** + * + * *
    * Required. The Runtime to be created.
    * 
* - * .google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The runtime. */ @java.lang.Override @@ -171,11 +208,14 @@ public com.google.cloud.notebooks.v1.Runtime getRuntime() { return runtime_ == null ? com.google.cloud.notebooks.v1.Runtime.getDefaultInstance() : runtime_; } /** + * + * *
    * Required. The Runtime to be created.
    * 
* - * .google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.notebooks.v1.RuntimeOrBuilder getRuntimeOrBuilder() { @@ -185,11 +225,14 @@ public com.google.cloud.notebooks.v1.RuntimeOrBuilder getRuntimeOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 4; + * * @return The requestId. */ @java.lang.Override @@ -198,29 +241,29 @@ public java.lang.String getRequestId() { 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(); requestId_ = s; return s; } } /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 4; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; 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); requestId_ = b; return b; } else { @@ -229,6 +272,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,8 +284,7 @@ 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_); } @@ -270,8 +313,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, runtimeId_); } if (runtime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getRuntime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRuntime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -284,24 +326,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.cloud.notebooks.v1.CreateRuntimeRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.CreateRuntimeRequest other = (com.google.cloud.notebooks.v1.CreateRuntimeRequest) obj; + com.google.cloud.notebooks.v1.CreateRuntimeRequest other = + (com.google.cloud.notebooks.v1.CreateRuntimeRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getRuntimeId() - .equals(other.getRuntimeId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getRuntimeId().equals(other.getRuntimeId())) return false; if (hasRuntime() != other.hasRuntime()) return false; if (hasRuntime()) { - if (!getRuntime() - .equals(other.getRuntime())) return false; + if (!getRuntime().equals(other.getRuntime())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -329,129 +368,135 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.CreateRuntimeRequest 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.cloud.notebooks.v1.CreateRuntimeRequest 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.cloud.notebooks.v1.CreateRuntimeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.CreateRuntimeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.CreateRuntimeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.CreateRuntimeRequest 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.cloud.notebooks.v1.CreateRuntimeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.CreateRuntimeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.CreateRuntimeRequest 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.cloud.notebooks.v1.CreateRuntimeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.CreateRuntimeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.CreateRuntimeRequest 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.cloud.notebooks.v1.CreateRuntimeRequest 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.cloud.notebooks.v1.CreateRuntimeRequest 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.cloud.notebooks.v1.CreateRuntimeRequest 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; } /** + * + * *
    * Request for creating a Managed Notebook Runtime.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.CreateRuntimeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.CreateRuntimeRequest) com.google.cloud.notebooks.v1.CreateRuntimeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_CreateRuntimeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_CreateRuntimeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_CreateRuntimeRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_CreateRuntimeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.CreateRuntimeRequest.class, com.google.cloud.notebooks.v1.CreateRuntimeRequest.Builder.class); + com.google.cloud.notebooks.v1.CreateRuntimeRequest.class, + com.google.cloud.notebooks.v1.CreateRuntimeRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.CreateRuntimeRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -471,9 +516,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_CreateRuntimeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_CreateRuntimeRequest_descriptor; } @java.lang.Override @@ -492,7 +537,8 @@ public com.google.cloud.notebooks.v1.CreateRuntimeRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.CreateRuntimeRequest buildPartial() { - com.google.cloud.notebooks.v1.CreateRuntimeRequest result = new com.google.cloud.notebooks.v1.CreateRuntimeRequest(this); + com.google.cloud.notebooks.v1.CreateRuntimeRequest result = + new com.google.cloud.notebooks.v1.CreateRuntimeRequest(this); result.parent_ = parent_; result.runtimeId_ = runtimeId_; if (runtimeBuilder_ == null) { @@ -509,38 +555,39 @@ public com.google.cloud.notebooks.v1.CreateRuntimeRequest buildPartial() { 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.cloud.notebooks.v1.CreateRuntimeRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.CreateRuntimeRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.CreateRuntimeRequest) other); } else { super.mergeFrom(other); return this; @@ -548,7 +595,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.CreateRuntimeRequest other) { - if (other == com.google.cloud.notebooks.v1.CreateRuntimeRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.CreateRuntimeRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -590,34 +638,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - runtimeId_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + runtimeId_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - input.readMessage( - getRuntimeFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 18 + case 26: + { + input.readMessage(getRuntimeFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - case 34: { - requestId_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -630,19 +681,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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; @@ -651,21 +706,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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 { @@ -673,57 +731,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -731,18 +802,20 @@ public Builder setParentBytes( private java.lang.Object runtimeId_ = ""; /** + * + * *
      * Required. User-defined unique ID of this Runtime.
      * 
* * string runtime_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The runtimeId. */ public java.lang.String getRuntimeId() { java.lang.Object ref = runtimeId_; 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(); runtimeId_ = s; return s; @@ -751,20 +824,21 @@ public java.lang.String getRuntimeId() { } } /** + * + * *
      * Required. User-defined unique ID of this Runtime.
      * 
* * string runtime_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for runtimeId. */ - public com.google.protobuf.ByteString - getRuntimeIdBytes() { + public com.google.protobuf.ByteString getRuntimeIdBytes() { java.lang.Object ref = runtimeId_; 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); runtimeId_ = b; return b; } else { @@ -772,54 +846,61 @@ public java.lang.String getRuntimeId() { } } /** + * + * *
      * Required. User-defined unique ID of this Runtime.
      * 
* * string runtime_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The runtimeId to set. * @return This builder for chaining. */ - public Builder setRuntimeId( - java.lang.String value) { + public Builder setRuntimeId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + runtimeId_ = value; onChanged(); return this; } /** + * + * *
      * Required. User-defined unique ID of this Runtime.
      * 
* * string runtime_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRuntimeId() { - + runtimeId_ = getDefaultInstance().getRuntimeId(); onChanged(); return this; } /** + * + * *
      * Required. User-defined unique ID of this Runtime.
      * 
* * string runtime_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for runtimeId to set. * @return This builder for chaining. */ - public Builder setRuntimeIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRuntimeIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + runtimeId_ = value; onChanged(); return this; @@ -827,39 +908,58 @@ public Builder setRuntimeIdBytes( private com.google.cloud.notebooks.v1.Runtime runtime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.Runtime, com.google.cloud.notebooks.v1.Runtime.Builder, com.google.cloud.notebooks.v1.RuntimeOrBuilder> runtimeBuilder_; + com.google.cloud.notebooks.v1.Runtime, + com.google.cloud.notebooks.v1.Runtime.Builder, + com.google.cloud.notebooks.v1.RuntimeOrBuilder> + runtimeBuilder_; /** + * + * *
      * Required. The Runtime to be created.
      * 
* - * .google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the runtime field is set. */ public boolean hasRuntime() { return runtimeBuilder_ != null || runtime_ != null; } /** + * + * *
      * Required. The Runtime to be created.
      * 
* - * .google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The runtime. */ public com.google.cloud.notebooks.v1.Runtime getRuntime() { if (runtimeBuilder_ == null) { - return runtime_ == null ? com.google.cloud.notebooks.v1.Runtime.getDefaultInstance() : runtime_; + return runtime_ == null + ? com.google.cloud.notebooks.v1.Runtime.getDefaultInstance() + : runtime_; } else { return runtimeBuilder_.getMessage(); } } /** + * + * *
      * Required. The Runtime to be created.
      * 
* - * .google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRuntime(com.google.cloud.notebooks.v1.Runtime value) { if (runtimeBuilder_ == null) { @@ -875,14 +975,17 @@ public Builder setRuntime(com.google.cloud.notebooks.v1.Runtime value) { return this; } /** + * + * *
      * Required. The Runtime to be created.
      * 
* - * .google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setRuntime( - com.google.cloud.notebooks.v1.Runtime.Builder builderForValue) { + public Builder setRuntime(com.google.cloud.notebooks.v1.Runtime.Builder builderForValue) { if (runtimeBuilder_ == null) { runtime_ = builderForValue.build(); onChanged(); @@ -893,17 +996,23 @@ public Builder setRuntime( return this; } /** + * + * *
      * Required. The Runtime to be created.
      * 
* - * .google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeRuntime(com.google.cloud.notebooks.v1.Runtime value) { if (runtimeBuilder_ == null) { if (runtime_ != null) { runtime_ = - com.google.cloud.notebooks.v1.Runtime.newBuilder(runtime_).mergeFrom(value).buildPartial(); + com.google.cloud.notebooks.v1.Runtime.newBuilder(runtime_) + .mergeFrom(value) + .buildPartial(); } else { runtime_ = value; } @@ -915,11 +1024,15 @@ public Builder mergeRuntime(com.google.cloud.notebooks.v1.Runtime value) { return this; } /** + * + * *
      * Required. The Runtime to be created.
      * 
* - * .google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRuntime() { if (runtimeBuilder_ == null) { @@ -933,48 +1046,64 @@ public Builder clearRuntime() { return this; } /** + * + * *
      * Required. The Runtime to be created.
      * 
* - * .google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.notebooks.v1.Runtime.Builder getRuntimeBuilder() { - + onChanged(); return getRuntimeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Runtime to be created.
      * 
* - * .google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.notebooks.v1.RuntimeOrBuilder getRuntimeOrBuilder() { if (runtimeBuilder_ != null) { return runtimeBuilder_.getMessageOrBuilder(); } else { - return runtime_ == null ? - com.google.cloud.notebooks.v1.Runtime.getDefaultInstance() : runtime_; + return runtime_ == null + ? com.google.cloud.notebooks.v1.Runtime.getDefaultInstance() + : runtime_; } } /** + * + * *
      * Required. The Runtime to be created.
      * 
* - * .google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.Runtime, com.google.cloud.notebooks.v1.Runtime.Builder, com.google.cloud.notebooks.v1.RuntimeOrBuilder> + com.google.cloud.notebooks.v1.Runtime, + com.google.cloud.notebooks.v1.Runtime.Builder, + com.google.cloud.notebooks.v1.RuntimeOrBuilder> getRuntimeFieldBuilder() { if (runtimeBuilder_ == null) { - runtimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.Runtime, com.google.cloud.notebooks.v1.Runtime.Builder, com.google.cloud.notebooks.v1.RuntimeOrBuilder>( - getRuntime(), - getParentForChildren(), - isClean()); + runtimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.Runtime, + com.google.cloud.notebooks.v1.Runtime.Builder, + com.google.cloud.notebooks.v1.RuntimeOrBuilder>( + getRuntime(), getParentForChildren(), isClean()); runtime_ = null; } return runtimeBuilder_; @@ -982,18 +1111,20 @@ public com.google.cloud.notebooks.v1.RuntimeOrBuilder getRuntimeOrBuilder() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 4; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; 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(); requestId_ = s; return s; @@ -1002,20 +1133,21 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 4; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; 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); requestId_ = b; return b; } else { @@ -1023,61 +1155,68 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 4; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 4; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 4; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1087,12 +1226,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.CreateRuntimeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.CreateRuntimeRequest) private static final com.google.cloud.notebooks.v1.CreateRuntimeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.CreateRuntimeRequest(); } @@ -1101,27 +1240,27 @@ public static com.google.cloud.notebooks.v1.CreateRuntimeRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateRuntimeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateRuntimeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -1136,6 +1275,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.CreateRuntimeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateRuntimeRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateRuntimeRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateRuntimeRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateRuntimeRequestOrBuilder.java index 3fafdeb9659c..c04cc33d01b0 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateRuntimeRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateRuntimeRequestOrBuilder.java @@ -1,98 +1,144 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/managed_service.proto package com.google.cloud.notebooks.v1; -public interface CreateRuntimeRequestOrBuilder extends +public interface CreateRuntimeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.CreateRuntimeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. User-defined unique ID of this Runtime.
    * 
* * string runtime_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The runtimeId. */ java.lang.String getRuntimeId(); /** + * + * *
    * Required. User-defined unique ID of this Runtime.
    * 
* * string runtime_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for runtimeId. */ - com.google.protobuf.ByteString - getRuntimeIdBytes(); + com.google.protobuf.ByteString getRuntimeIdBytes(); /** + * + * *
    * Required. The Runtime to be created.
    * 
* - * .google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the runtime field is set. */ boolean hasRuntime(); /** + * + * *
    * Required. The Runtime to be created.
    * 
* - * .google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The runtime. */ com.google.cloud.notebooks.v1.Runtime getRuntime(); /** + * + * *
    * Required. The Runtime to be created.
    * 
* - * .google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.notebooks.v1.Runtime runtime = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.notebooks.v1.RuntimeOrBuilder getRuntimeOrBuilder(); /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 4; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 4; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateScheduleRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateScheduleRequest.java similarity index 62% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateScheduleRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateScheduleRequest.java index bb3c999f25f6..56fc48c5f6a6 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateScheduleRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateScheduleRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for created scheduled notebooks
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.CreateScheduleRequest} */ -public final class CreateScheduleRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateScheduleRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.CreateScheduleRequest) CreateScheduleRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateScheduleRequest.newBuilder() to construct. private CreateScheduleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateScheduleRequest() { parent_ = ""; scheduleId_ = ""; @@ -26,38 +44,44 @@ private CreateScheduleRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateScheduleRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_CreateScheduleRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_CreateScheduleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_CreateScheduleRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_CreateScheduleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.CreateScheduleRequest.class, com.google.cloud.notebooks.v1.CreateScheduleRequest.Builder.class); + com.google.cloud.notebooks.v1.CreateScheduleRequest.class, + com.google.cloud.notebooks.v1.CreateScheduleRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -66,30 +90,32 @@ 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; } } /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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 { @@ -100,11 +126,14 @@ public java.lang.String getParent() { public static final int SCHEDULE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object scheduleId_; /** + * + * *
    * Required. User-defined unique ID of this schedule.
    * 
* * string schedule_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The scheduleId. */ @java.lang.Override @@ -113,29 +142,29 @@ public java.lang.String getScheduleId() { 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(); scheduleId_ = s; return s; } } /** + * + * *
    * Required. User-defined unique ID of this schedule.
    * 
* * string schedule_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for scheduleId. */ @java.lang.Override - public com.google.protobuf.ByteString - getScheduleIdBytes() { + public com.google.protobuf.ByteString getScheduleIdBytes() { java.lang.Object ref = scheduleId_; 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); scheduleId_ = b; return b; } else { @@ -146,11 +175,16 @@ public java.lang.String getScheduleId() { public static final int SCHEDULE_FIELD_NUMBER = 3; private com.google.cloud.notebooks.v1.Schedule schedule_; /** + * + * *
    * Required. The schedule to be created.
    * 
* - * .google.cloud.notebooks.v1.Schedule schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Schedule schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the schedule field is set. */ @java.lang.Override @@ -158,23 +192,34 @@ public boolean hasSchedule() { return schedule_ != null; } /** + * + * *
    * Required. The schedule to be created.
    * 
* - * .google.cloud.notebooks.v1.Schedule schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Schedule schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The schedule. */ @java.lang.Override public com.google.cloud.notebooks.v1.Schedule getSchedule() { - return schedule_ == null ? com.google.cloud.notebooks.v1.Schedule.getDefaultInstance() : schedule_; + return schedule_ == null + ? com.google.cloud.notebooks.v1.Schedule.getDefaultInstance() + : schedule_; } /** + * + * *
    * Required. The schedule to be created.
    * 
* - * .google.cloud.notebooks.v1.Schedule schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Schedule schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.notebooks.v1.ScheduleOrBuilder getScheduleOrBuilder() { @@ -182,6 +227,7 @@ public com.google.cloud.notebooks.v1.ScheduleOrBuilder getScheduleOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -193,8 +239,7 @@ 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_); } @@ -220,8 +265,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, scheduleId_); } if (schedule_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSchedule()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSchedule()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -231,21 +275,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.cloud.notebooks.v1.CreateScheduleRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.CreateScheduleRequest other = (com.google.cloud.notebooks.v1.CreateScheduleRequest) obj; + com.google.cloud.notebooks.v1.CreateScheduleRequest other = + (com.google.cloud.notebooks.v1.CreateScheduleRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getScheduleId() - .equals(other.getScheduleId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getScheduleId().equals(other.getScheduleId())) return false; if (hasSchedule() != other.hasSchedule()) return false; if (hasSchedule()) { - if (!getSchedule() - .equals(other.getSchedule())) return false; + if (!getSchedule().equals(other.getSchedule())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -272,129 +314,135 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.CreateScheduleRequest 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.cloud.notebooks.v1.CreateScheduleRequest 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.cloud.notebooks.v1.CreateScheduleRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.CreateScheduleRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.CreateScheduleRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.CreateScheduleRequest 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.cloud.notebooks.v1.CreateScheduleRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.CreateScheduleRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.CreateScheduleRequest 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.cloud.notebooks.v1.CreateScheduleRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.CreateScheduleRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.CreateScheduleRequest 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.cloud.notebooks.v1.CreateScheduleRequest 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.cloud.notebooks.v1.CreateScheduleRequest 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.cloud.notebooks.v1.CreateScheduleRequest 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; } /** + * + * *
    * Request for created scheduled notebooks
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.CreateScheduleRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.CreateScheduleRequest) com.google.cloud.notebooks.v1.CreateScheduleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_CreateScheduleRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_CreateScheduleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_CreateScheduleRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_CreateScheduleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.CreateScheduleRequest.class, com.google.cloud.notebooks.v1.CreateScheduleRequest.Builder.class); + com.google.cloud.notebooks.v1.CreateScheduleRequest.class, + com.google.cloud.notebooks.v1.CreateScheduleRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.CreateScheduleRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +460,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_CreateScheduleRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_CreateScheduleRequest_descriptor; } @java.lang.Override @@ -433,7 +481,8 @@ public com.google.cloud.notebooks.v1.CreateScheduleRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.CreateScheduleRequest buildPartial() { - com.google.cloud.notebooks.v1.CreateScheduleRequest result = new com.google.cloud.notebooks.v1.CreateScheduleRequest(this); + com.google.cloud.notebooks.v1.CreateScheduleRequest result = + new com.google.cloud.notebooks.v1.CreateScheduleRequest(this); result.parent_ = parent_; result.scheduleId_ = scheduleId_; if (scheduleBuilder_ == null) { @@ -449,38 +498,39 @@ public com.google.cloud.notebooks.v1.CreateScheduleRequest buildPartial() { 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.cloud.notebooks.v1.CreateScheduleRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.CreateScheduleRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.CreateScheduleRequest) other); } else { super.mergeFrom(other); return this; @@ -488,7 +538,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.CreateScheduleRequest other) { - if (other == com.google.cloud.notebooks.v1.CreateScheduleRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.CreateScheduleRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -526,29 +577,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - scheduleId_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + scheduleId_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - input.readMessage( - getScheduleFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 18 + case 26: + { + input.readMessage(getScheduleFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -561,19 +614,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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; @@ -582,21 +639,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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 { @@ -604,57 +664,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -662,18 +735,20 @@ public Builder setParentBytes( private java.lang.Object scheduleId_ = ""; /** + * + * *
      * Required. User-defined unique ID of this schedule.
      * 
* * string schedule_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The scheduleId. */ public java.lang.String getScheduleId() { java.lang.Object ref = scheduleId_; 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(); scheduleId_ = s; return s; @@ -682,20 +757,21 @@ public java.lang.String getScheduleId() { } } /** + * + * *
      * Required. User-defined unique ID of this schedule.
      * 
* * string schedule_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for scheduleId. */ - public com.google.protobuf.ByteString - getScheduleIdBytes() { + public com.google.protobuf.ByteString getScheduleIdBytes() { java.lang.Object ref = scheduleId_; 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); scheduleId_ = b; return b; } else { @@ -703,54 +779,61 @@ public java.lang.String getScheduleId() { } } /** + * + * *
      * Required. User-defined unique ID of this schedule.
      * 
* * string schedule_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The scheduleId to set. * @return This builder for chaining. */ - public Builder setScheduleId( - java.lang.String value) { + public Builder setScheduleId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + scheduleId_ = value; onChanged(); return this; } /** + * + * *
      * Required. User-defined unique ID of this schedule.
      * 
* * string schedule_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearScheduleId() { - + scheduleId_ = getDefaultInstance().getScheduleId(); onChanged(); return this; } /** + * + * *
      * Required. User-defined unique ID of this schedule.
      * 
* * string schedule_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for scheduleId to set. * @return This builder for chaining. */ - public Builder setScheduleIdBytes( - com.google.protobuf.ByteString value) { + public Builder setScheduleIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + scheduleId_ = value; onChanged(); return this; @@ -758,39 +841,58 @@ public Builder setScheduleIdBytes( private com.google.cloud.notebooks.v1.Schedule schedule_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.Schedule, com.google.cloud.notebooks.v1.Schedule.Builder, com.google.cloud.notebooks.v1.ScheduleOrBuilder> scheduleBuilder_; + com.google.cloud.notebooks.v1.Schedule, + com.google.cloud.notebooks.v1.Schedule.Builder, + com.google.cloud.notebooks.v1.ScheduleOrBuilder> + scheduleBuilder_; /** + * + * *
      * Required. The schedule to be created.
      * 
* - * .google.cloud.notebooks.v1.Schedule schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Schedule schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the schedule field is set. */ public boolean hasSchedule() { return scheduleBuilder_ != null || schedule_ != null; } /** + * + * *
      * Required. The schedule to be created.
      * 
* - * .google.cloud.notebooks.v1.Schedule schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Schedule schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The schedule. */ public com.google.cloud.notebooks.v1.Schedule getSchedule() { if (scheduleBuilder_ == null) { - return schedule_ == null ? com.google.cloud.notebooks.v1.Schedule.getDefaultInstance() : schedule_; + return schedule_ == null + ? com.google.cloud.notebooks.v1.Schedule.getDefaultInstance() + : schedule_; } else { return scheduleBuilder_.getMessage(); } } /** + * + * *
      * Required. The schedule to be created.
      * 
* - * .google.cloud.notebooks.v1.Schedule schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Schedule schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSchedule(com.google.cloud.notebooks.v1.Schedule value) { if (scheduleBuilder_ == null) { @@ -806,14 +908,17 @@ public Builder setSchedule(com.google.cloud.notebooks.v1.Schedule value) { return this; } /** + * + * *
      * Required. The schedule to be created.
      * 
* - * .google.cloud.notebooks.v1.Schedule schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Schedule schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setSchedule( - com.google.cloud.notebooks.v1.Schedule.Builder builderForValue) { + public Builder setSchedule(com.google.cloud.notebooks.v1.Schedule.Builder builderForValue) { if (scheduleBuilder_ == null) { schedule_ = builderForValue.build(); onChanged(); @@ -824,17 +929,23 @@ public Builder setSchedule( return this; } /** + * + * *
      * Required. The schedule to be created.
      * 
* - * .google.cloud.notebooks.v1.Schedule schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Schedule schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSchedule(com.google.cloud.notebooks.v1.Schedule value) { if (scheduleBuilder_ == null) { if (schedule_ != null) { schedule_ = - com.google.cloud.notebooks.v1.Schedule.newBuilder(schedule_).mergeFrom(value).buildPartial(); + com.google.cloud.notebooks.v1.Schedule.newBuilder(schedule_) + .mergeFrom(value) + .buildPartial(); } else { schedule_ = value; } @@ -846,11 +957,15 @@ public Builder mergeSchedule(com.google.cloud.notebooks.v1.Schedule value) { return this; } /** + * + * *
      * Required. The schedule to be created.
      * 
* - * .google.cloud.notebooks.v1.Schedule schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Schedule schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSchedule() { if (scheduleBuilder_ == null) { @@ -864,55 +979,71 @@ public Builder clearSchedule() { return this; } /** + * + * *
      * Required. The schedule to be created.
      * 
* - * .google.cloud.notebooks.v1.Schedule schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Schedule schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.notebooks.v1.Schedule.Builder getScheduleBuilder() { - + onChanged(); return getScheduleFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The schedule to be created.
      * 
* - * .google.cloud.notebooks.v1.Schedule schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Schedule schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.notebooks.v1.ScheduleOrBuilder getScheduleOrBuilder() { if (scheduleBuilder_ != null) { return scheduleBuilder_.getMessageOrBuilder(); } else { - return schedule_ == null ? - com.google.cloud.notebooks.v1.Schedule.getDefaultInstance() : schedule_; + return schedule_ == null + ? com.google.cloud.notebooks.v1.Schedule.getDefaultInstance() + : schedule_; } } /** + * + * *
      * Required. The schedule to be created.
      * 
* - * .google.cloud.notebooks.v1.Schedule schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Schedule schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.Schedule, com.google.cloud.notebooks.v1.Schedule.Builder, com.google.cloud.notebooks.v1.ScheduleOrBuilder> + com.google.cloud.notebooks.v1.Schedule, + com.google.cloud.notebooks.v1.Schedule.Builder, + com.google.cloud.notebooks.v1.ScheduleOrBuilder> getScheduleFieldBuilder() { if (scheduleBuilder_ == null) { - scheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.Schedule, com.google.cloud.notebooks.v1.Schedule.Builder, com.google.cloud.notebooks.v1.ScheduleOrBuilder>( - getSchedule(), - getParentForChildren(), - isClean()); + scheduleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.Schedule, + com.google.cloud.notebooks.v1.Schedule.Builder, + com.google.cloud.notebooks.v1.ScheduleOrBuilder>( + getSchedule(), getParentForChildren(), isClean()); schedule_ = null; } return scheduleBuilder_; } + @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); } @@ -922,12 +1053,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.CreateScheduleRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.CreateScheduleRequest) private static final com.google.cloud.notebooks.v1.CreateScheduleRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.CreateScheduleRequest(); } @@ -936,27 +1067,27 @@ public static com.google.cloud.notebooks.v1.CreateScheduleRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateScheduleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateScheduleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -971,6 +1102,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.CreateScheduleRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateScheduleRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateScheduleRequestOrBuilder.java similarity index 51% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateScheduleRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateScheduleRequestOrBuilder.java index 57848a2e6cb5..4f791b9f2ffe 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateScheduleRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateScheduleRequestOrBuilder.java @@ -1,78 +1,122 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface CreateScheduleRequestOrBuilder extends +public interface CreateScheduleRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.CreateScheduleRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. User-defined unique ID of this schedule.
    * 
* * string schedule_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The scheduleId. */ java.lang.String getScheduleId(); /** + * + * *
    * Required. User-defined unique ID of this schedule.
    * 
* * string schedule_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for scheduleId. */ - com.google.protobuf.ByteString - getScheduleIdBytes(); + com.google.protobuf.ByteString getScheduleIdBytes(); /** + * + * *
    * Required. The schedule to be created.
    * 
* - * .google.cloud.notebooks.v1.Schedule schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Schedule schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the schedule field is set. */ boolean hasSchedule(); /** + * + * *
    * Required. The schedule to be created.
    * 
* - * .google.cloud.notebooks.v1.Schedule schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Schedule schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The schedule. */ com.google.cloud.notebooks.v1.Schedule getSchedule(); /** + * + * *
    * Required. The schedule to be created.
    * 
* - * .google.cloud.notebooks.v1.Schedule schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Schedule schedule = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.notebooks.v1.ScheduleOrBuilder getScheduleOrBuilder(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteEnvironmentRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteEnvironmentRequest.java similarity index 65% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteEnvironmentRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteEnvironmentRequest.java index be7e20b59c32..a243b5548f98 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteEnvironmentRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteEnvironmentRequest.java @@ -1,62 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for deleting a notebook environment.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.DeleteEnvironmentRequest} */ -public final class DeleteEnvironmentRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteEnvironmentRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.DeleteEnvironmentRequest) DeleteEnvironmentRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteEnvironmentRequest.newBuilder() to construct. private DeleteEnvironmentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteEnvironmentRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteEnvironmentRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_DeleteEnvironmentRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_DeleteEnvironmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_DeleteEnvironmentRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_DeleteEnvironmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.DeleteEnvironmentRequest.class, com.google.cloud.notebooks.v1.DeleteEnvironmentRequest.Builder.class); + com.google.cloud.notebooks.v1.DeleteEnvironmentRequest.class, + com.google.cloud.notebooks.v1.DeleteEnvironmentRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/environments/{environment_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -65,30 +87,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/environments/{environment_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -97,6 +119,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +131,7 @@ 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_); } @@ -133,15 +155,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.cloud.notebooks.v1.DeleteEnvironmentRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.DeleteEnvironmentRequest other = (com.google.cloud.notebooks.v1.DeleteEnvironmentRequest) obj; + com.google.cloud.notebooks.v1.DeleteEnvironmentRequest other = + (com.google.cloud.notebooks.v1.DeleteEnvironmentRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,129 +183,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.DeleteEnvironmentRequest 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.cloud.notebooks.v1.DeleteEnvironmentRequest 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.cloud.notebooks.v1.DeleteEnvironmentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.DeleteEnvironmentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.DeleteEnvironmentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.DeleteEnvironmentRequest 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.cloud.notebooks.v1.DeleteEnvironmentRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.DeleteEnvironmentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.DeleteEnvironmentRequest 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.cloud.notebooks.v1.DeleteEnvironmentRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.DeleteEnvironmentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.DeleteEnvironmentRequest 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.cloud.notebooks.v1.DeleteEnvironmentRequest 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.cloud.notebooks.v1.DeleteEnvironmentRequest 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.cloud.notebooks.v1.DeleteEnvironmentRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1.DeleteEnvironmentRequest 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; } /** + * + * *
    * Request for deleting a notebook environment.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.DeleteEnvironmentRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.DeleteEnvironmentRequest) com.google.cloud.notebooks.v1.DeleteEnvironmentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_DeleteEnvironmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_DeleteEnvironmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_DeleteEnvironmentRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_DeleteEnvironmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.DeleteEnvironmentRequest.class, com.google.cloud.notebooks.v1.DeleteEnvironmentRequest.Builder.class); + com.google.cloud.notebooks.v1.DeleteEnvironmentRequest.class, + com.google.cloud.notebooks.v1.DeleteEnvironmentRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.DeleteEnvironmentRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +322,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_DeleteEnvironmentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_DeleteEnvironmentRequest_descriptor; } @java.lang.Override @@ -314,7 +343,8 @@ public com.google.cloud.notebooks.v1.DeleteEnvironmentRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.DeleteEnvironmentRequest buildPartial() { - com.google.cloud.notebooks.v1.DeleteEnvironmentRequest result = new com.google.cloud.notebooks.v1.DeleteEnvironmentRequest(this); + com.google.cloud.notebooks.v1.DeleteEnvironmentRequest result = + new com.google.cloud.notebooks.v1.DeleteEnvironmentRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +354,39 @@ public com.google.cloud.notebooks.v1.DeleteEnvironmentRequest buildPartial() { 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.cloud.notebooks.v1.DeleteEnvironmentRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.DeleteEnvironmentRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.DeleteEnvironmentRequest) other); } else { super.mergeFrom(other); return this; @@ -363,7 +394,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.DeleteEnvironmentRequest other) { - if (other == com.google.cloud.notebooks.v1.DeleteEnvironmentRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.DeleteEnvironmentRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -394,17 +426,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -417,19 +451,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/environments/{environment_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -438,21 +474,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/environments/{environment_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -460,64 +497,71 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/environments/{environment_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/environments/{environment_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/environments/{environment_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -527,12 +571,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.DeleteEnvironmentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.DeleteEnvironmentRequest) private static final com.google.cloud.notebooks.v1.DeleteEnvironmentRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.DeleteEnvironmentRequest(); } @@ -541,27 +585,27 @@ public static com.google.cloud.notebooks.v1.DeleteEnvironmentRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteEnvironmentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteEnvironmentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -576,6 +620,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.DeleteEnvironmentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteEnvironmentRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteEnvironmentRequestOrBuilder.java similarity index 52% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteEnvironmentRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteEnvironmentRequestOrBuilder.java index 96d300c476f4..b026fdb30ac7 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteEnvironmentRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteEnvironmentRequestOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface DeleteEnvironmentRequestOrBuilder extends +public interface DeleteEnvironmentRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.DeleteEnvironmentRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/environments/{environment_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/environments/{environment_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteExecutionRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteExecutionRequest.java similarity index 62% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteExecutionRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteExecutionRequest.java index 9b508c066531..31ec5b3ce7d9 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteExecutionRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteExecutionRequest.java @@ -1,62 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for deleting a scheduled notebook execution
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.DeleteExecutionRequest} */ -public final class DeleteExecutionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteExecutionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.DeleteExecutionRequest) DeleteExecutionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteExecutionRequest.newBuilder() to construct. private DeleteExecutionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteExecutionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteExecutionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_DeleteExecutionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_DeleteExecutionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_DeleteExecutionRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_DeleteExecutionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.DeleteExecutionRequest.class, com.google.cloud.notebooks.v1.DeleteExecutionRequest.Builder.class); + com.google.cloud.notebooks.v1.DeleteExecutionRequest.class, + com.google.cloud.notebooks.v1.DeleteExecutionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/executions/{execution_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,30 +89,32 @@ 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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/executions/{execution_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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 { @@ -97,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +135,7 @@ 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_); } @@ -133,15 +159,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.cloud.notebooks.v1.DeleteExecutionRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.DeleteExecutionRequest other = (com.google.cloud.notebooks.v1.DeleteExecutionRequest) obj; + com.google.cloud.notebooks.v1.DeleteExecutionRequest other = + (com.google.cloud.notebooks.v1.DeleteExecutionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,129 +187,135 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.DeleteExecutionRequest 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.cloud.notebooks.v1.DeleteExecutionRequest 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.cloud.notebooks.v1.DeleteExecutionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.DeleteExecutionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.DeleteExecutionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.DeleteExecutionRequest 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.cloud.notebooks.v1.DeleteExecutionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.DeleteExecutionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.DeleteExecutionRequest 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.cloud.notebooks.v1.DeleteExecutionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.DeleteExecutionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.DeleteExecutionRequest 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.cloud.notebooks.v1.DeleteExecutionRequest 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.cloud.notebooks.v1.DeleteExecutionRequest 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.cloud.notebooks.v1.DeleteExecutionRequest 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; } /** + * + * *
    * Request for deleting a scheduled notebook execution
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.DeleteExecutionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.DeleteExecutionRequest) com.google.cloud.notebooks.v1.DeleteExecutionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_DeleteExecutionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_DeleteExecutionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_DeleteExecutionRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_DeleteExecutionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.DeleteExecutionRequest.class, com.google.cloud.notebooks.v1.DeleteExecutionRequest.Builder.class); + com.google.cloud.notebooks.v1.DeleteExecutionRequest.class, + com.google.cloud.notebooks.v1.DeleteExecutionRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.DeleteExecutionRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +325,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_DeleteExecutionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_DeleteExecutionRequest_descriptor; } @java.lang.Override @@ -314,7 +346,8 @@ public com.google.cloud.notebooks.v1.DeleteExecutionRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.DeleteExecutionRequest buildPartial() { - com.google.cloud.notebooks.v1.DeleteExecutionRequest result = new com.google.cloud.notebooks.v1.DeleteExecutionRequest(this); + com.google.cloud.notebooks.v1.DeleteExecutionRequest result = + new com.google.cloud.notebooks.v1.DeleteExecutionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +357,39 @@ public com.google.cloud.notebooks.v1.DeleteExecutionRequest buildPartial() { 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.cloud.notebooks.v1.DeleteExecutionRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.DeleteExecutionRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.DeleteExecutionRequest) other); } else { super.mergeFrom(other); return this; @@ -363,7 +397,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.DeleteExecutionRequest other) { - if (other == com.google.cloud.notebooks.v1.DeleteExecutionRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.DeleteExecutionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -394,17 +429,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -417,19 +454,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/executions/{execution_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -438,21 +479,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/executions/{execution_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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 { @@ -460,64 +504,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/executions/{execution_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/executions/{execution_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/executions/{execution_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -527,12 +584,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.DeleteExecutionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.DeleteExecutionRequest) private static final com.google.cloud.notebooks.v1.DeleteExecutionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.DeleteExecutionRequest(); } @@ -541,27 +598,27 @@ public static com.google.cloud.notebooks.v1.DeleteExecutionRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteExecutionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteExecutionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -576,6 +633,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.DeleteExecutionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteExecutionRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteExecutionRequestOrBuilder.java new file mode 100644 index 000000000000..7349282e17ff --- /dev/null +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteExecutionRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/notebooks/v1/service.proto + +package com.google.cloud.notebooks.v1; + +public interface DeleteExecutionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.DeleteExecutionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format:
+   * `projects/{project_id}/locations/{location}/executions/{execution_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Format:
+   * `projects/{project_id}/locations/{location}/executions/{execution_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteInstanceRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteInstanceRequest.java similarity index 65% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteInstanceRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteInstanceRequest.java index 970c5315402d..6de0716c1325 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteInstanceRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteInstanceRequest.java @@ -1,62 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for deleting a notebook instance.
  * 
* * Protobuf type {@code google.cloud.notebooks.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.cloud.notebooks.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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_DeleteInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_DeleteInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.DeleteInstanceRequest.class, com.google.cloud.notebooks.v1.DeleteInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1.DeleteInstanceRequest.class, + com.google.cloud.notebooks.v1.DeleteInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -65,30 +87,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -97,6 +119,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +131,7 @@ 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_); } @@ -133,15 +155,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.cloud.notebooks.v1.DeleteInstanceRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.DeleteInstanceRequest other = (com.google.cloud.notebooks.v1.DeleteInstanceRequest) obj; + com.google.cloud.notebooks.v1.DeleteInstanceRequest other = + (com.google.cloud.notebooks.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; } @@ -161,129 +183,135 @@ public int hashCode() { } public static com.google.cloud.notebooks.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.cloud.notebooks.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.cloud.notebooks.v1.DeleteInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.DeleteInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.DeleteInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.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.cloud.notebooks.v1.DeleteInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.DeleteInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.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.cloud.notebooks.v1.DeleteInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.DeleteInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.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.cloud.notebooks.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.cloud.notebooks.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.cloud.notebooks.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; } /** + * + * *
    * Request for deleting a notebook instance.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.DeleteInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.DeleteInstanceRequest) com.google.cloud.notebooks.v1.DeleteInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_DeleteInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_DeleteInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.DeleteInstanceRequest.class, com.google.cloud.notebooks.v1.DeleteInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1.DeleteInstanceRequest.class, + com.google.cloud.notebooks.v1.DeleteInstanceRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.DeleteInstanceRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +321,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_DeleteInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_DeleteInstanceRequest_descriptor; } @java.lang.Override @@ -314,7 +342,8 @@ public com.google.cloud.notebooks.v1.DeleteInstanceRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.DeleteInstanceRequest buildPartial() { - com.google.cloud.notebooks.v1.DeleteInstanceRequest result = new com.google.cloud.notebooks.v1.DeleteInstanceRequest(this); + com.google.cloud.notebooks.v1.DeleteInstanceRequest result = + new com.google.cloud.notebooks.v1.DeleteInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +353,39 @@ public com.google.cloud.notebooks.v1.DeleteInstanceRequest buildPartial() { 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.cloud.notebooks.v1.DeleteInstanceRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.DeleteInstanceRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.DeleteInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -363,7 +393,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.DeleteInstanceRequest other) { - if (other == com.google.cloud.notebooks.v1.DeleteInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.DeleteInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -394,17 +425,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -417,19 +450,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -438,21 +473,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -460,64 +496,71 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -527,12 +570,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.DeleteInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.DeleteInstanceRequest) private static final com.google.cloud.notebooks.v1.DeleteInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.DeleteInstanceRequest(); } @@ -541,27 +584,27 @@ public static com.google.cloud.notebooks.v1.DeleteInstanceRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @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 PARSER = + new com.google.protobuf.AbstractParser() { + @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 parser() { return PARSER; @@ -576,6 +619,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.DeleteInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteInstanceRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteInstanceRequestOrBuilder.java similarity index 52% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteInstanceRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteInstanceRequestOrBuilder.java index f6c2e4668246..33a0d4b864cb 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteInstanceRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteInstanceRequestOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface DeleteInstanceRequestOrBuilder extends +public interface DeleteInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.DeleteInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteRuntimeRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteRuntimeRequest.java similarity index 64% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteRuntimeRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteRuntimeRequest.java index ca433a708648..ee93d73078c3 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteRuntimeRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteRuntimeRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/managed_service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for deleting a Managed Notebook Runtime.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.DeleteRuntimeRequest} */ -public final class DeleteRuntimeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteRuntimeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.DeleteRuntimeRequest) DeleteRuntimeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteRuntimeRequest.newBuilder() to construct. private DeleteRuntimeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteRuntimeRequest() { name_ = ""; requestId_ = ""; @@ -26,38 +44,44 @@ private DeleteRuntimeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteRuntimeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_DeleteRuntimeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_DeleteRuntimeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_DeleteRuntimeRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_DeleteRuntimeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.DeleteRuntimeRequest.class, com.google.cloud.notebooks.v1.DeleteRuntimeRequest.Builder.class); + com.google.cloud.notebooks.v1.DeleteRuntimeRequest.class, + com.google.cloud.notebooks.v1.DeleteRuntimeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,30 +90,32 @@ 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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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 { @@ -100,11 +126,14 @@ public java.lang.String getName() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 2; + * * @return The requestId. */ @java.lang.Override @@ -113,29 +142,29 @@ public java.lang.String getRequestId() { 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(); requestId_ = s; return s; } } /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 2; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; 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); requestId_ = b; return b; } else { @@ -144,6 +173,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +185,7 @@ 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_); } @@ -186,17 +215,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.cloud.notebooks.v1.DeleteRuntimeRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.DeleteRuntimeRequest other = (com.google.cloud.notebooks.v1.DeleteRuntimeRequest) obj; + com.google.cloud.notebooks.v1.DeleteRuntimeRequest other = + (com.google.cloud.notebooks.v1.DeleteRuntimeRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -218,129 +246,135 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.DeleteRuntimeRequest 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.cloud.notebooks.v1.DeleteRuntimeRequest 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.cloud.notebooks.v1.DeleteRuntimeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.DeleteRuntimeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.DeleteRuntimeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.DeleteRuntimeRequest 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.cloud.notebooks.v1.DeleteRuntimeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.DeleteRuntimeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.DeleteRuntimeRequest 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.cloud.notebooks.v1.DeleteRuntimeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.DeleteRuntimeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.DeleteRuntimeRequest 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.cloud.notebooks.v1.DeleteRuntimeRequest 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.cloud.notebooks.v1.DeleteRuntimeRequest 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.cloud.notebooks.v1.DeleteRuntimeRequest 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; } /** + * + * *
    * Request for deleting a Managed Notebook Runtime.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.DeleteRuntimeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.DeleteRuntimeRequest) com.google.cloud.notebooks.v1.DeleteRuntimeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_DeleteRuntimeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_DeleteRuntimeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_DeleteRuntimeRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_DeleteRuntimeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.DeleteRuntimeRequest.class, com.google.cloud.notebooks.v1.DeleteRuntimeRequest.Builder.class); + com.google.cloud.notebooks.v1.DeleteRuntimeRequest.class, + com.google.cloud.notebooks.v1.DeleteRuntimeRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.DeleteRuntimeRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -352,9 +386,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_DeleteRuntimeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_DeleteRuntimeRequest_descriptor; } @java.lang.Override @@ -373,7 +407,8 @@ public com.google.cloud.notebooks.v1.DeleteRuntimeRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.DeleteRuntimeRequest buildPartial() { - com.google.cloud.notebooks.v1.DeleteRuntimeRequest result = new com.google.cloud.notebooks.v1.DeleteRuntimeRequest(this); + com.google.cloud.notebooks.v1.DeleteRuntimeRequest result = + new com.google.cloud.notebooks.v1.DeleteRuntimeRequest(this); result.name_ = name_; result.requestId_ = requestId_; onBuilt(); @@ -384,38 +419,39 @@ public com.google.cloud.notebooks.v1.DeleteRuntimeRequest buildPartial() { 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.cloud.notebooks.v1.DeleteRuntimeRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.DeleteRuntimeRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.DeleteRuntimeRequest) other); } else { super.mergeFrom(other); return this; @@ -423,7 +459,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.DeleteRuntimeRequest other) { - if (other == com.google.cloud.notebooks.v1.DeleteRuntimeRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.DeleteRuntimeRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -458,22 +495,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - requestId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + + 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) { @@ -486,19 +526,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -507,21 +551,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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 { @@ -529,57 +576,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -587,18 +647,20 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 2; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; 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(); requestId_ = s; return s; @@ -607,20 +669,21 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 2; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; 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); requestId_ = b; return b; } else { @@ -628,61 +691,68 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 2; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 2; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 2; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -692,12 +762,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.DeleteRuntimeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.DeleteRuntimeRequest) private static final com.google.cloud.notebooks.v1.DeleteRuntimeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.DeleteRuntimeRequest(); } @@ -706,27 +776,27 @@ public static com.google.cloud.notebooks.v1.DeleteRuntimeRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteRuntimeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRuntimeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -741,6 +811,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.DeleteRuntimeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteRuntimeRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteRuntimeRequestOrBuilder.java new file mode 100644 index 000000000000..29e140d0828e --- /dev/null +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteRuntimeRequestOrBuilder.java @@ -0,0 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/notebooks/v1/managed_service.proto + +package com.google.cloud.notebooks.v1; + +public interface DeleteRuntimeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.DeleteRuntimeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format:
+   * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Format:
+   * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Idempotent request UUID.
+   * 
+ * + * string request_id = 2; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Idempotent request UUID.
+   * 
+ * + * string request_id = 2; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteScheduleRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteScheduleRequest.java similarity index 61% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteScheduleRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteScheduleRequest.java index 2a7d5a499d6a..690bc028f717 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteScheduleRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteScheduleRequest.java @@ -1,62 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for deleting an Schedule
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.DeleteScheduleRequest} */ -public final class DeleteScheduleRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteScheduleRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.DeleteScheduleRequest) DeleteScheduleRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteScheduleRequest.newBuilder() to construct. private DeleteScheduleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteScheduleRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteScheduleRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_DeleteScheduleRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_DeleteScheduleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_DeleteScheduleRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_DeleteScheduleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.DeleteScheduleRequest.class, com.google.cloud.notebooks.v1.DeleteScheduleRequest.Builder.class); + com.google.cloud.notebooks.v1.DeleteScheduleRequest.class, + com.google.cloud.notebooks.v1.DeleteScheduleRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,30 +89,32 @@ 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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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 { @@ -97,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +135,7 @@ 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_); } @@ -133,15 +159,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.cloud.notebooks.v1.DeleteScheduleRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.DeleteScheduleRequest other = (com.google.cloud.notebooks.v1.DeleteScheduleRequest) obj; + com.google.cloud.notebooks.v1.DeleteScheduleRequest other = + (com.google.cloud.notebooks.v1.DeleteScheduleRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,129 +187,135 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.DeleteScheduleRequest 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.cloud.notebooks.v1.DeleteScheduleRequest 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.cloud.notebooks.v1.DeleteScheduleRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.DeleteScheduleRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.DeleteScheduleRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.DeleteScheduleRequest 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.cloud.notebooks.v1.DeleteScheduleRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.DeleteScheduleRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.DeleteScheduleRequest 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.cloud.notebooks.v1.DeleteScheduleRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.DeleteScheduleRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.DeleteScheduleRequest 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.cloud.notebooks.v1.DeleteScheduleRequest 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.cloud.notebooks.v1.DeleteScheduleRequest 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.cloud.notebooks.v1.DeleteScheduleRequest 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; } /** + * + * *
    * Request for deleting an Schedule
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.DeleteScheduleRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.DeleteScheduleRequest) com.google.cloud.notebooks.v1.DeleteScheduleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_DeleteScheduleRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_DeleteScheduleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_DeleteScheduleRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_DeleteScheduleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.DeleteScheduleRequest.class, com.google.cloud.notebooks.v1.DeleteScheduleRequest.Builder.class); + com.google.cloud.notebooks.v1.DeleteScheduleRequest.class, + com.google.cloud.notebooks.v1.DeleteScheduleRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.DeleteScheduleRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +325,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_DeleteScheduleRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_DeleteScheduleRequest_descriptor; } @java.lang.Override @@ -314,7 +346,8 @@ public com.google.cloud.notebooks.v1.DeleteScheduleRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.DeleteScheduleRequest buildPartial() { - com.google.cloud.notebooks.v1.DeleteScheduleRequest result = new com.google.cloud.notebooks.v1.DeleteScheduleRequest(this); + com.google.cloud.notebooks.v1.DeleteScheduleRequest result = + new com.google.cloud.notebooks.v1.DeleteScheduleRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +357,39 @@ public com.google.cloud.notebooks.v1.DeleteScheduleRequest buildPartial() { 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.cloud.notebooks.v1.DeleteScheduleRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.DeleteScheduleRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.DeleteScheduleRequest) other); } else { super.mergeFrom(other); return this; @@ -363,7 +397,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.DeleteScheduleRequest other) { - if (other == com.google.cloud.notebooks.v1.DeleteScheduleRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.DeleteScheduleRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -394,17 +429,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -417,19 +454,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -438,21 +479,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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 { @@ -460,64 +504,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -527,12 +584,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.DeleteScheduleRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.DeleteScheduleRequest) private static final com.google.cloud.notebooks.v1.DeleteScheduleRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.DeleteScheduleRequest(); } @@ -541,27 +598,27 @@ public static com.google.cloud.notebooks.v1.DeleteScheduleRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteScheduleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteScheduleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -576,6 +633,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.DeleteScheduleRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteScheduleRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteScheduleRequestOrBuilder.java new file mode 100644 index 000000000000..b0be5d85f5a4 --- /dev/null +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteScheduleRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/notebooks/v1/service.proto + +package com.google.cloud.notebooks.v1; + +public interface DeleteScheduleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.DeleteScheduleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format:
+   * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Format:
+   * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnoseInstanceRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnoseInstanceRequest.java similarity index 61% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnoseInstanceRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnoseInstanceRequest.java index b3754e9730ca..7091149d54cc 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnoseInstanceRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnoseInstanceRequest.java @@ -1,62 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for creating a notebook instance diagnostic file.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.DiagnoseInstanceRequest} */ -public final class DiagnoseInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DiagnoseInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.DiagnoseInstanceRequest) DiagnoseInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DiagnoseInstanceRequest.newBuilder() to construct. private DiagnoseInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DiagnoseInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DiagnoseInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_DiagnoseInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_DiagnoseInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_DiagnoseInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_DiagnoseInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.DiagnoseInstanceRequest.class, com.google.cloud.notebooks.v1.DiagnoseInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1.DiagnoseInstanceRequest.class, + com.google.cloud.notebooks.v1.DiagnoseInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,30 +89,32 @@ 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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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 { @@ -99,11 +125,16 @@ public java.lang.String getName() { public static final int DIAGNOSTIC_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.notebooks.v1.DiagnosticConfig diagnosticConfig_; /** + * + * *
    * Required. Defines flags that are used to run the diagnostic tool
    * 
* - * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the diagnosticConfig field is set. */ @java.lang.Override @@ -111,23 +142,34 @@ public boolean hasDiagnosticConfig() { return diagnosticConfig_ != null; } /** + * + * *
    * Required. Defines flags that are used to run the diagnostic tool
    * 
* - * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The diagnosticConfig. */ @java.lang.Override public com.google.cloud.notebooks.v1.DiagnosticConfig getDiagnosticConfig() { - return diagnosticConfig_ == null ? com.google.cloud.notebooks.v1.DiagnosticConfig.getDefaultInstance() : diagnosticConfig_; + return diagnosticConfig_ == null + ? com.google.cloud.notebooks.v1.DiagnosticConfig.getDefaultInstance() + : diagnosticConfig_; } /** + * + * *
    * Required. Defines flags that are used to run the diagnostic tool
    * 
* - * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.notebooks.v1.DiagnosticConfigOrBuilder getDiagnosticConfigOrBuilder() { @@ -135,6 +177,7 @@ public com.google.cloud.notebooks.v1.DiagnosticConfigOrBuilder getDiagnosticConf } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -146,8 +189,7 @@ 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_); } @@ -167,8 +209,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (diagnosticConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDiagnosticConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDiagnosticConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -178,19 +219,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.cloud.notebooks.v1.DiagnoseInstanceRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.DiagnoseInstanceRequest other = (com.google.cloud.notebooks.v1.DiagnoseInstanceRequest) obj; + com.google.cloud.notebooks.v1.DiagnoseInstanceRequest other = + (com.google.cloud.notebooks.v1.DiagnoseInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasDiagnosticConfig() != other.hasDiagnosticConfig()) return false; if (hasDiagnosticConfig()) { - if (!getDiagnosticConfig() - .equals(other.getDiagnosticConfig())) return false; + if (!getDiagnosticConfig().equals(other.getDiagnosticConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -215,129 +255,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.DiagnoseInstanceRequest 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.cloud.notebooks.v1.DiagnoseInstanceRequest 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.cloud.notebooks.v1.DiagnoseInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.DiagnoseInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.DiagnoseInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.DiagnoseInstanceRequest 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.cloud.notebooks.v1.DiagnoseInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.DiagnoseInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.DiagnoseInstanceRequest 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.cloud.notebooks.v1.DiagnoseInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.DiagnoseInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.DiagnoseInstanceRequest 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.cloud.notebooks.v1.DiagnoseInstanceRequest 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.cloud.notebooks.v1.DiagnoseInstanceRequest 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.cloud.notebooks.v1.DiagnoseInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1.DiagnoseInstanceRequest 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; } /** + * + * *
    * Request for creating a notebook instance diagnostic file.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.DiagnoseInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.DiagnoseInstanceRequest) com.google.cloud.notebooks.v1.DiagnoseInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_DiagnoseInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_DiagnoseInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_DiagnoseInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_DiagnoseInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.DiagnoseInstanceRequest.class, com.google.cloud.notebooks.v1.DiagnoseInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1.DiagnoseInstanceRequest.class, + com.google.cloud.notebooks.v1.DiagnoseInstanceRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.DiagnoseInstanceRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -353,9 +400,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_DiagnoseInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_DiagnoseInstanceRequest_descriptor; } @java.lang.Override @@ -374,7 +421,8 @@ public com.google.cloud.notebooks.v1.DiagnoseInstanceRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.DiagnoseInstanceRequest buildPartial() { - com.google.cloud.notebooks.v1.DiagnoseInstanceRequest result = new com.google.cloud.notebooks.v1.DiagnoseInstanceRequest(this); + com.google.cloud.notebooks.v1.DiagnoseInstanceRequest result = + new com.google.cloud.notebooks.v1.DiagnoseInstanceRequest(this); result.name_ = name_; if (diagnosticConfigBuilder_ == null) { result.diagnosticConfig_ = diagnosticConfig_; @@ -389,38 +437,39 @@ public com.google.cloud.notebooks.v1.DiagnoseInstanceRequest buildPartial() { 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.cloud.notebooks.v1.DiagnoseInstanceRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.DiagnoseInstanceRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.DiagnoseInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -428,7 +477,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.DiagnoseInstanceRequest other) { - if (other == com.google.cloud.notebooks.v1.DiagnoseInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.DiagnoseInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -462,24 +512,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - input.readMessage( - getDiagnosticConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage( + getDiagnosticConfigFieldBuilder().getBuilder(), extensionRegistry); + + 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) { @@ -492,19 +544,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -513,21 +569,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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 { @@ -535,57 +594,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -593,39 +665,58 @@ public Builder setNameBytes( private com.google.cloud.notebooks.v1.DiagnosticConfig diagnosticConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.DiagnosticConfig, com.google.cloud.notebooks.v1.DiagnosticConfig.Builder, com.google.cloud.notebooks.v1.DiagnosticConfigOrBuilder> diagnosticConfigBuilder_; + com.google.cloud.notebooks.v1.DiagnosticConfig, + com.google.cloud.notebooks.v1.DiagnosticConfig.Builder, + com.google.cloud.notebooks.v1.DiagnosticConfigOrBuilder> + diagnosticConfigBuilder_; /** + * + * *
      * Required. Defines flags that are used to run the diagnostic tool
      * 
* - * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the diagnosticConfig field is set. */ public boolean hasDiagnosticConfig() { return diagnosticConfigBuilder_ != null || diagnosticConfig_ != null; } /** + * + * *
      * Required. Defines flags that are used to run the diagnostic tool
      * 
* - * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The diagnosticConfig. */ public com.google.cloud.notebooks.v1.DiagnosticConfig getDiagnosticConfig() { if (diagnosticConfigBuilder_ == null) { - return diagnosticConfig_ == null ? com.google.cloud.notebooks.v1.DiagnosticConfig.getDefaultInstance() : diagnosticConfig_; + return diagnosticConfig_ == null + ? com.google.cloud.notebooks.v1.DiagnosticConfig.getDefaultInstance() + : diagnosticConfig_; } else { return diagnosticConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Defines flags that are used to run the diagnostic tool
      * 
* - * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDiagnosticConfig(com.google.cloud.notebooks.v1.DiagnosticConfig value) { if (diagnosticConfigBuilder_ == null) { @@ -641,11 +732,15 @@ public Builder setDiagnosticConfig(com.google.cloud.notebooks.v1.DiagnosticConfi return this; } /** + * + * *
      * Required. Defines flags that are used to run the diagnostic tool
      * 
* - * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDiagnosticConfig( com.google.cloud.notebooks.v1.DiagnosticConfig.Builder builderForValue) { @@ -659,17 +754,23 @@ public Builder setDiagnosticConfig( return this; } /** + * + * *
      * Required. Defines flags that are used to run the diagnostic tool
      * 
* - * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeDiagnosticConfig(com.google.cloud.notebooks.v1.DiagnosticConfig value) { if (diagnosticConfigBuilder_ == null) { if (diagnosticConfig_ != null) { diagnosticConfig_ = - com.google.cloud.notebooks.v1.DiagnosticConfig.newBuilder(diagnosticConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.notebooks.v1.DiagnosticConfig.newBuilder(diagnosticConfig_) + .mergeFrom(value) + .buildPartial(); } else { diagnosticConfig_ = value; } @@ -681,11 +782,15 @@ public Builder mergeDiagnosticConfig(com.google.cloud.notebooks.v1.DiagnosticCon return this; } /** + * + * *
      * Required. Defines flags that are used to run the diagnostic tool
      * 
* - * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDiagnosticConfig() { if (diagnosticConfigBuilder_ == null) { @@ -699,55 +804,71 @@ public Builder clearDiagnosticConfig() { return this; } /** + * + * *
      * Required. Defines flags that are used to run the diagnostic tool
      * 
* - * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.notebooks.v1.DiagnosticConfig.Builder getDiagnosticConfigBuilder() { - + onChanged(); return getDiagnosticConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Defines flags that are used to run the diagnostic tool
      * 
* - * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.notebooks.v1.DiagnosticConfigOrBuilder getDiagnosticConfigOrBuilder() { if (diagnosticConfigBuilder_ != null) { return diagnosticConfigBuilder_.getMessageOrBuilder(); } else { - return diagnosticConfig_ == null ? - com.google.cloud.notebooks.v1.DiagnosticConfig.getDefaultInstance() : diagnosticConfig_; + return diagnosticConfig_ == null + ? com.google.cloud.notebooks.v1.DiagnosticConfig.getDefaultInstance() + : diagnosticConfig_; } } /** + * + * *
      * Required. Defines flags that are used to run the diagnostic tool
      * 
* - * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.DiagnosticConfig, com.google.cloud.notebooks.v1.DiagnosticConfig.Builder, com.google.cloud.notebooks.v1.DiagnosticConfigOrBuilder> + com.google.cloud.notebooks.v1.DiagnosticConfig, + com.google.cloud.notebooks.v1.DiagnosticConfig.Builder, + com.google.cloud.notebooks.v1.DiagnosticConfigOrBuilder> getDiagnosticConfigFieldBuilder() { if (diagnosticConfigBuilder_ == null) { - diagnosticConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.DiagnosticConfig, com.google.cloud.notebooks.v1.DiagnosticConfig.Builder, com.google.cloud.notebooks.v1.DiagnosticConfigOrBuilder>( - getDiagnosticConfig(), - getParentForChildren(), - isClean()); + diagnosticConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.DiagnosticConfig, + com.google.cloud.notebooks.v1.DiagnosticConfig.Builder, + com.google.cloud.notebooks.v1.DiagnosticConfigOrBuilder>( + getDiagnosticConfig(), getParentForChildren(), isClean()); diagnosticConfig_ = null; } return diagnosticConfigBuilder_; } + @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); } @@ -757,12 +878,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.DiagnoseInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.DiagnoseInstanceRequest) private static final com.google.cloud.notebooks.v1.DiagnoseInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.DiagnoseInstanceRequest(); } @@ -771,27 +892,27 @@ public static com.google.cloud.notebooks.v1.DiagnoseInstanceRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DiagnoseInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiagnoseInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -806,6 +927,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.DiagnoseInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnoseInstanceRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnoseInstanceRequestOrBuilder.java new file mode 100644 index 000000000000..ffd70107b60c --- /dev/null +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnoseInstanceRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/notebooks/v1/service.proto + +package com.google.cloud.notebooks.v1; + +public interface DiagnoseInstanceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.DiagnoseInstanceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format:
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Format:
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Defines flags that are used to run the diagnostic tool
+   * 
+ * + * + * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the diagnosticConfig field is set. + */ + boolean hasDiagnosticConfig(); + /** + * + * + *
+   * Required. Defines flags that are used to run the diagnostic tool
+   * 
+ * + * + * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The diagnosticConfig. + */ + com.google.cloud.notebooks.v1.DiagnosticConfig getDiagnosticConfig(); + /** + * + * + *
+   * Required. Defines flags that are used to run the diagnostic tool
+   * 
+ * + * + * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.notebooks.v1.DiagnosticConfigOrBuilder getDiagnosticConfigOrBuilder(); +} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnoseRuntimeRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnoseRuntimeRequest.java similarity index 62% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnoseRuntimeRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnoseRuntimeRequest.java index bfafb000b030..e850cbffe92e 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnoseRuntimeRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnoseRuntimeRequest.java @@ -1,62 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/managed_service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for creating a notebook instance diagnostic file.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.DiagnoseRuntimeRequest} */ -public final class DiagnoseRuntimeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DiagnoseRuntimeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.DiagnoseRuntimeRequest) DiagnoseRuntimeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DiagnoseRuntimeRequest.newBuilder() to construct. private DiagnoseRuntimeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DiagnoseRuntimeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DiagnoseRuntimeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_DiagnoseRuntimeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_DiagnoseRuntimeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_DiagnoseRuntimeRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_DiagnoseRuntimeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest.class, com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest.Builder.class); + com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest.class, + com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtimes_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,30 +89,32 @@ 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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtimes_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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 { @@ -99,11 +125,16 @@ public java.lang.String getName() { public static final int DIAGNOSTIC_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.notebooks.v1.DiagnosticConfig diagnosticConfig_; /** + * + * *
    * Required. Defines flags that are used to run the diagnostic tool
    * 
* - * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the diagnosticConfig field is set. */ @java.lang.Override @@ -111,23 +142,34 @@ public boolean hasDiagnosticConfig() { return diagnosticConfig_ != null; } /** + * + * *
    * Required. Defines flags that are used to run the diagnostic tool
    * 
* - * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The diagnosticConfig. */ @java.lang.Override public com.google.cloud.notebooks.v1.DiagnosticConfig getDiagnosticConfig() { - return diagnosticConfig_ == null ? com.google.cloud.notebooks.v1.DiagnosticConfig.getDefaultInstance() : diagnosticConfig_; + return diagnosticConfig_ == null + ? com.google.cloud.notebooks.v1.DiagnosticConfig.getDefaultInstance() + : diagnosticConfig_; } /** + * + * *
    * Required. Defines flags that are used to run the diagnostic tool
    * 
* - * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.notebooks.v1.DiagnosticConfigOrBuilder getDiagnosticConfigOrBuilder() { @@ -135,6 +177,7 @@ public com.google.cloud.notebooks.v1.DiagnosticConfigOrBuilder getDiagnosticConf } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -146,8 +189,7 @@ 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_); } @@ -167,8 +209,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (diagnosticConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDiagnosticConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDiagnosticConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -178,19 +219,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.cloud.notebooks.v1.DiagnoseRuntimeRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest other = (com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest) obj; + com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest other = + (com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasDiagnosticConfig() != other.hasDiagnosticConfig()) return false; if (hasDiagnosticConfig()) { - if (!getDiagnosticConfig() - .equals(other.getDiagnosticConfig())) return false; + if (!getDiagnosticConfig().equals(other.getDiagnosticConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -215,129 +255,135 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest 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.cloud.notebooks.v1.DiagnoseRuntimeRequest 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.cloud.notebooks.v1.DiagnoseRuntimeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest 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.cloud.notebooks.v1.DiagnoseRuntimeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest 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.cloud.notebooks.v1.DiagnoseRuntimeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest 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.cloud.notebooks.v1.DiagnoseRuntimeRequest 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.cloud.notebooks.v1.DiagnoseRuntimeRequest 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.cloud.notebooks.v1.DiagnoseRuntimeRequest 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; } /** + * + * *
    * Request for creating a notebook instance diagnostic file.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.DiagnoseRuntimeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.DiagnoseRuntimeRequest) com.google.cloud.notebooks.v1.DiagnoseRuntimeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_DiagnoseRuntimeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_DiagnoseRuntimeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_DiagnoseRuntimeRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_DiagnoseRuntimeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest.class, com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest.Builder.class); + com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest.class, + com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -353,9 +399,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_DiagnoseRuntimeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_DiagnoseRuntimeRequest_descriptor; } @java.lang.Override @@ -374,7 +420,8 @@ public com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest buildPartial() { - com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest result = new com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest(this); + com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest result = + new com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest(this); result.name_ = name_; if (diagnosticConfigBuilder_ == null) { result.diagnosticConfig_ = diagnosticConfig_; @@ -389,38 +436,39 @@ public com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest buildPartial() { 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.cloud.notebooks.v1.DiagnoseRuntimeRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest) other); } else { super.mergeFrom(other); return this; @@ -428,7 +476,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest other) { - if (other == com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -462,24 +511,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - input.readMessage( - getDiagnosticConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage( + getDiagnosticConfigFieldBuilder().getBuilder(), extensionRegistry); + + 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) { @@ -492,19 +543,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtimes_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -513,21 +568,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtimes_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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 { @@ -535,57 +593,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtimes_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtimes_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtimes_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -593,39 +664,58 @@ public Builder setNameBytes( private com.google.cloud.notebooks.v1.DiagnosticConfig diagnosticConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.DiagnosticConfig, com.google.cloud.notebooks.v1.DiagnosticConfig.Builder, com.google.cloud.notebooks.v1.DiagnosticConfigOrBuilder> diagnosticConfigBuilder_; + com.google.cloud.notebooks.v1.DiagnosticConfig, + com.google.cloud.notebooks.v1.DiagnosticConfig.Builder, + com.google.cloud.notebooks.v1.DiagnosticConfigOrBuilder> + diagnosticConfigBuilder_; /** + * + * *
      * Required. Defines flags that are used to run the diagnostic tool
      * 
* - * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the diagnosticConfig field is set. */ public boolean hasDiagnosticConfig() { return diagnosticConfigBuilder_ != null || diagnosticConfig_ != null; } /** + * + * *
      * Required. Defines flags that are used to run the diagnostic tool
      * 
* - * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The diagnosticConfig. */ public com.google.cloud.notebooks.v1.DiagnosticConfig getDiagnosticConfig() { if (diagnosticConfigBuilder_ == null) { - return diagnosticConfig_ == null ? com.google.cloud.notebooks.v1.DiagnosticConfig.getDefaultInstance() : diagnosticConfig_; + return diagnosticConfig_ == null + ? com.google.cloud.notebooks.v1.DiagnosticConfig.getDefaultInstance() + : diagnosticConfig_; } else { return diagnosticConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Defines flags that are used to run the diagnostic tool
      * 
* - * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDiagnosticConfig(com.google.cloud.notebooks.v1.DiagnosticConfig value) { if (diagnosticConfigBuilder_ == null) { @@ -641,11 +731,15 @@ public Builder setDiagnosticConfig(com.google.cloud.notebooks.v1.DiagnosticConfi return this; } /** + * + * *
      * Required. Defines flags that are used to run the diagnostic tool
      * 
* - * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDiagnosticConfig( com.google.cloud.notebooks.v1.DiagnosticConfig.Builder builderForValue) { @@ -659,17 +753,23 @@ public Builder setDiagnosticConfig( return this; } /** + * + * *
      * Required. Defines flags that are used to run the diagnostic tool
      * 
* - * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeDiagnosticConfig(com.google.cloud.notebooks.v1.DiagnosticConfig value) { if (diagnosticConfigBuilder_ == null) { if (diagnosticConfig_ != null) { diagnosticConfig_ = - com.google.cloud.notebooks.v1.DiagnosticConfig.newBuilder(diagnosticConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.notebooks.v1.DiagnosticConfig.newBuilder(diagnosticConfig_) + .mergeFrom(value) + .buildPartial(); } else { diagnosticConfig_ = value; } @@ -681,11 +781,15 @@ public Builder mergeDiagnosticConfig(com.google.cloud.notebooks.v1.DiagnosticCon return this; } /** + * + * *
      * Required. Defines flags that are used to run the diagnostic tool
      * 
* - * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDiagnosticConfig() { if (diagnosticConfigBuilder_ == null) { @@ -699,55 +803,71 @@ public Builder clearDiagnosticConfig() { return this; } /** + * + * *
      * Required. Defines flags that are used to run the diagnostic tool
      * 
* - * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.notebooks.v1.DiagnosticConfig.Builder getDiagnosticConfigBuilder() { - + onChanged(); return getDiagnosticConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Defines flags that are used to run the diagnostic tool
      * 
* - * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.notebooks.v1.DiagnosticConfigOrBuilder getDiagnosticConfigOrBuilder() { if (diagnosticConfigBuilder_ != null) { return diagnosticConfigBuilder_.getMessageOrBuilder(); } else { - return diagnosticConfig_ == null ? - com.google.cloud.notebooks.v1.DiagnosticConfig.getDefaultInstance() : diagnosticConfig_; + return diagnosticConfig_ == null + ? com.google.cloud.notebooks.v1.DiagnosticConfig.getDefaultInstance() + : diagnosticConfig_; } } /** + * + * *
      * Required. Defines flags that are used to run the diagnostic tool
      * 
* - * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.DiagnosticConfig, com.google.cloud.notebooks.v1.DiagnosticConfig.Builder, com.google.cloud.notebooks.v1.DiagnosticConfigOrBuilder> + com.google.cloud.notebooks.v1.DiagnosticConfig, + com.google.cloud.notebooks.v1.DiagnosticConfig.Builder, + com.google.cloud.notebooks.v1.DiagnosticConfigOrBuilder> getDiagnosticConfigFieldBuilder() { if (diagnosticConfigBuilder_ == null) { - diagnosticConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.DiagnosticConfig, com.google.cloud.notebooks.v1.DiagnosticConfig.Builder, com.google.cloud.notebooks.v1.DiagnosticConfigOrBuilder>( - getDiagnosticConfig(), - getParentForChildren(), - isClean()); + diagnosticConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.DiagnosticConfig, + com.google.cloud.notebooks.v1.DiagnosticConfig.Builder, + com.google.cloud.notebooks.v1.DiagnosticConfigOrBuilder>( + getDiagnosticConfig(), getParentForChildren(), isClean()); diagnosticConfig_ = null; } return diagnosticConfigBuilder_; } + @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); } @@ -757,12 +877,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.DiagnoseRuntimeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.DiagnoseRuntimeRequest) private static final com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest(); } @@ -771,27 +891,27 @@ public static com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DiagnoseRuntimeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiagnoseRuntimeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -806,6 +926,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnoseRuntimeRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnoseRuntimeRequestOrBuilder.java new file mode 100644 index 000000000000..63c53a122e0e --- /dev/null +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnoseRuntimeRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/notebooks/v1/managed_service.proto + +package com.google.cloud.notebooks.v1; + +public interface DiagnoseRuntimeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.DiagnoseRuntimeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format:
+   * `projects/{project_id}/locations/{location}/runtimes/{runtimes_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Format:
+   * `projects/{project_id}/locations/{location}/runtimes/{runtimes_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Defines flags that are used to run the diagnostic tool
+   * 
+ * + * + * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the diagnosticConfig field is set. + */ + boolean hasDiagnosticConfig(); + /** + * + * + *
+   * Required. Defines flags that are used to run the diagnostic tool
+   * 
+ * + * + * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The diagnosticConfig. + */ + com.google.cloud.notebooks.v1.DiagnosticConfig getDiagnosticConfig(); + /** + * + * + *
+   * Required. Defines flags that are used to run the diagnostic tool
+   * 
+ * + * + * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.notebooks.v1.DiagnosticConfigOrBuilder getDiagnosticConfigOrBuilder(); +} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnosticConfig.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnosticConfig.java similarity index 76% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnosticConfig.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnosticConfig.java index 7640b9ed1c53..2b22fdda9fd2 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnosticConfig.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnosticConfig.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/diagnostic_config.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Defines flags that are used to run the diagnostic tool
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.DiagnosticConfig} */ -public final class DiagnosticConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DiagnosticConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.DiagnosticConfig) DiagnosticConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DiagnosticConfig.newBuilder() to construct. private DiagnosticConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DiagnosticConfig() { gcsBucket_ = ""; relativePath_ = ""; @@ -26,32 +44,35 @@ private DiagnosticConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DiagnosticConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.DiagnosticConfigProto.internal_static_google_cloud_notebooks_v1_DiagnosticConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.DiagnosticConfigProto + .internal_static_google_cloud_notebooks_v1_DiagnosticConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.DiagnosticConfigProto.internal_static_google_cloud_notebooks_v1_DiagnosticConfig_fieldAccessorTable + return com.google.cloud.notebooks.v1.DiagnosticConfigProto + .internal_static_google_cloud_notebooks_v1_DiagnosticConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.DiagnosticConfig.class, com.google.cloud.notebooks.v1.DiagnosticConfig.Builder.class); + com.google.cloud.notebooks.v1.DiagnosticConfig.class, + com.google.cloud.notebooks.v1.DiagnosticConfig.Builder.class); } public static final int GCS_BUCKET_FIELD_NUMBER = 1; private volatile java.lang.Object gcsBucket_; /** + * + * *
    * Required. User Cloud Storage bucket location (REQUIRED)
    * ## Must be formatted with path prefix (gs://$GCS_BUCKET)
@@ -67,6 +88,7 @@ protected java.lang.Object newInstance(
    * 
* * string gcs_bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The gcsBucket. */ @java.lang.Override @@ -75,14 +97,15 @@ public java.lang.String getGcsBucket() { 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(); gcsBucket_ = s; return s; } } /** + * + * *
    * Required. User Cloud Storage bucket location (REQUIRED)
    * ## Must be formatted with path prefix (gs://$GCS_BUCKET)
@@ -98,16 +121,15 @@ public java.lang.String getGcsBucket() {
    * 
* * string gcs_bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for gcsBucket. */ @java.lang.Override - public com.google.protobuf.ByteString - getGcsBucketBytes() { + public com.google.protobuf.ByteString getGcsBucketBytes() { java.lang.Object ref = gcsBucket_; 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); gcsBucket_ = b; return b; } else { @@ -118,6 +140,8 @@ public java.lang.String getGcsBucket() { public static final int RELATIVE_PATH_FIELD_NUMBER = 2; private volatile java.lang.Object relativePath_; /** + * + * *
    * Optional. Defines the relative storage path in the Cloud Storage bucket where the
    * diagnostic logs will be written: Default path will be the root directory of
@@ -126,6 +150,7 @@ public java.lang.String getGcsBucket() {
    * 
* * string relative_path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The relativePath. */ @java.lang.Override @@ -134,14 +159,15 @@ public java.lang.String getRelativePath() { 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(); relativePath_ = s; return s; } } /** + * + * *
    * Optional. Defines the relative storage path in the Cloud Storage bucket where the
    * diagnostic logs will be written: Default path will be the root directory of
@@ -150,16 +176,15 @@ public java.lang.String getRelativePath() {
    * 
* * string relative_path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for relativePath. */ @java.lang.Override - public com.google.protobuf.ByteString - getRelativePathBytes() { + public com.google.protobuf.ByteString getRelativePathBytes() { java.lang.Object ref = relativePath_; 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); relativePath_ = b; return b; } else { @@ -170,11 +195,14 @@ public java.lang.String getRelativePath() { public static final int REPAIR_FLAG_ENABLED_FIELD_NUMBER = 3; private boolean repairFlagEnabled_; /** + * + * *
    * Optional. Enables flag to repair service for instance
    * 
* * bool repair_flag_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The repairFlagEnabled. */ @java.lang.Override @@ -185,11 +213,14 @@ public boolean getRepairFlagEnabled() { public static final int PACKET_CAPTURE_FLAG_ENABLED_FIELD_NUMBER = 4; private boolean packetCaptureFlagEnabled_; /** + * + * *
    * Optional. Enables flag to capture packets from the instance for 30 seconds
    * 
* * bool packet_capture_flag_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The packetCaptureFlagEnabled. */ @java.lang.Override @@ -200,11 +231,14 @@ public boolean getPacketCaptureFlagEnabled() { public static final int COPY_HOME_FILES_FLAG_ENABLED_FIELD_NUMBER = 5; private boolean copyHomeFilesFlagEnabled_; /** + * + * *
    * Optional. Enables flag to copy all `/home/jupyter` folder contents
    * 
* * bool copy_home_files_flag_enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The copyHomeFilesFlagEnabled. */ @java.lang.Override @@ -213,6 +247,7 @@ public boolean getCopyHomeFilesFlagEnabled() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +259,7 @@ 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(gcsBucket_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcsBucket_); } @@ -257,16 +291,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, relativePath_); } if (repairFlagEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, repairFlagEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, repairFlagEnabled_); } if (packetCaptureFlagEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, packetCaptureFlagEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, packetCaptureFlagEnabled_); } if (copyHomeFilesFlagEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, copyHomeFilesFlagEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, copyHomeFilesFlagEnabled_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -276,23 +307,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.cloud.notebooks.v1.DiagnosticConfig)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.DiagnosticConfig other = (com.google.cloud.notebooks.v1.DiagnosticConfig) obj; - - if (!getGcsBucket() - .equals(other.getGcsBucket())) return false; - if (!getRelativePath() - .equals(other.getRelativePath())) return false; - if (getRepairFlagEnabled() - != other.getRepairFlagEnabled()) return false; - if (getPacketCaptureFlagEnabled() - != other.getPacketCaptureFlagEnabled()) return false; - if (getCopyHomeFilesFlagEnabled() - != other.getCopyHomeFilesFlagEnabled()) return false; + com.google.cloud.notebooks.v1.DiagnosticConfig other = + (com.google.cloud.notebooks.v1.DiagnosticConfig) obj; + + if (!getGcsBucket().equals(other.getGcsBucket())) return false; + if (!getRelativePath().equals(other.getRelativePath())) return false; + if (getRepairFlagEnabled() != other.getRepairFlagEnabled()) return false; + if (getPacketCaptureFlagEnabled() != other.getPacketCaptureFlagEnabled()) return false; + if (getCopyHomeFilesFlagEnabled() != other.getCopyHomeFilesFlagEnabled()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -309,143 +336,146 @@ public int hashCode() { hash = (37 * hash) + RELATIVE_PATH_FIELD_NUMBER; hash = (53 * hash) + getRelativePath().hashCode(); hash = (37 * hash) + REPAIR_FLAG_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRepairFlagEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRepairFlagEnabled()); hash = (37 * hash) + PACKET_CAPTURE_FLAG_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPacketCaptureFlagEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPacketCaptureFlagEnabled()); hash = (37 * hash) + COPY_HOME_FILES_FLAG_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCopyHomeFilesFlagEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCopyHomeFilesFlagEnabled()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.notebooks.v1.DiagnosticConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.notebooks.v1.DiagnosticConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.DiagnosticConfig 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.cloud.notebooks.v1.DiagnosticConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.DiagnosticConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.DiagnosticConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.DiagnosticConfig 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.cloud.notebooks.v1.DiagnosticConfig 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.cloud.notebooks.v1.DiagnosticConfig 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.cloud.notebooks.v1.DiagnosticConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.DiagnosticConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.DiagnosticConfig 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.cloud.notebooks.v1.DiagnosticConfig 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.cloud.notebooks.v1.DiagnosticConfig 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.cloud.notebooks.v1.DiagnosticConfig 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; } /** + * + * *
    * Defines flags that are used to run the diagnostic tool
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.DiagnosticConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.DiagnosticConfig) com.google.cloud.notebooks.v1.DiagnosticConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.DiagnosticConfigProto.internal_static_google_cloud_notebooks_v1_DiagnosticConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.DiagnosticConfigProto + .internal_static_google_cloud_notebooks_v1_DiagnosticConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.DiagnosticConfigProto.internal_static_google_cloud_notebooks_v1_DiagnosticConfig_fieldAccessorTable + return com.google.cloud.notebooks.v1.DiagnosticConfigProto + .internal_static_google_cloud_notebooks_v1_DiagnosticConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.DiagnosticConfig.class, com.google.cloud.notebooks.v1.DiagnosticConfig.Builder.class); + com.google.cloud.notebooks.v1.DiagnosticConfig.class, + com.google.cloud.notebooks.v1.DiagnosticConfig.Builder.class); } // Construct using com.google.cloud.notebooks.v1.DiagnosticConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -463,9 +493,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.DiagnosticConfigProto.internal_static_google_cloud_notebooks_v1_DiagnosticConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.DiagnosticConfigProto + .internal_static_google_cloud_notebooks_v1_DiagnosticConfig_descriptor; } @java.lang.Override @@ -484,7 +514,8 @@ public com.google.cloud.notebooks.v1.DiagnosticConfig build() { @java.lang.Override public com.google.cloud.notebooks.v1.DiagnosticConfig buildPartial() { - com.google.cloud.notebooks.v1.DiagnosticConfig result = new com.google.cloud.notebooks.v1.DiagnosticConfig(this); + com.google.cloud.notebooks.v1.DiagnosticConfig result = + new com.google.cloud.notebooks.v1.DiagnosticConfig(this); result.gcsBucket_ = gcsBucket_; result.relativePath_ = relativePath_; result.repairFlagEnabled_ = repairFlagEnabled_; @@ -498,38 +529,39 @@ public com.google.cloud.notebooks.v1.DiagnosticConfig buildPartial() { 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.cloud.notebooks.v1.DiagnosticConfig) { - return mergeFrom((com.google.cloud.notebooks.v1.DiagnosticConfig)other); + return mergeFrom((com.google.cloud.notebooks.v1.DiagnosticConfig) other); } else { super.mergeFrom(other); return this; @@ -581,37 +613,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - gcsBucket_ = input.readStringRequireUtf8(); + case 10: + { + gcsBucket_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - relativePath_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + relativePath_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 24: { - repairFlagEnabled_ = input.readBool(); + break; + } // case 18 + case 24: + { + repairFlagEnabled_ = input.readBool(); - break; - } // case 24 - case 32: { - packetCaptureFlagEnabled_ = input.readBool(); + break; + } // case 24 + case 32: + { + packetCaptureFlagEnabled_ = input.readBool(); - break; - } // case 32 - case 40: { - copyHomeFilesFlagEnabled_ = input.readBool(); + break; + } // case 32 + case 40: + { + copyHomeFilesFlagEnabled_ = input.readBool(); - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -624,6 +662,8 @@ public Builder mergeFrom( private java.lang.Object gcsBucket_ = ""; /** + * + * *
      * Required. User Cloud Storage bucket location (REQUIRED)
      * ## Must be formatted with path prefix (gs://$GCS_BUCKET)
@@ -639,13 +679,13 @@ public Builder mergeFrom(
      * 
* * string gcs_bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The gcsBucket. */ public java.lang.String getGcsBucket() { java.lang.Object ref = gcsBucket_; 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(); gcsBucket_ = s; return s; @@ -654,6 +694,8 @@ public java.lang.String getGcsBucket() { } } /** + * + * *
      * Required. User Cloud Storage bucket location (REQUIRED)
      * ## Must be formatted with path prefix (gs://$GCS_BUCKET)
@@ -669,15 +711,14 @@ public java.lang.String getGcsBucket() {
      * 
* * string gcs_bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for gcsBucket. */ - public com.google.protobuf.ByteString - getGcsBucketBytes() { + public com.google.protobuf.ByteString getGcsBucketBytes() { java.lang.Object ref = gcsBucket_; 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); gcsBucket_ = b; return b; } else { @@ -685,6 +726,8 @@ public java.lang.String getGcsBucket() { } } /** + * + * *
      * Required. User Cloud Storage bucket location (REQUIRED)
      * ## Must be formatted with path prefix (gs://$GCS_BUCKET)
@@ -700,20 +743,22 @@ public java.lang.String getGcsBucket() {
      * 
* * string gcs_bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The gcsBucket to set. * @return This builder for chaining. */ - public Builder setGcsBucket( - java.lang.String value) { + public Builder setGcsBucket(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gcsBucket_ = value; onChanged(); return this; } /** + * + * *
      * Required. User Cloud Storage bucket location (REQUIRED)
      * ## Must be formatted with path prefix (gs://$GCS_BUCKET)
@@ -729,15 +774,18 @@ public Builder setGcsBucket(
      * 
* * string gcs_bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearGcsBucket() { - + gcsBucket_ = getDefaultInstance().getGcsBucket(); onChanged(); return this; } /** + * + * *
      * Required. User Cloud Storage bucket location (REQUIRED)
      * ## Must be formatted with path prefix (gs://$GCS_BUCKET)
@@ -753,16 +801,16 @@ public Builder clearGcsBucket() {
      * 
* * string gcs_bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for gcsBucket to set. * @return This builder for chaining. */ - public Builder setGcsBucketBytes( - com.google.protobuf.ByteString value) { + public Builder setGcsBucketBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsBucket_ = value; onChanged(); return this; @@ -770,6 +818,8 @@ public Builder setGcsBucketBytes( private java.lang.Object relativePath_ = ""; /** + * + * *
      * Optional. Defines the relative storage path in the Cloud Storage bucket where the
      * diagnostic logs will be written: Default path will be the root directory of
@@ -778,13 +828,13 @@ public Builder setGcsBucketBytes(
      * 
* * string relative_path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The relativePath. */ public java.lang.String getRelativePath() { java.lang.Object ref = relativePath_; 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(); relativePath_ = s; return s; @@ -793,6 +843,8 @@ public java.lang.String getRelativePath() { } } /** + * + * *
      * Optional. Defines the relative storage path in the Cloud Storage bucket where the
      * diagnostic logs will be written: Default path will be the root directory of
@@ -801,15 +853,14 @@ public java.lang.String getRelativePath() {
      * 
* * string relative_path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for relativePath. */ - public com.google.protobuf.ByteString - getRelativePathBytes() { + public com.google.protobuf.ByteString getRelativePathBytes() { java.lang.Object ref = relativePath_; 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); relativePath_ = b; return b; } else { @@ -817,6 +868,8 @@ public java.lang.String getRelativePath() { } } /** + * + * *
      * Optional. Defines the relative storage path in the Cloud Storage bucket where the
      * diagnostic logs will be written: Default path will be the root directory of
@@ -825,20 +878,22 @@ public java.lang.String getRelativePath() {
      * 
* * string relative_path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The relativePath to set. * @return This builder for chaining. */ - public Builder setRelativePath( - java.lang.String value) { + public Builder setRelativePath(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + relativePath_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Defines the relative storage path in the Cloud Storage bucket where the
      * diagnostic logs will be written: Default path will be the root directory of
@@ -847,15 +902,18 @@ public Builder setRelativePath(
      * 
* * string relative_path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRelativePath() { - + relativePath_ = getDefaultInstance().getRelativePath(); onChanged(); return this; } /** + * + * *
      * Optional. Defines the relative storage path in the Cloud Storage bucket where the
      * diagnostic logs will be written: Default path will be the root directory of
@@ -864,28 +922,31 @@ public Builder clearRelativePath() {
      * 
* * string relative_path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for relativePath to set. * @return This builder for chaining. */ - public Builder setRelativePathBytes( - com.google.protobuf.ByteString value) { + public Builder setRelativePathBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + relativePath_ = value; onChanged(); return this; } - private boolean repairFlagEnabled_ ; + private boolean repairFlagEnabled_; /** + * + * *
      * Optional. Enables flag to repair service for instance
      * 
* * bool repair_flag_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The repairFlagEnabled. */ @java.lang.Override @@ -893,42 +954,51 @@ public boolean getRepairFlagEnabled() { return repairFlagEnabled_; } /** + * + * *
      * Optional. Enables flag to repair service for instance
      * 
* * bool repair_flag_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The repairFlagEnabled to set. * @return This builder for chaining. */ public Builder setRepairFlagEnabled(boolean value) { - + repairFlagEnabled_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Enables flag to repair service for instance
      * 
* * bool repair_flag_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRepairFlagEnabled() { - + repairFlagEnabled_ = false; onChanged(); return this; } - private boolean packetCaptureFlagEnabled_ ; + private boolean packetCaptureFlagEnabled_; /** + * + * *
      * Optional. Enables flag to capture packets from the instance for 30 seconds
      * 
* * bool packet_capture_flag_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The packetCaptureFlagEnabled. */ @java.lang.Override @@ -936,42 +1006,51 @@ public boolean getPacketCaptureFlagEnabled() { return packetCaptureFlagEnabled_; } /** + * + * *
      * Optional. Enables flag to capture packets from the instance for 30 seconds
      * 
* * bool packet_capture_flag_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The packetCaptureFlagEnabled to set. * @return This builder for chaining. */ public Builder setPacketCaptureFlagEnabled(boolean value) { - + packetCaptureFlagEnabled_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Enables flag to capture packets from the instance for 30 seconds
      * 
* * bool packet_capture_flag_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPacketCaptureFlagEnabled() { - + packetCaptureFlagEnabled_ = false; onChanged(); return this; } - private boolean copyHomeFilesFlagEnabled_ ; + private boolean copyHomeFilesFlagEnabled_; /** + * + * *
      * Optional. Enables flag to copy all `/home/jupyter` folder contents
      * 
* * bool copy_home_files_flag_enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The copyHomeFilesFlagEnabled. */ @java.lang.Override @@ -979,37 +1058,43 @@ public boolean getCopyHomeFilesFlagEnabled() { return copyHomeFilesFlagEnabled_; } /** + * + * *
      * Optional. Enables flag to copy all `/home/jupyter` folder contents
      * 
* * bool copy_home_files_flag_enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The copyHomeFilesFlagEnabled to set. * @return This builder for chaining. */ public Builder setCopyHomeFilesFlagEnabled(boolean value) { - + copyHomeFilesFlagEnabled_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Enables flag to copy all `/home/jupyter` folder contents
      * 
* * bool copy_home_files_flag_enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCopyHomeFilesFlagEnabled() { - + copyHomeFilesFlagEnabled_ = false; 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); } @@ -1019,12 +1104,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.DiagnosticConfig) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.DiagnosticConfig) private static final com.google.cloud.notebooks.v1.DiagnosticConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.DiagnosticConfig(); } @@ -1033,27 +1118,27 @@ public static com.google.cloud.notebooks.v1.DiagnosticConfig getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DiagnosticConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiagnosticConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -1068,6 +1153,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.DiagnosticConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnosticConfigOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnosticConfigOrBuilder.java similarity index 80% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnosticConfigOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnosticConfigOrBuilder.java index 1bbd6afaaea3..900fec64cd7c 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnosticConfigOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnosticConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/diagnostic_config.proto package com.google.cloud.notebooks.v1; -public interface DiagnosticConfigOrBuilder extends +public interface DiagnosticConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.DiagnosticConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. User Cloud Storage bucket location (REQUIRED)
    * ## Must be formatted with path prefix (gs://$GCS_BUCKET)
@@ -23,10 +41,13 @@ public interface DiagnosticConfigOrBuilder extends
    * 
* * string gcs_bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The gcsBucket. */ java.lang.String getGcsBucket(); /** + * + * *
    * Required. User Cloud Storage bucket location (REQUIRED)
    * ## Must be formatted with path prefix (gs://$GCS_BUCKET)
@@ -42,12 +63,14 @@ public interface DiagnosticConfigOrBuilder extends
    * 
* * string gcs_bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for gcsBucket. */ - com.google.protobuf.ByteString - getGcsBucketBytes(); + com.google.protobuf.ByteString getGcsBucketBytes(); /** + * + * *
    * Optional. Defines the relative storage path in the Cloud Storage bucket where the
    * diagnostic logs will be written: Default path will be the root directory of
@@ -56,10 +79,13 @@ public interface DiagnosticConfigOrBuilder extends
    * 
* * string relative_path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The relativePath. */ java.lang.String getRelativePath(); /** + * + * *
    * Optional. Defines the relative storage path in the Cloud Storage bucket where the
    * diagnostic logs will be written: Default path will be the root directory of
@@ -68,37 +94,46 @@ public interface DiagnosticConfigOrBuilder extends
    * 
* * string relative_path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for relativePath. */ - com.google.protobuf.ByteString - getRelativePathBytes(); + com.google.protobuf.ByteString getRelativePathBytes(); /** + * + * *
    * Optional. Enables flag to repair service for instance
    * 
* * bool repair_flag_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The repairFlagEnabled. */ boolean getRepairFlagEnabled(); /** + * + * *
    * Optional. Enables flag to capture packets from the instance for 30 seconds
    * 
* * bool packet_capture_flag_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The packetCaptureFlagEnabled. */ boolean getPacketCaptureFlagEnabled(); /** + * + * *
    * Optional. Enables flag to copy all `/home/jupyter` folder contents
    * 
* * bool copy_home_files_flag_enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The copyHomeFilesFlagEnabled. */ boolean getCopyHomeFilesFlagEnabled(); diff --git a/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnosticConfigProto.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnosticConfigProto.java new file mode 100644 index 000000000000..b5a22ed8acd1 --- /dev/null +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnosticConfigProto.java @@ -0,0 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/notebooks/v1/diagnostic_config.proto + +package com.google.cloud.notebooks.v1; + +public final class DiagnosticConfigProto { + private DiagnosticConfigProto() {} + + 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_cloud_notebooks_v1_DiagnosticConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_DiagnosticConfig_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/notebooks/v1/diagnostic_c" + + "onfig.proto\022\031google.cloud.notebooks.v1\032\037" + + "google/api/field_behavior.proto\"\276\001\n\020Diag" + + "nosticConfig\022\027\n\ngcs_bucket\030\001 \001(\tB\003\340A\002\022\032\n" + + "\rrelative_path\030\002 \001(\tB\003\340A\001\022 \n\023repair_flag" + + "_enabled\030\003 \001(\010B\003\340A\001\022(\n\033packet_capture_fl" + + "ag_enabled\030\004 \001(\010B\003\340A\001\022)\n\034copy_home_files" + + "_flag_enabled\030\005 \001(\010B\003\340A\001B|\n\035com.google.c" + + "loud.notebooks.v1B\025DiagnosticConfigProto" + + "P\001ZBgoogle.golang.org/genproto/googleapi" + + "s/cloud/notebooks/v1;notebooksb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_notebooks_v1_DiagnosticConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_notebooks_v1_DiagnosticConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_DiagnosticConfig_descriptor, + new java.lang.String[] { + "GcsBucket", + "RelativePath", + "RepairFlagEnabled", + "PacketCaptureFlagEnabled", + "CopyHomeFilesFlagEnabled", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EncryptionConfig.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EncryptionConfig.java similarity index 68% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EncryptionConfig.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EncryptionConfig.java index 7e21f574e167..fad80ef55f04 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EncryptionConfig.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EncryptionConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/runtime.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Represents a custom encryption key configuration that can be applied to
  * a resource. This will encrypt all disks in Virtual Machine.
@@ -11,47 +28,51 @@
  *
  * Protobuf type {@code google.cloud.notebooks.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.cloud.notebooks.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() {
     kmsKey_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new EncryptionConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_EncryptionConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.notebooks.v1.RuntimeProto
+        .internal_static_google_cloud_notebooks_v1_EncryptionConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_EncryptionConfig_fieldAccessorTable
+    return com.google.cloud.notebooks.v1.RuntimeProto
+        .internal_static_google_cloud_notebooks_v1_EncryptionConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.notebooks.v1.EncryptionConfig.class, com.google.cloud.notebooks.v1.EncryptionConfig.Builder.class);
+            com.google.cloud.notebooks.v1.EncryptionConfig.class,
+            com.google.cloud.notebooks.v1.EncryptionConfig.Builder.class);
   }
 
   public static final int KMS_KEY_FIELD_NUMBER = 1;
   private volatile java.lang.Object kmsKey_;
   /**
+   *
+   *
    * 
    * The Cloud KMS resource identifier of the customer-managed encryption key
    * used to protect a resource, such as a disks. It has the following
@@ -60,6 +81,7 @@ protected java.lang.Object newInstance(
    * 
* * string kms_key = 1; + * * @return The kmsKey. */ @java.lang.Override @@ -68,14 +90,15 @@ public java.lang.String getKmsKey() { 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(); kmsKey_ = s; return s; } } /** + * + * *
    * The Cloud KMS resource identifier of the customer-managed encryption key
    * used to protect a resource, such as a disks. It has the following
@@ -84,16 +107,15 @@ public java.lang.String getKmsKey() {
    * 
* * string kms_key = 1; + * * @return The bytes for kmsKey. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyBytes() { + public com.google.protobuf.ByteString getKmsKeyBytes() { java.lang.Object ref = kmsKey_; 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); kmsKey_ = b; return b; } else { @@ -102,6 +124,7 @@ public java.lang.String getKmsKey() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -113,8 +136,7 @@ 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(kmsKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kmsKey_); } @@ -138,15 +160,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.cloud.notebooks.v1.EncryptionConfig)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.EncryptionConfig other = (com.google.cloud.notebooks.v1.EncryptionConfig) obj; + com.google.cloud.notebooks.v1.EncryptionConfig other = + (com.google.cloud.notebooks.v1.EncryptionConfig) obj; - if (!getKmsKey() - .equals(other.getKmsKey())) return false; + if (!getKmsKey().equals(other.getKmsKey())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -165,97 +187,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.notebooks.v1.EncryptionConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.notebooks.v1.EncryptionConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.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.cloud.notebooks.v1.EncryptionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.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.cloud.notebooks.v1.EncryptionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.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.cloud.notebooks.v1.EncryptionConfig 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.cloud.notebooks.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.cloud.notebooks.v1.EncryptionConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.EncryptionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.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.cloud.notebooks.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.cloud.notebooks.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.cloud.notebooks.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; } /** + * + * *
    * Represents a custom encryption key configuration that can be applied to
    * a resource. This will encrypt all disks in Virtual Machine.
@@ -263,33 +292,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.notebooks.v1.EncryptionConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.EncryptionConfig)
       com.google.cloud.notebooks.v1.EncryptionConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_EncryptionConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.notebooks.v1.RuntimeProto
+          .internal_static_google_cloud_notebooks_v1_EncryptionConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_EncryptionConfig_fieldAccessorTable
+      return com.google.cloud.notebooks.v1.RuntimeProto
+          .internal_static_google_cloud_notebooks_v1_EncryptionConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.notebooks.v1.EncryptionConfig.class, com.google.cloud.notebooks.v1.EncryptionConfig.Builder.class);
+              com.google.cloud.notebooks.v1.EncryptionConfig.class,
+              com.google.cloud.notebooks.v1.EncryptionConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.notebooks.v1.EncryptionConfig.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -299,9 +327,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_EncryptionConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.notebooks.v1.RuntimeProto
+          .internal_static_google_cloud_notebooks_v1_EncryptionConfig_descriptor;
     }
 
     @java.lang.Override
@@ -320,7 +348,8 @@ public com.google.cloud.notebooks.v1.EncryptionConfig build() {
 
     @java.lang.Override
     public com.google.cloud.notebooks.v1.EncryptionConfig buildPartial() {
-      com.google.cloud.notebooks.v1.EncryptionConfig result = new com.google.cloud.notebooks.v1.EncryptionConfig(this);
+      com.google.cloud.notebooks.v1.EncryptionConfig result =
+          new com.google.cloud.notebooks.v1.EncryptionConfig(this);
       result.kmsKey_ = kmsKey_;
       onBuilt();
       return result;
@@ -330,38 +359,39 @@ public com.google.cloud.notebooks.v1.EncryptionConfig buildPartial() {
     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.cloud.notebooks.v1.EncryptionConfig) {
-        return mergeFrom((com.google.cloud.notebooks.v1.EncryptionConfig)other);
+        return mergeFrom((com.google.cloud.notebooks.v1.EncryptionConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -400,17 +430,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              kmsKey_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                kmsKey_ = input.readStringRequireUtf8();
+
+                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) {
@@ -423,6 +455,8 @@ public Builder mergeFrom(
 
     private java.lang.Object kmsKey_ = "";
     /**
+     *
+     *
      * 
      * The Cloud KMS resource identifier of the customer-managed encryption key
      * used to protect a resource, such as a disks. It has the following
@@ -431,13 +465,13 @@ public Builder mergeFrom(
      * 
* * string kms_key = 1; + * * @return The kmsKey. */ public java.lang.String getKmsKey() { java.lang.Object ref = kmsKey_; 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(); kmsKey_ = s; return s; @@ -446,6 +480,8 @@ public java.lang.String getKmsKey() { } } /** + * + * *
      * The Cloud KMS resource identifier of the customer-managed encryption key
      * used to protect a resource, such as a disks. It has the following
@@ -454,15 +490,14 @@ public java.lang.String getKmsKey() {
      * 
* * string kms_key = 1; + * * @return The bytes for kmsKey. */ - public com.google.protobuf.ByteString - getKmsKeyBytes() { + public com.google.protobuf.ByteString getKmsKeyBytes() { java.lang.Object ref = kmsKey_; 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); kmsKey_ = b; return b; } else { @@ -470,6 +505,8 @@ public java.lang.String getKmsKey() { } } /** + * + * *
      * The Cloud KMS resource identifier of the customer-managed encryption key
      * used to protect a resource, such as a disks. It has the following
@@ -478,20 +515,22 @@ public java.lang.String getKmsKey() {
      * 
* * string kms_key = 1; + * * @param value The kmsKey to set. * @return This builder for chaining. */ - public Builder setKmsKey( - java.lang.String value) { + public Builder setKmsKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kmsKey_ = value; onChanged(); return this; } /** + * + * *
      * The Cloud KMS resource identifier of the customer-managed encryption key
      * used to protect a resource, such as a disks. It has the following
@@ -500,15 +539,18 @@ public Builder setKmsKey(
      * 
* * string kms_key = 1; + * * @return This builder for chaining. */ public Builder clearKmsKey() { - + kmsKey_ = getDefaultInstance().getKmsKey(); onChanged(); return this; } /** + * + * *
      * The Cloud KMS resource identifier of the customer-managed encryption key
      * used to protect a resource, such as a disks. It has the following
@@ -517,23 +559,23 @@ public Builder clearKmsKey() {
      * 
* * string kms_key = 1; + * * @param value The bytes for kmsKey to set. * @return This builder for chaining. */ - public Builder setKmsKeyBytes( - com.google.protobuf.ByteString value) { + public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKey_ = 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); } @@ -543,12 +585,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.EncryptionConfig) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.EncryptionConfig) private static final com.google.cloud.notebooks.v1.EncryptionConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.EncryptionConfig(); } @@ -557,27 +599,27 @@ public static com.google.cloud.notebooks.v1.EncryptionConfig getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @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 PARSER = + new com.google.protobuf.AbstractParser() { + @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 parser() { return PARSER; @@ -592,6 +634,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.EncryptionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EncryptionConfigOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EncryptionConfigOrBuilder.java similarity index 59% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EncryptionConfigOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EncryptionConfigOrBuilder.java index 8b4907093cdc..bffbdeba4a79 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EncryptionConfigOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EncryptionConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/runtime.proto package com.google.cloud.notebooks.v1; -public interface EncryptionConfigOrBuilder extends +public interface EncryptionConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.EncryptionConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The Cloud KMS resource identifier of the customer-managed encryption key
    * used to protect a resource, such as a disks. It has the following
@@ -16,10 +34,13 @@ public interface EncryptionConfigOrBuilder extends
    * 
* * string kms_key = 1; + * * @return The kmsKey. */ java.lang.String getKmsKey(); /** + * + * *
    * The Cloud KMS resource identifier of the customer-managed encryption key
    * used to protect a resource, such as a disks. It has the following
@@ -28,8 +49,8 @@ public interface EncryptionConfigOrBuilder extends
    * 
* * string kms_key = 1; + * * @return The bytes for kmsKey. */ - com.google.protobuf.ByteString - getKmsKeyBytes(); + com.google.protobuf.ByteString getKmsKeyBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Environment.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Environment.java similarity index 71% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Environment.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Environment.java index 8faf326d1605..e7da06bb4be2 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Environment.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Environment.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/environment.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Definition of a software environment that is used to start a notebook
  * instance.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.notebooks.v1.Environment}
  */
-public final class Environment extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Environment extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.Environment)
     EnvironmentOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Environment.newBuilder() to construct.
   private Environment(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Environment() {
     name_ = "";
     displayName_ = "";
@@ -29,38 +47,42 @@ private Environment() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Environment();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.notebooks.v1.EnvironmentProto.internal_static_google_cloud_notebooks_v1_Environment_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.notebooks.v1.EnvironmentProto
+        .internal_static_google_cloud_notebooks_v1_Environment_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.notebooks.v1.EnvironmentProto.internal_static_google_cloud_notebooks_v1_Environment_fieldAccessorTable
+    return com.google.cloud.notebooks.v1.EnvironmentProto
+        .internal_static_google_cloud_notebooks_v1_Environment_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.notebooks.v1.Environment.class, com.google.cloud.notebooks.v1.Environment.Builder.class);
+            com.google.cloud.notebooks.v1.Environment.class,
+            com.google.cloud.notebooks.v1.Environment.Builder.class);
   }
 
   private int imageTypeCase_ = 0;
   private java.lang.Object imageType_;
+
   public enum ImageTypeCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     VM_IMAGE(6),
     CONTAINER_IMAGE(7),
     IMAGETYPE_NOT_SET(0);
     private final int value;
+
     private ImageTypeCase(int value) {
       this.value = value;
     }
@@ -76,26 +98,31 @@ public static ImageTypeCase valueOf(int value) {
 
     public static ImageTypeCase forNumber(int value) {
       switch (value) {
-        case 6: return VM_IMAGE;
-        case 7: return CONTAINER_IMAGE;
-        case 0: return IMAGETYPE_NOT_SET;
-        default: return null;
+        case 6:
+          return VM_IMAGE;
+        case 7:
+          return CONTAINER_IMAGE;
+        case 0:
+          return IMAGETYPE_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public ImageTypeCase
-  getImageTypeCase() {
-    return ImageTypeCase.forNumber(
-        imageTypeCase_);
+  public ImageTypeCase getImageTypeCase() {
+    return ImageTypeCase.forNumber(imageTypeCase_);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Output only. Name of this environment.
    * Format:
@@ -103,6 +130,7 @@ public int getNumber() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -111,14 +139,15 @@ 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; } } /** + * + * *
    * Output only. Name of this environment.
    * Format:
@@ -126,16 +155,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -146,11 +174,14 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * Display name of this environment for the UI.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -159,29 +190,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; } } /** + * + * *
    * Display name of this environment for the UI.
    * 
* * string display_name = 2; + * * @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 { @@ -192,11 +223,14 @@ public java.lang.String getDisplayName() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * A brief description of this environment.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -205,29 +239,29 @@ public java.lang.String getDescription() { 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(); description_ = s; return s; } } /** + * + * *
    * A brief description of this environment.
    * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -237,11 +271,14 @@ public java.lang.String getDescription() { public static final int VM_IMAGE_FIELD_NUMBER = 6; /** + * + * *
    * Use a Compute Engine VM image to start the notebook instance.
    * 
* * .google.cloud.notebooks.v1.VmImage vm_image = 6; + * * @return Whether the vmImage field is set. */ @java.lang.Override @@ -249,21 +286,26 @@ public boolean hasVmImage() { return imageTypeCase_ == 6; } /** + * + * *
    * Use a Compute Engine VM image to start the notebook instance.
    * 
* * .google.cloud.notebooks.v1.VmImage vm_image = 6; + * * @return The vmImage. */ @java.lang.Override public com.google.cloud.notebooks.v1.VmImage getVmImage() { if (imageTypeCase_ == 6) { - return (com.google.cloud.notebooks.v1.VmImage) imageType_; + return (com.google.cloud.notebooks.v1.VmImage) imageType_; } return com.google.cloud.notebooks.v1.VmImage.getDefaultInstance(); } /** + * + * *
    * Use a Compute Engine VM image to start the notebook instance.
    * 
@@ -273,18 +315,21 @@ public com.google.cloud.notebooks.v1.VmImage getVmImage() { @java.lang.Override public com.google.cloud.notebooks.v1.VmImageOrBuilder getVmImageOrBuilder() { if (imageTypeCase_ == 6) { - return (com.google.cloud.notebooks.v1.VmImage) imageType_; + return (com.google.cloud.notebooks.v1.VmImage) imageType_; } return com.google.cloud.notebooks.v1.VmImage.getDefaultInstance(); } public static final int CONTAINER_IMAGE_FIELD_NUMBER = 7; /** + * + * *
    * Use a container image to start the notebook instance.
    * 
* * .google.cloud.notebooks.v1.ContainerImage container_image = 7; + * * @return Whether the containerImage field is set. */ @java.lang.Override @@ -292,21 +337,26 @@ public boolean hasContainerImage() { return imageTypeCase_ == 7; } /** + * + * *
    * Use a container image to start the notebook instance.
    * 
* * .google.cloud.notebooks.v1.ContainerImage container_image = 7; + * * @return The containerImage. */ @java.lang.Override public com.google.cloud.notebooks.v1.ContainerImage getContainerImage() { if (imageTypeCase_ == 7) { - return (com.google.cloud.notebooks.v1.ContainerImage) imageType_; + return (com.google.cloud.notebooks.v1.ContainerImage) imageType_; } return com.google.cloud.notebooks.v1.ContainerImage.getDefaultInstance(); } /** + * + * *
    * Use a container image to start the notebook instance.
    * 
@@ -316,7 +366,7 @@ public com.google.cloud.notebooks.v1.ContainerImage getContainerImage() { @java.lang.Override public com.google.cloud.notebooks.v1.ContainerImageOrBuilder getContainerImageOrBuilder() { if (imageTypeCase_ == 7) { - return (com.google.cloud.notebooks.v1.ContainerImage) imageType_; + return (com.google.cloud.notebooks.v1.ContainerImage) imageType_; } return com.google.cloud.notebooks.v1.ContainerImage.getDefaultInstance(); } @@ -324,6 +374,8 @@ public com.google.cloud.notebooks.v1.ContainerImageOrBuilder getContainerImageOr public static final int POST_STARTUP_SCRIPT_FIELD_NUMBER = 8; private volatile java.lang.Object postStartupScript_; /** + * + * *
    * Path to a Bash script that automatically runs after a notebook instance
    * fully boots up. The path must be a URL or
@@ -331,6 +383,7 @@ public com.google.cloud.notebooks.v1.ContainerImageOrBuilder getContainerImageOr
    * 
* * string post_startup_script = 8; + * * @return The postStartupScript. */ @java.lang.Override @@ -339,14 +392,15 @@ public java.lang.String getPostStartupScript() { 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(); postStartupScript_ = s; return s; } } /** + * + * *
    * Path to a Bash script that automatically runs after a notebook instance
    * fully boots up. The path must be a URL or
@@ -354,16 +408,15 @@ public java.lang.String getPostStartupScript() {
    * 
* * string post_startup_script = 8; + * * @return The bytes for postStartupScript. */ @java.lang.Override - public com.google.protobuf.ByteString - getPostStartupScriptBytes() { + public com.google.protobuf.ByteString getPostStartupScriptBytes() { java.lang.Object ref = postStartupScript_; 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); postStartupScript_ = b; return b; } else { @@ -374,11 +427,15 @@ public java.lang.String getPostStartupScript() { public static final int CREATE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time at which this environment was created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -386,11 +443,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time at which this environment was created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -398,11 +459,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time at which this environment was created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -410,6 +474,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -421,8 +486,7 @@ 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_); } @@ -463,19 +527,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (imageTypeCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.cloud.notebooks.v1.VmImage) imageType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.notebooks.v1.VmImage) imageType_); } if (imageTypeCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.cloud.notebooks.v1.ContainerImage) imageType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.notebooks.v1.ContainerImage) imageType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postStartupScript_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, postStartupScript_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -485,35 +550,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.cloud.notebooks.v1.Environment)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.Environment other = (com.google.cloud.notebooks.v1.Environment) obj; + com.google.cloud.notebooks.v1.Environment other = + (com.google.cloud.notebooks.v1.Environment) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getPostStartupScript() - .equals(other.getPostStartupScript())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getPostStartupScript().equals(other.getPostStartupScript())) 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 (!getImageTypeCase().equals(other.getImageTypeCase())) return false; switch (imageTypeCase_) { case 6: - if (!getVmImage() - .equals(other.getVmImage())) return false; + if (!getVmImage().equals(other.getVmImage())) return false; break; case 7: - if (!getContainerImage() - .equals(other.getContainerImage())) return false; + if (!getContainerImage().equals(other.getContainerImage())) return false; break; case 0: default: @@ -558,97 +617,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.notebooks.v1.Environment parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.notebooks.v1.Environment parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.Environment 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.cloud.notebooks.v1.Environment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.Environment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.Environment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.Environment 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.cloud.notebooks.v1.Environment 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.cloud.notebooks.v1.Environment 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.cloud.notebooks.v1.Environment parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.Environment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.Environment 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.cloud.notebooks.v1.Environment 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.cloud.notebooks.v1.Environment 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.cloud.notebooks.v1.Environment 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; } /** + * + * *
    * Definition of a software environment that is used to start a notebook
    * instance.
@@ -656,33 +722,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.notebooks.v1.Environment}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.Environment)
       com.google.cloud.notebooks.v1.EnvironmentOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.notebooks.v1.EnvironmentProto.internal_static_google_cloud_notebooks_v1_Environment_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.notebooks.v1.EnvironmentProto
+          .internal_static_google_cloud_notebooks_v1_Environment_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.notebooks.v1.EnvironmentProto.internal_static_google_cloud_notebooks_v1_Environment_fieldAccessorTable
+      return com.google.cloud.notebooks.v1.EnvironmentProto
+          .internal_static_google_cloud_notebooks_v1_Environment_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.notebooks.v1.Environment.class, com.google.cloud.notebooks.v1.Environment.Builder.class);
+              com.google.cloud.notebooks.v1.Environment.class,
+              com.google.cloud.notebooks.v1.Environment.Builder.class);
     }
 
     // Construct using com.google.cloud.notebooks.v1.Environment.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -712,9 +777,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.notebooks.v1.EnvironmentProto.internal_static_google_cloud_notebooks_v1_Environment_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.notebooks.v1.EnvironmentProto
+          .internal_static_google_cloud_notebooks_v1_Environment_descriptor;
     }
 
     @java.lang.Override
@@ -733,7 +798,8 @@ public com.google.cloud.notebooks.v1.Environment build() {
 
     @java.lang.Override
     public com.google.cloud.notebooks.v1.Environment buildPartial() {
-      com.google.cloud.notebooks.v1.Environment result = new com.google.cloud.notebooks.v1.Environment(this);
+      com.google.cloud.notebooks.v1.Environment result =
+          new com.google.cloud.notebooks.v1.Environment(this);
       result.name_ = name_;
       result.displayName_ = displayName_;
       result.description_ = description_;
@@ -766,38 +832,39 @@ public com.google.cloud.notebooks.v1.Environment buildPartial() {
     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.cloud.notebooks.v1.Environment) {
-        return mergeFrom((com.google.cloud.notebooks.v1.Environment)other);
+        return mergeFrom((com.google.cloud.notebooks.v1.Environment) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -826,17 +893,20 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.Environment other) {
         mergeCreateTime(other.getCreateTime());
       }
       switch (other.getImageTypeCase()) {
-        case VM_IMAGE: {
-          mergeVmImage(other.getVmImage());
-          break;
-        }
-        case CONTAINER_IMAGE: {
-          mergeContainerImage(other.getContainerImage());
-          break;
-        }
-        case IMAGETYPE_NOT_SET: {
-          break;
-        }
+        case VM_IMAGE:
+          {
+            mergeVmImage(other.getVmImage());
+            break;
+          }
+        case CONTAINER_IMAGE:
+          {
+            mergeContainerImage(other.getContainerImage());
+            break;
+          }
+        case IMAGETYPE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -864,53 +934,55 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            case 18: {
-              displayName_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 18
-            case 26: {
-              description_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 26
-            case 50: {
-              input.readMessage(
-                  getVmImageFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              imageTypeCase_ = 6;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getContainerImageFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              imageTypeCase_ = 7;
-              break;
-            } // case 58
-            case 66: {
-              postStartupScript_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 66
-            case 74: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 74
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            case 18:
+              {
+                displayName_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 18
+            case 26:
+              {
+                description_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 26
+            case 50:
+              {
+                input.readMessage(getVmImageFieldBuilder().getBuilder(), extensionRegistry);
+                imageTypeCase_ = 6;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getContainerImageFieldBuilder().getBuilder(), extensionRegistry);
+                imageTypeCase_ = 7;
+                break;
+              } // case 58
+            case 66:
+              {
+                postStartupScript_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 66
+            case 74:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 74
+            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) {
@@ -920,12 +992,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int imageTypeCase_ = 0;
     private java.lang.Object imageType_;
-    public ImageTypeCase
-        getImageTypeCase() {
-      return ImageTypeCase.forNumber(
-          imageTypeCase_);
+
+    public ImageTypeCase getImageTypeCase() {
+      return ImageTypeCase.forNumber(imageTypeCase_);
     }
 
     public Builder clearImageType() {
@@ -935,9 +1007,10 @@ public Builder clearImageType() {
       return this;
     }
 
-
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. Name of this environment.
      * Format:
@@ -945,13 +1018,13 @@ public Builder clearImageType() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -960,6 +1033,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Name of this environment.
      * Format:
@@ -967,15 +1042,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -983,6 +1057,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Name of this environment.
      * Format:
@@ -990,20 +1066,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Name of this environment.
      * Format:
@@ -1011,15 +1089,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. Name of this environment.
      * Format:
@@ -1027,16 +1108,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1044,18 +1125,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Display name of this environment for the UI.
      * 
* * string display_name = 2; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1064,20 +1147,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Display name of this environment for the UI.
      * 
* * string display_name = 2; + * * @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 { @@ -1085,54 +1169,61 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Display name of this environment for the UI.
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * Display name of this environment for the UI.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * Display name of this environment for the UI.
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1140,18 +1231,20 @@ public Builder setDisplayNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * A brief description of this environment.
      * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1160,20 +1253,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A brief description of this environment.
      * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1181,67 +1275,80 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A brief description of this environment.
      * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * A brief description of this environment.
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * A brief description of this environment.
      * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.VmImage, com.google.cloud.notebooks.v1.VmImage.Builder, com.google.cloud.notebooks.v1.VmImageOrBuilder> vmImageBuilder_; + com.google.cloud.notebooks.v1.VmImage, + com.google.cloud.notebooks.v1.VmImage.Builder, + com.google.cloud.notebooks.v1.VmImageOrBuilder> + vmImageBuilder_; /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
* * .google.cloud.notebooks.v1.VmImage vm_image = 6; + * * @return Whether the vmImage field is set. */ @java.lang.Override @@ -1249,11 +1356,14 @@ public boolean hasVmImage() { return imageTypeCase_ == 6; } /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
* * .google.cloud.notebooks.v1.VmImage vm_image = 6; + * * @return The vmImage. */ @java.lang.Override @@ -1271,6 +1381,8 @@ public com.google.cloud.notebooks.v1.VmImage getVmImage() { } } /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
@@ -1291,14 +1403,15 @@ public Builder setVmImage(com.google.cloud.notebooks.v1.VmImage value) { return this; } /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
* * .google.cloud.notebooks.v1.VmImage vm_image = 6; */ - public Builder setVmImage( - com.google.cloud.notebooks.v1.VmImage.Builder builderForValue) { + public Builder setVmImage(com.google.cloud.notebooks.v1.VmImage.Builder builderForValue) { if (vmImageBuilder_ == null) { imageType_ = builderForValue.build(); onChanged(); @@ -1309,6 +1422,8 @@ public Builder setVmImage( return this; } /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
@@ -1317,10 +1432,13 @@ public Builder setVmImage( */ public Builder mergeVmImage(com.google.cloud.notebooks.v1.VmImage value) { if (vmImageBuilder_ == null) { - if (imageTypeCase_ == 6 && - imageType_ != com.google.cloud.notebooks.v1.VmImage.getDefaultInstance()) { - imageType_ = com.google.cloud.notebooks.v1.VmImage.newBuilder((com.google.cloud.notebooks.v1.VmImage) imageType_) - .mergeFrom(value).buildPartial(); + if (imageTypeCase_ == 6 + && imageType_ != com.google.cloud.notebooks.v1.VmImage.getDefaultInstance()) { + imageType_ = + com.google.cloud.notebooks.v1.VmImage.newBuilder( + (com.google.cloud.notebooks.v1.VmImage) imageType_) + .mergeFrom(value) + .buildPartial(); } else { imageType_ = value; } @@ -1336,6 +1454,8 @@ public Builder mergeVmImage(com.google.cloud.notebooks.v1.VmImage value) { return this; } /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
@@ -1359,6 +1479,8 @@ public Builder clearVmImage() { return this; } /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
@@ -1369,6 +1491,8 @@ public com.google.cloud.notebooks.v1.VmImage.Builder getVmImageBuilder() { return getVmImageFieldBuilder().getBuilder(); } /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
@@ -1387,6 +1511,8 @@ public com.google.cloud.notebooks.v1.VmImageOrBuilder getVmImageOrBuilder() { } } /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
@@ -1394,32 +1520,44 @@ public com.google.cloud.notebooks.v1.VmImageOrBuilder getVmImageOrBuilder() { * .google.cloud.notebooks.v1.VmImage vm_image = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.VmImage, com.google.cloud.notebooks.v1.VmImage.Builder, com.google.cloud.notebooks.v1.VmImageOrBuilder> + com.google.cloud.notebooks.v1.VmImage, + com.google.cloud.notebooks.v1.VmImage.Builder, + com.google.cloud.notebooks.v1.VmImageOrBuilder> getVmImageFieldBuilder() { if (vmImageBuilder_ == null) { if (!(imageTypeCase_ == 6)) { imageType_ = com.google.cloud.notebooks.v1.VmImage.getDefaultInstance(); } - vmImageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.VmImage, com.google.cloud.notebooks.v1.VmImage.Builder, com.google.cloud.notebooks.v1.VmImageOrBuilder>( + vmImageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.VmImage, + com.google.cloud.notebooks.v1.VmImage.Builder, + com.google.cloud.notebooks.v1.VmImageOrBuilder>( (com.google.cloud.notebooks.v1.VmImage) imageType_, getParentForChildren(), isClean()); imageType_ = null; } imageTypeCase_ = 6; - onChanged();; + onChanged(); + ; return vmImageBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.ContainerImage, com.google.cloud.notebooks.v1.ContainerImage.Builder, com.google.cloud.notebooks.v1.ContainerImageOrBuilder> containerImageBuilder_; + com.google.cloud.notebooks.v1.ContainerImage, + com.google.cloud.notebooks.v1.ContainerImage.Builder, + com.google.cloud.notebooks.v1.ContainerImageOrBuilder> + containerImageBuilder_; /** + * + * *
      * Use a container image to start the notebook instance.
      * 
* * .google.cloud.notebooks.v1.ContainerImage container_image = 7; + * * @return Whether the containerImage field is set. */ @java.lang.Override @@ -1427,11 +1565,14 @@ public boolean hasContainerImage() { return imageTypeCase_ == 7; } /** + * + * *
      * Use a container image to start the notebook instance.
      * 
* * .google.cloud.notebooks.v1.ContainerImage container_image = 7; + * * @return The containerImage. */ @java.lang.Override @@ -1449,6 +1590,8 @@ public com.google.cloud.notebooks.v1.ContainerImage getContainerImage() { } } /** + * + * *
      * Use a container image to start the notebook instance.
      * 
@@ -1469,6 +1612,8 @@ public Builder setContainerImage(com.google.cloud.notebooks.v1.ContainerImage va return this; } /** + * + * *
      * Use a container image to start the notebook instance.
      * 
@@ -1487,6 +1632,8 @@ public Builder setContainerImage( return this; } /** + * + * *
      * Use a container image to start the notebook instance.
      * 
@@ -1495,10 +1642,13 @@ public Builder setContainerImage( */ public Builder mergeContainerImage(com.google.cloud.notebooks.v1.ContainerImage value) { if (containerImageBuilder_ == null) { - if (imageTypeCase_ == 7 && - imageType_ != com.google.cloud.notebooks.v1.ContainerImage.getDefaultInstance()) { - imageType_ = com.google.cloud.notebooks.v1.ContainerImage.newBuilder((com.google.cloud.notebooks.v1.ContainerImage) imageType_) - .mergeFrom(value).buildPartial(); + if (imageTypeCase_ == 7 + && imageType_ != com.google.cloud.notebooks.v1.ContainerImage.getDefaultInstance()) { + imageType_ = + com.google.cloud.notebooks.v1.ContainerImage.newBuilder( + (com.google.cloud.notebooks.v1.ContainerImage) imageType_) + .mergeFrom(value) + .buildPartial(); } else { imageType_ = value; } @@ -1514,6 +1664,8 @@ public Builder mergeContainerImage(com.google.cloud.notebooks.v1.ContainerImage return this; } /** + * + * *
      * Use a container image to start the notebook instance.
      * 
@@ -1537,6 +1689,8 @@ public Builder clearContainerImage() { return this; } /** + * + * *
      * Use a container image to start the notebook instance.
      * 
@@ -1547,6 +1701,8 @@ public com.google.cloud.notebooks.v1.ContainerImage.Builder getContainerImageBui return getContainerImageFieldBuilder().getBuilder(); } /** + * + * *
      * Use a container image to start the notebook instance.
      * 
@@ -1565,6 +1721,8 @@ public com.google.cloud.notebooks.v1.ContainerImageOrBuilder getContainerImageOr } } /** + * + * *
      * Use a container image to start the notebook instance.
      * 
@@ -1572,26 +1730,34 @@ public com.google.cloud.notebooks.v1.ContainerImageOrBuilder getContainerImageOr * .google.cloud.notebooks.v1.ContainerImage container_image = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.ContainerImage, com.google.cloud.notebooks.v1.ContainerImage.Builder, com.google.cloud.notebooks.v1.ContainerImageOrBuilder> + com.google.cloud.notebooks.v1.ContainerImage, + com.google.cloud.notebooks.v1.ContainerImage.Builder, + com.google.cloud.notebooks.v1.ContainerImageOrBuilder> getContainerImageFieldBuilder() { if (containerImageBuilder_ == null) { if (!(imageTypeCase_ == 7)) { imageType_ = com.google.cloud.notebooks.v1.ContainerImage.getDefaultInstance(); } - containerImageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.ContainerImage, com.google.cloud.notebooks.v1.ContainerImage.Builder, com.google.cloud.notebooks.v1.ContainerImageOrBuilder>( + containerImageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.ContainerImage, + com.google.cloud.notebooks.v1.ContainerImage.Builder, + com.google.cloud.notebooks.v1.ContainerImageOrBuilder>( (com.google.cloud.notebooks.v1.ContainerImage) imageType_, getParentForChildren(), isClean()); imageType_ = null; } imageTypeCase_ = 7; - onChanged();; + onChanged(); + ; return containerImageBuilder_; } private java.lang.Object postStartupScript_ = ""; /** + * + * *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
@@ -1599,13 +1765,13 @@ public com.google.cloud.notebooks.v1.ContainerImageOrBuilder getContainerImageOr
      * 
* * string post_startup_script = 8; + * * @return The postStartupScript. */ public java.lang.String getPostStartupScript() { java.lang.Object ref = postStartupScript_; 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(); postStartupScript_ = s; return s; @@ -1614,6 +1780,8 @@ public java.lang.String getPostStartupScript() { } } /** + * + * *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
@@ -1621,15 +1789,14 @@ public java.lang.String getPostStartupScript() {
      * 
* * string post_startup_script = 8; + * * @return The bytes for postStartupScript. */ - public com.google.protobuf.ByteString - getPostStartupScriptBytes() { + public com.google.protobuf.ByteString getPostStartupScriptBytes() { java.lang.Object ref = postStartupScript_; 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); postStartupScript_ = b; return b; } else { @@ -1637,6 +1804,8 @@ public java.lang.String getPostStartupScript() { } } /** + * + * *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
@@ -1644,20 +1813,22 @@ public java.lang.String getPostStartupScript() {
      * 
* * string post_startup_script = 8; + * * @param value The postStartupScript to set. * @return This builder for chaining. */ - public Builder setPostStartupScript( - java.lang.String value) { + public Builder setPostStartupScript(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + postStartupScript_ = value; onChanged(); return this; } /** + * + * *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
@@ -1665,15 +1836,18 @@ public Builder setPostStartupScript(
      * 
* * string post_startup_script = 8; + * * @return This builder for chaining. */ public Builder clearPostStartupScript() { - + postStartupScript_ = getDefaultInstance().getPostStartupScript(); onChanged(); return this; } /** + * + * *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
@@ -1681,16 +1855,16 @@ public Builder clearPostStartupScript() {
      * 
* * string post_startup_script = 8; + * * @param value The bytes for postStartupScript to set. * @return This builder for chaining. */ - public Builder setPostStartupScriptBytes( - com.google.protobuf.ByteString value) { + public Builder setPostStartupScriptBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + postStartupScript_ = value; onChanged(); return this; @@ -1698,39 +1872,58 @@ public Builder setPostStartupScriptBytes( 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_; /** + * + * *
      * Output only. The time at which this environment was created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The time at which this environment was created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which this environment was created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1746,14 +1939,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this environment was created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1764,17 +1960,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time at which this environment was created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1786,11 +1986,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this environment was created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1804,55 +2008,71 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time at which this environment was created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this environment was created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time at which this environment was created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; } + @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); } @@ -1862,12 +2082,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.Environment) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.Environment) private static final com.google.cloud.notebooks.v1.Environment DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.Environment(); } @@ -1876,27 +2096,27 @@ public static com.google.cloud.notebooks.v1.Environment getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Environment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Environment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -1911,6 +2131,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.Environment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EnvironmentOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EnvironmentOrBuilder.java similarity index 78% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EnvironmentOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EnvironmentOrBuilder.java index a929cda50ce0..808d030aed16 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EnvironmentOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EnvironmentOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/environment.proto package com.google.cloud.notebooks.v1; -public interface EnvironmentOrBuilder extends +public interface EnvironmentOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.Environment) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Name of this environment.
    * Format:
@@ -15,10 +33,13 @@ public interface EnvironmentOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Name of this environment.
    * Format:
@@ -26,70 +47,88 @@ public interface EnvironmentOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Display name of this environment for the UI.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Display name of this environment for the UI.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * A brief description of this environment.
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * A brief description of this environment.
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Use a Compute Engine VM image to start the notebook instance.
    * 
* * .google.cloud.notebooks.v1.VmImage vm_image = 6; + * * @return Whether the vmImage field is set. */ boolean hasVmImage(); /** + * + * *
    * Use a Compute Engine VM image to start the notebook instance.
    * 
* * .google.cloud.notebooks.v1.VmImage vm_image = 6; + * * @return The vmImage. */ com.google.cloud.notebooks.v1.VmImage getVmImage(); /** + * + * *
    * Use a Compute Engine VM image to start the notebook instance.
    * 
@@ -99,24 +138,32 @@ public interface EnvironmentOrBuilder extends com.google.cloud.notebooks.v1.VmImageOrBuilder getVmImageOrBuilder(); /** + * + * *
    * Use a container image to start the notebook instance.
    * 
* * .google.cloud.notebooks.v1.ContainerImage container_image = 7; + * * @return Whether the containerImage field is set. */ boolean hasContainerImage(); /** + * + * *
    * Use a container image to start the notebook instance.
    * 
* * .google.cloud.notebooks.v1.ContainerImage container_image = 7; + * * @return The containerImage. */ com.google.cloud.notebooks.v1.ContainerImage getContainerImage(); /** + * + * *
    * Use a container image to start the notebook instance.
    * 
@@ -126,6 +173,8 @@ public interface EnvironmentOrBuilder extends com.google.cloud.notebooks.v1.ContainerImageOrBuilder getContainerImageOrBuilder(); /** + * + * *
    * Path to a Bash script that automatically runs after a notebook instance
    * fully boots up. The path must be a URL or
@@ -133,10 +182,13 @@ public interface EnvironmentOrBuilder extends
    * 
* * string post_startup_script = 8; + * * @return The postStartupScript. */ java.lang.String getPostStartupScript(); /** + * + * *
    * Path to a Bash script that automatically runs after a notebook instance
    * fully boots up. The path must be a URL or
@@ -144,35 +196,46 @@ public interface EnvironmentOrBuilder extends
    * 
* * string post_startup_script = 8; + * * @return The bytes for postStartupScript. */ - com.google.protobuf.ByteString - getPostStartupScriptBytes(); + com.google.protobuf.ByteString getPostStartupScriptBytes(); /** + * + * *
    * Output only. The time at which this environment was created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time at which this environment was created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time at which this environment was created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); diff --git a/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EnvironmentProto.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EnvironmentProto.java new file mode 100644 index 000000000000..8105e395f98e --- /dev/null +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EnvironmentProto.java @@ -0,0 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/notebooks/v1/environment.proto + +package com.google.cloud.notebooks.v1; + +public final class EnvironmentProto { + private EnvironmentProto() {} + + 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_cloud_notebooks_v1_Environment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_Environment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_VmImage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_VmImage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_ContainerImage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_ContainerImage_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/cloud/notebooks/v1/environment." + + "proto\022\031google.cloud.notebooks.v1\032\037google" + + "/api/field_behavior.proto\032\031google/api/re" + + "source.proto\032\037google/protobuf/timestamp." + + "proto\"\204\003\n\013Environment\022\021\n\004name\030\001 \001(\tB\003\340A\003" + + "\022\024\n\014display_name\030\002 \001(\t\022\023\n\013description\030\003 " + + "\001(\t\0226\n\010vm_image\030\006 \001(\0132\".google.cloud.not" + + "ebooks.v1.VmImageH\000\022D\n\017container_image\030\007" + + " \001(\0132).google.cloud.notebooks.v1.Contain" + + "erImageH\000\022\033\n\023post_startup_script\030\010 \001(\t\0224" + + "\n\013create_time\030\t \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003:X\352AU\n$notebooks.googleapis." + + "com/Environment\022-projects/{project}/envi" + + "ronments/{environment}B\014\n\nimage_type\"V\n\007" + + "VmImage\022\024\n\007project\030\001 \001(\tB\003\340A\002\022\024\n\nimage_n" + + "ame\030\002 \001(\tH\000\022\026\n\014image_family\030\003 \001(\tH\000B\007\n\005i" + + "mage\"6\n\016ContainerImage\022\027\n\nrepository\030\001 \001" + + "(\tB\003\340A\002\022\013\n\003tag\030\002 \001(\tB\316\001\n\035com.google.clou" + + "d.notebooks.v1B\020EnvironmentProtoP\001ZBgoog" + + "le.golang.org/genproto/googleapis/cloud/" + + "notebooks/v1;notebooks\252\002\031Google.Cloud.No" + + "tebooks.V1\312\002\031Google\\Cloud\\Notebooks\\V1\352\002" + + "\034Google::Cloud::Notebooks::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.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_notebooks_v1_Environment_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_notebooks_v1_Environment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_Environment_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "VmImage", + "ContainerImage", + "PostStartupScript", + "CreateTime", + "ImageType", + }); + internal_static_google_cloud_notebooks_v1_VmImage_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_notebooks_v1_VmImage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_VmImage_descriptor, + new java.lang.String[] { + "Project", "ImageName", "ImageFamily", "Image", + }); + internal_static_google_cloud_notebooks_v1_ContainerImage_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_notebooks_v1_ContainerImage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_ContainerImage_descriptor, + new java.lang.String[] { + "Repository", "Tag", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Event.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Event.java similarity index 65% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Event.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Event.java index d5dd16818bf5..0da42165fbaa 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Event.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Event.java @@ -1,75 +1,96 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/event.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * The definition of an Event for a managed / semi-managed notebook instance.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.Event} */ -public final class Event extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Event extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.Event) EventOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Event.newBuilder() to construct. private Event(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Event() { type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Event(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.EventProto.internal_static_google_cloud_notebooks_v1_Event_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.EventProto + .internal_static_google_cloud_notebooks_v1_Event_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 3: return internalGetDetails(); 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.cloud.notebooks.v1.EventProto.internal_static_google_cloud_notebooks_v1_Event_fieldAccessorTable + return com.google.cloud.notebooks.v1.EventProto + .internal_static_google_cloud_notebooks_v1_Event_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.Event.class, com.google.cloud.notebooks.v1.Event.Builder.class); + com.google.cloud.notebooks.v1.Event.class, + com.google.cloud.notebooks.v1.Event.Builder.class); } /** + * + * *
    * The definition of the event types.
    * 
* * Protobuf enum {@code google.cloud.notebooks.v1.Event.EventType} */ - public enum EventType - implements com.google.protobuf.ProtocolMessageEnum { + public enum EventType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Event is not specified.
      * 
@@ -78,6 +99,8 @@ public enum EventType */ EVENT_TYPE_UNSPECIFIED(0), /** + * + * *
      * The instance / runtime is idle
      * 
@@ -86,6 +109,8 @@ public enum EventType */ IDLE(1), /** + * + * *
      * The instance / runtime is available.
      * This event indicates that instance / runtime underlying compute is
@@ -96,6 +121,8 @@ public enum EventType
      */
     HEARTBEAT(2),
     /**
+     *
+     *
      * 
      * The instance / runtime health is available.
      * This event indicates that instance / runtime health information.
@@ -105,6 +132,8 @@ public enum EventType
      */
     HEALTH(3),
     /**
+     *
+     *
      * 
      * The instance / runtime is available.
      * This event allows instance / runtime to send Host maintenance
@@ -119,6 +148,8 @@ public enum EventType
     ;
 
     /**
+     *
+     *
      * 
      * Event is not specified.
      * 
@@ -127,6 +158,8 @@ public enum EventType */ public static final int EVENT_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The instance / runtime is idle
      * 
@@ -135,6 +168,8 @@ public enum EventType */ public static final int IDLE_VALUE = 1; /** + * + * *
      * The instance / runtime is available.
      * This event indicates that instance / runtime underlying compute is
@@ -145,6 +180,8 @@ public enum EventType
      */
     public static final int HEARTBEAT_VALUE = 2;
     /**
+     *
+     *
      * 
      * The instance / runtime health is available.
      * This event indicates that instance / runtime health information.
@@ -154,6 +191,8 @@ public enum EventType
      */
     public static final int HEALTH_VALUE = 3;
     /**
+     *
+     *
      * 
      * The instance / runtime is available.
      * This event allows instance / runtime to send Host maintenance
@@ -165,7 +204,6 @@ public enum EventType
      */
     public static final int MAINTENANCE_VALUE = 4;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -190,51 +228,53 @@ public static EventType valueOf(int value) {
      */
     public static EventType forNumber(int value) {
       switch (value) {
-        case 0: return EVENT_TYPE_UNSPECIFIED;
-        case 1: return IDLE;
-        case 2: return HEARTBEAT;
-        case 3: return HEALTH;
-        case 4: return MAINTENANCE;
-        default: return null;
+        case 0:
+          return EVENT_TYPE_UNSPECIFIED;
+        case 1:
+          return IDLE;
+        case 2:
+          return HEARTBEAT;
+        case 3:
+          return HEALTH;
+        case 4:
+          return MAINTENANCE;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        EventType> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public EventType findValueByNumber(int number) {
-              return EventType.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public EventType findValueByNumber(int number) {
+            return EventType.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.cloud.notebooks.v1.Event.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final EventType[] VALUES = values();
 
-    public static EventType valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static EventType 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;
@@ -254,11 +294,14 @@ private EventType(int value) {
   public static final int REPORT_TIME_FIELD_NUMBER = 1;
   private com.google.protobuf.Timestamp reportTime_;
   /**
+   *
+   *
    * 
    * Event report time.
    * 
* * .google.protobuf.Timestamp report_time = 1; + * * @return Whether the reportTime field is set. */ @java.lang.Override @@ -266,11 +309,14 @@ public boolean hasReportTime() { return reportTime_ != null; } /** + * + * *
    * Event report time.
    * 
* * .google.protobuf.Timestamp report_time = 1; + * * @return The reportTime. */ @java.lang.Override @@ -278,6 +324,8 @@ public com.google.protobuf.Timestamp getReportTime() { return reportTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : reportTime_; } /** + * + * *
    * Event report time.
    * 
@@ -292,49 +340,57 @@ public com.google.protobuf.TimestampOrBuilder getReportTimeOrBuilder() { public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** + * + * *
    * Event type.
    * 
* * .google.cloud.notebooks.v1.Event.EventType type = 2; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * Event type.
    * 
* * .google.cloud.notebooks.v1.Event.EventType type = 2; + * * @return The type. */ - @java.lang.Override public com.google.cloud.notebooks.v1.Event.EventType getType() { + @java.lang.Override + public com.google.cloud.notebooks.v1.Event.EventType getType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.Event.EventType result = com.google.cloud.notebooks.v1.Event.EventType.valueOf(type_); + com.google.cloud.notebooks.v1.Event.EventType result = + com.google.cloud.notebooks.v1.Event.EventType.valueOf(type_); return result == null ? com.google.cloud.notebooks.v1.Event.EventType.UNRECOGNIZED : result; } public static final int DETAILS_FIELD_NUMBER = 3; + private static final class DetailsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.notebooks.v1.EventProto.internal_static_google_cloud_notebooks_v1_Event_DetailsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.notebooks.v1.EventProto + .internal_static_google_cloud_notebooks_v1_Event_DetailsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> details_; - private com.google.protobuf.MapField - internalGetDetails() { + + private com.google.protobuf.MapField details_; + + private com.google.protobuf.MapField internalGetDetails() { if (details_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DetailsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(DetailsDefaultEntryHolder.defaultEntry); } return details_; } @@ -343,28 +399,30 @@ public int getDetailsCount() { return internalGetDetails().getMap().size(); } /** + * + * *
    * Optional. Event details. This field is used to pass event information.
    * 
* * map<string, string> details = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - @java.lang.Override - public boolean containsDetails( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsDetails(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetDetails().getMap().containsKey(key); } - /** - * Use {@link #getDetailsMap()} instead. - */ + /** Use {@link #getDetailsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getDetails() { return getDetailsMap(); } /** + * + * *
    * Optional. Event details. This field is used to pass event information.
    * 
@@ -372,11 +430,12 @@ public java.util.Map getDetails() { * map<string, string> details = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map getDetailsMap() { return internalGetDetails().getMap(); } /** + * + * *
    * Optional. Event details. This field is used to pass event information.
    * 
@@ -384,16 +443,16 @@ public java.util.Map getDetailsMap() { * map<string, string> details = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - - public java.lang.String getDetailsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetDetails().getMap(); + public java.lang.String getDetailsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDetails().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Optional. Event details. This field is used to pass event information.
    * 
@@ -401,12 +460,11 @@ public java.lang.String getDetailsOrDefault( * map<string, string> details = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - - public java.lang.String getDetailsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetDetails().getMap(); + public java.lang.String getDetailsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDetails().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -414,6 +472,7 @@ public java.lang.String getDetailsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -425,20 +484,15 @@ 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 (reportTime_ != null) { output.writeMessage(1, getReportTime()); } if (type_ != com.google.cloud.notebooks.v1.Event.EventType.EVENT_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetDetails(), - DetailsDefaultEntryHolder.defaultEntry, - 3); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetDetails(), DetailsDefaultEntryHolder.defaultEntry, 3); getUnknownFields().writeTo(output); } @@ -449,22 +503,20 @@ public int getSerializedSize() { size = 0; if (reportTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getReportTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getReportTime()); } if (type_ != com.google.cloud.notebooks.v1.Event.EventType.EVENT_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); - } - for (java.util.Map.Entry entry - : internalGetDetails().getMap().entrySet()) { - com.google.protobuf.MapEntry - details__ = DetailsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, details__); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + } + for (java.util.Map.Entry entry : + internalGetDetails().getMap().entrySet()) { + com.google.protobuf.MapEntry details__ = + DetailsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, details__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -474,7 +526,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.cloud.notebooks.v1.Event)) { return super.equals(obj); @@ -483,12 +535,10 @@ public boolean equals(final java.lang.Object obj) { if (hasReportTime() != other.hasReportTime()) return false; if (hasReportTime()) { - if (!getReportTime() - .equals(other.getReportTime())) return false; + if (!getReportTime().equals(other.getReportTime())) return false; } if (type_ != other.type_) return false; - if (!internalGetDetails().equals( - other.internalGetDetails())) return false; + if (!internalGetDetails().equals(other.internalGetDetails())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -515,152 +565,155 @@ public int hashCode() { return hash; } - public static com.google.cloud.notebooks.v1.Event parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.notebooks.v1.Event parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.Event 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.cloud.notebooks.v1.Event parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.notebooks.v1.Event parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.Event parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.Event parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.Event 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.cloud.notebooks.v1.Event 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.cloud.notebooks.v1.Event 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.cloud.notebooks.v1.Event 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.cloud.notebooks.v1.Event 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.cloud.notebooks.v1.Event 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.cloud.notebooks.v1.Event 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.cloud.notebooks.v1.Event 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; } /** + * + * *
    * The definition of an Event for a managed / semi-managed notebook instance.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.Event} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.Event) com.google.cloud.notebooks.v1.EventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.EventProto.internal_static_google_cloud_notebooks_v1_Event_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.EventProto + .internal_static_google_cloud_notebooks_v1_Event_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetDetails(); 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 3: return internalGetMutableDetails(); 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.cloud.notebooks.v1.EventProto.internal_static_google_cloud_notebooks_v1_Event_fieldAccessorTable + return com.google.cloud.notebooks.v1.EventProto + .internal_static_google_cloud_notebooks_v1_Event_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.Event.class, com.google.cloud.notebooks.v1.Event.Builder.class); + com.google.cloud.notebooks.v1.Event.class, + com.google.cloud.notebooks.v1.Event.Builder.class); } // Construct using com.google.cloud.notebooks.v1.Event.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -677,9 +730,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.EventProto.internal_static_google_cloud_notebooks_v1_Event_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.EventProto + .internal_static_google_cloud_notebooks_v1_Event_descriptor; } @java.lang.Override @@ -716,38 +769,39 @@ public com.google.cloud.notebooks.v1.Event buildPartial() { 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.cloud.notebooks.v1.Event) { - return mergeFrom((com.google.cloud.notebooks.v1.Event)other); + return mergeFrom((com.google.cloud.notebooks.v1.Event) other); } else { super.mergeFrom(other); return this; @@ -762,8 +816,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.Event other) { if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } - internalGetMutableDetails().mergeFrom( - other.internalGetDetails()); + internalGetMutableDetails().mergeFrom(other.internalGetDetails()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -790,32 +843,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getReportTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 16: { - type_ = input.readEnum(); - - break; - } // case 16 - case 26: { - com.google.protobuf.MapEntry - details__ = input.readMessage( - DetailsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableDetails().getMutableMap().put( - details__.getKey(), details__.getValue()); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getReportTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + + break; + } // case 16 + case 26: + { + com.google.protobuf.MapEntry details__ = + input.readMessage( + DetailsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableDetails() + .getMutableMap() + .put(details__.getKey(), details__.getValue()); + 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) { @@ -825,38 +882,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp reportTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> reportTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + reportTimeBuilder_; /** + * + * *
      * Event report time.
      * 
* * .google.protobuf.Timestamp report_time = 1; + * * @return Whether the reportTime field is set. */ public boolean hasReportTime() { return reportTimeBuilder_ != null || reportTime_ != null; } /** + * + * *
      * Event report time.
      * 
* * .google.protobuf.Timestamp report_time = 1; + * * @return The reportTime. */ public com.google.protobuf.Timestamp getReportTime() { if (reportTimeBuilder_ == null) { - return reportTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : reportTime_; + return reportTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : reportTime_; } else { return reportTimeBuilder_.getMessage(); } } /** + * + * *
      * Event report time.
      * 
@@ -877,14 +948,15 @@ public Builder setReportTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Event report time.
      * 
* * .google.protobuf.Timestamp report_time = 1; */ - public Builder setReportTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setReportTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (reportTimeBuilder_ == null) { reportTime_ = builderForValue.build(); onChanged(); @@ -895,6 +967,8 @@ public Builder setReportTime( return this; } /** + * + * *
      * Event report time.
      * 
@@ -905,7 +979,7 @@ public Builder mergeReportTime(com.google.protobuf.Timestamp value) { if (reportTimeBuilder_ == null) { if (reportTime_ != null) { reportTime_ = - com.google.protobuf.Timestamp.newBuilder(reportTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(reportTime_).mergeFrom(value).buildPartial(); } else { reportTime_ = value; } @@ -917,6 +991,8 @@ public Builder mergeReportTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Event report time.
      * 
@@ -935,6 +1011,8 @@ public Builder clearReportTime() { return this; } /** + * + * *
      * Event report time.
      * 
@@ -942,11 +1020,13 @@ public Builder clearReportTime() { * .google.protobuf.Timestamp report_time = 1; */ public com.google.protobuf.Timestamp.Builder getReportTimeBuilder() { - + onChanged(); return getReportTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Event report time.
      * 
@@ -957,11 +1037,14 @@ public com.google.protobuf.TimestampOrBuilder getReportTimeOrBuilder() { if (reportTimeBuilder_ != null) { return reportTimeBuilder_.getMessageOrBuilder(); } else { - return reportTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : reportTime_; + return reportTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : reportTime_; } } /** + * + * *
      * Event report time.
      * 
@@ -969,14 +1052,17 @@ public com.google.protobuf.TimestampOrBuilder getReportTimeOrBuilder() { * .google.protobuf.Timestamp report_time = 1; */ 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> getReportTimeFieldBuilder() { if (reportTimeBuilder_ == null) { - reportTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getReportTime(), - getParentForChildren(), - isClean()); + reportTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getReportTime(), getParentForChildren(), isClean()); reportTime_ = null; } return reportTimeBuilder_; @@ -984,51 +1070,65 @@ public com.google.protobuf.TimestampOrBuilder getReportTimeOrBuilder() { private int type_ = 0; /** + * + * *
      * Event type.
      * 
* * .google.cloud.notebooks.v1.Event.EventType type = 2; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Event type.
      * 
* * .google.cloud.notebooks.v1.Event.EventType type = 2; + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
      * Event type.
      * 
* * .google.cloud.notebooks.v1.Event.EventType type = 2; + * * @return The type. */ @java.lang.Override public com.google.cloud.notebooks.v1.Event.EventType getType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.Event.EventType result = com.google.cloud.notebooks.v1.Event.EventType.valueOf(type_); + com.google.cloud.notebooks.v1.Event.EventType result = + com.google.cloud.notebooks.v1.Event.EventType.valueOf(type_); return result == null ? com.google.cloud.notebooks.v1.Event.EventType.UNRECOGNIZED : result; } /** + * + * *
      * Event type.
      * 
* * .google.cloud.notebooks.v1.Event.EventType type = 2; + * * @param value The type to set. * @return This builder for chaining. */ @@ -1036,42 +1136,44 @@ public Builder setType(com.google.cloud.notebooks.v1.Event.EventType value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Event type.
      * 
* * .google.cloud.notebooks.v1.Event.EventType type = 2; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> details_; - private com.google.protobuf.MapField - internalGetDetails() { + private com.google.protobuf.MapField details_; + + private com.google.protobuf.MapField internalGetDetails() { if (details_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DetailsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(DetailsDefaultEntryHolder.defaultEntry); } return details_; } + private com.google.protobuf.MapField - internalGetMutableDetails() { - onChanged();; + internalGetMutableDetails() { + onChanged(); + ; if (details_ == null) { - details_ = com.google.protobuf.MapField.newMapField( - DetailsDefaultEntryHolder.defaultEntry); + details_ = com.google.protobuf.MapField.newMapField(DetailsDefaultEntryHolder.defaultEntry); } if (!details_.isMutable()) { details_ = details_.copy(); @@ -1083,28 +1185,30 @@ public int getDetailsCount() { return internalGetDetails().getMap().size(); } /** + * + * *
      * Optional. Event details. This field is used to pass event information.
      * 
* * map<string, string> details = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - @java.lang.Override - public boolean containsDetails( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsDetails(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetDetails().getMap().containsKey(key); } - /** - * Use {@link #getDetailsMap()} instead. - */ + /** Use {@link #getDetailsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getDetails() { return getDetailsMap(); } /** + * + * *
      * Optional. Event details. This field is used to pass event information.
      * 
@@ -1112,11 +1216,12 @@ public java.util.Map getDetails() { * map<string, string> details = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.util.Map getDetailsMap() { return internalGetDetails().getMap(); } /** + * + * *
      * Optional. Event details. This field is used to pass event information.
      * 
@@ -1124,16 +1229,17 @@ public java.util.Map getDetailsMap() { * map<string, string> details = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getDetailsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetDetails().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDetails().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. Event details. This field is used to pass event information.
      * 
@@ -1141,12 +1247,11 @@ public java.lang.String getDetailsOrDefault( * map<string, string> details = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - - public java.lang.String getDetailsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetDetails().getMap(); + public java.lang.String getDetailsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDetails().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1154,69 +1259,66 @@ public java.lang.String getDetailsOrThrow( } public Builder clearDetails() { - internalGetMutableDetails().getMutableMap() - .clear(); + internalGetMutableDetails().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. Event details. This field is used to pass event information.
      * 
* * map<string, string> details = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - - public Builder removeDetails( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableDetails().getMutableMap() - .remove(key); + public Builder removeDetails(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableDetails().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableDetails() { + public java.util.Map getMutableDetails() { return internalGetMutableDetails().getMutableMap(); } /** + * + * *
      * Optional. Event details. This field is used to pass event information.
      * 
* * map<string, string> details = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder putDetails( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putDetails(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableDetails().getMutableMap() - .put(key, value); + internalGetMutableDetails().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. Event details. This field is used to pass event information.
      * 
* * map<string, string> details = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - - public Builder putAllDetails( - java.util.Map values) { - internalGetMutableDetails().getMutableMap() - .putAll(values); + public Builder putAllDetails(java.util.Map values) { + internalGetMutableDetails().getMutableMap().putAll(values); 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); } @@ -1226,12 +1328,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.Event) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.Event) private static final com.google.cloud.notebooks.v1.Event DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.Event(); } @@ -1240,27 +1342,27 @@ public static com.google.cloud.notebooks.v1.Event getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Event parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Event parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -1275,6 +1377,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.Event getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EventOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EventOrBuilder.java similarity index 68% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EventOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EventOrBuilder.java index e37e6bf634ae..5024b3e71f7e 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EventOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EventOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/event.proto package com.google.cloud.notebooks.v1; -public interface EventOrBuilder extends +public interface EventOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.Event) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Event report time.
    * 
* * .google.protobuf.Timestamp report_time = 1; + * * @return Whether the reportTime field is set. */ boolean hasReportTime(); /** + * + * *
    * Event report time.
    * 
* * .google.protobuf.Timestamp report_time = 1; + * * @return The reportTime. */ com.google.protobuf.Timestamp getReportTime(); /** + * + * *
    * Event report time.
    * 
@@ -35,25 +59,33 @@ public interface EventOrBuilder extends com.google.protobuf.TimestampOrBuilder getReportTimeOrBuilder(); /** + * + * *
    * Event type.
    * 
* * .google.cloud.notebooks.v1.Event.EventType type = 2; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * Event type.
    * 
* * .google.cloud.notebooks.v1.Event.EventType type = 2; + * * @return The type. */ com.google.cloud.notebooks.v1.Event.EventType getType(); /** + * + * *
    * Optional. Event details. This field is used to pass event information.
    * 
@@ -62,30 +94,31 @@ public interface EventOrBuilder extends */ int getDetailsCount(); /** + * + * *
    * Optional. Event details. This field is used to pass event information.
    * 
* * map<string, string> details = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - boolean containsDetails( - java.lang.String key); - /** - * Use {@link #getDetailsMap()} instead. - */ + boolean containsDetails(java.lang.String key); + /** Use {@link #getDetailsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getDetails(); + java.util.Map getDetails(); /** + * + * *
    * Optional. Event details. This field is used to pass event information.
    * 
* * map<string, string> details = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map - getDetailsMap(); + java.util.Map getDetailsMap(); /** + * + * *
    * Optional. Event details. This field is used to pass event information.
    * 
@@ -94,18 +127,18 @@ boolean containsDetails( */ /* nullable */ -java.lang.String getDetailsOrDefault( + java.lang.String getDetailsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Optional. Event details. This field is used to pass event information.
    * 
* * map<string, string> details = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - - java.lang.String getDetailsOrThrow( - java.lang.String key); + java.lang.String getDetailsOrThrow(java.lang.String key); } diff --git a/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EventProto.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EventProto.java new file mode 100644 index 000000000000..93cb8451c8a7 --- /dev/null +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EventProto.java @@ -0,0 +1,96 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/notebooks/v1/event.proto + +package com.google.cloud.notebooks.v1; + +public final class EventProto { + private EventProto() {} + + 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_cloud_notebooks_v1_Event_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_Event_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_Event_DetailsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_Event_DetailsEntry_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/cloud/notebooks/v1/event.proto\022" + + "\031google.cloud.notebooks.v1\032\037google/api/f" + + "ield_behavior.proto\032\037google/protobuf/tim" + + "estamp.proto\"\306\002\n\005Event\022/\n\013report_time\030\001 " + + "\001(\0132\032.google.protobuf.Timestamp\0228\n\004type\030" + + "\002 \001(\0162*.google.cloud.notebooks.v1.Event." + + "EventType\022C\n\007details\030\003 \003(\0132-.google.clou" + + "d.notebooks.v1.Event.DetailsEntryB\003\340A\001\032." + + "\n\014DetailsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001\"]\n\tEventType\022\032\n\026EVENT_TYPE_UNSPEC" + + "IFIED\020\000\022\010\n\004IDLE\020\001\022\r\n\tHEARTBEAT\020\002\022\n\n\006HEAL" + + "TH\020\003\022\017\n\013MAINTENANCE\020\004Bq\n\035com.google.clou" + + "d.notebooks.v1B\nEventProtoP\001ZBgoogle.gol" + + "ang.org/genproto/googleapis/cloud/notebo" + + "oks/v1;notebooksb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_notebooks_v1_Event_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_notebooks_v1_Event_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_Event_descriptor, + new java.lang.String[] { + "ReportTime", "Type", "Details", + }); + internal_static_google_cloud_notebooks_v1_Event_DetailsEntry_descriptor = + internal_static_google_cloud_notebooks_v1_Event_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_notebooks_v1_Event_DetailsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_Event_DetailsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Execution.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Execution.java similarity index 70% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Execution.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Execution.java index ee386b01febf..cdd4b3f2d740 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Execution.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Execution.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/execution.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * The definition of a single executed notebook.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.Execution} */ -public final class Execution extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Execution extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.Execution) ExecutionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Execution.newBuilder() to construct. private Execution(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Execution() { name_ = ""; displayName_ = ""; @@ -30,39 +48,43 @@ private Execution() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Execution(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ExecutionProto.internal_static_google_cloud_notebooks_v1_Execution_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ExecutionProto + .internal_static_google_cloud_notebooks_v1_Execution_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ExecutionProto.internal_static_google_cloud_notebooks_v1_Execution_fieldAccessorTable + return com.google.cloud.notebooks.v1.ExecutionProto + .internal_static_google_cloud_notebooks_v1_Execution_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.Execution.class, com.google.cloud.notebooks.v1.Execution.Builder.class); + com.google.cloud.notebooks.v1.Execution.class, + com.google.cloud.notebooks.v1.Execution.Builder.class); } /** + * + * *
    * Enum description of the state of the underlying AIP job.
    * 
* * Protobuf enum {@code google.cloud.notebooks.v1.Execution.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The job state is unspecified.
      * 
@@ -71,6 +93,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The job has been just created and processing has not yet begun.
      * 
@@ -79,6 +103,8 @@ public enum State */ QUEUED(1), /** + * + * *
      * The service is preparing to execution the job.
      * 
@@ -87,6 +113,8 @@ public enum State */ PREPARING(2), /** + * + * *
      * The job is in progress.
      * 
@@ -95,6 +123,8 @@ public enum State */ RUNNING(3), /** + * + * *
      * The job completed successfully.
      * 
@@ -103,6 +133,8 @@ public enum State */ SUCCEEDED(4), /** + * + * *
      * The job failed.
      * `error_message` should contain the details of the failure.
@@ -112,6 +144,8 @@ public enum State
      */
     FAILED(5),
     /**
+     *
+     *
      * 
      * The job is being cancelled.
      * `error_message` should describe the reason for the cancellation.
@@ -121,6 +155,8 @@ public enum State
      */
     CANCELLING(6),
     /**
+     *
+     *
      * 
      * The job has been cancelled.
      * `error_message` should describe the reason for the cancellation.
@@ -130,6 +166,8 @@ public enum State
      */
     CANCELLED(7),
     /**
+     *
+     *
      * 
      * The job has become expired (relevant to Vertex AI jobs)
      * https://cloud.google.com/vertex-ai/docs/reference/rest/v1/JobState
@@ -139,6 +177,8 @@ public enum State
      */
     EXPIRED(9),
     /**
+     *
+     *
      * 
      * The Execution is being created.
      * 
@@ -150,6 +190,8 @@ public enum State ; /** + * + * *
      * The job state is unspecified.
      * 
@@ -158,6 +200,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The job has been just created and processing has not yet begun.
      * 
@@ -166,6 +210,8 @@ public enum State */ public static final int QUEUED_VALUE = 1; /** + * + * *
      * The service is preparing to execution the job.
      * 
@@ -174,6 +220,8 @@ public enum State */ public static final int PREPARING_VALUE = 2; /** + * + * *
      * The job is in progress.
      * 
@@ -182,6 +230,8 @@ public enum State */ public static final int RUNNING_VALUE = 3; /** + * + * *
      * The job completed successfully.
      * 
@@ -190,6 +240,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 4; /** + * + * *
      * The job failed.
      * `error_message` should contain the details of the failure.
@@ -199,6 +251,8 @@ public enum State
      */
     public static final int FAILED_VALUE = 5;
     /**
+     *
+     *
      * 
      * The job is being cancelled.
      * `error_message` should describe the reason for the cancellation.
@@ -208,6 +262,8 @@ public enum State
      */
     public static final int CANCELLING_VALUE = 6;
     /**
+     *
+     *
      * 
      * The job has been cancelled.
      * `error_message` should describe the reason for the cancellation.
@@ -217,6 +273,8 @@ public enum State
      */
     public static final int CANCELLED_VALUE = 7;
     /**
+     *
+     *
      * 
      * The job has become expired (relevant to Vertex AI jobs)
      * https://cloud.google.com/vertex-ai/docs/reference/rest/v1/JobState
@@ -226,6 +284,8 @@ public enum State
      */
     public static final int EXPIRED_VALUE = 9;
     /**
+     *
+     *
      * 
      * The Execution is being created.
      * 
@@ -234,7 +294,6 @@ public enum State */ public static final int INITIALIZING_VALUE = 10; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -259,56 +318,63 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return QUEUED; - case 2: return PREPARING; - case 3: return RUNNING; - case 4: return SUCCEEDED; - case 5: return FAILED; - case 6: return CANCELLING; - case 7: return CANCELLED; - case 9: return EXPIRED; - case 10: return INITIALIZING; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + case 0: + return STATE_UNSPECIFIED; + case 1: + return QUEUED; + case 2: + return PREPARING; + case 3: + return RUNNING; + case 4: + return SUCCEEDED; + case 5: + return FAILED; + case 6: + return CANCELLING; + case 7: + return CANCELLED; + case 9: + return EXPIRED; + case 10: + return INITIALIZING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.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.cloud.notebooks.v1.Execution.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; @@ -328,11 +394,14 @@ private State(int value) { public static final int EXECUTION_TEMPLATE_FIELD_NUMBER = 1; private com.google.cloud.notebooks.v1.ExecutionTemplate executionTemplate_; /** + * + * *
    * execute metadata including name, hardware spec, region, labels, etc.
    * 
* * .google.cloud.notebooks.v1.ExecutionTemplate execution_template = 1; + * * @return Whether the executionTemplate field is set. */ @java.lang.Override @@ -340,18 +409,25 @@ public boolean hasExecutionTemplate() { return executionTemplate_ != null; } /** + * + * *
    * execute metadata including name, hardware spec, region, labels, etc.
    * 
* * .google.cloud.notebooks.v1.ExecutionTemplate execution_template = 1; + * * @return The executionTemplate. */ @java.lang.Override public com.google.cloud.notebooks.v1.ExecutionTemplate getExecutionTemplate() { - return executionTemplate_ == null ? com.google.cloud.notebooks.v1.ExecutionTemplate.getDefaultInstance() : executionTemplate_; + return executionTemplate_ == null + ? com.google.cloud.notebooks.v1.ExecutionTemplate.getDefaultInstance() + : executionTemplate_; } /** + * + * *
    * execute metadata including name, hardware spec, region, labels, etc.
    * 
@@ -366,12 +442,15 @@ public com.google.cloud.notebooks.v1.ExecutionTemplateOrBuilder getExecutionTemp public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The resource name of the execute. Format:
    * `projects/{project_id}/locations/{location}/executions/{execution_id}`
    * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -380,30 +459,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; } } /** + * + * *
    * Output only. The resource name of the execute. Format:
    * `projects/{project_id}/locations/{location}/executions/{execution_id}`
    * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -414,12 +493,15 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object displayName_; /** + * + * *
    * Output only. Name used for UI purposes.
    * Name can only contain alphanumeric characters and underscores '_'.
    * 
* * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The displayName. */ @java.lang.Override @@ -428,30 +510,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; } } /** + * + * *
    * Output only. Name used for UI purposes.
    * Name can only contain alphanumeric characters and underscores '_'.
    * 
* * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -462,11 +544,14 @@ public java.lang.String getDisplayName() { public static final int DESCRIPTION_FIELD_NUMBER = 4; private volatile java.lang.Object description_; /** + * + * *
    * A brief description of this execution.
    * 
* * string description = 4; + * * @return The description. */ @java.lang.Override @@ -475,29 +560,29 @@ public java.lang.String getDescription() { 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(); description_ = s; return s; } } /** + * + * *
    * A brief description of this execution.
    * 
* * string description = 4; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -508,11 +593,15 @@ public java.lang.String getDescription() { public static final int CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Time the Execution was instantiated.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -520,11 +609,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Time the Execution was instantiated.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -532,11 +625,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Time the Execution was instantiated.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -546,11 +642,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. Time the Execution was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -558,11 +658,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Time the Execution was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -570,11 +674,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. Time the Execution was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -584,38 +691,54 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int STATE_FIELD_NUMBER = 7; private int state_; /** + * + * *
    * Output only. State of the underlying AI Platform job.
    * 
* - * .google.cloud.notebooks.v1.Execution.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Execution.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. State of the underlying AI Platform job.
    * 
* - * .google.cloud.notebooks.v1.Execution.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Execution.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.notebooks.v1.Execution.State getState() { + @java.lang.Override + public com.google.cloud.notebooks.v1.Execution.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.Execution.State result = com.google.cloud.notebooks.v1.Execution.State.valueOf(state_); + com.google.cloud.notebooks.v1.Execution.State result = + com.google.cloud.notebooks.v1.Execution.State.valueOf(state_); return result == null ? com.google.cloud.notebooks.v1.Execution.State.UNRECOGNIZED : result; } public static final int OUTPUT_NOTEBOOK_FILE_FIELD_NUMBER = 8; private volatile java.lang.Object outputNotebookFile_; /** + * + * *
    * Output notebook file generated by this execution
    * 
* * string output_notebook_file = 8; + * * @return The outputNotebookFile. */ @java.lang.Override @@ -624,29 +747,29 @@ public java.lang.String getOutputNotebookFile() { 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(); outputNotebookFile_ = s; return s; } } /** + * + * *
    * Output notebook file generated by this execution
    * 
* * string output_notebook_file = 8; + * * @return The bytes for outputNotebookFile. */ @java.lang.Override - public com.google.protobuf.ByteString - getOutputNotebookFileBytes() { + public com.google.protobuf.ByteString getOutputNotebookFileBytes() { java.lang.Object ref = outputNotebookFile_; 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); outputNotebookFile_ = b; return b; } else { @@ -657,11 +780,14 @@ public java.lang.String getOutputNotebookFile() { public static final int JOB_URI_FIELD_NUMBER = 9; private volatile java.lang.Object jobUri_; /** + * + * *
    * Output only. The URI of the external job used to execute the notebook.
    * 
* * string job_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The jobUri. */ @java.lang.Override @@ -670,29 +796,29 @@ public java.lang.String getJobUri() { 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(); jobUri_ = s; return s; } } /** + * + * *
    * Output only. The URI of the external job used to execute the notebook.
    * 
* * string job_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for jobUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getJobUriBytes() { + public com.google.protobuf.ByteString getJobUriBytes() { java.lang.Object ref = jobUri_; 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); jobUri_ = b; return b; } else { @@ -701,6 +827,7 @@ public java.lang.String getJobUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -712,8 +839,7 @@ 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 (executionTemplate_ != null) { output.writeMessage(1, getExecutionTemplate()); } @@ -751,8 +877,7 @@ public int getSerializedSize() { size = 0; if (executionTemplate_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getExecutionTemplate()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getExecutionTemplate()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); @@ -764,16 +889,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); } if (state_ != com.google.cloud.notebooks.v1.Execution.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputNotebookFile_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, outputNotebookFile_); @@ -789,7 +911,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.cloud.notebooks.v1.Execution)) { return super.equals(obj); @@ -798,30 +920,22 @@ public boolean equals(final java.lang.Object obj) { if (hasExecutionTemplate() != other.hasExecutionTemplate()) return false; if (hasExecutionTemplate()) { - if (!getExecutionTemplate() - .equals(other.getExecutionTemplate())) return false; - } - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getExecutionTemplate().equals(other.getExecutionTemplate())) return false; + } + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) 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 (state_ != other.state_) return false; - if (!getOutputNotebookFile() - .equals(other.getOutputNotebookFile())) return false; - if (!getJobUri() - .equals(other.getJobUri())) return false; + if (!getOutputNotebookFile().equals(other.getOutputNotebookFile())) return false; + if (!getJobUri().equals(other.getJobUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -862,130 +976,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.notebooks.v1.Execution parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.notebooks.v1.Execution parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.Execution 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.cloud.notebooks.v1.Execution parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.Execution parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.Execution parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.Execution 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.cloud.notebooks.v1.Execution 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.cloud.notebooks.v1.Execution 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.cloud.notebooks.v1.Execution parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.Execution parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.Execution 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.cloud.notebooks.v1.Execution 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.cloud.notebooks.v1.Execution 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.cloud.notebooks.v1.Execution 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; } /** + * + * *
    * The definition of a single executed notebook.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.Execution} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.Execution) com.google.cloud.notebooks.v1.ExecutionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ExecutionProto.internal_static_google_cloud_notebooks_v1_Execution_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ExecutionProto + .internal_static_google_cloud_notebooks_v1_Execution_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ExecutionProto.internal_static_google_cloud_notebooks_v1_Execution_fieldAccessorTable + return com.google.cloud.notebooks.v1.ExecutionProto + .internal_static_google_cloud_notebooks_v1_Execution_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.Execution.class, com.google.cloud.notebooks.v1.Execution.Builder.class); + com.google.cloud.notebooks.v1.Execution.class, + com.google.cloud.notebooks.v1.Execution.Builder.class); } // Construct using com.google.cloud.notebooks.v1.Execution.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1023,9 +1143,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.ExecutionProto.internal_static_google_cloud_notebooks_v1_Execution_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.ExecutionProto + .internal_static_google_cloud_notebooks_v1_Execution_descriptor; } @java.lang.Override @@ -1044,7 +1164,8 @@ public com.google.cloud.notebooks.v1.Execution build() { @java.lang.Override public com.google.cloud.notebooks.v1.Execution buildPartial() { - com.google.cloud.notebooks.v1.Execution result = new com.google.cloud.notebooks.v1.Execution(this); + com.google.cloud.notebooks.v1.Execution result = + new com.google.cloud.notebooks.v1.Execution(this); if (executionTemplateBuilder_ == null) { result.executionTemplate_ = executionTemplate_; } else { @@ -1074,38 +1195,39 @@ public com.google.cloud.notebooks.v1.Execution buildPartial() { 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.cloud.notebooks.v1.Execution) { - return mergeFrom((com.google.cloud.notebooks.v1.Execution)other); + return mergeFrom((com.google.cloud.notebooks.v1.Execution) other); } else { super.mergeFrom(other); return this; @@ -1172,63 +1294,68 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getExecutionTemplateFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 18: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - displayName_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - description_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 42 - case 50: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 50 - case 56: { - state_ = input.readEnum(); - - break; - } // case 56 - case 66: { - outputNotebookFile_ = input.readStringRequireUtf8(); - - break; - } // case 66 - case 74: { - jobUri_ = input.readStringRequireUtf8(); - - break; - } // case 74 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage( + getExecutionTemplateFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + displayName_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 50: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 56: + { + state_ = input.readEnum(); + + break; + } // case 56 + case 66: + { + outputNotebookFile_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: + { + jobUri_ = input.readStringRequireUtf8(); + + break; + } // case 74 + 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) { @@ -1241,34 +1368,47 @@ public Builder mergeFrom( private com.google.cloud.notebooks.v1.ExecutionTemplate executionTemplate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.ExecutionTemplate, com.google.cloud.notebooks.v1.ExecutionTemplate.Builder, com.google.cloud.notebooks.v1.ExecutionTemplateOrBuilder> executionTemplateBuilder_; + com.google.cloud.notebooks.v1.ExecutionTemplate, + com.google.cloud.notebooks.v1.ExecutionTemplate.Builder, + com.google.cloud.notebooks.v1.ExecutionTemplateOrBuilder> + executionTemplateBuilder_; /** + * + * *
      * execute metadata including name, hardware spec, region, labels, etc.
      * 
* * .google.cloud.notebooks.v1.ExecutionTemplate execution_template = 1; + * * @return Whether the executionTemplate field is set. */ public boolean hasExecutionTemplate() { return executionTemplateBuilder_ != null || executionTemplate_ != null; } /** + * + * *
      * execute metadata including name, hardware spec, region, labels, etc.
      * 
* * .google.cloud.notebooks.v1.ExecutionTemplate execution_template = 1; + * * @return The executionTemplate. */ public com.google.cloud.notebooks.v1.ExecutionTemplate getExecutionTemplate() { if (executionTemplateBuilder_ == null) { - return executionTemplate_ == null ? com.google.cloud.notebooks.v1.ExecutionTemplate.getDefaultInstance() : executionTemplate_; + return executionTemplate_ == null + ? com.google.cloud.notebooks.v1.ExecutionTemplate.getDefaultInstance() + : executionTemplate_; } else { return executionTemplateBuilder_.getMessage(); } } /** + * + * *
      * execute metadata including name, hardware spec, region, labels, etc.
      * 
@@ -1289,6 +1429,8 @@ public Builder setExecutionTemplate(com.google.cloud.notebooks.v1.ExecutionTempl return this; } /** + * + * *
      * execute metadata including name, hardware spec, region, labels, etc.
      * 
@@ -1307,6 +1449,8 @@ public Builder setExecutionTemplate( return this; } /** + * + * *
      * execute metadata including name, hardware spec, region, labels, etc.
      * 
@@ -1317,7 +1461,9 @@ public Builder mergeExecutionTemplate(com.google.cloud.notebooks.v1.ExecutionTem if (executionTemplateBuilder_ == null) { if (executionTemplate_ != null) { executionTemplate_ = - com.google.cloud.notebooks.v1.ExecutionTemplate.newBuilder(executionTemplate_).mergeFrom(value).buildPartial(); + com.google.cloud.notebooks.v1.ExecutionTemplate.newBuilder(executionTemplate_) + .mergeFrom(value) + .buildPartial(); } else { executionTemplate_ = value; } @@ -1329,6 +1475,8 @@ public Builder mergeExecutionTemplate(com.google.cloud.notebooks.v1.ExecutionTem return this; } /** + * + * *
      * execute metadata including name, hardware spec, region, labels, etc.
      * 
@@ -1347,6 +1495,8 @@ public Builder clearExecutionTemplate() { return this; } /** + * + * *
      * execute metadata including name, hardware spec, region, labels, etc.
      * 
@@ -1354,26 +1504,32 @@ public Builder clearExecutionTemplate() { * .google.cloud.notebooks.v1.ExecutionTemplate execution_template = 1; */ public com.google.cloud.notebooks.v1.ExecutionTemplate.Builder getExecutionTemplateBuilder() { - + onChanged(); return getExecutionTemplateFieldBuilder().getBuilder(); } /** + * + * *
      * execute metadata including name, hardware spec, region, labels, etc.
      * 
* * .google.cloud.notebooks.v1.ExecutionTemplate execution_template = 1; */ - public com.google.cloud.notebooks.v1.ExecutionTemplateOrBuilder getExecutionTemplateOrBuilder() { + public com.google.cloud.notebooks.v1.ExecutionTemplateOrBuilder + getExecutionTemplateOrBuilder() { if (executionTemplateBuilder_ != null) { return executionTemplateBuilder_.getMessageOrBuilder(); } else { - return executionTemplate_ == null ? - com.google.cloud.notebooks.v1.ExecutionTemplate.getDefaultInstance() : executionTemplate_; + return executionTemplate_ == null + ? com.google.cloud.notebooks.v1.ExecutionTemplate.getDefaultInstance() + : executionTemplate_; } } /** + * + * *
      * execute metadata including name, hardware spec, region, labels, etc.
      * 
@@ -1381,14 +1537,17 @@ public com.google.cloud.notebooks.v1.ExecutionTemplateOrBuilder getExecutionTemp * .google.cloud.notebooks.v1.ExecutionTemplate execution_template = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.ExecutionTemplate, com.google.cloud.notebooks.v1.ExecutionTemplate.Builder, com.google.cloud.notebooks.v1.ExecutionTemplateOrBuilder> + com.google.cloud.notebooks.v1.ExecutionTemplate, + com.google.cloud.notebooks.v1.ExecutionTemplate.Builder, + com.google.cloud.notebooks.v1.ExecutionTemplateOrBuilder> getExecutionTemplateFieldBuilder() { if (executionTemplateBuilder_ == null) { - executionTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.ExecutionTemplate, com.google.cloud.notebooks.v1.ExecutionTemplate.Builder, com.google.cloud.notebooks.v1.ExecutionTemplateOrBuilder>( - getExecutionTemplate(), - getParentForChildren(), - isClean()); + executionTemplateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.ExecutionTemplate, + com.google.cloud.notebooks.v1.ExecutionTemplate.Builder, + com.google.cloud.notebooks.v1.ExecutionTemplateOrBuilder>( + getExecutionTemplate(), getParentForChildren(), isClean()); executionTemplate_ = null; } return executionTemplateBuilder_; @@ -1396,19 +1555,21 @@ public com.google.cloud.notebooks.v1.ExecutionTemplateOrBuilder getExecutionTemp private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name of the execute. Format:
      * `projects/{project_id}/locations/{location}/executions/{execution_id}`
      * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -1417,21 +1578,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the execute. Format:
      * `projects/{project_id}/locations/{location}/executions/{execution_id}`
      * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1439,57 +1601,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the execute. Format:
      * `projects/{project_id}/locations/{location}/executions/{execution_id}`
      * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the execute. Format:
      * `projects/{project_id}/locations/{location}/executions/{execution_id}`
      * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the execute. Format:
      * `projects/{project_id}/locations/{location}/executions/{execution_id}`
      * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1497,19 +1666,21 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Output only. Name used for UI purposes.
      * Name can only contain alphanumeric characters and underscores '_'.
      * 
* * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -1518,21 +1689,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Output only. Name used for UI purposes.
      * Name can only contain alphanumeric characters and underscores '_'.
      * 
* * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1540,57 +1712,64 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Output only. Name used for UI purposes.
      * Name can only contain alphanumeric characters and underscores '_'.
      * 
* * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Name used for UI purposes.
      * Name can only contain alphanumeric characters and underscores '_'.
      * 
* * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * Output only. Name used for UI purposes.
      * Name can only contain alphanumeric characters and underscores '_'.
      * 
* * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1598,18 +1777,20 @@ public Builder setDisplayNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * A brief description of this execution.
      * 
* * string description = 4; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1618,20 +1799,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A brief description of this execution.
      * 
* * string description = 4; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1639,54 +1821,61 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A brief description of this execution.
      * 
* * string description = 4; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * A brief description of this execution.
      * 
* * string description = 4; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * A brief description of this execution.
      * 
* * string description = 4; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1694,39 +1883,58 @@ public Builder setDescriptionBytes( 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_; /** + * + * *
      * Output only. Time the Execution was instantiated.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. Time the Execution was instantiated.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time the Execution was instantiated.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1742,14 +1950,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time the Execution was instantiated.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1760,17 +1971,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Time the Execution was instantiated.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1782,11 +1997,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time the Execution was instantiated.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1800,48 +2019,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Time the Execution was instantiated.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time the Execution was instantiated.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Time the Execution was instantiated.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + 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_; @@ -1849,39 +2084,58 @@ 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_; /** + * + * *
      * Output only. Time the Execution was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. Time the Execution was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time the Execution was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1897,14 +2151,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time the Execution was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1915,17 +2172,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Time the Execution was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1937,11 +2198,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time the Execution was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1955,48 +2220,64 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Time the Execution was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time the Execution was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. Time the Execution was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; @@ -2004,51 +2285,73 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private int state_ = 0; /** + * + * *
      * Output only. State of the underlying AI Platform job.
      * 
* - * .google.cloud.notebooks.v1.Execution.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Execution.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. State of the underlying AI Platform job.
      * 
* - * .google.cloud.notebooks.v1.Execution.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Execution.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * Output only. State of the underlying AI Platform job.
      * 
* - * .google.cloud.notebooks.v1.Execution.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Execution.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.notebooks.v1.Execution.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.Execution.State result = com.google.cloud.notebooks.v1.Execution.State.valueOf(state_); + com.google.cloud.notebooks.v1.Execution.State result = + com.google.cloud.notebooks.v1.Execution.State.valueOf(state_); return result == null ? com.google.cloud.notebooks.v1.Execution.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. State of the underlying AI Platform job.
      * 
* - * .google.cloud.notebooks.v1.Execution.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Execution.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -2056,21 +2359,26 @@ public Builder setState(com.google.cloud.notebooks.v1.Execution.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. State of the underlying AI Platform job.
      * 
* - * .google.cloud.notebooks.v1.Execution.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Execution.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -2078,18 +2386,20 @@ public Builder clearState() { private java.lang.Object outputNotebookFile_ = ""; /** + * + * *
      * Output notebook file generated by this execution
      * 
* * string output_notebook_file = 8; + * * @return The outputNotebookFile. */ public java.lang.String getOutputNotebookFile() { java.lang.Object ref = outputNotebookFile_; 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(); outputNotebookFile_ = s; return s; @@ -2098,20 +2408,21 @@ public java.lang.String getOutputNotebookFile() { } } /** + * + * *
      * Output notebook file generated by this execution
      * 
* * string output_notebook_file = 8; + * * @return The bytes for outputNotebookFile. */ - public com.google.protobuf.ByteString - getOutputNotebookFileBytes() { + public com.google.protobuf.ByteString getOutputNotebookFileBytes() { java.lang.Object ref = outputNotebookFile_; 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); outputNotebookFile_ = b; return b; } else { @@ -2119,54 +2430,61 @@ public java.lang.String getOutputNotebookFile() { } } /** + * + * *
      * Output notebook file generated by this execution
      * 
* * string output_notebook_file = 8; + * * @param value The outputNotebookFile to set. * @return This builder for chaining. */ - public Builder setOutputNotebookFile( - java.lang.String value) { + public Builder setOutputNotebookFile(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + outputNotebookFile_ = value; onChanged(); return this; } /** + * + * *
      * Output notebook file generated by this execution
      * 
* * string output_notebook_file = 8; + * * @return This builder for chaining. */ public Builder clearOutputNotebookFile() { - + outputNotebookFile_ = getDefaultInstance().getOutputNotebookFile(); onChanged(); return this; } /** + * + * *
      * Output notebook file generated by this execution
      * 
* * string output_notebook_file = 8; + * * @param value The bytes for outputNotebookFile to set. * @return This builder for chaining. */ - public Builder setOutputNotebookFileBytes( - com.google.protobuf.ByteString value) { + public Builder setOutputNotebookFileBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputNotebookFile_ = value; onChanged(); return this; @@ -2174,18 +2492,20 @@ public Builder setOutputNotebookFileBytes( private java.lang.Object jobUri_ = ""; /** + * + * *
      * Output only. The URI of the external job used to execute the notebook.
      * 
* * string job_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The jobUri. */ public java.lang.String getJobUri() { java.lang.Object ref = jobUri_; 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(); jobUri_ = s; return s; @@ -2194,20 +2514,21 @@ public java.lang.String getJobUri() { } } /** + * + * *
      * Output only. The URI of the external job used to execute the notebook.
      * 
* * string job_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for jobUri. */ - public com.google.protobuf.ByteString - getJobUriBytes() { + public com.google.protobuf.ByteString getJobUriBytes() { java.lang.Object ref = jobUri_; 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); jobUri_ = b; return b; } else { @@ -2215,61 +2536,68 @@ public java.lang.String getJobUri() { } } /** + * + * *
      * Output only. The URI of the external job used to execute the notebook.
      * 
* * string job_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The jobUri to set. * @return This builder for chaining. */ - public Builder setJobUri( - java.lang.String value) { + public Builder setJobUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + jobUri_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The URI of the external job used to execute the notebook.
      * 
* * string job_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearJobUri() { - + jobUri_ = getDefaultInstance().getJobUri(); onChanged(); return this; } /** + * + * *
      * Output only. The URI of the external job used to execute the notebook.
      * 
* * string job_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for jobUri to set. * @return This builder for chaining. */ - public Builder setJobUriBytes( - com.google.protobuf.ByteString value) { + public Builder setJobUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + jobUri_ = 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); } @@ -2279,12 +2607,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.Execution) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.Execution) private static final com.google.cloud.notebooks.v1.Execution DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.Execution(); } @@ -2293,27 +2621,27 @@ public static com.google.cloud.notebooks.v1.Execution getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Execution parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Execution parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -2328,6 +2656,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.Execution getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionName.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionName.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionName.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionName.java diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionOrBuilder.java similarity index 75% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionOrBuilder.java index fa44d1111d2c..39ab64f44022 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/execution.proto package com.google.cloud.notebooks.v1; -public interface ExecutionOrBuilder extends +public interface ExecutionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.Execution) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * execute metadata including name, hardware spec, region, labels, etc.
    * 
* * .google.cloud.notebooks.v1.ExecutionTemplate execution_template = 1; + * * @return Whether the executionTemplate field is set. */ boolean hasExecutionTemplate(); /** + * + * *
    * execute metadata including name, hardware spec, region, labels, etc.
    * 
* * .google.cloud.notebooks.v1.ExecutionTemplate execution_template = 1; + * * @return The executionTemplate. */ com.google.cloud.notebooks.v1.ExecutionTemplate getExecutionTemplate(); /** + * + * *
    * execute metadata including name, hardware spec, region, labels, etc.
    * 
@@ -35,179 +59,236 @@ public interface ExecutionOrBuilder extends com.google.cloud.notebooks.v1.ExecutionTemplateOrBuilder getExecutionTemplateOrBuilder(); /** + * + * *
    * Output only. The resource name of the execute. Format:
    * `projects/{project_id}/locations/{location}/executions/{execution_id}`
    * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the execute. Format:
    * `projects/{project_id}/locations/{location}/executions/{execution_id}`
    * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. Name used for UI purposes.
    * Name can only contain alphanumeric characters and underscores '_'.
    * 
* * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Output only. Name used for UI purposes.
    * Name can only contain alphanumeric characters and underscores '_'.
    * 
* * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * A brief description of this execution.
    * 
* * string description = 4; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * A brief description of this execution.
    * 
* * string description = 4; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. Time the Execution was instantiated.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Time the Execution was instantiated.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Time the Execution was instantiated.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Time the Execution was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. Time the Execution was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. Time the Execution was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Output only. State of the underlying AI Platform job.
    * 
* - * .google.cloud.notebooks.v1.Execution.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Execution.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. State of the underlying AI Platform job.
    * 
* - * .google.cloud.notebooks.v1.Execution.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Execution.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.notebooks.v1.Execution.State getState(); /** + * + * *
    * Output notebook file generated by this execution
    * 
* * string output_notebook_file = 8; + * * @return The outputNotebookFile. */ java.lang.String getOutputNotebookFile(); /** + * + * *
    * Output notebook file generated by this execution
    * 
* * string output_notebook_file = 8; + * * @return The bytes for outputNotebookFile. */ - com.google.protobuf.ByteString - getOutputNotebookFileBytes(); + com.google.protobuf.ByteString getOutputNotebookFileBytes(); /** + * + * *
    * Output only. The URI of the external job used to execute the notebook.
    * 
* * string job_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The jobUri. */ java.lang.String getJobUri(); /** + * + * *
    * Output only. The URI of the external job used to execute the notebook.
    * 
* * string job_uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for jobUri. */ - com.google.protobuf.ByteString - getJobUriBytes(); + com.google.protobuf.ByteString getJobUriBytes(); } diff --git a/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionProto.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionProto.java new file mode 100644 index 000000000000..dde224283411 --- /dev/null +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionProto.java @@ -0,0 +1,247 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/notebooks/v1/execution.proto + +package com.google.cloud.notebooks.v1; + +public final class ExecutionProto { + private ExecutionProto() {} + + 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_cloud_notebooks_v1_ExecutionTemplate_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_SchedulerAcceleratorConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_SchedulerAcceleratorConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_DataprocParameters_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_DataprocParameters_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_EnvEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_EnvEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_Execution_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_Execution_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/cloud/notebooks/v1/execution.pr" + + "oto\022\031google.cloud.notebooks.v1\032\037google/a" + + "pi/field_behavior.proto\032\031google/api/reso" + + "urce.proto\032\037google/protobuf/timestamp.pr" + + "oto\"\352\014\n\021ExecutionTemplate\022Q\n\nscale_tier\030" + + "\001 \001(\01626.google.cloud.notebooks.v1.Execut" + + "ionTemplate.ScaleTierB\005\030\001\340A\002\022\023\n\013master_t" + + "ype\030\002 \001(\t\022c\n\022accelerator_config\030\003 \001(\0132G." + + "google.cloud.notebooks.v1.ExecutionTempl" + + "ate.SchedulerAcceleratorConfig\022H\n\006labels" + + "\030\004 \003(\01328.google.cloud.notebooks.v1.Execu" + + "tionTemplate.LabelsEntry\022\033\n\023input_notebo" + + "ok_file\030\005 \001(\t\022\033\n\023container_image_uri\030\006 \001" + + "(\t\022\036\n\026output_notebook_folder\030\007 \001(\t\022\030\n\020pa" + + "rams_yaml_file\030\010 \001(\t\022\022\n\nparameters\030\t \001(\t" + + "\022\027\n\017service_account\030\n \001(\t\022F\n\010job_type\030\013 " + + "\001(\01624.google.cloud.notebooks.v1.Executio" + + "nTemplate.JobType\022^\n\023dataproc_parameters" + + "\030\014 \001(\0132?.google.cloud.notebooks.v1.Execu" + + "tionTemplate.DataprocParametersH\000\022_\n\024ver" + + "tex_ai_parameters\030\r \001(\0132?.google.cloud.n" + + "otebooks.v1.ExecutionTemplate.VertexAIPa" + + "rametersH\000\022\023\n\013kernel_spec\030\016 \001(\t\022?\n\013tenso" + + "rboard\030\017 \001(\tB*\372A\'\n%aiplatform.googleapis" + + ".com/Tensorboard\032\205\001\n\032SchedulerAccelerato" + + "rConfig\022S\n\004type\030\001 \001(\0162E.google.cloud.not" + + "ebooks.v1.ExecutionTemplate.SchedulerAcc" + + "eleratorType\022\022\n\ncore_count\030\002 \001(\003\032%\n\022Data" + + "procParameters\022\017\n\007cluster\030\001 \001(\t\032\250\001\n\022Vert" + + "exAIParameters\022\017\n\007network\030\001 \001(\t\022U\n\003env\030\002" + + " \003(\0132H.google.cloud.notebooks.v1.Executi" + + "onTemplate.VertexAIParameters.EnvEntry\032*" + + "\n\010EnvEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\"{\n\tScaleTier\022\032\n\026SCALE_TIER_UNS" + + "PECIFIED\020\000\022\t\n\005BASIC\020\001\022\016\n\nSTANDARD_1\020\002\022\r\n" + + "\tPREMIUM_1\020\003\022\r\n\tBASIC_GPU\020\004\022\r\n\tBASIC_TPU" + + "\020\005\022\n\n\006CUSTOM\020\006\"\343\001\n\030SchedulerAcceleratorT" + + "ype\022*\n&SCHEDULER_ACCELERATOR_TYPE_UNSPEC" + + "IFIED\020\000\022\024\n\020NVIDIA_TESLA_K80\020\001\022\025\n\021NVIDIA_" + + "TESLA_P100\020\002\022\025\n\021NVIDIA_TESLA_V100\020\003\022\023\n\017N" + + "VIDIA_TESLA_P4\020\004\022\023\n\017NVIDIA_TESLA_T4\020\005\022\025\n" + + "\021NVIDIA_TESLA_A100\020\n\022\n\n\006TPU_V2\020\006\022\n\n\006TPU_" + + "V3\020\007\"@\n\007JobType\022\030\n\024JOB_TYPE_UNSPECIFIED\020" + + "\000\022\r\n\tVERTEX_AI\020\001\022\014\n\010DATAPROC\020\002B\020\n\016job_pa" + + "rameters\"\202\005\n\tExecution\022H\n\022execution_temp" + + "late\030\001 \001(\0132,.google.cloud.notebooks.v1.E" + + "xecutionTemplate\022\021\n\004name\030\002 \001(\tB\003\340A\003\022\031\n\014d" + + "isplay_name\030\003 \001(\tB\003\340A\003\022\023\n\013description\030\004 " + + "\001(\t\0224\n\013create_time\030\005 \001(\0132\032.google.protob" + + "uf.TimestampB\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\022>\n\005state" + + "\030\007 \001(\0162*.google.cloud.notebooks.v1.Execu" + + "tion.StateB\003\340A\003\022\034\n\024output_notebook_file\030" + + "\010 \001(\t\022\024\n\007job_uri\030\t \001(\tB\003\340A\003\"\237\001\n\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n\006QUEUED\020\001\022\r\n\tPREP" + + "ARING\020\002\022\013\n\007RUNNING\020\003\022\r\n\tSUCCEEDED\020\004\022\n\n\006F" + + "AILED\020\005\022\016\n\nCANCELLING\020\006\022\r\n\tCANCELLED\020\007\022\013" + + "\n\007EXPIRED\020\t\022\020\n\014INITIALIZING\020\n:f\352Ac\n\"note" + + "books.googleapis.com/Execution\022=projects" + + "/{project}/location/{location}/execution" + + "s/{execution}B\343\001\n\035com.google.cloud.noteb" + + "ooks.v1B\016ExecutionProtoP\001ZBgoogle.golang" + + ".org/genproto/googleapis/cloud/notebooks" + + "/v1;notebooks\352Ak\n%aiplatform.googleapis." + + "com/Tensorboard\022Bprojects/{project}/loca" + + "tions/{location}/tensorboards/{tensorboa" + + "rd}b\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.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_descriptor, + new java.lang.String[] { + "ScaleTier", + "MasterType", + "AcceleratorConfig", + "Labels", + "InputNotebookFile", + "ContainerImageUri", + "OutputNotebookFolder", + "ParamsYamlFile", + "Parameters", + "ServiceAccount", + "JobType", + "DataprocParameters", + "VertexAiParameters", + "KernelSpec", + "Tensorboard", + "JobParameters", + }); + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_SchedulerAcceleratorConfig_descriptor = + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_SchedulerAcceleratorConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_SchedulerAcceleratorConfig_descriptor, + new java.lang.String[] { + "Type", "CoreCount", + }); + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_DataprocParameters_descriptor = + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_DataprocParameters_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_DataprocParameters_descriptor, + new java.lang.String[] { + "Cluster", + }); + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_descriptor = + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_descriptor, + new java.lang.String[] { + "Network", "Env", + }); + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_EnvEntry_descriptor = + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_EnvEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_EnvEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_LabelsEntry_descriptor = + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_ExecutionTemplate_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_notebooks_v1_Execution_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_notebooks_v1_Execution_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_Execution_descriptor, + new java.lang.String[] { + "ExecutionTemplate", + "Name", + "DisplayName", + "Description", + "CreateTime", + "UpdateTime", + "State", + "OutputNotebookFile", + "JobUri", + }); + 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.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(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionTemplate.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionTemplate.java similarity index 68% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionTemplate.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionTemplate.java index 77a8383cdd61..bfb30499fe55 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionTemplate.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionTemplate.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/execution.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * The description a notebook execution workload.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.ExecutionTemplate} */ -public final class ExecutionTemplate extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ExecutionTemplate extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.ExecutionTemplate) ExecutionTemplateOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ExecutionTemplate.newBuilder() to construct. private ExecutionTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ExecutionTemplate() { scaleTier_ = 0; masterType_ = ""; @@ -35,42 +53,44 @@ private ExecutionTemplate() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExecutionTemplate(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ExecutionProto.internal_static_google_cloud_notebooks_v1_ExecutionTemplate_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ExecutionProto + .internal_static_google_cloud_notebooks_v1_ExecutionTemplate_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 4: 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.cloud.notebooks.v1.ExecutionProto.internal_static_google_cloud_notebooks_v1_ExecutionTemplate_fieldAccessorTable + return com.google.cloud.notebooks.v1.ExecutionProto + .internal_static_google_cloud_notebooks_v1_ExecutionTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ExecutionTemplate.class, com.google.cloud.notebooks.v1.ExecutionTemplate.Builder.class); + com.google.cloud.notebooks.v1.ExecutionTemplate.class, + com.google.cloud.notebooks.v1.ExecutionTemplate.Builder.class); } /** + * + * *
    * Required. Specifies the machine types, the number of replicas for workers
    * and parameter servers.
@@ -78,9 +98,10 @@ protected com.google.protobuf.MapField internalGetMapField(
    *
    * Protobuf enum {@code google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier}
    */
-  public enum ScaleTier
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum ScaleTier implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Unspecified Scale Tier.
      * 
@@ -89,6 +110,8 @@ public enum ScaleTier */ SCALE_TIER_UNSPECIFIED(0), /** + * + * *
      * A single worker instance. This tier is suitable for learning how to use
      * Cloud ML, and for experimenting with new models using small datasets.
@@ -98,6 +121,8 @@ public enum ScaleTier
      */
     BASIC(1),
     /**
+     *
+     *
      * 
      * Many workers and a few parameter servers.
      * 
@@ -106,6 +131,8 @@ public enum ScaleTier */ STANDARD_1(2), /** + * + * *
      * A large number of workers with many parameter servers.
      * 
@@ -114,6 +141,8 @@ public enum ScaleTier */ PREMIUM_1(3), /** + * + * *
      * A single worker instance with a K80 GPU.
      * 
@@ -122,6 +151,8 @@ public enum ScaleTier */ BASIC_GPU(4), /** + * + * *
      * A single worker instance with a Cloud TPU.
      * 
@@ -130,6 +161,8 @@ public enum ScaleTier */ BASIC_TPU(5), /** + * + * *
      * The CUSTOM tier is not a set tier, but rather enables you to use your
      * own cluster specification. When you use this tier, set values to
@@ -146,6 +179,8 @@ public enum ScaleTier
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified Scale Tier.
      * 
@@ -154,6 +189,8 @@ public enum ScaleTier */ public static final int SCALE_TIER_UNSPECIFIED_VALUE = 0; /** + * + * *
      * A single worker instance. This tier is suitable for learning how to use
      * Cloud ML, and for experimenting with new models using small datasets.
@@ -163,6 +200,8 @@ public enum ScaleTier
      */
     public static final int BASIC_VALUE = 1;
     /**
+     *
+     *
      * 
      * Many workers and a few parameter servers.
      * 
@@ -171,6 +210,8 @@ public enum ScaleTier */ public static final int STANDARD_1_VALUE = 2; /** + * + * *
      * A large number of workers with many parameter servers.
      * 
@@ -179,6 +220,8 @@ public enum ScaleTier */ public static final int PREMIUM_1_VALUE = 3; /** + * + * *
      * A single worker instance with a K80 GPU.
      * 
@@ -187,6 +230,8 @@ public enum ScaleTier */ public static final int BASIC_GPU_VALUE = 4; /** + * + * *
      * A single worker instance with a Cloud TPU.
      * 
@@ -195,6 +240,8 @@ public enum ScaleTier */ public static final int BASIC_TPU_VALUE = 5; /** + * + * *
      * The CUSTOM tier is not a set tier, but rather enables you to use your
      * own cluster specification. When you use this tier, set values to
@@ -208,7 +255,6 @@ public enum ScaleTier
      */
     public static final int CUSTOM_VALUE = 6;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -233,53 +279,57 @@ public static ScaleTier valueOf(int value) {
      */
     public static ScaleTier forNumber(int value) {
       switch (value) {
-        case 0: return SCALE_TIER_UNSPECIFIED;
-        case 1: return BASIC;
-        case 2: return STANDARD_1;
-        case 3: return PREMIUM_1;
-        case 4: return BASIC_GPU;
-        case 5: return BASIC_TPU;
-        case 6: return CUSTOM;
-        default: return null;
+        case 0:
+          return SCALE_TIER_UNSPECIFIED;
+        case 1:
+          return BASIC;
+        case 2:
+          return STANDARD_1;
+        case 3:
+          return PREMIUM_1;
+        case 4:
+          return BASIC_GPU;
+        case 5:
+          return BASIC_TPU;
+        case 6:
+          return CUSTOM;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        ScaleTier> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public ScaleTier findValueByNumber(int number) {
-              return ScaleTier.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public ScaleTier findValueByNumber(int number) {
+            return ScaleTier.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.cloud.notebooks.v1.ExecutionTemplate.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final ScaleTier[] VALUES = values();
 
-    public static ScaleTier valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static ScaleTier 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;
@@ -297,15 +347,18 @@ private ScaleTier(int value) {
   }
 
   /**
+   *
+   *
    * 
    * Hardware accelerator types for AI Platform Training jobs.
    * 
* * Protobuf enum {@code google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType} */ - public enum SchedulerAcceleratorType - implements com.google.protobuf.ProtocolMessageEnum { + public enum SchedulerAcceleratorType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified accelerator type. Default to no GPU.
      * 
@@ -314,6 +367,8 @@ public enum SchedulerAcceleratorType */ SCHEDULER_ACCELERATOR_TYPE_UNSPECIFIED(0), /** + * + * *
      * Nvidia Tesla K80 GPU.
      * 
@@ -322,6 +377,8 @@ public enum SchedulerAcceleratorType */ NVIDIA_TESLA_K80(1), /** + * + * *
      * Nvidia Tesla P100 GPU.
      * 
@@ -330,6 +387,8 @@ public enum SchedulerAcceleratorType */ NVIDIA_TESLA_P100(2), /** + * + * *
      * Nvidia Tesla V100 GPU.
      * 
@@ -338,6 +397,8 @@ public enum SchedulerAcceleratorType */ NVIDIA_TESLA_V100(3), /** + * + * *
      * Nvidia Tesla P4 GPU.
      * 
@@ -346,6 +407,8 @@ public enum SchedulerAcceleratorType */ NVIDIA_TESLA_P4(4), /** + * + * *
      * Nvidia Tesla T4 GPU.
      * 
@@ -354,6 +417,8 @@ public enum SchedulerAcceleratorType */ NVIDIA_TESLA_T4(5), /** + * + * *
      * Nvidia Tesla A100 GPU.
      * 
@@ -362,6 +427,8 @@ public enum SchedulerAcceleratorType */ NVIDIA_TESLA_A100(10), /** + * + * *
      * TPU v2.
      * 
@@ -370,6 +437,8 @@ public enum SchedulerAcceleratorType */ TPU_V2(6), /** + * + * *
      * TPU v3.
      * 
@@ -381,6 +450,8 @@ public enum SchedulerAcceleratorType ; /** + * + * *
      * Unspecified accelerator type. Default to no GPU.
      * 
@@ -389,6 +460,8 @@ public enum SchedulerAcceleratorType */ public static final int SCHEDULER_ACCELERATOR_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Nvidia Tesla K80 GPU.
      * 
@@ -397,6 +470,8 @@ public enum SchedulerAcceleratorType */ public static final int NVIDIA_TESLA_K80_VALUE = 1; /** + * + * *
      * Nvidia Tesla P100 GPU.
      * 
@@ -405,6 +480,8 @@ public enum SchedulerAcceleratorType */ public static final int NVIDIA_TESLA_P100_VALUE = 2; /** + * + * *
      * Nvidia Tesla V100 GPU.
      * 
@@ -413,6 +490,8 @@ public enum SchedulerAcceleratorType */ public static final int NVIDIA_TESLA_V100_VALUE = 3; /** + * + * *
      * Nvidia Tesla P4 GPU.
      * 
@@ -421,6 +500,8 @@ public enum SchedulerAcceleratorType */ public static final int NVIDIA_TESLA_P4_VALUE = 4; /** + * + * *
      * Nvidia Tesla T4 GPU.
      * 
@@ -429,6 +510,8 @@ public enum SchedulerAcceleratorType */ public static final int NVIDIA_TESLA_T4_VALUE = 5; /** + * + * *
      * Nvidia Tesla A100 GPU.
      * 
@@ -437,6 +520,8 @@ public enum SchedulerAcceleratorType */ public static final int NVIDIA_TESLA_A100_VALUE = 10; /** + * + * *
      * TPU v2.
      * 
@@ -445,6 +530,8 @@ public enum SchedulerAcceleratorType */ public static final int TPU_V2_VALUE = 6; /** + * + * *
      * TPU v3.
      * 
@@ -453,7 +540,6 @@ public enum SchedulerAcceleratorType */ public static final int TPU_V3_VALUE = 7; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -478,16 +564,26 @@ public static SchedulerAcceleratorType valueOf(int value) { */ public static SchedulerAcceleratorType forNumber(int value) { switch (value) { - case 0: return SCHEDULER_ACCELERATOR_TYPE_UNSPECIFIED; - case 1: return NVIDIA_TESLA_K80; - case 2: return NVIDIA_TESLA_P100; - case 3: return NVIDIA_TESLA_V100; - case 4: return NVIDIA_TESLA_P4; - case 5: return NVIDIA_TESLA_T4; - case 10: return NVIDIA_TESLA_A100; - case 6: return TPU_V2; - case 7: return TPU_V3; - default: return null; + case 0: + return SCHEDULER_ACCELERATOR_TYPE_UNSPECIFIED; + case 1: + return NVIDIA_TESLA_K80; + case 2: + return NVIDIA_TESLA_P100; + case 3: + return NVIDIA_TESLA_V100; + case 4: + return NVIDIA_TESLA_P4; + case 5: + return NVIDIA_TESLA_T4; + case 10: + return NVIDIA_TESLA_A100; + case 6: + return TPU_V2; + case 7: + return TPU_V3; + default: + return null; } } @@ -495,28 +591,28 @@ public static SchedulerAcceleratorType forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - SchedulerAcceleratorType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SchedulerAcceleratorType findValueByNumber(int number) { - return SchedulerAcceleratorType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SchedulerAcceleratorType findValueByNumber(int number) { + return SchedulerAcceleratorType.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.cloud.notebooks.v1.ExecutionTemplate.getDescriptor().getEnumTypes().get(1); } @@ -525,8 +621,7 @@ public SchedulerAcceleratorType findValueByNumber(int number) { public static SchedulerAcceleratorType 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; @@ -544,15 +639,18 @@ private SchedulerAcceleratorType(int value) { } /** + * + * *
    * The backend used for this execution.
    * 
* * Protobuf enum {@code google.cloud.notebooks.v1.ExecutionTemplate.JobType} */ - public enum JobType - implements com.google.protobuf.ProtocolMessageEnum { + public enum JobType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * No type specified.
      * 
@@ -561,6 +659,8 @@ public enum JobType */ JOB_TYPE_UNSPECIFIED(0), /** + * + * *
      * Custom Job in `aiplatform.googleapis.com`.
      * Default value for an execution.
@@ -570,6 +670,8 @@ public enum JobType
      */
     VERTEX_AI(1),
     /**
+     *
+     *
      * 
      * Run execution on a cluster with Dataproc as a job.
      * https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs
@@ -582,6 +684,8 @@ public enum JobType
     ;
 
     /**
+     *
+     *
      * 
      * No type specified.
      * 
@@ -590,6 +694,8 @@ public enum JobType */ public static final int JOB_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Custom Job in `aiplatform.googleapis.com`.
      * Default value for an execution.
@@ -599,6 +705,8 @@ public enum JobType
      */
     public static final int VERTEX_AI_VALUE = 1;
     /**
+     *
+     *
      * 
      * Run execution on a cluster with Dataproc as a job.
      * https://cloud.google.com/dataproc/docs/reference/rest/v1/projects.regions.jobs
@@ -608,7 +716,6 @@ public enum JobType
      */
     public static final int DATAPROC_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -633,49 +740,49 @@ public static JobType valueOf(int value) {
      */
     public static JobType forNumber(int value) {
       switch (value) {
-        case 0: return JOB_TYPE_UNSPECIFIED;
-        case 1: return VERTEX_AI;
-        case 2: return DATAPROC;
-        default: return null;
+        case 0:
+          return JOB_TYPE_UNSPECIFIED;
+        case 1:
+          return VERTEX_AI;
+        case 2:
+          return DATAPROC;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        JobType> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public JobType findValueByNumber(int number) {
-              return JobType.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public JobType findValueByNumber(int number) {
+            return JobType.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.cloud.notebooks.v1.ExecutionTemplate.getDescriptor().getEnumTypes().get(2);
     }
 
     private static final JobType[] VALUES = values();
 
-    public static JobType valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static JobType 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;
@@ -692,40 +799,52 @@ private JobType(int value) {
     // @@protoc_insertion_point(enum_scope:google.cloud.notebooks.v1.ExecutionTemplate.JobType)
   }
 
-  public interface SchedulerAcceleratorConfigOrBuilder extends
+  public interface SchedulerAcceleratorConfigOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Type of this accelerator.
      * 
* * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType type = 1; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
      * Type of this accelerator.
      * 
* * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType type = 1; + * * @return The type. */ com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType getType(); /** + * + * *
      * Count of cores of this accelerator.
      * 
* * int64 core_count = 2; + * * @return The coreCount. */ long getCoreCount(); } /** + * + * *
    * Definition of a hardware accelerator. Note that not all combinations
    * of `type` and `core_count` are valid. Check [GPUs on
@@ -735,79 +854,97 @@ public interface SchedulerAcceleratorConfigOrBuilder extends
    *
    * Protobuf type {@code google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig}
    */
-  public static final class SchedulerAcceleratorConfig extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class SchedulerAcceleratorConfig
+      extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig)
       SchedulerAcceleratorConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use SchedulerAcceleratorConfig.newBuilder() to construct.
     private SchedulerAcceleratorConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private SchedulerAcceleratorConfig() {
       type_ = 0;
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new SchedulerAcceleratorConfig();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.notebooks.v1.ExecutionProto.internal_static_google_cloud_notebooks_v1_ExecutionTemplate_SchedulerAcceleratorConfig_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.notebooks.v1.ExecutionProto
+          .internal_static_google_cloud_notebooks_v1_ExecutionTemplate_SchedulerAcceleratorConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.notebooks.v1.ExecutionProto.internal_static_google_cloud_notebooks_v1_ExecutionTemplate_SchedulerAcceleratorConfig_fieldAccessorTable
+      return com.google.cloud.notebooks.v1.ExecutionProto
+          .internal_static_google_cloud_notebooks_v1_ExecutionTemplate_SchedulerAcceleratorConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig.class, com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig.Builder.class);
+              com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig.class,
+              com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig.Builder
+                  .class);
     }
 
     public static final int TYPE_FIELD_NUMBER = 1;
     private int type_;
     /**
+     *
+     *
      * 
      * Type of this accelerator.
      * 
* * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Type of this accelerator.
      * 
* * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType type = 1; + * * @return The type. */ - @java.lang.Override public com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType getType() { + @java.lang.Override + public com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType getType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType result = com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType.valueOf(type_); - return result == null ? com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType result = + com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType.valueOf(type_); + return result == null + ? com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType.UNRECOGNIZED + : result; } public static final int CORE_COUNT_FIELD_NUMBER = 2; private long coreCount_; /** + * + * *
      * Count of cores of this accelerator.
      * 
* * int64 core_count = 2; + * * @return The coreCount. */ @java.lang.Override @@ -816,6 +953,7 @@ public long getCoreCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -827,9 +965,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType.SCHEDULER_ACCELERATOR_TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ + != com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType + .SCHEDULER_ACCELERATOR_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, type_); } if (coreCount_ != 0L) { @@ -844,13 +984,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ != com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType.SCHEDULER_ACCELERATOR_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); + if (type_ + != com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType + .SCHEDULER_ACCELERATOR_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); } if (coreCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, coreCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, coreCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -860,16 +1001,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.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig)) { + if (!(obj + instanceof com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig other = (com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig) obj; + com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig other = + (com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig) obj; if (type_ != other.type_) return false; - if (getCoreCount() - != other.getCoreCount()) return false; + if (getCoreCount() != other.getCoreCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -884,95 +1026,107 @@ public int hashCode() { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + CORE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCoreCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCoreCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig 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.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig + 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.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig 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 @@ -982,6 +1136,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Definition of a hardware accelerator. Note that not all combinations
      * of `type` and `core_count` are valid. Check [GPUs on
@@ -991,33 +1147,35 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig)
         com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfigOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.notebooks.v1.ExecutionProto.internal_static_google_cloud_notebooks_v1_ExecutionTemplate_SchedulerAcceleratorConfig_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.notebooks.v1.ExecutionProto
+            .internal_static_google_cloud_notebooks_v1_ExecutionTemplate_SchedulerAcceleratorConfig_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.notebooks.v1.ExecutionProto.internal_static_google_cloud_notebooks_v1_ExecutionTemplate_SchedulerAcceleratorConfig_fieldAccessorTable
+        return com.google.cloud.notebooks.v1.ExecutionProto
+            .internal_static_google_cloud_notebooks_v1_ExecutionTemplate_SchedulerAcceleratorConfig_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig.class, com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig.Builder.class);
+                com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig.class,
+                com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig.Builder
+                    .class);
       }
 
-      // Construct using com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig.newBuilder()
-      private Builder() {
+      // Construct using
+      // com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig.newBuilder()
+      private Builder() {}
 
-      }
-
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1029,19 +1187,22 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.notebooks.v1.ExecutionProto.internal_static_google_cloud_notebooks_v1_ExecutionTemplate_SchedulerAcceleratorConfig_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.notebooks.v1.ExecutionProto
+            .internal_static_google_cloud_notebooks_v1_ExecutionTemplate_SchedulerAcceleratorConfig_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig getDefaultInstanceForType() {
-        return com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig.getDefaultInstance();
+      public com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig
+          getDefaultInstanceForType() {
+        return com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig
+            .getDefaultInstance();
       }
 
       @java.lang.Override
       public com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig build() {
-        com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig result = buildPartial();
+        com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig result =
+            buildPartial();
         if (!result.isInitialized()) {
           throw newUninitializedMessageException(result);
         }
@@ -1049,8 +1210,10 @@ public com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfi
       }
 
       @java.lang.Override
-      public com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig buildPartial() {
-        com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig result = new com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig(this);
+      public com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig
+          buildPartial() {
+        com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig result =
+            new com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig(this);
         result.type_ = type_;
         result.coreCount_ = coreCount_;
         onBuilt();
@@ -1061,46 +1224,54 @@ public com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfi
       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.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig) {
-          return mergeFrom((com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig)other);
+        if (other
+            instanceof com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig) {
+          return mergeFrom(
+              (com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig other) {
-        if (other == com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig other) {
+        if (other
+            == com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig
+                .getDefaultInstance()) return this;
         if (other.type_ != 0) {
           setTypeValue(other.getTypeValue());
         }
@@ -1133,22 +1304,25 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 8: {
-                type_ = input.readEnum();
-
-                break;
-              } // case 8
-              case 16: {
-                coreCount_ = input.readInt64();
-
-                break;
-              } // case 16
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 8:
+                {
+                  type_ = input.readEnum();
+
+                  break;
+                } // case 8
+              case 16:
+                {
+                  coreCount_ = input.readInt64();
+
+                  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) {
@@ -1161,85 +1335,113 @@ public Builder mergeFrom(
 
       private int type_ = 0;
       /**
+       *
+       *
        * 
        * Type of this accelerator.
        * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType type = 1; + * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType type = 1; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
        * Type of this accelerator.
        * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType type = 1; + * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType type = 1; + * + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
        * Type of this accelerator.
        * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType type = 1; + * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType type = 1; + * + * * @return The type. */ @java.lang.Override public com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType getType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType result = com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType.valueOf(type_); - return result == null ? com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType result = + com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType.valueOf(type_); + return result == null + ? com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType.UNRECOGNIZED + : result; } /** + * + * *
        * Type of this accelerator.
        * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType type = 1; + * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType type = 1; + * + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType value) { + public Builder setType( + com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Type of this accelerator.
        * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType type = 1; + * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorType type = 1; + * + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private long coreCount_ ; + private long coreCount_; /** + * + * *
        * Count of cores of this accelerator.
        * 
* * int64 core_count = 2; + * * @return The coreCount. */ @java.lang.Override @@ -1247,34 +1449,41 @@ public long getCoreCount() { return coreCount_; } /** + * + * *
        * Count of cores of this accelerator.
        * 
* * int64 core_count = 2; + * * @param value The coreCount to set. * @return This builder for chaining. */ public Builder setCoreCount(long value) { - + coreCount_ = value; onChanged(); return this; } /** + * + * *
        * Count of cores of this accelerator.
        * 
* * int64 core_count = 2; + * * @return This builder for chaining. */ public Builder clearCoreCount() { - + coreCount_ = 0L; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1287,41 +1496,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig) - private static final com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig DEFAULT_INSTANCE; + private static final com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig(); + DEFAULT_INSTANCE = + new com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig(); } - public static com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig getDefaultInstance() { + public static com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SchedulerAcceleratorConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SchedulerAcceleratorConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -1333,92 +1546,105 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig getDefaultInstanceForType() { + public com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface DataprocParametersOrBuilder extends + public interface DataprocParametersOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * URI for cluster used to run Dataproc execution.
      * Format: `projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}`
      * 
* * string cluster = 1; + * * @return The cluster. */ java.lang.String getCluster(); /** + * + * *
      * URI for cluster used to run Dataproc execution.
      * Format: `projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}`
      * 
* * string cluster = 1; + * * @return The bytes for cluster. */ - com.google.protobuf.ByteString - getClusterBytes(); + com.google.protobuf.ByteString getClusterBytes(); } /** + * + * *
    * Parameters used in Dataproc JobType executions.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters} */ - public static final class DataprocParameters extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class DataprocParameters extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters) DataprocParametersOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DataprocParameters.newBuilder() to construct. private DataprocParameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DataprocParameters() { cluster_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DataprocParameters(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ExecutionProto.internal_static_google_cloud_notebooks_v1_ExecutionTemplate_DataprocParameters_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ExecutionProto + .internal_static_google_cloud_notebooks_v1_ExecutionTemplate_DataprocParameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ExecutionProto.internal_static_google_cloud_notebooks_v1_ExecutionTemplate_DataprocParameters_fieldAccessorTable + return com.google.cloud.notebooks.v1.ExecutionProto + .internal_static_google_cloud_notebooks_v1_ExecutionTemplate_DataprocParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.class, com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.Builder.class); + com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.class, + com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.Builder.class); } public static final int CLUSTER_FIELD_NUMBER = 1; private volatile java.lang.Object cluster_; /** + * + * *
      * URI for cluster used to run Dataproc execution.
      * Format: `projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}`
      * 
* * string cluster = 1; + * * @return The cluster. */ @java.lang.Override @@ -1427,30 +1653,30 @@ public java.lang.String getCluster() { 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(); cluster_ = s; return s; } } /** + * + * *
      * URI for cluster used to run Dataproc execution.
      * Format: `projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}`
      * 
* * string cluster = 1; + * * @return The bytes for cluster. */ @java.lang.Override - public com.google.protobuf.ByteString - getClusterBytes() { + public com.google.protobuf.ByteString getClusterBytes() { java.lang.Object ref = cluster_; 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); cluster_ = b; return b; } else { @@ -1459,6 +1685,7 @@ public java.lang.String getCluster() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1470,8 +1697,7 @@ 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(cluster_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cluster_); } @@ -1495,15 +1721,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.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters other = (com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters) obj; + com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters other = + (com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters) obj; - if (!getCluster() - .equals(other.getCluster())) return false; + if (!getCluster().equals(other.getCluster())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1523,87 +1749,95 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters 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.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters 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.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters 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.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters 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.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters 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.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters 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.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters 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 @@ -1613,39 +1847,42 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Parameters used in Dataproc JobType executions.
      * 
* * Protobuf type {@code google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters) com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParametersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ExecutionProto.internal_static_google_cloud_notebooks_v1_ExecutionTemplate_DataprocParameters_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ExecutionProto + .internal_static_google_cloud_notebooks_v1_ExecutionTemplate_DataprocParameters_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ExecutionProto.internal_static_google_cloud_notebooks_v1_ExecutionTemplate_DataprocParameters_fieldAccessorTable + return com.google.cloud.notebooks.v1.ExecutionProto + .internal_static_google_cloud_notebooks_v1_ExecutionTemplate_DataprocParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.class, com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.Builder.class); + com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.class, + com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.Builder.class); } - // Construct using com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1655,14 +1892,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.ExecutionProto.internal_static_google_cloud_notebooks_v1_ExecutionTemplate_DataprocParameters_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.ExecutionProto + .internal_static_google_cloud_notebooks_v1_ExecutionTemplate_DataprocParameters_descriptor; } @java.lang.Override - public com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters getDefaultInstanceForType() { - return com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.getDefaultInstance(); + public com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters + getDefaultInstanceForType() { + return com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters + .getDefaultInstance(); } @java.lang.Override @@ -1676,7 +1915,8 @@ public com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters build( @java.lang.Override public com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters buildPartial() { - com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters result = new com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters(this); + com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters result = + new com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters(this); result.cluster_ = cluster_; onBuilt(); return result; @@ -1686,46 +1926,53 @@ public com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters buildP 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.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters) { - return mergeFrom((com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters)other); + return mergeFrom( + (com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters other) { - if (other == com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters other) { + if (other + == com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters + .getDefaultInstance()) return this; if (!other.getCluster().isEmpty()) { cluster_ = other.cluster_; onChanged(); @@ -1756,17 +2003,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - cluster_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + cluster_ = input.readStringRequireUtf8(); + + 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) { @@ -1779,19 +2028,21 @@ public Builder mergeFrom( private java.lang.Object cluster_ = ""; /** + * + * *
        * URI for cluster used to run Dataproc execution.
        * Format: `projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}`
        * 
* * string cluster = 1; + * * @return The cluster. */ public java.lang.String getCluster() { java.lang.Object ref = cluster_; 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(); cluster_ = s; return s; @@ -1800,21 +2051,22 @@ public java.lang.String getCluster() { } } /** + * + * *
        * URI for cluster used to run Dataproc execution.
        * Format: `projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}`
        * 
* * string cluster = 1; + * * @return The bytes for cluster. */ - public com.google.protobuf.ByteString - getClusterBytes() { + public com.google.protobuf.ByteString getClusterBytes() { java.lang.Object ref = cluster_; 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); cluster_ = b; return b; } else { @@ -1822,61 +2074,69 @@ public java.lang.String getCluster() { } } /** + * + * *
        * URI for cluster used to run Dataproc execution.
        * Format: `projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}`
        * 
* * string cluster = 1; + * * @param value The cluster to set. * @return This builder for chaining. */ - public Builder setCluster( - java.lang.String value) { + public Builder setCluster(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cluster_ = value; onChanged(); return this; } /** + * + * *
        * URI for cluster used to run Dataproc execution.
        * Format: `projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}`
        * 
* * string cluster = 1; + * * @return This builder for chaining. */ public Builder clearCluster() { - + cluster_ = getDefaultInstance().getCluster(); onChanged(); return this; } /** + * + * *
        * URI for cluster used to run Dataproc execution.
        * Format: `projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}`
        * 
* * string cluster = 1; + * * @param value The bytes for cluster to set. * @return This builder for chaining. */ - public Builder setClusterBytes( - com.google.protobuf.ByteString value) { + public Builder setClusterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cluster_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1889,41 +2149,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters) - private static final com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters DEFAULT_INSTANCE; + private static final com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters(); } - public static com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters getDefaultInstance() { + public static com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataprocParameters parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataprocParameters parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -1935,17 +2198,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters getDefaultInstanceForType() { + public com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface VertexAIParametersOrBuilder extends + public interface VertexAIParametersOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The full name of the Compute Engine
      * [network](/compute/docs/networks-and-firewalls#networks) to which the Job
@@ -1959,10 +2225,13 @@ public interface VertexAIParametersOrBuilder extends
      * 
* * string network = 1; + * * @return The network. */ java.lang.String getNetwork(); /** + * + * *
      * The full name of the Compute Engine
      * [network](/compute/docs/networks-and-firewalls#networks) to which the Job
@@ -1976,12 +2245,14 @@ public interface VertexAIParametersOrBuilder extends
      * 
* * string network = 1; + * * @return The bytes for network. */ - com.google.protobuf.ByteString - getNetworkBytes(); + com.google.protobuf.ByteString getNetworkBytes(); /** + * + * *
      * Environment variables.
      *  At most 100 environment variables can be specified and unique.
@@ -1992,6 +2263,8 @@ public interface VertexAIParametersOrBuilder extends
      */
     int getEnvCount();
     /**
+     *
+     *
      * 
      * Environment variables.
      *  At most 100 environment variables can be specified and unique.
@@ -2000,15 +2273,13 @@ public interface VertexAIParametersOrBuilder extends
      *
      * map<string, string> env = 2;
      */
-    boolean containsEnv(
-        java.lang.String key);
-    /**
-     * Use {@link #getEnvMap()} instead.
-     */
+    boolean containsEnv(java.lang.String key);
+    /** Use {@link #getEnvMap()} instead. */
     @java.lang.Deprecated
-    java.util.Map
-    getEnv();
+    java.util.Map getEnv();
     /**
+     *
+     *
      * 
      * Environment variables.
      *  At most 100 environment variables can be specified and unique.
@@ -2017,9 +2288,10 @@ boolean containsEnv(
      *
      * map<string, string> env = 2;
      */
-    java.util.Map
-    getEnvMap();
+    java.util.Map getEnvMap();
     /**
+     *
+     *
      * 
      * Environment variables.
      *  At most 100 environment variables can be specified and unique.
@@ -2030,11 +2302,13 @@ boolean containsEnv(
      */
 
     /* nullable */
-java.lang.String getEnvOrDefault(
+    java.lang.String getEnvOrDefault(
         java.lang.String key,
         /* nullable */
-java.lang.String defaultValue);
+        java.lang.String defaultValue);
     /**
+     *
+     *
      * 
      * Environment variables.
      *  At most 100 environment variables can be specified and unique.
@@ -2043,70 +2317,73 @@ java.lang.String getEnvOrDefault(
      *
      * map<string, string> env = 2;
      */
-
-    java.lang.String getEnvOrThrow(
-        java.lang.String key);
+    java.lang.String getEnvOrThrow(java.lang.String key);
   }
   /**
+   *
+   *
    * 
    * Parameters used in Vertex AI JobType executions.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters} */ - public static final class VertexAIParameters extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class VertexAIParameters extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters) VertexAIParametersOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VertexAIParameters.newBuilder() to construct. private VertexAIParameters(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private VertexAIParameters() { network_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VertexAIParameters(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ExecutionProto.internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ExecutionProto + .internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_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 2: return internalGetEnv(); 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.cloud.notebooks.v1.ExecutionProto.internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_fieldAccessorTable + return com.google.cloud.notebooks.v1.ExecutionProto + .internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.class, com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.Builder.class); + com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.class, + com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.Builder.class); } public static final int NETWORK_FIELD_NUMBER = 1; private volatile java.lang.Object network_; /** + * + * *
      * The full name of the Compute Engine
      * [network](/compute/docs/networks-and-firewalls#networks) to which the Job
@@ -2120,6 +2397,7 @@ protected com.google.protobuf.MapField internalGetMapField(
      * 
* * string network = 1; + * * @return The network. */ @java.lang.Override @@ -2128,14 +2406,15 @@ public java.lang.String getNetwork() { 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(); network_ = s; return s; } } /** + * + * *
      * The full name of the Compute Engine
      * [network](/compute/docs/networks-and-firewalls#networks) to which the Job
@@ -2149,16 +2428,15 @@ public java.lang.String getNetwork() {
      * 
* * string network = 1; + * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; 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); network_ = b; return b; } else { @@ -2167,24 +2445,23 @@ public java.lang.String getNetwork() { } public static final int ENV_FIELD_NUMBER = 2; + private static final class EnvDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.notebooks.v1.ExecutionProto.internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_EnvEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> env_; - private com.google.protobuf.MapField - internalGetEnv() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.notebooks.v1.ExecutionProto + .internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_EnvEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField env_; + + private com.google.protobuf.MapField internalGetEnv() { if (env_ == null) { - return com.google.protobuf.MapField.emptyMapField( - EnvDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(EnvDefaultEntryHolder.defaultEntry); } return env_; } @@ -2193,6 +2470,8 @@ public int getEnvCount() { return internalGetEnv().getMap().size(); } /** + * + * *
      * Environment variables.
      *  At most 100 environment variables can be specified and unique.
@@ -2201,22 +2480,22 @@ public int getEnvCount() {
      *
      * map<string, string> env = 2;
      */
-
     @java.lang.Override
-    public boolean containsEnv(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsEnv(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetEnv().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getEnvMap()} instead.
-     */
+    /** Use {@link #getEnvMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getEnv() {
       return getEnvMap();
     }
     /**
+     *
+     *
      * 
      * Environment variables.
      *  At most 100 environment variables can be specified and unique.
@@ -2226,11 +2505,12 @@ public java.util.Map getEnv() {
      * map<string, string> env = 2;
      */
     @java.lang.Override
-
     public java.util.Map getEnvMap() {
       return internalGetEnv().getMap();
     }
     /**
+     *
+     *
      * 
      * Environment variables.
      *  At most 100 environment variables can be specified and unique.
@@ -2240,16 +2520,16 @@ public java.util.Map getEnvMap() {
      * map<string, string> env = 2;
      */
     @java.lang.Override
-
-    public java.lang.String getEnvOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetEnv().getMap();
+    public java.lang.String getEnvOrDefault(java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetEnv().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Environment variables.
      *  At most 100 environment variables can be specified and unique.
@@ -2259,12 +2539,11 @@ public java.lang.String getEnvOrDefault(
      * map<string, string> env = 2;
      */
     @java.lang.Override
-
-    public java.lang.String getEnvOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetEnv().getMap();
+    public java.lang.String getEnvOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetEnv().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -2272,6 +2551,7 @@ public java.lang.String getEnvOrThrow(
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -2283,17 +2563,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(network_)) {
         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, network_);
       }
-      com.google.protobuf.GeneratedMessageV3
-        .serializeStringMapTo(
-          output,
-          internalGetEnv(),
-          EnvDefaultEntryHolder.defaultEntry,
-          2);
+      com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+          output, internalGetEnv(), EnvDefaultEntryHolder.defaultEntry, 2);
       getUnknownFields().writeTo(output);
     }
 
@@ -2306,15 +2581,15 @@ public int getSerializedSize() {
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) {
         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, network_);
       }
-      for (java.util.Map.Entry entry
-           : internalGetEnv().getMap().entrySet()) {
-        com.google.protobuf.MapEntry
-        env__ = EnvDefaultEntryHolder.defaultEntry.newBuilderForType()
-            .setKey(entry.getKey())
-            .setValue(entry.getValue())
-            .build();
-        size += com.google.protobuf.CodedOutputStream
-            .computeMessageSize(2, env__);
+      for (java.util.Map.Entry entry :
+          internalGetEnv().getMap().entrySet()) {
+        com.google.protobuf.MapEntry env__ =
+            EnvDefaultEntryHolder.defaultEntry
+                .newBuilderForType()
+                .setKey(entry.getKey())
+                .setValue(entry.getValue())
+                .build();
+        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, env__);
       }
       size += getUnknownFields().getSerializedSize();
       memoizedSize = size;
@@ -2324,17 +2599,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.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters)) {
         return super.equals(obj);
       }
-      com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters other = (com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters) obj;
+      com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters other =
+          (com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters) obj;
 
-      if (!getNetwork()
-          .equals(other.getNetwork())) return false;
-      if (!internalGetEnv().equals(
-          other.internalGetEnv())) return false;
+      if (!getNetwork().equals(other.getNetwork())) return false;
+      if (!internalGetEnv().equals(other.internalGetEnv())) return false;
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
     }
@@ -2358,87 +2632,95 @@ public int hashCode() {
     }
 
     public static com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters 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.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters 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.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters parseFrom(byte[] data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters parseFrom(
+        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters 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.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters parseFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters 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.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
+
+    public static com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters
+        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
     }
-    public static com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters parseDelimitedFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+
+    public static com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters
+        parseDelimitedFrom(
+            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+          PARSER, input, extensionRegistry);
     }
+
     public static com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters 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.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters 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.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters prototype) {
+
+    public static Builder newBuilder(
+        com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters 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
@@ -2448,61 +2730,62 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
+     *
+     *
      * 
      * Parameters used in Vertex AI JobType executions.
      * 
* * Protobuf type {@code google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters) com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParametersOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ExecutionProto.internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ExecutionProto + .internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetEnv(); 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 2: return internalGetMutableEnv(); 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.cloud.notebooks.v1.ExecutionProto.internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_fieldAccessorTable + return com.google.cloud.notebooks.v1.ExecutionProto + .internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.class, com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.Builder.class); + com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.class, + com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.Builder.class); } - // Construct using com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2513,14 +2796,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.ExecutionProto.internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.ExecutionProto + .internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_descriptor; } @java.lang.Override - public com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters getDefaultInstanceForType() { - return com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.getDefaultInstance(); + public com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters + getDefaultInstanceForType() { + return com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters + .getDefaultInstance(); } @java.lang.Override @@ -2534,7 +2819,8 @@ public com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters build( @java.lang.Override public com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters buildPartial() { - com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters result = new com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters(this); + com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters result = + new com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters(this); int from_bitField0_ = bitField0_; result.network_ = network_; result.env_ = internalGetEnv(); @@ -2547,52 +2833,58 @@ public com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters buildP 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.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters) { - return mergeFrom((com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters)other); + return mergeFrom( + (com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters other) { - if (other == com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters other) { + if (other + == com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters + .getDefaultInstance()) return this; if (!other.getNetwork().isEmpty()) { network_ = other.network_; onChanged(); } - internalGetMutableEnv().mergeFrom( - other.internalGetEnv()); + internalGetMutableEnv().mergeFrom(other.internalGetEnv()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2619,25 +2911,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - network_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - com.google.protobuf.MapEntry - env__ = input.readMessage( - EnvDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableEnv().getMutableMap().put( - env__.getKey(), env__.getValue()); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + network_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry env__ = + input.readMessage( + EnvDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableEnv().getMutableMap().put(env__.getKey(), env__.getValue()); + 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) { @@ -2647,10 +2941,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object network_ = ""; /** + * + * *
        * The full name of the Compute Engine
        * [network](/compute/docs/networks-and-firewalls#networks) to which the Job
@@ -2664,13 +2961,13 @@ public Builder mergeFrom(
        * 
* * string network = 1; + * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; 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(); network_ = s; return s; @@ -2679,6 +2976,8 @@ public java.lang.String getNetwork() { } } /** + * + * *
        * The full name of the Compute Engine
        * [network](/compute/docs/networks-and-firewalls#networks) to which the Job
@@ -2692,15 +2991,14 @@ public java.lang.String getNetwork() {
        * 
* * string network = 1; + * * @return The bytes for network. */ - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; 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); network_ = b; return b; } else { @@ -2708,6 +3006,8 @@ public java.lang.String getNetwork() { } } /** + * + * *
        * The full name of the Compute Engine
        * [network](/compute/docs/networks-and-firewalls#networks) to which the Job
@@ -2721,20 +3021,22 @@ public java.lang.String getNetwork() {
        * 
* * string network = 1; + * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork( - java.lang.String value) { + public Builder setNetwork(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + network_ = value; onChanged(); return this; } /** + * + * *
        * The full name of the Compute Engine
        * [network](/compute/docs/networks-and-firewalls#networks) to which the Job
@@ -2748,15 +3050,18 @@ public Builder setNetwork(
        * 
* * string network = 1; + * * @return This builder for chaining. */ public Builder clearNetwork() { - + network_ = getDefaultInstance().getNetwork(); onChanged(); return this; } /** + * + * *
        * The full name of the Compute Engine
        * [network](/compute/docs/networks-and-firewalls#networks) to which the Job
@@ -2770,37 +3075,36 @@ public Builder clearNetwork() {
        * 
* * string network = 1; + * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes( - com.google.protobuf.ByteString value) { + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> env_; - private com.google.protobuf.MapField - internalGetEnv() { + private com.google.protobuf.MapField env_; + + private com.google.protobuf.MapField internalGetEnv() { if (env_ == null) { - return com.google.protobuf.MapField.emptyMapField( - EnvDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(EnvDefaultEntryHolder.defaultEntry); } return env_; } + private com.google.protobuf.MapField - internalGetMutableEnv() { - onChanged();; + internalGetMutableEnv() { + onChanged(); + ; if (env_ == null) { - env_ = com.google.protobuf.MapField.newMapField( - EnvDefaultEntryHolder.defaultEntry); + env_ = com.google.protobuf.MapField.newMapField(EnvDefaultEntryHolder.defaultEntry); } if (!env_.isMutable()) { env_ = env_.copy(); @@ -2812,6 +3116,8 @@ public int getEnvCount() { return internalGetEnv().getMap().size(); } /** + * + * *
        * Environment variables.
        *  At most 100 environment variables can be specified and unique.
@@ -2820,22 +3126,22 @@ public int getEnvCount() {
        *
        * map<string, string> env = 2;
        */
-
       @java.lang.Override
-      public boolean containsEnv(
-          java.lang.String key) {
-        if (key == null) { throw new NullPointerException("map key"); }
+      public boolean containsEnv(java.lang.String key) {
+        if (key == null) {
+          throw new NullPointerException("map key");
+        }
         return internalGetEnv().getMap().containsKey(key);
       }
-      /**
-       * Use {@link #getEnvMap()} instead.
-       */
+      /** Use {@link #getEnvMap()} instead. */
       @java.lang.Override
       @java.lang.Deprecated
       public java.util.Map getEnv() {
         return getEnvMap();
       }
       /**
+       *
+       *
        * 
        * Environment variables.
        *  At most 100 environment variables can be specified and unique.
@@ -2845,11 +3151,12 @@ public java.util.Map getEnv() {
        * map<string, string> env = 2;
        */
       @java.lang.Override
-
       public java.util.Map getEnvMap() {
         return internalGetEnv().getMap();
       }
       /**
+       *
+       *
        * 
        * Environment variables.
        *  At most 100 environment variables can be specified and unique.
@@ -2859,16 +3166,16 @@ public java.util.Map getEnvMap() {
        * map<string, string> env = 2;
        */
       @java.lang.Override
-
-      public java.lang.String getEnvOrDefault(
-          java.lang.String key,
-          java.lang.String defaultValue) {
-        if (key == null) { throw new NullPointerException("map key"); }
-        java.util.Map map =
-            internalGetEnv().getMap();
+      public java.lang.String getEnvOrDefault(java.lang.String key, java.lang.String defaultValue) {
+        if (key == null) {
+          throw new NullPointerException("map key");
+        }
+        java.util.Map map = internalGetEnv().getMap();
         return map.containsKey(key) ? map.get(key) : defaultValue;
       }
       /**
+       *
+       *
        * 
        * Environment variables.
        *  At most 100 environment variables can be specified and unique.
@@ -2878,12 +3185,11 @@ public java.lang.String getEnvOrDefault(
        * map<string, string> env = 2;
        */
       @java.lang.Override
-
-      public java.lang.String getEnvOrThrow(
-          java.lang.String key) {
-        if (key == null) { throw new NullPointerException("map key"); }
-        java.util.Map map =
-            internalGetEnv().getMap();
+      public java.lang.String getEnvOrThrow(java.lang.String key) {
+        if (key == null) {
+          throw new NullPointerException("map key");
+        }
+        java.util.Map map = internalGetEnv().getMap();
         if (!map.containsKey(key)) {
           throw new java.lang.IllegalArgumentException();
         }
@@ -2891,11 +3197,12 @@ public java.lang.String getEnvOrThrow(
       }
 
       public Builder clearEnv() {
-        internalGetMutableEnv().getMutableMap()
-            .clear();
+        internalGetMutableEnv().getMutableMap().clear();
         return this;
       }
       /**
+       *
+       *
        * 
        * Environment variables.
        *  At most 100 environment variables can be specified and unique.
@@ -2904,23 +3211,21 @@ public Builder clearEnv() {
        *
        * map<string, string> env = 2;
        */
-
-      public Builder removeEnv(
-          java.lang.String key) {
-        if (key == null) { throw new NullPointerException("map key"); }
-        internalGetMutableEnv().getMutableMap()
-            .remove(key);
+      public Builder removeEnv(java.lang.String key) {
+        if (key == null) {
+          throw new NullPointerException("map key");
+        }
+        internalGetMutableEnv().getMutableMap().remove(key);
         return this;
       }
-      /**
-       * Use alternate mutation accessors instead.
-       */
+      /** Use alternate mutation accessors instead. */
       @java.lang.Deprecated
-      public java.util.Map
-      getMutableEnv() {
+      public java.util.Map getMutableEnv() {
         return internalGetMutableEnv().getMutableMap();
       }
       /**
+       *
+       *
        * 
        * Environment variables.
        *  At most 100 environment variables can be specified and unique.
@@ -2929,19 +3234,20 @@ public Builder removeEnv(
        *
        * map<string, string> env = 2;
        */
-      public Builder putEnv(
-          java.lang.String key,
-          java.lang.String value) {
-        if (key == null) { throw new NullPointerException("map key"); }
+      public Builder putEnv(java.lang.String key, java.lang.String value) {
+        if (key == null) {
+          throw new NullPointerException("map key");
+        }
         if (value == null) {
-  throw new NullPointerException("map value");
-}
+          throw new NullPointerException("map value");
+        }
 
-        internalGetMutableEnv().getMutableMap()
-            .put(key, value);
+        internalGetMutableEnv().getMutableMap().put(key, value);
         return this;
       }
       /**
+       *
+       *
        * 
        * Environment variables.
        *  At most 100 environment variables can be specified and unique.
@@ -2950,13 +3256,11 @@ public Builder putEnv(
        *
        * map<string, string> env = 2;
        */
-
-      public Builder putAllEnv(
-          java.util.Map values) {
-        internalGetMutableEnv().getMutableMap()
-            .putAll(values);
+      public Builder putAllEnv(java.util.Map values) {
+        internalGetMutableEnv().getMutableMap().putAll(values);
         return this;
       }
+
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -2969,41 +3273,44 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
-
       // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters)
-    private static final com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters DEFAULT_INSTANCE;
+    private static final com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters
+        DEFAULT_INSTANCE;
+
     static {
       DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters();
     }
 
-    public static com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters getDefaultInstance() {
+    public static com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters
+        getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public VertexAIParameters parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        Builder builder = newBuilder();
-        try {
-          builder.mergeFrom(input, extensionRegistry);
-        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          throw e.setUnfinishedMessage(builder.buildPartial());
-        } catch (com.google.protobuf.UninitializedMessageException e) {
-          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 PARSER =
+        new com.google.protobuf.AbstractParser() {
+          @java.lang.Override
+          public VertexAIParameters parsePartialFrom(
+              com.google.protobuf.CodedInputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
+            Builder builder = newBuilder();
+            try {
+              builder.mergeFrom(input, extensionRegistry);
+            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+              throw e.setUnfinishedMessage(builder.buildPartial());
+            } catch (com.google.protobuf.UninitializedMessageException e) {
+              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 parser() {
       return PARSER;
@@ -3015,21 +3322,24 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters getDefaultInstanceForType() {
+    public com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters
+        getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
-
   }
 
   private int jobParametersCase_ = 0;
   private java.lang.Object jobParameters_;
+
   public enum JobParametersCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     DATAPROC_PARAMETERS(12),
     VERTEX_AI_PARAMETERS(13),
     JOBPARAMETERS_NOT_SET(0);
     private final int value;
+
     private JobParametersCase(int value) {
       this.value = value;
     }
@@ -3045,59 +3355,81 @@ public static JobParametersCase valueOf(int value) {
 
     public static JobParametersCase forNumber(int value) {
       switch (value) {
-        case 12: return DATAPROC_PARAMETERS;
-        case 13: return VERTEX_AI_PARAMETERS;
-        case 0: return JOBPARAMETERS_NOT_SET;
-        default: return null;
+        case 12:
+          return DATAPROC_PARAMETERS;
+        case 13:
+          return VERTEX_AI_PARAMETERS;
+        case 0:
+          return JOBPARAMETERS_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public JobParametersCase
-  getJobParametersCase() {
-    return JobParametersCase.forNumber(
-        jobParametersCase_);
+  public JobParametersCase getJobParametersCase() {
+    return JobParametersCase.forNumber(jobParametersCase_);
   }
 
   public static final int SCALE_TIER_FIELD_NUMBER = 1;
   private int scaleTier_;
   /**
+   *
+   *
    * 
    * Required. Scale tier of the hardware used for notebook execution.
    * DEPRECATED Will be discontinued. As right now only CUSTOM is supported.
    * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier scale_tier = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.cloud.notebooks.v1.ExecutionTemplate.scale_tier is deprecated. - * See google/cloud/notebooks/v1/execution.proto;l=150 + * + * .google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier scale_tier = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.cloud.notebooks.v1.ExecutionTemplate.scale_tier is deprecated. See + * google/cloud/notebooks/v1/execution.proto;l=150 * @return The enum numeric value on the wire for scaleTier. */ - @java.lang.Override @java.lang.Deprecated public int getScaleTierValue() { + @java.lang.Override + @java.lang.Deprecated + public int getScaleTierValue() { return scaleTier_; } /** + * + * *
    * Required. Scale tier of the hardware used for notebook execution.
    * DEPRECATED Will be discontinued. As right now only CUSTOM is supported.
    * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier scale_tier = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.cloud.notebooks.v1.ExecutionTemplate.scale_tier is deprecated. - * See google/cloud/notebooks/v1/execution.proto;l=150 + * + * .google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier scale_tier = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.cloud.notebooks.v1.ExecutionTemplate.scale_tier is deprecated. See + * google/cloud/notebooks/v1/execution.proto;l=150 * @return The scaleTier. */ - @java.lang.Override @java.lang.Deprecated public com.google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier getScaleTier() { + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier getScaleTier() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier result = com.google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier.valueOf(scaleTier_); - return result == null ? com.google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier result = + com.google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier.valueOf(scaleTier_); + return result == null + ? com.google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier.UNRECOGNIZED + : result; } public static final int MASTER_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object masterType_; /** + * + * *
    * Specifies the type of virtual machine to use for your training
    * job's master worker. You must specify this field when `scaleTier` is set to
@@ -3143,6 +3475,7 @@ public int getNumber() {
    * 
* * string master_type = 2; + * * @return The masterType. */ @java.lang.Override @@ -3151,14 +3484,15 @@ public java.lang.String getMasterType() { 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(); masterType_ = s; return s; } } /** + * + * *
    * Specifies the type of virtual machine to use for your training
    * job's master worker. You must specify this field when `scaleTier` is set to
@@ -3204,16 +3538,15 @@ public java.lang.String getMasterType() {
    * 
* * string master_type = 2; + * * @return The bytes for masterType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMasterTypeBytes() { + public com.google.protobuf.ByteString getMasterTypeBytes() { java.lang.Object ref = masterType_; 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); masterType_ = b; return b; } else { @@ -3222,14 +3555,20 @@ public java.lang.String getMasterType() { } public static final int ACCELERATOR_CONFIG_FIELD_NUMBER = 3; - private com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig acceleratorConfig_; + private com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig + acceleratorConfig_; /** + * + * *
    * Configuration (count and accelerator type) for hardware running notebook
    * execution.
    * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig accelerator_config = 3; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig accelerator_config = 3; + * + * * @return Whether the acceleratorConfig field is set. */ @java.lang.Override @@ -3237,50 +3576,63 @@ public boolean hasAcceleratorConfig() { return acceleratorConfig_ != null; } /** + * + * *
    * Configuration (count and accelerator type) for hardware running notebook
    * execution.
    * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig accelerator_config = 3; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig accelerator_config = 3; + * + * * @return The acceleratorConfig. */ @java.lang.Override - public com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig getAcceleratorConfig() { - return acceleratorConfig_ == null ? com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig.getDefaultInstance() : acceleratorConfig_; + public com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig + getAcceleratorConfig() { + return acceleratorConfig_ == null + ? com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig + .getDefaultInstance() + : acceleratorConfig_; } /** + * + * *
    * Configuration (count and accelerator type) for hardware running notebook
    * execution.
    * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig accelerator_config = 3; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig accelerator_config = 3; + * */ @java.lang.Override - public com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfigOrBuilder getAcceleratorConfigOrBuilder() { + public com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfigOrBuilder + getAcceleratorConfigOrBuilder() { return getAcceleratorConfig(); } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.notebooks.v1.ExecutionProto.internal_static_google_cloud_notebooks_v1_ExecutionTemplate_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.notebooks.v1.ExecutionProto + .internal_static_google_cloud_notebooks_v1_ExecutionTemplate_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -3289,6 +3641,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels for execution.
    * If execution is scheduled, a field included will be 'nbs-scheduled'.
@@ -3299,22 +3653,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 4;
    */
-
   @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 getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Labels for execution.
    * If execution is scheduled, a field included will be 'nbs-scheduled'.
@@ -3326,11 +3680,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Labels for execution.
    * If execution is scheduled, a field included will be 'nbs-scheduled'.
@@ -3342,16 +3697,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Labels for execution.
    * If execution is scheduled, a field included will be 'nbs-scheduled'.
@@ -3363,12 +3718,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 4;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -3378,6 +3732,8 @@ public java.lang.String getLabelsOrThrow(
   public static final int INPUT_NOTEBOOK_FILE_FIELD_NUMBER = 5;
   private volatile java.lang.Object inputNotebookFile_;
   /**
+   *
+   *
    * 
    * Path to the notebook file to execute.
    * Must be in a Google Cloud Storage bucket.
@@ -3386,6 +3742,7 @@ public java.lang.String getLabelsOrThrow(
    * 
* * string input_notebook_file = 5; + * * @return The inputNotebookFile. */ @java.lang.Override @@ -3394,14 +3751,15 @@ public java.lang.String getInputNotebookFile() { 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(); inputNotebookFile_ = s; return s; } } /** + * + * *
    * Path to the notebook file to execute.
    * Must be in a Google Cloud Storage bucket.
@@ -3410,16 +3768,15 @@ public java.lang.String getInputNotebookFile() {
    * 
* * string input_notebook_file = 5; + * * @return The bytes for inputNotebookFile. */ @java.lang.Override - public com.google.protobuf.ByteString - getInputNotebookFileBytes() { + public com.google.protobuf.ByteString getInputNotebookFileBytes() { java.lang.Object ref = inputNotebookFile_; 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); inputNotebookFile_ = b; return b; } else { @@ -3430,6 +3787,8 @@ public java.lang.String getInputNotebookFile() { public static final int CONTAINER_IMAGE_URI_FIELD_NUMBER = 6; private volatile java.lang.Object containerImageUri_; /** + * + * *
    * Container Image URI to a DLVM
    * Example: 'gcr.io/deeplearning-platform-release/base-cu100'
@@ -3438,6 +3797,7 @@ public java.lang.String getInputNotebookFile() {
    * 
* * string container_image_uri = 6; + * * @return The containerImageUri. */ @java.lang.Override @@ -3446,14 +3806,15 @@ public java.lang.String getContainerImageUri() { 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(); containerImageUri_ = s; return s; } } /** + * + * *
    * Container Image URI to a DLVM
    * Example: 'gcr.io/deeplearning-platform-release/base-cu100'
@@ -3462,16 +3823,15 @@ public java.lang.String getContainerImageUri() {
    * 
* * string container_image_uri = 6; + * * @return The bytes for containerImageUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getContainerImageUriBytes() { + public com.google.protobuf.ByteString getContainerImageUriBytes() { java.lang.Object ref = containerImageUri_; 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); containerImageUri_ = b; return b; } else { @@ -3482,6 +3842,8 @@ public java.lang.String getContainerImageUri() { public static final int OUTPUT_NOTEBOOK_FOLDER_FIELD_NUMBER = 7; private volatile java.lang.Object outputNotebookFolder_; /** + * + * *
    * Path to the notebook folder to write to.
    * Must be in a Google Cloud Storage bucket path.
@@ -3490,6 +3852,7 @@ public java.lang.String getContainerImageUri() {
    * 
* * string output_notebook_folder = 7; + * * @return The outputNotebookFolder. */ @java.lang.Override @@ -3498,14 +3861,15 @@ public java.lang.String getOutputNotebookFolder() { 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(); outputNotebookFolder_ = s; return s; } } /** + * + * *
    * Path to the notebook folder to write to.
    * Must be in a Google Cloud Storage bucket path.
@@ -3514,16 +3878,15 @@ public java.lang.String getOutputNotebookFolder() {
    * 
* * string output_notebook_folder = 7; + * * @return The bytes for outputNotebookFolder. */ @java.lang.Override - public com.google.protobuf.ByteString - getOutputNotebookFolderBytes() { + public com.google.protobuf.ByteString getOutputNotebookFolderBytes() { java.lang.Object ref = outputNotebookFolder_; 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); outputNotebookFolder_ = b; return b; } else { @@ -3534,6 +3897,8 @@ public java.lang.String getOutputNotebookFolder() { public static final int PARAMS_YAML_FILE_FIELD_NUMBER = 8; private volatile java.lang.Object paramsYamlFile_; /** + * + * *
    * Parameters to be overridden in the notebook during execution.
    * Ref https://papermill.readthedocs.io/en/latest/usage-parameterize.html on
@@ -3543,6 +3908,7 @@ public java.lang.String getOutputNotebookFolder() {
    * 
* * string params_yaml_file = 8; + * * @return The paramsYamlFile. */ @java.lang.Override @@ -3551,14 +3917,15 @@ public java.lang.String getParamsYamlFile() { 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(); paramsYamlFile_ = s; return s; } } /** + * + * *
    * Parameters to be overridden in the notebook during execution.
    * Ref https://papermill.readthedocs.io/en/latest/usage-parameterize.html on
@@ -3568,16 +3935,15 @@ public java.lang.String getParamsYamlFile() {
    * 
* * string params_yaml_file = 8; + * * @return The bytes for paramsYamlFile. */ @java.lang.Override - public com.google.protobuf.ByteString - getParamsYamlFileBytes() { + public com.google.protobuf.ByteString getParamsYamlFileBytes() { java.lang.Object ref = paramsYamlFile_; 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); paramsYamlFile_ = b; return b; } else { @@ -3588,11 +3954,14 @@ public java.lang.String getParamsYamlFile() { public static final int PARAMETERS_FIELD_NUMBER = 9; private volatile java.lang.Object parameters_; /** + * + * *
    * Parameters used within the 'input_notebook_file' notebook.
    * 
* * string parameters = 9; + * * @return The parameters. */ @java.lang.Override @@ -3601,29 +3970,29 @@ public java.lang.String getParameters() { 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(); parameters_ = s; return s; } } /** + * + * *
    * Parameters used within the 'input_notebook_file' notebook.
    * 
* * string parameters = 9; + * * @return The bytes for parameters. */ @java.lang.Override - public com.google.protobuf.ByteString - getParametersBytes() { + public com.google.protobuf.ByteString getParametersBytes() { java.lang.Object ref = parameters_; 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); parameters_ = b; return b; } else { @@ -3634,6 +4003,8 @@ public java.lang.String getParameters() { public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 10; private volatile java.lang.Object serviceAccount_; /** + * + * *
    * The email address of a service account to use when running the execution.
    * You must have the `iam.serviceAccounts.actAs` permission for the specified
@@ -3641,6 +4012,7 @@ public java.lang.String getParameters() {
    * 
* * string service_account = 10; + * * @return The serviceAccount. */ @java.lang.Override @@ -3649,14 +4021,15 @@ public java.lang.String getServiceAccount() { 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(); serviceAccount_ = s; return s; } } /** + * + * *
    * The email address of a service account to use when running the execution.
    * You must have the `iam.serviceAccounts.actAs` permission for the specified
@@ -3664,16 +4037,15 @@ public java.lang.String getServiceAccount() {
    * 
* * string service_account = 10; + * * @return The bytes for serviceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountBytes() { + public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; 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); serviceAccount_ = b; return b; } else { @@ -3684,37 +4056,52 @@ public java.lang.String getServiceAccount() { public static final int JOB_TYPE_FIELD_NUMBER = 11; private int jobType_; /** + * + * *
    * The type of Job to be used on this execution.
    * 
* * .google.cloud.notebooks.v1.ExecutionTemplate.JobType job_type = 11; + * * @return The enum numeric value on the wire for jobType. */ - @java.lang.Override public int getJobTypeValue() { + @java.lang.Override + public int getJobTypeValue() { return jobType_; } /** + * + * *
    * The type of Job to be used on this execution.
    * 
* * .google.cloud.notebooks.v1.ExecutionTemplate.JobType job_type = 11; + * * @return The jobType. */ - @java.lang.Override public com.google.cloud.notebooks.v1.ExecutionTemplate.JobType getJobType() { + @java.lang.Override + public com.google.cloud.notebooks.v1.ExecutionTemplate.JobType getJobType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.ExecutionTemplate.JobType result = com.google.cloud.notebooks.v1.ExecutionTemplate.JobType.valueOf(jobType_); - return result == null ? com.google.cloud.notebooks.v1.ExecutionTemplate.JobType.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1.ExecutionTemplate.JobType result = + com.google.cloud.notebooks.v1.ExecutionTemplate.JobType.valueOf(jobType_); + return result == null + ? com.google.cloud.notebooks.v1.ExecutionTemplate.JobType.UNRECOGNIZED + : result; } public static final int DATAPROC_PARAMETERS_FIELD_NUMBER = 12; /** + * + * *
    * Parameters used in Dataproc JobType executions.
    * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters dataproc_parameters = 12; + * .google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters dataproc_parameters = 12; + * + * * @return Whether the dataprocParameters field is set. */ @java.lang.Override @@ -3722,42 +4109,56 @@ public boolean hasDataprocParameters() { return jobParametersCase_ == 12; } /** + * + * *
    * Parameters used in Dataproc JobType executions.
    * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters dataproc_parameters = 12; + * .google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters dataproc_parameters = 12; + * + * * @return The dataprocParameters. */ @java.lang.Override - public com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters getDataprocParameters() { + public com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters + getDataprocParameters() { if (jobParametersCase_ == 12) { - return (com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters) jobParameters_; + return (com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters) jobParameters_; } return com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.getDefaultInstance(); } /** + * + * *
    * Parameters used in Dataproc JobType executions.
    * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters dataproc_parameters = 12; + * .google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters dataproc_parameters = 12; + * */ @java.lang.Override - public com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParametersOrBuilder getDataprocParametersOrBuilder() { + public com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParametersOrBuilder + getDataprocParametersOrBuilder() { if (jobParametersCase_ == 12) { - return (com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters) jobParameters_; + return (com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters) jobParameters_; } return com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.getDefaultInstance(); } public static final int VERTEX_AI_PARAMETERS_FIELD_NUMBER = 13; /** + * + * *
    * Parameters used in Vertex AI JobType executions.
    * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters vertex_ai_parameters = 13; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters vertex_ai_parameters = 13; + * + * * @return Whether the vertexAiParameters field is set. */ @java.lang.Override @@ -3765,31 +4166,42 @@ public boolean hasVertexAiParameters() { return jobParametersCase_ == 13; } /** + * + * *
    * Parameters used in Vertex AI JobType executions.
    * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters vertex_ai_parameters = 13; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters vertex_ai_parameters = 13; + * + * * @return The vertexAiParameters. */ @java.lang.Override - public com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters getVertexAiParameters() { + public com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters + getVertexAiParameters() { if (jobParametersCase_ == 13) { - return (com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters) jobParameters_; + return (com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters) jobParameters_; } return com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.getDefaultInstance(); } /** + * + * *
    * Parameters used in Vertex AI JobType executions.
    * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters vertex_ai_parameters = 13; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters vertex_ai_parameters = 13; + * */ @java.lang.Override - public com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParametersOrBuilder getVertexAiParametersOrBuilder() { + public com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParametersOrBuilder + getVertexAiParametersOrBuilder() { if (jobParametersCase_ == 13) { - return (com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters) jobParameters_; + return (com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters) jobParameters_; } return com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.getDefaultInstance(); } @@ -3797,6 +4209,8 @@ public com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParametersOrBuild public static final int KERNEL_SPEC_FIELD_NUMBER = 14; private volatile java.lang.Object kernelSpec_; /** + * + * *
    * Name of the kernel spec to use. This must be specified if the
    * kernel spec name on the execution target does not match the name in the
@@ -3804,6 +4218,7 @@ public com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParametersOrBuild
    * 
* * string kernel_spec = 14; + * * @return The kernelSpec. */ @java.lang.Override @@ -3812,14 +4227,15 @@ public java.lang.String getKernelSpec() { 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(); kernelSpec_ = s; return s; } } /** + * + * *
    * Name of the kernel spec to use. This must be specified if the
    * kernel spec name on the execution target does not match the name in the
@@ -3827,16 +4243,15 @@ public java.lang.String getKernelSpec() {
    * 
* * string kernel_spec = 14; + * * @return The bytes for kernelSpec. */ @java.lang.Override - public com.google.protobuf.ByteString - getKernelSpecBytes() { + public com.google.protobuf.ByteString getKernelSpecBytes() { java.lang.Object ref = kernelSpec_; 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); kernelSpec_ = b; return b; } else { @@ -3847,6 +4262,8 @@ public java.lang.String getKernelSpec() { public static final int TENSORBOARD_FIELD_NUMBER = 15; private volatile java.lang.Object tensorboard_; /** + * + * *
    * The name of a Vertex AI [Tensorboard] resource to which this execution
    * will upload Tensorboard logs.
@@ -3855,6 +4272,7 @@ public java.lang.String getKernelSpec() {
    * 
* * string tensorboard = 15 [(.google.api.resource_reference) = { ... } + * * @return The tensorboard. */ @java.lang.Override @@ -3863,14 +4281,15 @@ public java.lang.String getTensorboard() { 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(); tensorboard_ = s; return s; } } /** + * + * *
    * The name of a Vertex AI [Tensorboard] resource to which this execution
    * will upload Tensorboard logs.
@@ -3879,16 +4298,15 @@ public java.lang.String getTensorboard() {
    * 
* * string tensorboard = 15 [(.google.api.resource_reference) = { ... } + * * @return The bytes for tensorboard. */ @java.lang.Override - public com.google.protobuf.ByteString - getTensorboardBytes() { + public com.google.protobuf.ByteString getTensorboardBytes() { java.lang.Object ref = tensorboard_; 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); tensorboard_ = b; return b; } else { @@ -3897,6 +4315,7 @@ public java.lang.String getTensorboard() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3908,9 +4327,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (scaleTier_ != com.google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier.SCALE_TIER_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (scaleTier_ + != com.google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier.SCALE_TIER_UNSPECIFIED + .getNumber()) { output.writeEnum(1, scaleTier_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterType_)) { @@ -3919,12 +4339,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (acceleratorConfig_ != null) { output.writeMessage(3, getAcceleratorConfig()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputNotebookFile_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, inputNotebookFile_); } @@ -3943,14 +4359,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, serviceAccount_); } - if (jobType_ != com.google.cloud.notebooks.v1.ExecutionTemplate.JobType.JOB_TYPE_UNSPECIFIED.getNumber()) { + if (jobType_ + != com.google.cloud.notebooks.v1.ExecutionTemplate.JobType.JOB_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(11, jobType_); } if (jobParametersCase_ == 12) { - output.writeMessage(12, (com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters) jobParameters_); + output.writeMessage( + 12, (com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters) jobParameters_); } if (jobParametersCase_ == 13) { - output.writeMessage(13, (com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters) jobParameters_); + output.writeMessage( + 13, (com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters) jobParameters_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kernelSpec_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, kernelSpec_); @@ -3967,26 +4387,26 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (scaleTier_ != com.google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier.SCALE_TIER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, scaleTier_); + if (scaleTier_ + != com.google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier.SCALE_TIER_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, scaleTier_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, masterType_); } if (acceleratorConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getAcceleratorConfig()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAcceleratorConfig()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputNotebookFile_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, inputNotebookFile_); @@ -4006,17 +4426,22 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, serviceAccount_); } - if (jobType_ != com.google.cloud.notebooks.v1.ExecutionTemplate.JobType.JOB_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(11, jobType_); + if (jobType_ + != com.google.cloud.notebooks.v1.ExecutionTemplate.JobType.JOB_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, jobType_); } if (jobParametersCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, (com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters) jobParameters_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, + (com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters) jobParameters_); } if (jobParametersCase_ == 13) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, (com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters) jobParameters_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, + (com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters) jobParameters_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kernelSpec_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, kernelSpec_); @@ -4032,49 +4457,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.cloud.notebooks.v1.ExecutionTemplate)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.ExecutionTemplate other = (com.google.cloud.notebooks.v1.ExecutionTemplate) obj; + com.google.cloud.notebooks.v1.ExecutionTemplate other = + (com.google.cloud.notebooks.v1.ExecutionTemplate) obj; if (scaleTier_ != other.scaleTier_) return false; - if (!getMasterType() - .equals(other.getMasterType())) return false; + if (!getMasterType().equals(other.getMasterType())) return false; if (hasAcceleratorConfig() != other.hasAcceleratorConfig()) return false; if (hasAcceleratorConfig()) { - if (!getAcceleratorConfig() - .equals(other.getAcceleratorConfig())) return false; - } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getInputNotebookFile() - .equals(other.getInputNotebookFile())) return false; - if (!getContainerImageUri() - .equals(other.getContainerImageUri())) return false; - if (!getOutputNotebookFolder() - .equals(other.getOutputNotebookFolder())) return false; - if (!getParamsYamlFile() - .equals(other.getParamsYamlFile())) return false; - if (!getParameters() - .equals(other.getParameters())) return false; - if (!getServiceAccount() - .equals(other.getServiceAccount())) return false; + if (!getAcceleratorConfig().equals(other.getAcceleratorConfig())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getInputNotebookFile().equals(other.getInputNotebookFile())) return false; + if (!getContainerImageUri().equals(other.getContainerImageUri())) return false; + if (!getOutputNotebookFolder().equals(other.getOutputNotebookFolder())) return false; + if (!getParamsYamlFile().equals(other.getParamsYamlFile())) return false; + if (!getParameters().equals(other.getParameters())) return false; + if (!getServiceAccount().equals(other.getServiceAccount())) return false; if (jobType_ != other.jobType_) return false; - if (!getKernelSpec() - .equals(other.getKernelSpec())) return false; - if (!getTensorboard() - .equals(other.getTensorboard())) return false; + if (!getKernelSpec().equals(other.getKernelSpec())) return false; + if (!getTensorboard().equals(other.getTensorboard())) return false; if (!getJobParametersCase().equals(other.getJobParametersCase())) return false; switch (jobParametersCase_) { case 12: - if (!getDataprocParameters() - .equals(other.getDataprocParameters())) return false; + if (!getDataprocParameters().equals(other.getDataprocParameters())) return false; break; case 13: - if (!getVertexAiParameters() - .equals(other.getVertexAiParameters())) return false; + if (!getVertexAiParameters().equals(other.getVertexAiParameters())) return false; break; case 0: default: @@ -4137,152 +4550,156 @@ public int hashCode() { return hash; } - public static com.google.cloud.notebooks.v1.ExecutionTemplate parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.notebooks.v1.ExecutionTemplate parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ExecutionTemplate 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.cloud.notebooks.v1.ExecutionTemplate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ExecutionTemplate parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.ExecutionTemplate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ExecutionTemplate 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.cloud.notebooks.v1.ExecutionTemplate 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.cloud.notebooks.v1.ExecutionTemplate 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.cloud.notebooks.v1.ExecutionTemplate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ExecutionTemplate parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.ExecutionTemplate 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.cloud.notebooks.v1.ExecutionTemplate 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.cloud.notebooks.v1.ExecutionTemplate 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.cloud.notebooks.v1.ExecutionTemplate 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; } /** + * + * *
    * The description a notebook execution workload.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.ExecutionTemplate} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.ExecutionTemplate) com.google.cloud.notebooks.v1.ExecutionTemplateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ExecutionProto.internal_static_google_cloud_notebooks_v1_ExecutionTemplate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ExecutionProto + .internal_static_google_cloud_notebooks_v1_ExecutionTemplate_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: 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 4: 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.cloud.notebooks.v1.ExecutionProto.internal_static_google_cloud_notebooks_v1_ExecutionTemplate_fieldAccessorTable + return com.google.cloud.notebooks.v1.ExecutionProto + .internal_static_google_cloud_notebooks_v1_ExecutionTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ExecutionTemplate.class, com.google.cloud.notebooks.v1.ExecutionTemplate.Builder.class); + com.google.cloud.notebooks.v1.ExecutionTemplate.class, + com.google.cloud.notebooks.v1.ExecutionTemplate.Builder.class); } // Construct using com.google.cloud.notebooks.v1.ExecutionTemplate.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -4327,9 +4744,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.ExecutionProto.internal_static_google_cloud_notebooks_v1_ExecutionTemplate_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.ExecutionProto + .internal_static_google_cloud_notebooks_v1_ExecutionTemplate_descriptor; } @java.lang.Override @@ -4348,7 +4765,8 @@ public com.google.cloud.notebooks.v1.ExecutionTemplate build() { @java.lang.Override public com.google.cloud.notebooks.v1.ExecutionTemplate buildPartial() { - com.google.cloud.notebooks.v1.ExecutionTemplate result = new com.google.cloud.notebooks.v1.ExecutionTemplate(this); + com.google.cloud.notebooks.v1.ExecutionTemplate result = + new com.google.cloud.notebooks.v1.ExecutionTemplate(this); int from_bitField0_ = bitField0_; result.scaleTier_ = scaleTier_; result.masterType_ = masterType_; @@ -4391,38 +4809,39 @@ public com.google.cloud.notebooks.v1.ExecutionTemplate buildPartial() { 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.cloud.notebooks.v1.ExecutionTemplate) { - return mergeFrom((com.google.cloud.notebooks.v1.ExecutionTemplate)other); + return mergeFrom((com.google.cloud.notebooks.v1.ExecutionTemplate) other); } else { super.mergeFrom(other); return this; @@ -4430,7 +4849,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.ExecutionTemplate other) { - if (other == com.google.cloud.notebooks.v1.ExecutionTemplate.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.ExecutionTemplate.getDefaultInstance()) + return this; if (other.scaleTier_ != 0) { setScaleTierValue(other.getScaleTierValue()); } @@ -4441,8 +4861,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.ExecutionTemplate other) if (other.hasAcceleratorConfig()) { mergeAcceleratorConfig(other.getAcceleratorConfig()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (!other.getInputNotebookFile().isEmpty()) { inputNotebookFile_ = other.inputNotebookFile_; onChanged(); @@ -4479,17 +4898,20 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.ExecutionTemplate other) onChanged(); } switch (other.getJobParametersCase()) { - case DATAPROC_PARAMETERS: { - mergeDataprocParameters(other.getDataprocParameters()); - break; - } - case VERTEX_AI_PARAMETERS: { - mergeVertexAiParameters(other.getVertexAiParameters()); - break; - } - case JOBPARAMETERS_NOT_SET: { - break; - } + case DATAPROC_PARAMETERS: + { + mergeDataprocParameters(other.getDataprocParameters()); + break; + } + case VERTEX_AI_PARAMETERS: + { + mergeVertexAiParameters(other.getVertexAiParameters()); + break; + } + case JOBPARAMETERS_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -4517,96 +4939,111 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - scaleTier_ = input.readEnum(); + case 8: + { + scaleTier_ = input.readEnum(); - break; - } // case 8 - case 18: { - masterType_ = input.readStringRequireUtf8(); + break; + } // case 8 + case 18: + { + masterType_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - input.readMessage( - getAcceleratorConfigFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 18 + case 26: + { + input.readMessage( + getAcceleratorConfigFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - case 34: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } // case 34 - case 42: { - inputNotebookFile_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 34 + case 42: + { + inputNotebookFile_ = input.readStringRequireUtf8(); - break; - } // case 42 - case 50: { - containerImageUri_ = input.readStringRequireUtf8(); + break; + } // case 42 + case 50: + { + containerImageUri_ = input.readStringRequireUtf8(); - break; - } // case 50 - case 58: { - outputNotebookFolder_ = input.readStringRequireUtf8(); + break; + } // case 50 + case 58: + { + outputNotebookFolder_ = input.readStringRequireUtf8(); - break; - } // case 58 - case 66: { - paramsYamlFile_ = input.readStringRequireUtf8(); + break; + } // case 58 + case 66: + { + paramsYamlFile_ = input.readStringRequireUtf8(); - break; - } // case 66 - case 74: { - parameters_ = input.readStringRequireUtf8(); + break; + } // case 66 + case 74: + { + parameters_ = input.readStringRequireUtf8(); - break; - } // case 74 - case 82: { - serviceAccount_ = input.readStringRequireUtf8(); + break; + } // case 74 + case 82: + { + serviceAccount_ = input.readStringRequireUtf8(); - break; - } // case 82 - case 88: { - jobType_ = input.readEnum(); + break; + } // case 82 + case 88: + { + jobType_ = input.readEnum(); - break; - } // case 88 - case 98: { - input.readMessage( - getDataprocParametersFieldBuilder().getBuilder(), - extensionRegistry); - jobParametersCase_ = 12; - break; - } // case 98 - case 106: { - input.readMessage( - getVertexAiParametersFieldBuilder().getBuilder(), - extensionRegistry); - jobParametersCase_ = 13; - break; - } // case 106 - case 114: { - kernelSpec_ = input.readStringRequireUtf8(); + break; + } // case 88 + case 98: + { + input.readMessage( + getDataprocParametersFieldBuilder().getBuilder(), extensionRegistry); + jobParametersCase_ = 12; + break; + } // case 98 + case 106: + { + input.readMessage( + getVertexAiParametersFieldBuilder().getBuilder(), extensionRegistry); + jobParametersCase_ = 13; + break; + } // case 106 + case 114: + { + kernelSpec_ = input.readStringRequireUtf8(); - break; - } // case 114 - case 122: { - tensorboard_ = input.readStringRequireUtf8(); + break; + } // case 114 + case 122: + { + tensorboard_ = input.readStringRequireUtf8(); - break; - } // case 122 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 122 + 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) { @@ -4616,12 +5053,12 @@ public Builder mergeFrom( } // finally return this; } + private int jobParametersCase_ = 0; private java.lang.Object jobParameters_; - public JobParametersCase - getJobParametersCase() { - return JobParametersCase.forNumber( - jobParametersCase_); + + public JobParametersCase getJobParametersCase() { + return JobParametersCase.forNumber(jobParametersCase_); } public Builder clearJobParameters() { @@ -4635,88 +5072,122 @@ public Builder clearJobParameters() { private int scaleTier_ = 0; /** + * + * *
      * Required. Scale tier of the hardware used for notebook execution.
      * DEPRECATED Will be discontinued. As right now only CUSTOM is supported.
      * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier scale_tier = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.cloud.notebooks.v1.ExecutionTemplate.scale_tier is deprecated. - * See google/cloud/notebooks/v1/execution.proto;l=150 + * + * .google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier scale_tier = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.cloud.notebooks.v1.ExecutionTemplate.scale_tier is deprecated. See + * google/cloud/notebooks/v1/execution.proto;l=150 * @return The enum numeric value on the wire for scaleTier. */ - @java.lang.Override @java.lang.Deprecated public int getScaleTierValue() { + @java.lang.Override + @java.lang.Deprecated + public int getScaleTierValue() { return scaleTier_; } /** + * + * *
      * Required. Scale tier of the hardware used for notebook execution.
      * DEPRECATED Will be discontinued. As right now only CUSTOM is supported.
      * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier scale_tier = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.cloud.notebooks.v1.ExecutionTemplate.scale_tier is deprecated. - * See google/cloud/notebooks/v1/execution.proto;l=150 + * + * .google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier scale_tier = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.cloud.notebooks.v1.ExecutionTemplate.scale_tier is deprecated. See + * google/cloud/notebooks/v1/execution.proto;l=150 * @param value The enum numeric value on the wire for scaleTier to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setScaleTierValue(int value) { - + @java.lang.Deprecated + public Builder setScaleTierValue(int value) { + scaleTier_ = value; onChanged(); return this; } /** + * + * *
      * Required. Scale tier of the hardware used for notebook execution.
      * DEPRECATED Will be discontinued. As right now only CUSTOM is supported.
      * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier scale_tier = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.cloud.notebooks.v1.ExecutionTemplate.scale_tier is deprecated. - * See google/cloud/notebooks/v1/execution.proto;l=150 + * + * .google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier scale_tier = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.cloud.notebooks.v1.ExecutionTemplate.scale_tier is deprecated. See + * google/cloud/notebooks/v1/execution.proto;l=150 * @return The scaleTier. */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier getScaleTier() { + @java.lang.Deprecated + public com.google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier getScaleTier() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier result = com.google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier.valueOf(scaleTier_); - return result == null ? com.google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier result = + com.google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier.valueOf(scaleTier_); + return result == null + ? com.google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier.UNRECOGNIZED + : result; } /** + * + * *
      * Required. Scale tier of the hardware used for notebook execution.
      * DEPRECATED Will be discontinued. As right now only CUSTOM is supported.
      * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier scale_tier = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.cloud.notebooks.v1.ExecutionTemplate.scale_tier is deprecated. - * See google/cloud/notebooks/v1/execution.proto;l=150 + * + * .google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier scale_tier = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.cloud.notebooks.v1.ExecutionTemplate.scale_tier is deprecated. See + * google/cloud/notebooks/v1/execution.proto;l=150 * @param value The scaleTier to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setScaleTier(com.google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier value) { + @java.lang.Deprecated + public Builder setScaleTier(com.google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier value) { if (value == null) { throw new NullPointerException(); } - + scaleTier_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. Scale tier of the hardware used for notebook execution.
      * DEPRECATED Will be discontinued. As right now only CUSTOM is supported.
      * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier scale_tier = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.cloud.notebooks.v1.ExecutionTemplate.scale_tier is deprecated. - * See google/cloud/notebooks/v1/execution.proto;l=150 + * + * .google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier scale_tier = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.cloud.notebooks.v1.ExecutionTemplate.scale_tier is deprecated. See + * google/cloud/notebooks/v1/execution.proto;l=150 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearScaleTier() { - + @java.lang.Deprecated + public Builder clearScaleTier() { + scaleTier_ = 0; onChanged(); return this; @@ -4724,6 +5195,8 @@ public Builder clearJobParameters() { private java.lang.Object masterType_ = ""; /** + * + * *
      * Specifies the type of virtual machine to use for your training
      * job's master worker. You must specify this field when `scaleTier` is set to
@@ -4769,13 +5242,13 @@ public Builder clearJobParameters() {
      * 
* * string master_type = 2; + * * @return The masterType. */ public java.lang.String getMasterType() { java.lang.Object ref = masterType_; 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(); masterType_ = s; return s; @@ -4784,6 +5257,8 @@ public java.lang.String getMasterType() { } } /** + * + * *
      * Specifies the type of virtual machine to use for your training
      * job's master worker. You must specify this field when `scaleTier` is set to
@@ -4829,15 +5304,14 @@ public java.lang.String getMasterType() {
      * 
* * string master_type = 2; + * * @return The bytes for masterType. */ - public com.google.protobuf.ByteString - getMasterTypeBytes() { + public com.google.protobuf.ByteString getMasterTypeBytes() { java.lang.Object ref = masterType_; 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); masterType_ = b; return b; } else { @@ -4845,6 +5319,8 @@ public java.lang.String getMasterType() { } } /** + * + * *
      * Specifies the type of virtual machine to use for your training
      * job's master worker. You must specify this field when `scaleTier` is set to
@@ -4890,20 +5366,22 @@ public java.lang.String getMasterType() {
      * 
* * string master_type = 2; + * * @param value The masterType to set. * @return This builder for chaining. */ - public Builder setMasterType( - java.lang.String value) { + public Builder setMasterType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + masterType_ = value; onChanged(); return this; } /** + * + * *
      * Specifies the type of virtual machine to use for your training
      * job's master worker. You must specify this field when `scaleTier` is set to
@@ -4949,15 +5427,18 @@ public Builder setMasterType(
      * 
* * string master_type = 2; + * * @return This builder for chaining. */ public Builder clearMasterType() { - + masterType_ = getDefaultInstance().getMasterType(); onChanged(); return this; } /** + * + * *
      * Specifies the type of virtual machine to use for your training
      * job's master worker. You must specify this field when `scaleTier` is set to
@@ -5003,61 +5484,84 @@ public Builder clearMasterType() {
      * 
* * string master_type = 2; + * * @param value The bytes for masterType to set. * @return This builder for chaining. */ - public Builder setMasterTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setMasterTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + masterType_ = value; onChanged(); return this; } - private com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig acceleratorConfig_; + private com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig + acceleratorConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig, com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig.Builder, com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfigOrBuilder> acceleratorConfigBuilder_; + com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig, + com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig.Builder, + com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfigOrBuilder> + acceleratorConfigBuilder_; /** + * + * *
      * Configuration (count and accelerator type) for hardware running notebook
      * execution.
      * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig accelerator_config = 3; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig accelerator_config = 3; + * + * * @return Whether the acceleratorConfig field is set. */ public boolean hasAcceleratorConfig() { return acceleratorConfigBuilder_ != null || acceleratorConfig_ != null; } /** + * + * *
      * Configuration (count and accelerator type) for hardware running notebook
      * execution.
      * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig accelerator_config = 3; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig accelerator_config = 3; + * + * * @return The acceleratorConfig. */ - public com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig getAcceleratorConfig() { + public com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig + getAcceleratorConfig() { if (acceleratorConfigBuilder_ == null) { - return acceleratorConfig_ == null ? com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig.getDefaultInstance() : acceleratorConfig_; + return acceleratorConfig_ == null + ? com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig + .getDefaultInstance() + : acceleratorConfig_; } else { return acceleratorConfigBuilder_.getMessage(); } } /** + * + * *
      * Configuration (count and accelerator type) for hardware running notebook
      * execution.
      * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig accelerator_config = 3; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig accelerator_config = 3; + * */ - public Builder setAcceleratorConfig(com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig value) { + public Builder setAcceleratorConfig( + com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig value) { if (acceleratorConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5071,15 +5575,20 @@ public Builder setAcceleratorConfig(com.google.cloud.notebooks.v1.ExecutionTempl return this; } /** + * + * *
      * Configuration (count and accelerator type) for hardware running notebook
      * execution.
      * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig accelerator_config = 3; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig accelerator_config = 3; + * */ public Builder setAcceleratorConfig( - com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig.Builder builderForValue) { + com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig.Builder + builderForValue) { if (acceleratorConfigBuilder_ == null) { acceleratorConfig_ = builderForValue.build(); onChanged(); @@ -5090,18 +5599,26 @@ public Builder setAcceleratorConfig( return this; } /** + * + * *
      * Configuration (count and accelerator type) for hardware running notebook
      * execution.
      * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig accelerator_config = 3; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig accelerator_config = 3; + * */ - public Builder mergeAcceleratorConfig(com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig value) { + public Builder mergeAcceleratorConfig( + com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig value) { if (acceleratorConfigBuilder_ == null) { if (acceleratorConfig_ != null) { acceleratorConfig_ = - com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig.newBuilder(acceleratorConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig.newBuilder( + acceleratorConfig_) + .mergeFrom(value) + .buildPartial(); } else { acceleratorConfig_ = value; } @@ -5113,12 +5630,16 @@ public Builder mergeAcceleratorConfig(com.google.cloud.notebooks.v1.ExecutionTem return this; } /** + * + * *
      * Configuration (count and accelerator type) for hardware running notebook
      * execution.
      * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig accelerator_config = 3; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig accelerator_config = 3; + * */ public Builder clearAcceleratorConfig() { if (acceleratorConfigBuilder_ == null) { @@ -5132,72 +5653,91 @@ public Builder clearAcceleratorConfig() { return this; } /** + * + * *
      * Configuration (count and accelerator type) for hardware running notebook
      * execution.
      * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig accelerator_config = 3; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig accelerator_config = 3; + * */ - public com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig.Builder getAcceleratorConfigBuilder() { - + public com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig.Builder + getAcceleratorConfigBuilder() { + onChanged(); return getAcceleratorConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Configuration (count and accelerator type) for hardware running notebook
      * execution.
      * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig accelerator_config = 3; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig accelerator_config = 3; + * */ - public com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfigOrBuilder getAcceleratorConfigOrBuilder() { + public com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfigOrBuilder + getAcceleratorConfigOrBuilder() { if (acceleratorConfigBuilder_ != null) { return acceleratorConfigBuilder_.getMessageOrBuilder(); } else { - return acceleratorConfig_ == null ? - com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig.getDefaultInstance() : acceleratorConfig_; + return acceleratorConfig_ == null + ? com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig + .getDefaultInstance() + : acceleratorConfig_; } } /** + * + * *
      * Configuration (count and accelerator type) for hardware running notebook
      * execution.
      * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig accelerator_config = 3; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig accelerator_config = 3; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig, com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig.Builder, com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfigOrBuilder> + com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig, + com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig.Builder, + com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfigOrBuilder> getAcceleratorConfigFieldBuilder() { if (acceleratorConfigBuilder_ == null) { - acceleratorConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig, com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig.Builder, com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfigOrBuilder>( - getAcceleratorConfig(), - getParentForChildren(), - isClean()); + acceleratorConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig, + com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig.Builder, + com.google.cloud.notebooks.v1.ExecutionTemplate + .SchedulerAcceleratorConfigOrBuilder>( + getAcceleratorConfig(), getParentForChildren(), isClean()); acceleratorConfig_ = null; } return acceleratorConfigBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField 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 - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -5209,6 +5749,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels for execution.
      * If execution is scheduled, a field included will be 'nbs-scheduled'.
@@ -5219,22 +5761,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 4;
      */
-
     @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 getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Labels for execution.
      * If execution is scheduled, a field included will be 'nbs-scheduled'.
@@ -5246,11 +5788,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Labels for execution.
      * If execution is scheduled, a field included will be 'nbs-scheduled'.
@@ -5262,16 +5805,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Labels for execution.
      * If execution is scheduled, a field included will be 'nbs-scheduled'.
@@ -5283,12 +5827,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 4;
      */
     @java.lang.Override
-
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -5296,11 +5839,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Labels for execution.
      * If execution is scheduled, a field included will be 'nbs-scheduled'.
@@ -5311,23 +5855,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 4;
      */
-
-    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
-    getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Labels for execution.
      * If execution is scheduled, a field included will be 'nbs-scheduled'.
@@ -5338,19 +5880,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 4;
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    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");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Labels for execution.
      * If execution is scheduled, a field included will be 'nbs-scheduled'.
@@ -5361,16 +5904,15 @@ public Builder putLabels(
      *
      * map<string, string> labels = 4;
      */
-
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       return this;
     }
 
     private java.lang.Object inputNotebookFile_ = "";
     /**
+     *
+     *
      * 
      * Path to the notebook file to execute.
      * Must be in a Google Cloud Storage bucket.
@@ -5379,13 +5921,13 @@ public Builder putAllLabels(
      * 
* * string input_notebook_file = 5; + * * @return The inputNotebookFile. */ public java.lang.String getInputNotebookFile() { java.lang.Object ref = inputNotebookFile_; 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(); inputNotebookFile_ = s; return s; @@ -5394,6 +5936,8 @@ public java.lang.String getInputNotebookFile() { } } /** + * + * *
      * Path to the notebook file to execute.
      * Must be in a Google Cloud Storage bucket.
@@ -5402,15 +5946,14 @@ public java.lang.String getInputNotebookFile() {
      * 
* * string input_notebook_file = 5; + * * @return The bytes for inputNotebookFile. */ - public com.google.protobuf.ByteString - getInputNotebookFileBytes() { + public com.google.protobuf.ByteString getInputNotebookFileBytes() { java.lang.Object ref = inputNotebookFile_; 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); inputNotebookFile_ = b; return b; } else { @@ -5418,6 +5961,8 @@ public java.lang.String getInputNotebookFile() { } } /** + * + * *
      * Path to the notebook file to execute.
      * Must be in a Google Cloud Storage bucket.
@@ -5426,20 +5971,22 @@ public java.lang.String getInputNotebookFile() {
      * 
* * string input_notebook_file = 5; + * * @param value The inputNotebookFile to set. * @return This builder for chaining. */ - public Builder setInputNotebookFile( - java.lang.String value) { + public Builder setInputNotebookFile(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + inputNotebookFile_ = value; onChanged(); return this; } /** + * + * *
      * Path to the notebook file to execute.
      * Must be in a Google Cloud Storage bucket.
@@ -5448,15 +5995,18 @@ public Builder setInputNotebookFile(
      * 
* * string input_notebook_file = 5; + * * @return This builder for chaining. */ public Builder clearInputNotebookFile() { - + inputNotebookFile_ = getDefaultInstance().getInputNotebookFile(); onChanged(); return this; } /** + * + * *
      * Path to the notebook file to execute.
      * Must be in a Google Cloud Storage bucket.
@@ -5465,16 +6015,16 @@ public Builder clearInputNotebookFile() {
      * 
* * string input_notebook_file = 5; + * * @param value The bytes for inputNotebookFile to set. * @return This builder for chaining. */ - public Builder setInputNotebookFileBytes( - com.google.protobuf.ByteString value) { + public Builder setInputNotebookFileBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + inputNotebookFile_ = value; onChanged(); return this; @@ -5482,6 +6032,8 @@ public Builder setInputNotebookFileBytes( private java.lang.Object containerImageUri_ = ""; /** + * + * *
      * Container Image URI to a DLVM
      * Example: 'gcr.io/deeplearning-platform-release/base-cu100'
@@ -5490,13 +6042,13 @@ public Builder setInputNotebookFileBytes(
      * 
* * string container_image_uri = 6; + * * @return The containerImageUri. */ public java.lang.String getContainerImageUri() { java.lang.Object ref = containerImageUri_; 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(); containerImageUri_ = s; return s; @@ -5505,6 +6057,8 @@ public java.lang.String getContainerImageUri() { } } /** + * + * *
      * Container Image URI to a DLVM
      * Example: 'gcr.io/deeplearning-platform-release/base-cu100'
@@ -5513,15 +6067,14 @@ public java.lang.String getContainerImageUri() {
      * 
* * string container_image_uri = 6; + * * @return The bytes for containerImageUri. */ - public com.google.protobuf.ByteString - getContainerImageUriBytes() { + public com.google.protobuf.ByteString getContainerImageUriBytes() { java.lang.Object ref = containerImageUri_; 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); containerImageUri_ = b; return b; } else { @@ -5529,6 +6082,8 @@ public java.lang.String getContainerImageUri() { } } /** + * + * *
      * Container Image URI to a DLVM
      * Example: 'gcr.io/deeplearning-platform-release/base-cu100'
@@ -5537,20 +6092,22 @@ public java.lang.String getContainerImageUri() {
      * 
* * string container_image_uri = 6; + * * @param value The containerImageUri to set. * @return This builder for chaining. */ - public Builder setContainerImageUri( - java.lang.String value) { + public Builder setContainerImageUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + containerImageUri_ = value; onChanged(); return this; } /** + * + * *
      * Container Image URI to a DLVM
      * Example: 'gcr.io/deeplearning-platform-release/base-cu100'
@@ -5559,15 +6116,18 @@ public Builder setContainerImageUri(
      * 
* * string container_image_uri = 6; + * * @return This builder for chaining. */ public Builder clearContainerImageUri() { - + containerImageUri_ = getDefaultInstance().getContainerImageUri(); onChanged(); return this; } /** + * + * *
      * Container Image URI to a DLVM
      * Example: 'gcr.io/deeplearning-platform-release/base-cu100'
@@ -5576,16 +6136,16 @@ public Builder clearContainerImageUri() {
      * 
* * string container_image_uri = 6; + * * @param value The bytes for containerImageUri to set. * @return This builder for chaining. */ - public Builder setContainerImageUriBytes( - com.google.protobuf.ByteString value) { + public Builder setContainerImageUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + containerImageUri_ = value; onChanged(); return this; @@ -5593,6 +6153,8 @@ public Builder setContainerImageUriBytes( private java.lang.Object outputNotebookFolder_ = ""; /** + * + * *
      * Path to the notebook folder to write to.
      * Must be in a Google Cloud Storage bucket path.
@@ -5601,13 +6163,13 @@ public Builder setContainerImageUriBytes(
      * 
* * string output_notebook_folder = 7; + * * @return The outputNotebookFolder. */ public java.lang.String getOutputNotebookFolder() { java.lang.Object ref = outputNotebookFolder_; 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(); outputNotebookFolder_ = s; return s; @@ -5616,6 +6178,8 @@ public java.lang.String getOutputNotebookFolder() { } } /** + * + * *
      * Path to the notebook folder to write to.
      * Must be in a Google Cloud Storage bucket path.
@@ -5624,15 +6188,14 @@ public java.lang.String getOutputNotebookFolder() {
      * 
* * string output_notebook_folder = 7; + * * @return The bytes for outputNotebookFolder. */ - public com.google.protobuf.ByteString - getOutputNotebookFolderBytes() { + public com.google.protobuf.ByteString getOutputNotebookFolderBytes() { java.lang.Object ref = outputNotebookFolder_; 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); outputNotebookFolder_ = b; return b; } else { @@ -5640,6 +6203,8 @@ public java.lang.String getOutputNotebookFolder() { } } /** + * + * *
      * Path to the notebook folder to write to.
      * Must be in a Google Cloud Storage bucket path.
@@ -5648,20 +6213,22 @@ public java.lang.String getOutputNotebookFolder() {
      * 
* * string output_notebook_folder = 7; + * * @param value The outputNotebookFolder to set. * @return This builder for chaining. */ - public Builder setOutputNotebookFolder( - java.lang.String value) { + public Builder setOutputNotebookFolder(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + outputNotebookFolder_ = value; onChanged(); return this; } /** + * + * *
      * Path to the notebook folder to write to.
      * Must be in a Google Cloud Storage bucket path.
@@ -5670,15 +6237,18 @@ public Builder setOutputNotebookFolder(
      * 
* * string output_notebook_folder = 7; + * * @return This builder for chaining. */ public Builder clearOutputNotebookFolder() { - + outputNotebookFolder_ = getDefaultInstance().getOutputNotebookFolder(); onChanged(); return this; } /** + * + * *
      * Path to the notebook folder to write to.
      * Must be in a Google Cloud Storage bucket path.
@@ -5687,16 +6257,16 @@ public Builder clearOutputNotebookFolder() {
      * 
* * string output_notebook_folder = 7; + * * @param value The bytes for outputNotebookFolder to set. * @return This builder for chaining. */ - public Builder setOutputNotebookFolderBytes( - com.google.protobuf.ByteString value) { + public Builder setOutputNotebookFolderBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputNotebookFolder_ = value; onChanged(); return this; @@ -5704,6 +6274,8 @@ public Builder setOutputNotebookFolderBytes( private java.lang.Object paramsYamlFile_ = ""; /** + * + * *
      * Parameters to be overridden in the notebook during execution.
      * Ref https://papermill.readthedocs.io/en/latest/usage-parameterize.html on
@@ -5713,13 +6285,13 @@ public Builder setOutputNotebookFolderBytes(
      * 
* * string params_yaml_file = 8; + * * @return The paramsYamlFile. */ public java.lang.String getParamsYamlFile() { java.lang.Object ref = paramsYamlFile_; 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(); paramsYamlFile_ = s; return s; @@ -5728,6 +6300,8 @@ public java.lang.String getParamsYamlFile() { } } /** + * + * *
      * Parameters to be overridden in the notebook during execution.
      * Ref https://papermill.readthedocs.io/en/latest/usage-parameterize.html on
@@ -5737,15 +6311,14 @@ public java.lang.String getParamsYamlFile() {
      * 
* * string params_yaml_file = 8; + * * @return The bytes for paramsYamlFile. */ - public com.google.protobuf.ByteString - getParamsYamlFileBytes() { + public com.google.protobuf.ByteString getParamsYamlFileBytes() { java.lang.Object ref = paramsYamlFile_; 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); paramsYamlFile_ = b; return b; } else { @@ -5753,6 +6326,8 @@ public java.lang.String getParamsYamlFile() { } } /** + * + * *
      * Parameters to be overridden in the notebook during execution.
      * Ref https://papermill.readthedocs.io/en/latest/usage-parameterize.html on
@@ -5762,20 +6337,22 @@ public java.lang.String getParamsYamlFile() {
      * 
* * string params_yaml_file = 8; + * * @param value The paramsYamlFile to set. * @return This builder for chaining. */ - public Builder setParamsYamlFile( - java.lang.String value) { + public Builder setParamsYamlFile(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + paramsYamlFile_ = value; onChanged(); return this; } /** + * + * *
      * Parameters to be overridden in the notebook during execution.
      * Ref https://papermill.readthedocs.io/en/latest/usage-parameterize.html on
@@ -5785,15 +6362,18 @@ public Builder setParamsYamlFile(
      * 
* * string params_yaml_file = 8; + * * @return This builder for chaining. */ public Builder clearParamsYamlFile() { - + paramsYamlFile_ = getDefaultInstance().getParamsYamlFile(); onChanged(); return this; } /** + * + * *
      * Parameters to be overridden in the notebook during execution.
      * Ref https://papermill.readthedocs.io/en/latest/usage-parameterize.html on
@@ -5803,16 +6383,16 @@ public Builder clearParamsYamlFile() {
      * 
* * string params_yaml_file = 8; + * * @param value The bytes for paramsYamlFile to set. * @return This builder for chaining. */ - public Builder setParamsYamlFileBytes( - com.google.protobuf.ByteString value) { + public Builder setParamsYamlFileBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + paramsYamlFile_ = value; onChanged(); return this; @@ -5820,18 +6400,20 @@ public Builder setParamsYamlFileBytes( private java.lang.Object parameters_ = ""; /** + * + * *
      * Parameters used within the 'input_notebook_file' notebook.
      * 
* * string parameters = 9; + * * @return The parameters. */ public java.lang.String getParameters() { java.lang.Object ref = parameters_; 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(); parameters_ = s; return s; @@ -5840,20 +6422,21 @@ public java.lang.String getParameters() { } } /** + * + * *
      * Parameters used within the 'input_notebook_file' notebook.
      * 
* * string parameters = 9; + * * @return The bytes for parameters. */ - public com.google.protobuf.ByteString - getParametersBytes() { + public com.google.protobuf.ByteString getParametersBytes() { java.lang.Object ref = parameters_; 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); parameters_ = b; return b; } else { @@ -5861,54 +6444,61 @@ public java.lang.String getParameters() { } } /** + * + * *
      * Parameters used within the 'input_notebook_file' notebook.
      * 
* * string parameters = 9; + * * @param value The parameters to set. * @return This builder for chaining. */ - public Builder setParameters( - java.lang.String value) { + public Builder setParameters(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parameters_ = value; onChanged(); return this; } /** + * + * *
      * Parameters used within the 'input_notebook_file' notebook.
      * 
* * string parameters = 9; + * * @return This builder for chaining. */ public Builder clearParameters() { - + parameters_ = getDefaultInstance().getParameters(); onChanged(); return this; } /** + * + * *
      * Parameters used within the 'input_notebook_file' notebook.
      * 
* * string parameters = 9; + * * @param value The bytes for parameters to set. * @return This builder for chaining. */ - public Builder setParametersBytes( - com.google.protobuf.ByteString value) { + public Builder setParametersBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parameters_ = value; onChanged(); return this; @@ -5916,6 +6506,8 @@ public Builder setParametersBytes( private java.lang.Object serviceAccount_ = ""; /** + * + * *
      * The email address of a service account to use when running the execution.
      * You must have the `iam.serviceAccounts.actAs` permission for the specified
@@ -5923,13 +6515,13 @@ public Builder setParametersBytes(
      * 
* * string service_account = 10; + * * @return The serviceAccount. */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; 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(); serviceAccount_ = s; return s; @@ -5938,6 +6530,8 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
      * The email address of a service account to use when running the execution.
      * You must have the `iam.serviceAccounts.actAs` permission for the specified
@@ -5945,15 +6539,14 @@ public java.lang.String getServiceAccount() {
      * 
* * string service_account = 10; + * * @return The bytes for serviceAccount. */ - public com.google.protobuf.ByteString - getServiceAccountBytes() { + public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; 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); serviceAccount_ = b; return b; } else { @@ -5961,6 +6554,8 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
      * The email address of a service account to use when running the execution.
      * You must have the `iam.serviceAccounts.actAs` permission for the specified
@@ -5968,20 +6563,22 @@ public java.lang.String getServiceAccount() {
      * 
* * string service_account = 10; + * * @param value The serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccount( - java.lang.String value) { + public Builder setServiceAccount(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccount_ = value; onChanged(); return this; } /** + * + * *
      * The email address of a service account to use when running the execution.
      * You must have the `iam.serviceAccounts.actAs` permission for the specified
@@ -5989,15 +6586,18 @@ public Builder setServiceAccount(
      * 
* * string service_account = 10; + * * @return This builder for chaining. */ public Builder clearServiceAccount() { - + serviceAccount_ = getDefaultInstance().getServiceAccount(); onChanged(); return this; } /** + * + * *
      * The email address of a service account to use when running the execution.
      * You must have the `iam.serviceAccounts.actAs` permission for the specified
@@ -6005,16 +6605,16 @@ public Builder clearServiceAccount() {
      * 
* * string service_account = 10; + * * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccountBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccount_ = value; onChanged(); return this; @@ -6022,51 +6622,67 @@ public Builder setServiceAccountBytes( private int jobType_ = 0; /** + * + * *
      * The type of Job to be used on this execution.
      * 
* * .google.cloud.notebooks.v1.ExecutionTemplate.JobType job_type = 11; + * * @return The enum numeric value on the wire for jobType. */ - @java.lang.Override public int getJobTypeValue() { + @java.lang.Override + public int getJobTypeValue() { return jobType_; } /** + * + * *
      * The type of Job to be used on this execution.
      * 
* * .google.cloud.notebooks.v1.ExecutionTemplate.JobType job_type = 11; + * * @param value The enum numeric value on the wire for jobType to set. * @return This builder for chaining. */ public Builder setJobTypeValue(int value) { - + jobType_ = value; onChanged(); return this; } /** + * + * *
      * The type of Job to be used on this execution.
      * 
* * .google.cloud.notebooks.v1.ExecutionTemplate.JobType job_type = 11; + * * @return The jobType. */ @java.lang.Override public com.google.cloud.notebooks.v1.ExecutionTemplate.JobType getJobType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.ExecutionTemplate.JobType result = com.google.cloud.notebooks.v1.ExecutionTemplate.JobType.valueOf(jobType_); - return result == null ? com.google.cloud.notebooks.v1.ExecutionTemplate.JobType.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1.ExecutionTemplate.JobType result = + com.google.cloud.notebooks.v1.ExecutionTemplate.JobType.valueOf(jobType_); + return result == null + ? com.google.cloud.notebooks.v1.ExecutionTemplate.JobType.UNRECOGNIZED + : result; } /** + * + * *
      * The type of Job to be used on this execution.
      * 
* * .google.cloud.notebooks.v1.ExecutionTemplate.JobType job_type = 11; + * * @param value The jobType to set. * @return This builder for chaining. */ @@ -6074,34 +6690,45 @@ public Builder setJobType(com.google.cloud.notebooks.v1.ExecutionTemplate.JobTyp if (value == null) { throw new NullPointerException(); } - + jobType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The type of Job to be used on this execution.
      * 
* * .google.cloud.notebooks.v1.ExecutionTemplate.JobType job_type = 11; + * * @return This builder for chaining. */ public Builder clearJobType() { - + jobType_ = 0; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters, com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.Builder, com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParametersOrBuilder> dataprocParametersBuilder_; + com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters, + com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.Builder, + com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParametersOrBuilder> + dataprocParametersBuilder_; /** + * + * *
      * Parameters used in Dataproc JobType executions.
      * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters dataproc_parameters = 12; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters dataproc_parameters = 12; + * + * * @return Whether the dataprocParameters field is set. */ @java.lang.Override @@ -6109,35 +6736,49 @@ public boolean hasDataprocParameters() { return jobParametersCase_ == 12; } /** + * + * *
      * Parameters used in Dataproc JobType executions.
      * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters dataproc_parameters = 12; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters dataproc_parameters = 12; + * + * * @return The dataprocParameters. */ @java.lang.Override - public com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters getDataprocParameters() { + public com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters + getDataprocParameters() { if (dataprocParametersBuilder_ == null) { if (jobParametersCase_ == 12) { - return (com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters) jobParameters_; + return (com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters) + jobParameters_; } - return com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.getDefaultInstance(); + return com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters + .getDefaultInstance(); } else { if (jobParametersCase_ == 12) { return dataprocParametersBuilder_.getMessage(); } - return com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.getDefaultInstance(); + return com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters + .getDefaultInstance(); } } /** + * + * *
      * Parameters used in Dataproc JobType executions.
      * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters dataproc_parameters = 12; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters dataproc_parameters = 12; + * */ - public Builder setDataprocParameters(com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters value) { + public Builder setDataprocParameters( + com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters value) { if (dataprocParametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6151,14 +6792,19 @@ public Builder setDataprocParameters(com.google.cloud.notebooks.v1.ExecutionTemp return this; } /** + * + * *
      * Parameters used in Dataproc JobType executions.
      * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters dataproc_parameters = 12; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters dataproc_parameters = 12; + * */ public Builder setDataprocParameters( - com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.Builder builderForValue) { + com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.Builder + builderForValue) { if (dataprocParametersBuilder_ == null) { jobParameters_ = builderForValue.build(); onChanged(); @@ -6169,18 +6815,29 @@ public Builder setDataprocParameters( return this; } /** + * + * *
      * Parameters used in Dataproc JobType executions.
      * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters dataproc_parameters = 12; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters dataproc_parameters = 12; + * */ - public Builder mergeDataprocParameters(com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters value) { + public Builder mergeDataprocParameters( + com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters value) { if (dataprocParametersBuilder_ == null) { - if (jobParametersCase_ == 12 && - jobParameters_ != com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.getDefaultInstance()) { - jobParameters_ = com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.newBuilder((com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters) jobParameters_) - .mergeFrom(value).buildPartial(); + if (jobParametersCase_ == 12 + && jobParameters_ + != com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters + .getDefaultInstance()) { + jobParameters_ = + com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.newBuilder( + (com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters) + jobParameters_) + .mergeFrom(value) + .buildPartial(); } else { jobParameters_ = value; } @@ -6196,11 +6853,15 @@ public Builder mergeDataprocParameters(com.google.cloud.notebooks.v1.ExecutionTe return this; } /** + * + * *
      * Parameters used in Dataproc JobType executions.
      * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters dataproc_parameters = 12; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters dataproc_parameters = 12; + * */ public Builder clearDataprocParameters() { if (dataprocParametersBuilder_ == null) { @@ -6219,67 +6880,99 @@ public Builder clearDataprocParameters() { return this; } /** + * + * *
      * Parameters used in Dataproc JobType executions.
      * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters dataproc_parameters = 12; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters dataproc_parameters = 12; + * */ - public com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.Builder getDataprocParametersBuilder() { + public com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.Builder + getDataprocParametersBuilder() { return getDataprocParametersFieldBuilder().getBuilder(); } /** + * + * *
      * Parameters used in Dataproc JobType executions.
      * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters dataproc_parameters = 12; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters dataproc_parameters = 12; + * */ @java.lang.Override - public com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParametersOrBuilder getDataprocParametersOrBuilder() { + public com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParametersOrBuilder + getDataprocParametersOrBuilder() { if ((jobParametersCase_ == 12) && (dataprocParametersBuilder_ != null)) { return dataprocParametersBuilder_.getMessageOrBuilder(); } else { if (jobParametersCase_ == 12) { - return (com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters) jobParameters_; + return (com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters) + jobParameters_; } - return com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.getDefaultInstance(); + return com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters + .getDefaultInstance(); } } /** + * + * *
      * Parameters used in Dataproc JobType executions.
      * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters dataproc_parameters = 12; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters dataproc_parameters = 12; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters, com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.Builder, com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParametersOrBuilder> + com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters, + com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.Builder, + com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParametersOrBuilder> getDataprocParametersFieldBuilder() { if (dataprocParametersBuilder_ == null) { if (!(jobParametersCase_ == 12)) { - jobParameters_ = com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.getDefaultInstance(); + jobParameters_ = + com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters + .getDefaultInstance(); } - dataprocParametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters, com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.Builder, com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParametersOrBuilder>( + dataprocParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters, + com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters.Builder, + com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParametersOrBuilder>( (com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters) jobParameters_, getParentForChildren(), isClean()); jobParameters_ = null; } jobParametersCase_ = 12; - onChanged();; + onChanged(); + ; return dataprocParametersBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters, com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.Builder, com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParametersOrBuilder> vertexAiParametersBuilder_; + com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters, + com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.Builder, + com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParametersOrBuilder> + vertexAiParametersBuilder_; /** + * + * *
      * Parameters used in Vertex AI JobType executions.
      * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters vertex_ai_parameters = 13; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters vertex_ai_parameters = 13; + * + * * @return Whether the vertexAiParameters field is set. */ @java.lang.Override @@ -6287,35 +6980,49 @@ public boolean hasVertexAiParameters() { return jobParametersCase_ == 13; } /** + * + * *
      * Parameters used in Vertex AI JobType executions.
      * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters vertex_ai_parameters = 13; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters vertex_ai_parameters = 13; + * + * * @return The vertexAiParameters. */ @java.lang.Override - public com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters getVertexAiParameters() { + public com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters + getVertexAiParameters() { if (vertexAiParametersBuilder_ == null) { if (jobParametersCase_ == 13) { - return (com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters) jobParameters_; + return (com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters) + jobParameters_; } - return com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.getDefaultInstance(); + return com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters + .getDefaultInstance(); } else { if (jobParametersCase_ == 13) { return vertexAiParametersBuilder_.getMessage(); } - return com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.getDefaultInstance(); + return com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters + .getDefaultInstance(); } } /** + * + * *
      * Parameters used in Vertex AI JobType executions.
      * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters vertex_ai_parameters = 13; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters vertex_ai_parameters = 13; + * */ - public Builder setVertexAiParameters(com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters value) { + public Builder setVertexAiParameters( + com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters value) { if (vertexAiParametersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6329,14 +7036,19 @@ public Builder setVertexAiParameters(com.google.cloud.notebooks.v1.ExecutionTemp return this; } /** + * + * *
      * Parameters used in Vertex AI JobType executions.
      * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters vertex_ai_parameters = 13; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters vertex_ai_parameters = 13; + * */ public Builder setVertexAiParameters( - com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.Builder builderForValue) { + com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.Builder + builderForValue) { if (vertexAiParametersBuilder_ == null) { jobParameters_ = builderForValue.build(); onChanged(); @@ -6347,18 +7059,29 @@ public Builder setVertexAiParameters( return this; } /** + * + * *
      * Parameters used in Vertex AI JobType executions.
      * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters vertex_ai_parameters = 13; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters vertex_ai_parameters = 13; + * */ - public Builder mergeVertexAiParameters(com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters value) { + public Builder mergeVertexAiParameters( + com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters value) { if (vertexAiParametersBuilder_ == null) { - if (jobParametersCase_ == 13 && - jobParameters_ != com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.getDefaultInstance()) { - jobParameters_ = com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.newBuilder((com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters) jobParameters_) - .mergeFrom(value).buildPartial(); + if (jobParametersCase_ == 13 + && jobParameters_ + != com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters + .getDefaultInstance()) { + jobParameters_ = + com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.newBuilder( + (com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters) + jobParameters_) + .mergeFrom(value) + .buildPartial(); } else { jobParameters_ = value; } @@ -6374,11 +7097,15 @@ public Builder mergeVertexAiParameters(com.google.cloud.notebooks.v1.ExecutionTe return this; } /** + * + * *
      * Parameters used in Vertex AI JobType executions.
      * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters vertex_ai_parameters = 13; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters vertex_ai_parameters = 13; + * */ public Builder clearVertexAiParameters() { if (vertexAiParametersBuilder_ == null) { @@ -6397,61 +7124,87 @@ public Builder clearVertexAiParameters() { return this; } /** + * + * *
      * Parameters used in Vertex AI JobType executions.
      * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters vertex_ai_parameters = 13; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters vertex_ai_parameters = 13; + * */ - public com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.Builder getVertexAiParametersBuilder() { + public com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.Builder + getVertexAiParametersBuilder() { return getVertexAiParametersFieldBuilder().getBuilder(); } /** + * + * *
      * Parameters used in Vertex AI JobType executions.
      * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters vertex_ai_parameters = 13; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters vertex_ai_parameters = 13; + * */ @java.lang.Override - public com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParametersOrBuilder getVertexAiParametersOrBuilder() { + public com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParametersOrBuilder + getVertexAiParametersOrBuilder() { if ((jobParametersCase_ == 13) && (vertexAiParametersBuilder_ != null)) { return vertexAiParametersBuilder_.getMessageOrBuilder(); } else { if (jobParametersCase_ == 13) { - return (com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters) jobParameters_; + return (com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters) + jobParameters_; } - return com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.getDefaultInstance(); + return com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters + .getDefaultInstance(); } } /** + * + * *
      * Parameters used in Vertex AI JobType executions.
      * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters vertex_ai_parameters = 13; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters vertex_ai_parameters = 13; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters, com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.Builder, com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParametersOrBuilder> + com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters, + com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.Builder, + com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParametersOrBuilder> getVertexAiParametersFieldBuilder() { if (vertexAiParametersBuilder_ == null) { if (!(jobParametersCase_ == 13)) { - jobParameters_ = com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.getDefaultInstance(); + jobParameters_ = + com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters + .getDefaultInstance(); } - vertexAiParametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters, com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.Builder, com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParametersOrBuilder>( + vertexAiParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters, + com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters.Builder, + com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParametersOrBuilder>( (com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters) jobParameters_, getParentForChildren(), isClean()); jobParameters_ = null; } jobParametersCase_ = 13; - onChanged();; + onChanged(); + ; return vertexAiParametersBuilder_; } private java.lang.Object kernelSpec_ = ""; /** + * + * *
      * Name of the kernel spec to use. This must be specified if the
      * kernel spec name on the execution target does not match the name in the
@@ -6459,13 +7212,13 @@ public com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParametersOrBuild
      * 
* * string kernel_spec = 14; + * * @return The kernelSpec. */ public java.lang.String getKernelSpec() { java.lang.Object ref = kernelSpec_; 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(); kernelSpec_ = s; return s; @@ -6474,6 +7227,8 @@ public java.lang.String getKernelSpec() { } } /** + * + * *
      * Name of the kernel spec to use. This must be specified if the
      * kernel spec name on the execution target does not match the name in the
@@ -6481,15 +7236,14 @@ public java.lang.String getKernelSpec() {
      * 
* * string kernel_spec = 14; + * * @return The bytes for kernelSpec. */ - public com.google.protobuf.ByteString - getKernelSpecBytes() { + public com.google.protobuf.ByteString getKernelSpecBytes() { java.lang.Object ref = kernelSpec_; 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); kernelSpec_ = b; return b; } else { @@ -6497,6 +7251,8 @@ public java.lang.String getKernelSpec() { } } /** + * + * *
      * Name of the kernel spec to use. This must be specified if the
      * kernel spec name on the execution target does not match the name in the
@@ -6504,20 +7260,22 @@ public java.lang.String getKernelSpec() {
      * 
* * string kernel_spec = 14; + * * @param value The kernelSpec to set. * @return This builder for chaining. */ - public Builder setKernelSpec( - java.lang.String value) { + public Builder setKernelSpec(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kernelSpec_ = value; onChanged(); return this; } /** + * + * *
      * Name of the kernel spec to use. This must be specified if the
      * kernel spec name on the execution target does not match the name in the
@@ -6525,15 +7283,18 @@ public Builder setKernelSpec(
      * 
* * string kernel_spec = 14; + * * @return This builder for chaining. */ public Builder clearKernelSpec() { - + kernelSpec_ = getDefaultInstance().getKernelSpec(); onChanged(); return this; } /** + * + * *
      * Name of the kernel spec to use. This must be specified if the
      * kernel spec name on the execution target does not match the name in the
@@ -6541,16 +7302,16 @@ public Builder clearKernelSpec() {
      * 
* * string kernel_spec = 14; + * * @param value The bytes for kernelSpec to set. * @return This builder for chaining. */ - public Builder setKernelSpecBytes( - com.google.protobuf.ByteString value) { + public Builder setKernelSpecBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kernelSpec_ = value; onChanged(); return this; @@ -6558,6 +7319,8 @@ public Builder setKernelSpecBytes( private java.lang.Object tensorboard_ = ""; /** + * + * *
      * The name of a Vertex AI [Tensorboard] resource to which this execution
      * will upload Tensorboard logs.
@@ -6566,13 +7329,13 @@ public Builder setKernelSpecBytes(
      * 
* * string tensorboard = 15 [(.google.api.resource_reference) = { ... } + * * @return The tensorboard. */ public java.lang.String getTensorboard() { java.lang.Object ref = tensorboard_; 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(); tensorboard_ = s; return s; @@ -6581,6 +7344,8 @@ public java.lang.String getTensorboard() { } } /** + * + * *
      * The name of a Vertex AI [Tensorboard] resource to which this execution
      * will upload Tensorboard logs.
@@ -6589,15 +7354,14 @@ public java.lang.String getTensorboard() {
      * 
* * string tensorboard = 15 [(.google.api.resource_reference) = { ... } + * * @return The bytes for tensorboard. */ - public com.google.protobuf.ByteString - getTensorboardBytes() { + public com.google.protobuf.ByteString getTensorboardBytes() { java.lang.Object ref = tensorboard_; 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); tensorboard_ = b; return b; } else { @@ -6605,6 +7369,8 @@ public java.lang.String getTensorboard() { } } /** + * + * *
      * The name of a Vertex AI [Tensorboard] resource to which this execution
      * will upload Tensorboard logs.
@@ -6613,20 +7379,22 @@ public java.lang.String getTensorboard() {
      * 
* * string tensorboard = 15 [(.google.api.resource_reference) = { ... } + * * @param value The tensorboard to set. * @return This builder for chaining. */ - public Builder setTensorboard( - java.lang.String value) { + public Builder setTensorboard(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + tensorboard_ = value; onChanged(); return this; } /** + * + * *
      * The name of a Vertex AI [Tensorboard] resource to which this execution
      * will upload Tensorboard logs.
@@ -6635,15 +7403,18 @@ public Builder setTensorboard(
      * 
* * string tensorboard = 15 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearTensorboard() { - + tensorboard_ = getDefaultInstance().getTensorboard(); onChanged(); return this; } /** + * + * *
      * The name of a Vertex AI [Tensorboard] resource to which this execution
      * will upload Tensorboard logs.
@@ -6652,23 +7423,23 @@ public Builder clearTensorboard() {
      * 
* * string tensorboard = 15 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for tensorboard to set. * @return This builder for chaining. */ - public Builder setTensorboardBytes( - com.google.protobuf.ByteString value) { + public Builder setTensorboardBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tensorboard_ = 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); } @@ -6678,12 +7449,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.ExecutionTemplate) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.ExecutionTemplate) private static final com.google.cloud.notebooks.v1.ExecutionTemplate DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.ExecutionTemplate(); } @@ -6692,27 +7463,27 @@ public static com.google.cloud.notebooks.v1.ExecutionTemplate getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionTemplate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutionTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -6727,6 +7498,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.ExecutionTemplate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionTemplateOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionTemplateOrBuilder.java similarity index 79% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionTemplateOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionTemplateOrBuilder.java index 180199f7d67a..2c4325e82a3d 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionTemplateOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionTemplateOrBuilder.java @@ -1,38 +1,68 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/execution.proto package com.google.cloud.notebooks.v1; -public interface ExecutionTemplateOrBuilder extends +public interface ExecutionTemplateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.ExecutionTemplate) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Scale tier of the hardware used for notebook execution.
    * DEPRECATED Will be discontinued. As right now only CUSTOM is supported.
    * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier scale_tier = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.cloud.notebooks.v1.ExecutionTemplate.scale_tier is deprecated. - * See google/cloud/notebooks/v1/execution.proto;l=150 + * + * .google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier scale_tier = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.cloud.notebooks.v1.ExecutionTemplate.scale_tier is deprecated. See + * google/cloud/notebooks/v1/execution.proto;l=150 * @return The enum numeric value on the wire for scaleTier. */ - @java.lang.Deprecated int getScaleTierValue(); + @java.lang.Deprecated + int getScaleTierValue(); /** + * + * *
    * Required. Scale tier of the hardware used for notebook execution.
    * DEPRECATED Will be discontinued. As right now only CUSTOM is supported.
    * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier scale_tier = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.cloud.notebooks.v1.ExecutionTemplate.scale_tier is deprecated. - * See google/cloud/notebooks/v1/execution.proto;l=150 + * + * .google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier scale_tier = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @deprecated google.cloud.notebooks.v1.ExecutionTemplate.scale_tier is deprecated. See + * google/cloud/notebooks/v1/execution.proto;l=150 * @return The scaleTier. */ - @java.lang.Deprecated com.google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier getScaleTier(); + @java.lang.Deprecated + com.google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier getScaleTier(); /** + * + * *
    * Specifies the type of virtual machine to use for your training
    * job's master worker. You must specify this field when `scaleTier` is set to
@@ -78,10 +108,13 @@ public interface ExecutionTemplateOrBuilder extends
    * 
* * string master_type = 2; + * * @return The masterType. */ java.lang.String getMasterType(); /** + * + * *
    * Specifies the type of virtual machine to use for your training
    * job's master worker. You must specify this field when `scaleTier` is set to
@@ -127,42 +160,59 @@ public interface ExecutionTemplateOrBuilder extends
    * 
* * string master_type = 2; + * * @return The bytes for masterType. */ - com.google.protobuf.ByteString - getMasterTypeBytes(); + com.google.protobuf.ByteString getMasterTypeBytes(); /** + * + * *
    * Configuration (count and accelerator type) for hardware running notebook
    * execution.
    * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig accelerator_config = 3; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig accelerator_config = 3; + * + * * @return Whether the acceleratorConfig field is set. */ boolean hasAcceleratorConfig(); /** + * + * *
    * Configuration (count and accelerator type) for hardware running notebook
    * execution.
    * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig accelerator_config = 3; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig accelerator_config = 3; + * + * * @return The acceleratorConfig. */ com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig getAcceleratorConfig(); /** + * + * *
    * Configuration (count and accelerator type) for hardware running notebook
    * execution.
    * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig accelerator_config = 3; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfig accelerator_config = 3; + * */ - com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfigOrBuilder getAcceleratorConfigOrBuilder(); + com.google.cloud.notebooks.v1.ExecutionTemplate.SchedulerAcceleratorConfigOrBuilder + getAcceleratorConfigOrBuilder(); /** + * + * *
    * Labels for execution.
    * If execution is scheduled, a field included will be 'nbs-scheduled'.
@@ -175,6 +225,8 @@ public interface ExecutionTemplateOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Labels for execution.
    * If execution is scheduled, a field included will be 'nbs-scheduled'.
@@ -185,15 +237,13 @@ public interface ExecutionTemplateOrBuilder extends
    *
    * map<string, string> labels = 4;
    */
-  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
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Labels for execution.
    * If execution is scheduled, a field included will be 'nbs-scheduled'.
@@ -204,9 +254,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 4;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Labels for execution.
    * If execution is scheduled, a field included will be 'nbs-scheduled'.
@@ -219,11 +270,13 @@ boolean containsLabels(
    */
 
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Labels for execution.
    * If execution is scheduled, a field included will be 'nbs-scheduled'.
@@ -234,11 +287,11 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 4;
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Path to the notebook file to execute.
    * Must be in a Google Cloud Storage bucket.
@@ -247,10 +300,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string input_notebook_file = 5; + * * @return The inputNotebookFile. */ java.lang.String getInputNotebookFile(); /** + * + * *
    * Path to the notebook file to execute.
    * Must be in a Google Cloud Storage bucket.
@@ -259,12 +315,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * string input_notebook_file = 5; + * * @return The bytes for inputNotebookFile. */ - com.google.protobuf.ByteString - getInputNotebookFileBytes(); + com.google.protobuf.ByteString getInputNotebookFileBytes(); /** + * + * *
    * Container Image URI to a DLVM
    * Example: 'gcr.io/deeplearning-platform-release/base-cu100'
@@ -273,10 +331,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string container_image_uri = 6; + * * @return The containerImageUri. */ java.lang.String getContainerImageUri(); /** + * + * *
    * Container Image URI to a DLVM
    * Example: 'gcr.io/deeplearning-platform-release/base-cu100'
@@ -285,12 +346,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * string container_image_uri = 6; + * * @return The bytes for containerImageUri. */ - com.google.protobuf.ByteString - getContainerImageUriBytes(); + com.google.protobuf.ByteString getContainerImageUriBytes(); /** + * + * *
    * Path to the notebook folder to write to.
    * Must be in a Google Cloud Storage bucket path.
@@ -299,10 +362,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string output_notebook_folder = 7; + * * @return The outputNotebookFolder. */ java.lang.String getOutputNotebookFolder(); /** + * + * *
    * Path to the notebook folder to write to.
    * Must be in a Google Cloud Storage bucket path.
@@ -311,12 +377,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * string output_notebook_folder = 7; + * * @return The bytes for outputNotebookFolder. */ - com.google.protobuf.ByteString - getOutputNotebookFolderBytes(); + com.google.protobuf.ByteString getOutputNotebookFolderBytes(); /** + * + * *
    * Parameters to be overridden in the notebook during execution.
    * Ref https://papermill.readthedocs.io/en/latest/usage-parameterize.html on
@@ -326,10 +394,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string params_yaml_file = 8; + * * @return The paramsYamlFile. */ java.lang.String getParamsYamlFile(); /** + * + * *
    * Parameters to be overridden in the notebook during execution.
    * Ref https://papermill.readthedocs.io/en/latest/usage-parameterize.html on
@@ -339,32 +410,39 @@ java.lang.String getLabelsOrThrow(
    * 
* * string params_yaml_file = 8; + * * @return The bytes for paramsYamlFile. */ - com.google.protobuf.ByteString - getParamsYamlFileBytes(); + com.google.protobuf.ByteString getParamsYamlFileBytes(); /** + * + * *
    * Parameters used within the 'input_notebook_file' notebook.
    * 
* * string parameters = 9; + * * @return The parameters. */ java.lang.String getParameters(); /** + * + * *
    * Parameters used within the 'input_notebook_file' notebook.
    * 
* * string parameters = 9; + * * @return The bytes for parameters. */ - com.google.protobuf.ByteString - getParametersBytes(); + com.google.protobuf.ByteString getParametersBytes(); /** + * + * *
    * The email address of a service account to use when running the execution.
    * You must have the `iam.serviceAccounts.actAs` permission for the specified
@@ -372,10 +450,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string service_account = 10; + * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** + * + * *
    * The email address of a service account to use when running the execution.
    * You must have the `iam.serviceAccounts.actAs` permission for the specified
@@ -383,85 +464,120 @@ java.lang.String getLabelsOrThrow(
    * 
* * string service_account = 10; + * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString - getServiceAccountBytes(); + com.google.protobuf.ByteString getServiceAccountBytes(); /** + * + * *
    * The type of Job to be used on this execution.
    * 
* * .google.cloud.notebooks.v1.ExecutionTemplate.JobType job_type = 11; + * * @return The enum numeric value on the wire for jobType. */ int getJobTypeValue(); /** + * + * *
    * The type of Job to be used on this execution.
    * 
* * .google.cloud.notebooks.v1.ExecutionTemplate.JobType job_type = 11; + * * @return The jobType. */ com.google.cloud.notebooks.v1.ExecutionTemplate.JobType getJobType(); /** + * + * *
    * Parameters used in Dataproc JobType executions.
    * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters dataproc_parameters = 12; + * .google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters dataproc_parameters = 12; + * + * * @return Whether the dataprocParameters field is set. */ boolean hasDataprocParameters(); /** + * + * *
    * Parameters used in Dataproc JobType executions.
    * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters dataproc_parameters = 12; + * .google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters dataproc_parameters = 12; + * + * * @return The dataprocParameters. */ com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters getDataprocParameters(); /** + * + * *
    * Parameters used in Dataproc JobType executions.
    * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters dataproc_parameters = 12; + * .google.cloud.notebooks.v1.ExecutionTemplate.DataprocParameters dataproc_parameters = 12; + * */ - com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParametersOrBuilder getDataprocParametersOrBuilder(); + com.google.cloud.notebooks.v1.ExecutionTemplate.DataprocParametersOrBuilder + getDataprocParametersOrBuilder(); /** + * + * *
    * Parameters used in Vertex AI JobType executions.
    * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters vertex_ai_parameters = 13; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters vertex_ai_parameters = 13; + * + * * @return Whether the vertexAiParameters field is set. */ boolean hasVertexAiParameters(); /** + * + * *
    * Parameters used in Vertex AI JobType executions.
    * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters vertex_ai_parameters = 13; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters vertex_ai_parameters = 13; + * + * * @return The vertexAiParameters. */ com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters getVertexAiParameters(); /** + * + * *
    * Parameters used in Vertex AI JobType executions.
    * 
* - * .google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters vertex_ai_parameters = 13; + * + * .google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParameters vertex_ai_parameters = 13; + * */ - com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParametersOrBuilder getVertexAiParametersOrBuilder(); + com.google.cloud.notebooks.v1.ExecutionTemplate.VertexAIParametersOrBuilder + getVertexAiParametersOrBuilder(); /** + * + * *
    * Name of the kernel spec to use. This must be specified if the
    * kernel spec name on the execution target does not match the name in the
@@ -469,10 +585,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string kernel_spec = 14; + * * @return The kernelSpec. */ java.lang.String getKernelSpec(); /** + * + * *
    * Name of the kernel spec to use. This must be specified if the
    * kernel spec name on the execution target does not match the name in the
@@ -480,12 +599,14 @@ java.lang.String getLabelsOrThrow(
    * 
* * string kernel_spec = 14; + * * @return The bytes for kernelSpec. */ - com.google.protobuf.ByteString - getKernelSpecBytes(); + com.google.protobuf.ByteString getKernelSpecBytes(); /** + * + * *
    * The name of a Vertex AI [Tensorboard] resource to which this execution
    * will upload Tensorboard logs.
@@ -494,10 +615,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string tensorboard = 15 [(.google.api.resource_reference) = { ... } + * * @return The tensorboard. */ java.lang.String getTensorboard(); /** + * + * *
    * The name of a Vertex AI [Tensorboard] resource to which this execution
    * will upload Tensorboard logs.
@@ -506,10 +630,10 @@ java.lang.String getLabelsOrThrow(
    * 
* * string tensorboard = 15 [(.google.api.resource_reference) = { ... } + * * @return The bytes for tensorboard. */ - com.google.protobuf.ByteString - getTensorboardBytes(); + com.google.protobuf.ByteString getTensorboardBytes(); public com.google.cloud.notebooks.v1.ExecutionTemplate.JobParametersCase getJobParametersCase(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetEnvironmentRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetEnvironmentRequest.java similarity index 65% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetEnvironmentRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetEnvironmentRequest.java index 524981bcab0d..96701d12764e 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetEnvironmentRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetEnvironmentRequest.java @@ -1,62 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for getting a notebook environment.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.GetEnvironmentRequest} */ -public final class GetEnvironmentRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetEnvironmentRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.GetEnvironmentRequest) GetEnvironmentRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetEnvironmentRequest.newBuilder() to construct. private GetEnvironmentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetEnvironmentRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetEnvironmentRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_GetEnvironmentRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_GetEnvironmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_GetEnvironmentRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_GetEnvironmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.GetEnvironmentRequest.class, com.google.cloud.notebooks.v1.GetEnvironmentRequest.Builder.class); + com.google.cloud.notebooks.v1.GetEnvironmentRequest.class, + com.google.cloud.notebooks.v1.GetEnvironmentRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/environments/{environment_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -65,30 +87,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/environments/{environment_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -97,6 +119,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +131,7 @@ 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_); } @@ -133,15 +155,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.cloud.notebooks.v1.GetEnvironmentRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.GetEnvironmentRequest other = (com.google.cloud.notebooks.v1.GetEnvironmentRequest) obj; + com.google.cloud.notebooks.v1.GetEnvironmentRequest other = + (com.google.cloud.notebooks.v1.GetEnvironmentRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,129 +183,135 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.GetEnvironmentRequest 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.cloud.notebooks.v1.GetEnvironmentRequest 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.cloud.notebooks.v1.GetEnvironmentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.GetEnvironmentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.GetEnvironmentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.GetEnvironmentRequest 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.cloud.notebooks.v1.GetEnvironmentRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.GetEnvironmentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.GetEnvironmentRequest 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.cloud.notebooks.v1.GetEnvironmentRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.GetEnvironmentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.GetEnvironmentRequest 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.cloud.notebooks.v1.GetEnvironmentRequest 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.cloud.notebooks.v1.GetEnvironmentRequest 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.cloud.notebooks.v1.GetEnvironmentRequest 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; } /** + * + * *
    * Request for getting a notebook environment.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.GetEnvironmentRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.GetEnvironmentRequest) com.google.cloud.notebooks.v1.GetEnvironmentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_GetEnvironmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_GetEnvironmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_GetEnvironmentRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_GetEnvironmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.GetEnvironmentRequest.class, com.google.cloud.notebooks.v1.GetEnvironmentRequest.Builder.class); + com.google.cloud.notebooks.v1.GetEnvironmentRequest.class, + com.google.cloud.notebooks.v1.GetEnvironmentRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.GetEnvironmentRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +321,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_GetEnvironmentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_GetEnvironmentRequest_descriptor; } @java.lang.Override @@ -314,7 +342,8 @@ public com.google.cloud.notebooks.v1.GetEnvironmentRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.GetEnvironmentRequest buildPartial() { - com.google.cloud.notebooks.v1.GetEnvironmentRequest result = new com.google.cloud.notebooks.v1.GetEnvironmentRequest(this); + com.google.cloud.notebooks.v1.GetEnvironmentRequest result = + new com.google.cloud.notebooks.v1.GetEnvironmentRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +353,39 @@ public com.google.cloud.notebooks.v1.GetEnvironmentRequest buildPartial() { 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.cloud.notebooks.v1.GetEnvironmentRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.GetEnvironmentRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.GetEnvironmentRequest) other); } else { super.mergeFrom(other); return this; @@ -363,7 +393,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.GetEnvironmentRequest other) { - if (other == com.google.cloud.notebooks.v1.GetEnvironmentRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.GetEnvironmentRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -394,17 +425,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -417,19 +450,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/environments/{environment_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -438,21 +473,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/environments/{environment_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -460,64 +496,71 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/environments/{environment_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/environments/{environment_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/environments/{environment_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -527,12 +570,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.GetEnvironmentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.GetEnvironmentRequest) private static final com.google.cloud.notebooks.v1.GetEnvironmentRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.GetEnvironmentRequest(); } @@ -541,27 +584,27 @@ public static com.google.cloud.notebooks.v1.GetEnvironmentRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetEnvironmentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetEnvironmentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -576,6 +619,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.GetEnvironmentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetEnvironmentRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetEnvironmentRequestOrBuilder.java similarity index 52% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetEnvironmentRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetEnvironmentRequestOrBuilder.java index d01ca7ab1d49..73136005fd88 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetEnvironmentRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetEnvironmentRequestOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface GetEnvironmentRequestOrBuilder extends +public interface GetEnvironmentRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.GetEnvironmentRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/environments/{environment_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/environments/{environment_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetExecutionRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetExecutionRequest.java similarity index 62% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetExecutionRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetExecutionRequest.java index c815bab4fc49..9a670e95961f 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetExecutionRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetExecutionRequest.java @@ -1,62 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for getting scheduled notebook execution
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.GetExecutionRequest} */ -public final class GetExecutionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetExecutionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.GetExecutionRequest) GetExecutionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetExecutionRequest.newBuilder() to construct. private GetExecutionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetExecutionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetExecutionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_GetExecutionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_GetExecutionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_GetExecutionRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_GetExecutionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.GetExecutionRequest.class, com.google.cloud.notebooks.v1.GetExecutionRequest.Builder.class); + com.google.cloud.notebooks.v1.GetExecutionRequest.class, + com.google.cloud.notebooks.v1.GetExecutionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/executions/{execution_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,30 +89,32 @@ 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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/executions/{execution_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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 { @@ -97,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +135,7 @@ 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_); } @@ -133,15 +159,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.cloud.notebooks.v1.GetExecutionRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.GetExecutionRequest other = (com.google.cloud.notebooks.v1.GetExecutionRequest) obj; + com.google.cloud.notebooks.v1.GetExecutionRequest other = + (com.google.cloud.notebooks.v1.GetExecutionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,129 +187,135 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.GetExecutionRequest 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.cloud.notebooks.v1.GetExecutionRequest 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.cloud.notebooks.v1.GetExecutionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.GetExecutionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.GetExecutionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.GetExecutionRequest 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.cloud.notebooks.v1.GetExecutionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.GetExecutionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.GetExecutionRequest 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.cloud.notebooks.v1.GetExecutionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.GetExecutionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.GetExecutionRequest 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.cloud.notebooks.v1.GetExecutionRequest 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.cloud.notebooks.v1.GetExecutionRequest 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.cloud.notebooks.v1.GetExecutionRequest 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; } /** + * + * *
    * Request for getting scheduled notebook execution
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.GetExecutionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.GetExecutionRequest) com.google.cloud.notebooks.v1.GetExecutionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_GetExecutionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_GetExecutionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_GetExecutionRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_GetExecutionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.GetExecutionRequest.class, com.google.cloud.notebooks.v1.GetExecutionRequest.Builder.class); + com.google.cloud.notebooks.v1.GetExecutionRequest.class, + com.google.cloud.notebooks.v1.GetExecutionRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.GetExecutionRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +325,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_GetExecutionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_GetExecutionRequest_descriptor; } @java.lang.Override @@ -314,7 +346,8 @@ public com.google.cloud.notebooks.v1.GetExecutionRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.GetExecutionRequest buildPartial() { - com.google.cloud.notebooks.v1.GetExecutionRequest result = new com.google.cloud.notebooks.v1.GetExecutionRequest(this); + com.google.cloud.notebooks.v1.GetExecutionRequest result = + new com.google.cloud.notebooks.v1.GetExecutionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +357,39 @@ public com.google.cloud.notebooks.v1.GetExecutionRequest buildPartial() { 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.cloud.notebooks.v1.GetExecutionRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.GetExecutionRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.GetExecutionRequest) other); } else { super.mergeFrom(other); return this; @@ -363,7 +397,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.GetExecutionRequest other) { - if (other == com.google.cloud.notebooks.v1.GetExecutionRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.GetExecutionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -394,17 +429,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -417,19 +454,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/executions/{execution_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -438,21 +479,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/executions/{execution_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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 { @@ -460,64 +504,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/executions/{execution_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/executions/{execution_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/executions/{execution_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -527,12 +584,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.GetExecutionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.GetExecutionRequest) private static final com.google.cloud.notebooks.v1.GetExecutionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.GetExecutionRequest(); } @@ -541,27 +598,27 @@ public static com.google.cloud.notebooks.v1.GetExecutionRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetExecutionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetExecutionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -576,6 +633,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.GetExecutionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetExecutionRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetExecutionRequestOrBuilder.java new file mode 100644 index 000000000000..d806e2196ba6 --- /dev/null +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetExecutionRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/notebooks/v1/service.proto + +package com.google.cloud.notebooks.v1; + +public interface GetExecutionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.GetExecutionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format:
+   * `projects/{project_id}/locations/{location}/executions/{execution_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Format:
+   * `projects/{project_id}/locations/{location}/executions/{execution_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthRequest.java similarity index 61% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthRequest.java index d572dc9b18c6..62c004939b38 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthRequest.java @@ -1,62 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for checking if a notebook instance is healthy.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.GetInstanceHealthRequest} */ -public final class GetInstanceHealthRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetInstanceHealthRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.GetInstanceHealthRequest) GetInstanceHealthRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetInstanceHealthRequest.newBuilder() to construct. private GetInstanceHealthRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetInstanceHealthRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetInstanceHealthRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_GetInstanceHealthRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_GetInstanceHealthRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_GetInstanceHealthRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_GetInstanceHealthRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.GetInstanceHealthRequest.class, com.google.cloud.notebooks.v1.GetInstanceHealthRequest.Builder.class); + com.google.cloud.notebooks.v1.GetInstanceHealthRequest.class, + com.google.cloud.notebooks.v1.GetInstanceHealthRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,30 +89,32 @@ 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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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 { @@ -97,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +135,7 @@ 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_); } @@ -133,15 +159,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.cloud.notebooks.v1.GetInstanceHealthRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.GetInstanceHealthRequest other = (com.google.cloud.notebooks.v1.GetInstanceHealthRequest) obj; + com.google.cloud.notebooks.v1.GetInstanceHealthRequest other = + (com.google.cloud.notebooks.v1.GetInstanceHealthRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,129 +187,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.GetInstanceHealthRequest 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.cloud.notebooks.v1.GetInstanceHealthRequest 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.cloud.notebooks.v1.GetInstanceHealthRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.GetInstanceHealthRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.GetInstanceHealthRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.GetInstanceHealthRequest 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.cloud.notebooks.v1.GetInstanceHealthRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.GetInstanceHealthRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.GetInstanceHealthRequest 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.cloud.notebooks.v1.GetInstanceHealthRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.GetInstanceHealthRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.GetInstanceHealthRequest 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.cloud.notebooks.v1.GetInstanceHealthRequest 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.cloud.notebooks.v1.GetInstanceHealthRequest 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.cloud.notebooks.v1.GetInstanceHealthRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1.GetInstanceHealthRequest 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; } /** + * + * *
    * Request for checking if a notebook instance is healthy.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.GetInstanceHealthRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.GetInstanceHealthRequest) com.google.cloud.notebooks.v1.GetInstanceHealthRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_GetInstanceHealthRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_GetInstanceHealthRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_GetInstanceHealthRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_GetInstanceHealthRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.GetInstanceHealthRequest.class, com.google.cloud.notebooks.v1.GetInstanceHealthRequest.Builder.class); + com.google.cloud.notebooks.v1.GetInstanceHealthRequest.class, + com.google.cloud.notebooks.v1.GetInstanceHealthRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.GetInstanceHealthRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_GetInstanceHealthRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_GetInstanceHealthRequest_descriptor; } @java.lang.Override @@ -314,7 +347,8 @@ public com.google.cloud.notebooks.v1.GetInstanceHealthRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.GetInstanceHealthRequest buildPartial() { - com.google.cloud.notebooks.v1.GetInstanceHealthRequest result = new com.google.cloud.notebooks.v1.GetInstanceHealthRequest(this); + com.google.cloud.notebooks.v1.GetInstanceHealthRequest result = + new com.google.cloud.notebooks.v1.GetInstanceHealthRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +358,39 @@ public com.google.cloud.notebooks.v1.GetInstanceHealthRequest buildPartial() { 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.cloud.notebooks.v1.GetInstanceHealthRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.GetInstanceHealthRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.GetInstanceHealthRequest) other); } else { super.mergeFrom(other); return this; @@ -363,7 +398,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.GetInstanceHealthRequest other) { - if (other == com.google.cloud.notebooks.v1.GetInstanceHealthRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.GetInstanceHealthRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -394,17 +430,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -417,19 +455,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -438,21 +480,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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 { @@ -460,64 +505,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -527,12 +585,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.GetInstanceHealthRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.GetInstanceHealthRequest) private static final com.google.cloud.notebooks.v1.GetInstanceHealthRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.GetInstanceHealthRequest(); } @@ -541,27 +599,27 @@ public static com.google.cloud.notebooks.v1.GetInstanceHealthRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetInstanceHealthRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInstanceHealthRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -576,6 +634,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.GetInstanceHealthRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthRequestOrBuilder.java new file mode 100644 index 000000000000..839cece8be32 --- /dev/null +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/notebooks/v1/service.proto + +package com.google.cloud.notebooks.v1; + +public interface GetInstanceHealthRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.GetInstanceHealthRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format:
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Format:
+   * `projects/{project_id}/locations/{location}/instances/{instance_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthResponse.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthResponse.java similarity index 61% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthResponse.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthResponse.java index 1b253d9d607a..3c2e7bb12f74 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthResponse.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthResponse.java @@ -1,75 +1,96 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Response for checking if a notebook instance is healthy.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.GetInstanceHealthResponse} */ -public final class GetInstanceHealthResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetInstanceHealthResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.GetInstanceHealthResponse) GetInstanceHealthResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetInstanceHealthResponse.newBuilder() to construct. private GetInstanceHealthResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetInstanceHealthResponse() { healthState_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetInstanceHealthResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_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 2: return internalGetHealthInfo(); 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.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.GetInstanceHealthResponse.class, com.google.cloud.notebooks.v1.GetInstanceHealthResponse.Builder.class); + com.google.cloud.notebooks.v1.GetInstanceHealthResponse.class, + com.google.cloud.notebooks.v1.GetInstanceHealthResponse.Builder.class); } /** + * + * *
    * If an instance is healthy or not.
    * 
* * Protobuf enum {@code google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState} */ - public enum HealthState - implements com.google.protobuf.ProtocolMessageEnum { + public enum HealthState implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The instance substate is unknown.
      * 
@@ -78,6 +99,8 @@ public enum HealthState */ HEALTH_STATE_UNSPECIFIED(0), /** + * + * *
      * The instance is known to be in an healthy state
      * (for example, critical daemons are running)
@@ -88,6 +111,8 @@ public enum HealthState
      */
     HEALTHY(1),
     /**
+     *
+     *
      * 
      * The instance is known to be in an unhealthy state
      * (for example, critical daemons are not running)
@@ -98,6 +123,8 @@ public enum HealthState
      */
     UNHEALTHY(2),
     /**
+     *
+     *
      * 
      * The instance has not installed health monitoring agent.
      * Applies to ACTIVE state.
@@ -107,6 +134,8 @@ public enum HealthState
      */
     AGENT_NOT_INSTALLED(3),
     /**
+     *
+     *
      * 
      * The instance health monitoring agent is not running.
      * Applies to ACTIVE state.
@@ -119,6 +148,8 @@ public enum HealthState
     ;
 
     /**
+     *
+     *
      * 
      * The instance substate is unknown.
      * 
@@ -127,6 +158,8 @@ public enum HealthState */ public static final int HEALTH_STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The instance is known to be in an healthy state
      * (for example, critical daemons are running)
@@ -137,6 +170,8 @@ public enum HealthState
      */
     public static final int HEALTHY_VALUE = 1;
     /**
+     *
+     *
      * 
      * The instance is known to be in an unhealthy state
      * (for example, critical daemons are not running)
@@ -147,6 +182,8 @@ public enum HealthState
      */
     public static final int UNHEALTHY_VALUE = 2;
     /**
+     *
+     *
      * 
      * The instance has not installed health monitoring agent.
      * Applies to ACTIVE state.
@@ -156,6 +193,8 @@ public enum HealthState
      */
     public static final int AGENT_NOT_INSTALLED_VALUE = 3;
     /**
+     *
+     *
      * 
      * The instance health monitoring agent is not running.
      * Applies to ACTIVE state.
@@ -165,7 +204,6 @@ public enum HealthState
      */
     public static final int AGENT_NOT_RUNNING_VALUE = 4;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -190,51 +228,55 @@ public static HealthState valueOf(int value) {
      */
     public static HealthState forNumber(int value) {
       switch (value) {
-        case 0: return HEALTH_STATE_UNSPECIFIED;
-        case 1: return HEALTHY;
-        case 2: return UNHEALTHY;
-        case 3: return AGENT_NOT_INSTALLED;
-        case 4: return AGENT_NOT_RUNNING;
-        default: return null;
+        case 0:
+          return HEALTH_STATE_UNSPECIFIED;
+        case 1:
+          return HEALTHY;
+        case 2:
+          return UNHEALTHY;
+        case 3:
+          return AGENT_NOT_INSTALLED;
+        case 4:
+          return AGENT_NOT_RUNNING;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        HealthState> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public HealthState findValueByNumber(int number) {
-              return HealthState.forNumber(number);
-            }
-          };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public HealthState findValueByNumber(int number) {
+            return HealthState.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.cloud.notebooks.v1.GetInstanceHealthResponse.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.notebooks.v1.GetInstanceHealthResponse.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final HealthState[] VALUES = values();
 
-    public static HealthState valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static HealthState 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;
@@ -254,49 +296,63 @@ private HealthState(int value) {
   public static final int HEALTH_STATE_FIELD_NUMBER = 1;
   private int healthState_;
   /**
+   *
+   *
    * 
    * Output only. Runtime health_state.
    * 
* - * .google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState health_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState health_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for healthState. */ - @java.lang.Override public int getHealthStateValue() { + @java.lang.Override + public int getHealthStateValue() { return healthState_; } /** + * + * *
    * Output only. Runtime health_state.
    * 
* - * .google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState health_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState health_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The healthState. */ - @java.lang.Override public com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState getHealthState() { + @java.lang.Override + public com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState getHealthState() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState result = com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState.valueOf(healthState_); - return result == null ? com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState result = + com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState.valueOf(healthState_); + return result == null + ? com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState.UNRECOGNIZED + : result; } public static final int HEALTH_INFO_FIELD_NUMBER = 2; + private static final class HealthInfoDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_HealthInfoEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_HealthInfoEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> healthInfo_; - private com.google.protobuf.MapField - internalGetHealthInfo() { + + private com.google.protobuf.MapField healthInfo_; + + private com.google.protobuf.MapField internalGetHealthInfo() { if (healthInfo_ == null) { - return com.google.protobuf.MapField.emptyMapField( - HealthInfoDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(HealthInfoDefaultEntryHolder.defaultEntry); } return healthInfo_; } @@ -305,6 +361,8 @@ public int getHealthInfoCount() { return internalGetHealthInfo().getMap().size(); } /** + * + * *
    * Output only. Additional information about instance health.
    * Example:
@@ -317,24 +375,25 @@ public int getHealthInfoCount() {
    *  }
    * 
* - * map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public boolean containsHealthInfo( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsHealthInfo(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetHealthInfo().getMap().containsKey(key); } - /** - * Use {@link #getHealthInfoMap()} instead. - */ + /** Use {@link #getHealthInfoMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getHealthInfo() { return getHealthInfoMap(); } /** + * + * *
    * Output only. Additional information about instance health.
    * Example:
@@ -347,14 +406,16 @@ public java.util.Map getHealthInfo() {
    *  }
    * 
* - * map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.Map getHealthInfoMap() { return internalGetHealthInfo().getMap(); } /** + * + * *
    * Output only. Additional information about instance health.
    * Example:
@@ -367,19 +428,21 @@ public java.util.Map getHealthInfoMap() {
    *  }
    * 
* - * map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.lang.String getHealthInfoOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetHealthInfo().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetHealthInfo().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Output only. Additional information about instance health.
    * Example:
@@ -392,15 +455,15 @@ public java.lang.String getHealthInfoOrDefault(
    *  }
    * 
* - * map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - - public java.lang.String getHealthInfoOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetHealthInfo().getMap(); + public java.lang.String getHealthInfoOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetHealthInfo().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -408,6 +471,7 @@ public java.lang.String getHealthInfoOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -419,17 +483,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (healthState_ != com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState.HEALTH_STATE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (healthState_ + != com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState + .HEALTH_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, healthState_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetHealthInfo(), - HealthInfoDefaultEntryHolder.defaultEntry, - 2); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetHealthInfo(), HealthInfoDefaultEntryHolder.defaultEntry, 2); getUnknownFields().writeTo(output); } @@ -439,19 +501,21 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (healthState_ != com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState.HEALTH_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, healthState_); + if (healthState_ + != com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState + .HEALTH_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, healthState_); } - for (java.util.Map.Entry entry - : internalGetHealthInfo().getMap().entrySet()) { - com.google.protobuf.MapEntry - healthInfo__ = HealthInfoDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, healthInfo__); + for (java.util.Map.Entry entry : + internalGetHealthInfo().getMap().entrySet()) { + com.google.protobuf.MapEntry healthInfo__ = + HealthInfoDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, healthInfo__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -461,16 +525,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.cloud.notebooks.v1.GetInstanceHealthResponse)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.GetInstanceHealthResponse other = (com.google.cloud.notebooks.v1.GetInstanceHealthResponse) obj; + com.google.cloud.notebooks.v1.GetInstanceHealthResponse other = + (com.google.cloud.notebooks.v1.GetInstanceHealthResponse) obj; if (healthState_ != other.healthState_) return false; - if (!internalGetHealthInfo().equals( - other.internalGetHealthInfo())) return false; + if (!internalGetHealthInfo().equals(other.internalGetHealthInfo())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -494,151 +558,156 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.GetInstanceHealthResponse 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.cloud.notebooks.v1.GetInstanceHealthResponse 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.cloud.notebooks.v1.GetInstanceHealthResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.GetInstanceHealthResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.GetInstanceHealthResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.GetInstanceHealthResponse 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.cloud.notebooks.v1.GetInstanceHealthResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.GetInstanceHealthResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.GetInstanceHealthResponse 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.cloud.notebooks.v1.GetInstanceHealthResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.GetInstanceHealthResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.GetInstanceHealthResponse 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.cloud.notebooks.v1.GetInstanceHealthResponse 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.cloud.notebooks.v1.GetInstanceHealthResponse 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.cloud.notebooks.v1.GetInstanceHealthResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1.GetInstanceHealthResponse 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; } /** + * + * *
    * Response for checking if a notebook instance is healthy.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.GetInstanceHealthResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.GetInstanceHealthResponse) com.google.cloud.notebooks.v1.GetInstanceHealthResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetHealthInfo(); 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 2: return internalGetMutableHealthInfo(); 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.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.GetInstanceHealthResponse.class, com.google.cloud.notebooks.v1.GetInstanceHealthResponse.Builder.class); + com.google.cloud.notebooks.v1.GetInstanceHealthResponse.class, + com.google.cloud.notebooks.v1.GetInstanceHealthResponse.Builder.class); } // Construct using com.google.cloud.notebooks.v1.GetInstanceHealthResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -649,9 +718,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_descriptor; } @java.lang.Override @@ -670,7 +739,8 @@ public com.google.cloud.notebooks.v1.GetInstanceHealthResponse build() { @java.lang.Override public com.google.cloud.notebooks.v1.GetInstanceHealthResponse buildPartial() { - com.google.cloud.notebooks.v1.GetInstanceHealthResponse result = new com.google.cloud.notebooks.v1.GetInstanceHealthResponse(this); + com.google.cloud.notebooks.v1.GetInstanceHealthResponse result = + new com.google.cloud.notebooks.v1.GetInstanceHealthResponse(this); int from_bitField0_ = bitField0_; result.healthState_ = healthState_; result.healthInfo_ = internalGetHealthInfo(); @@ -683,38 +753,39 @@ public com.google.cloud.notebooks.v1.GetInstanceHealthResponse buildPartial() { 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.cloud.notebooks.v1.GetInstanceHealthResponse) { - return mergeFrom((com.google.cloud.notebooks.v1.GetInstanceHealthResponse)other); + return mergeFrom((com.google.cloud.notebooks.v1.GetInstanceHealthResponse) other); } else { super.mergeFrom(other); return this; @@ -722,12 +793,12 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.GetInstanceHealthResponse other) { - if (other == com.google.cloud.notebooks.v1.GetInstanceHealthResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.GetInstanceHealthResponse.getDefaultInstance()) + return this; if (other.healthState_ != 0) { setHealthStateValue(other.getHealthStateValue()); } - internalGetMutableHealthInfo().mergeFrom( - other.internalGetHealthInfo()); + internalGetMutableHealthInfo().mergeFrom(other.internalGetHealthInfo()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -754,25 +825,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - healthState_ = input.readEnum(); - - break; - } // case 8 - case 18: { - com.google.protobuf.MapEntry - healthInfo__ = input.readMessage( - HealthInfoDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableHealthInfo().getMutableMap().put( - healthInfo__.getKey(), healthInfo__.getValue()); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + healthState_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + com.google.protobuf.MapEntry healthInfo__ = + input.readMessage( + HealthInfoDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableHealthInfo() + .getMutableMap() + .put(healthInfo__.getKey(), healthInfo__.getValue()); + 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) { @@ -782,98 +858,131 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int healthState_ = 0; /** + * + * *
      * Output only. Runtime health_state.
      * 
* - * .google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState health_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState health_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for healthState. */ - @java.lang.Override public int getHealthStateValue() { + @java.lang.Override + public int getHealthStateValue() { return healthState_; } /** + * + * *
      * Output only. Runtime health_state.
      * 
* - * .google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState health_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState health_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for healthState to set. * @return This builder for chaining. */ public Builder setHealthStateValue(int value) { - + healthState_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Runtime health_state.
      * 
* - * .google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState health_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState health_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The healthState. */ @java.lang.Override public com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState getHealthState() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState result = com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState.valueOf(healthState_); - return result == null ? com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState result = + com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState.valueOf(healthState_); + return result == null + ? com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. Runtime health_state.
      * 
* - * .google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState health_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState health_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The healthState to set. * @return This builder for chaining. */ - public Builder setHealthState(com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState value) { + public Builder setHealthState( + com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState value) { if (value == null) { throw new NullPointerException(); } - + healthState_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. Runtime health_state.
      * 
* - * .google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState health_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState health_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearHealthState() { - + healthState_ = 0; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> healthInfo_; + private com.google.protobuf.MapField healthInfo_; + private com.google.protobuf.MapField - internalGetHealthInfo() { + internalGetHealthInfo() { if (healthInfo_ == null) { return com.google.protobuf.MapField.emptyMapField( HealthInfoDefaultEntryHolder.defaultEntry); } return healthInfo_; } + private com.google.protobuf.MapField - internalGetMutableHealthInfo() { - onChanged();; + internalGetMutableHealthInfo() { + onChanged(); + ; if (healthInfo_ == null) { - healthInfo_ = com.google.protobuf.MapField.newMapField( - HealthInfoDefaultEntryHolder.defaultEntry); + healthInfo_ = + com.google.protobuf.MapField.newMapField(HealthInfoDefaultEntryHolder.defaultEntry); } if (!healthInfo_.isMutable()) { healthInfo_ = healthInfo_.copy(); @@ -885,6 +994,8 @@ public int getHealthInfoCount() { return internalGetHealthInfo().getMap().size(); } /** + * + * *
      * Output only. Additional information about instance health.
      * Example:
@@ -897,24 +1008,25 @@ public int getHealthInfoCount() {
      *  }
      * 
* - * map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public boolean containsHealthInfo( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsHealthInfo(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetHealthInfo().getMap().containsKey(key); } - /** - * Use {@link #getHealthInfoMap()} instead. - */ + /** Use {@link #getHealthInfoMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getHealthInfo() { return getHealthInfoMap(); } /** + * + * *
      * Output only. Additional information about instance health.
      * Example:
@@ -927,14 +1039,16 @@ public java.util.Map getHealthInfo() {
      *  }
      * 
* - * map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.Map getHealthInfoMap() { return internalGetHealthInfo().getMap(); } /** + * + * *
      * Output only. Additional information about instance health.
      * Example:
@@ -947,19 +1061,21 @@ public java.util.Map getHealthInfoMap() {
      *  }
      * 
* - * map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.lang.String getHealthInfoOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetHealthInfo().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetHealthInfo().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Output only. Additional information about instance health.
      * Example:
@@ -972,15 +1088,15 @@ public java.lang.String getHealthInfoOrDefault(
      *  }
      * 
* - * map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - - public java.lang.String getHealthInfoOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetHealthInfo().getMap(); + public java.lang.String getHealthInfoOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetHealthInfo().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -988,11 +1104,12 @@ public java.lang.String getHealthInfoOrThrow( } public Builder clearHealthInfo() { - internalGetMutableHealthInfo().getMutableMap() - .clear(); + internalGetMutableHealthInfo().getMutableMap().clear(); return this; } /** + * + * *
      * Output only. Additional information about instance health.
      * Example:
@@ -1005,25 +1122,24 @@ public Builder clearHealthInfo() {
      *  }
      * 
* - * map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - - public Builder removeHealthInfo( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableHealthInfo().getMutableMap() - .remove(key); + public Builder removeHealthInfo(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableHealthInfo().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableHealthInfo() { + public java.util.Map getMutableHealthInfo() { return internalGetMutableHealthInfo().getMutableMap(); } /** + * + * *
      * Output only. Additional information about instance health.
      * Example:
@@ -1036,21 +1152,23 @@ public Builder removeHealthInfo(
      *  }
      * 
* - * map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder putHealthInfo( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putHealthInfo(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableHealthInfo().getMutableMap() - .put(key, value); + internalGetMutableHealthInfo().getMutableMap().put(key, value); return this; } /** + * + * *
      * Output only. Additional information about instance health.
      * Example:
@@ -1063,18 +1181,16 @@ public Builder putHealthInfo(
      *  }
      * 
* - * map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - - public Builder putAllHealthInfo( - java.util.Map values) { - internalGetMutableHealthInfo().getMutableMap() - .putAll(values); + public Builder putAllHealthInfo(java.util.Map values) { + internalGetMutableHealthInfo().getMutableMap().putAll(values); 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 +1200,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.GetInstanceHealthResponse) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.GetInstanceHealthResponse) private static final com.google.cloud.notebooks.v1.GetInstanceHealthResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.GetInstanceHealthResponse(); } @@ -1098,27 +1214,27 @@ public static com.google.cloud.notebooks.v1.GetInstanceHealthResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetInstanceHealthResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInstanceHealthResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -1133,6 +1249,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.notebooks.v1.GetInstanceHealthResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthResponseOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthResponseOrBuilder.java similarity index 62% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthResponseOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthResponseOrBuilder.java index 7aa159969ac9..438f24c59d3a 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthResponseOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthResponseOrBuilder.java @@ -1,32 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface GetInstanceHealthResponseOrBuilder extends +public interface GetInstanceHealthResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.GetInstanceHealthResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Runtime health_state.
    * 
* - * .google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState health_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState health_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for healthState. */ int getHealthStateValue(); /** + * + * *
    * Output only. Runtime health_state.
    * 
* - * .google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState health_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState health_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The healthState. */ com.google.cloud.notebooks.v1.GetInstanceHealthResponse.HealthState getHealthState(); /** + * + * *
    * Output only. Additional information about instance health.
    * Example:
@@ -39,10 +67,13 @@ public interface GetInstanceHealthResponseOrBuilder extends
    *  }
    * 
* - * map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getHealthInfoCount(); /** + * + * *
    * Output only. Additional information about instance health.
    * Example:
@@ -55,17 +86,16 @@ public interface GetInstanceHealthResponseOrBuilder extends
    *  }
    * 
* - * map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - boolean containsHealthInfo( - java.lang.String key); - /** - * Use {@link #getHealthInfoMap()} instead. + * map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ + boolean containsHealthInfo(java.lang.String key); + /** Use {@link #getHealthInfoMap()} instead. */ @java.lang.Deprecated - java.util.Map - getHealthInfo(); + java.util.Map getHealthInfo(); /** + * + * *
    * Output only. Additional information about instance health.
    * Example:
@@ -78,11 +108,13 @@ boolean containsHealthInfo(
    *  }
    * 
* - * map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.Map - getHealthInfoMap(); + java.util.Map getHealthInfoMap(); /** + * + * *
    * Output only. Additional information about instance health.
    * Example:
@@ -95,15 +127,18 @@ boolean containsHealthInfo(
    *  }
    * 
* - * map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ /* nullable */ -java.lang.String getHealthInfoOrDefault( + java.lang.String getHealthInfoOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Output only. Additional information about instance health.
    * Example:
@@ -116,9 +151,8 @@ java.lang.String getHealthInfoOrDefault(
    *  }
    * 
* - * map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> health_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - - java.lang.String getHealthInfoOrThrow( - java.lang.String key); + java.lang.String getHealthInfoOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceRequest.java similarity index 65% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceRequest.java index d7087f96b03c..4ba50f0ad014 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceRequest.java @@ -1,62 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for getting a notebook instance.
  * 
* * Protobuf type {@code google.cloud.notebooks.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.cloud.notebooks.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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_GetInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.GetInstanceRequest.class, com.google.cloud.notebooks.v1.GetInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1.GetInstanceRequest.class, + com.google.cloud.notebooks.v1.GetInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -65,30 +87,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -97,6 +119,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +131,7 @@ 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_); } @@ -133,15 +155,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.cloud.notebooks.v1.GetInstanceRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.GetInstanceRequest other = (com.google.cloud.notebooks.v1.GetInstanceRequest) obj; + com.google.cloud.notebooks.v1.GetInstanceRequest other = + (com.google.cloud.notebooks.v1.GetInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -160,130 +182,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.notebooks.v1.GetInstanceRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.notebooks.v1.GetInstanceRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.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.cloud.notebooks.v1.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.GetInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.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.cloud.notebooks.v1.GetInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.GetInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.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.cloud.notebooks.v1.GetInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.GetInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.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.cloud.notebooks.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.cloud.notebooks.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.cloud.notebooks.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; } /** + * + * *
    * Request for getting a notebook instance.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.GetInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.GetInstanceRequest) com.google.cloud.notebooks.v1.GetInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.GetInstanceRequest.class, com.google.cloud.notebooks.v1.GetInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1.GetInstanceRequest.class, + com.google.cloud.notebooks.v1.GetInstanceRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.GetInstanceRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +321,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_GetInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_GetInstanceRequest_descriptor; } @java.lang.Override @@ -314,7 +342,8 @@ public com.google.cloud.notebooks.v1.GetInstanceRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.GetInstanceRequest buildPartial() { - com.google.cloud.notebooks.v1.GetInstanceRequest result = new com.google.cloud.notebooks.v1.GetInstanceRequest(this); + com.google.cloud.notebooks.v1.GetInstanceRequest result = + new com.google.cloud.notebooks.v1.GetInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +353,39 @@ public com.google.cloud.notebooks.v1.GetInstanceRequest buildPartial() { 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.cloud.notebooks.v1.GetInstanceRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.GetInstanceRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.GetInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -363,7 +393,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.GetInstanceRequest other) { - if (other == com.google.cloud.notebooks.v1.GetInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.GetInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -394,17 +425,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -417,19 +450,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -438,21 +473,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -460,64 +496,71 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -527,12 +570,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.GetInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.GetInstanceRequest) private static final com.google.cloud.notebooks.v1.GetInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.GetInstanceRequest(); } @@ -541,27 +584,27 @@ public static com.google.cloud.notebooks.v1.GetInstanceRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @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 PARSER = + new com.google.protobuf.AbstractParser() { + @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 parser() { return PARSER; @@ -576,6 +619,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.GetInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceRequestOrBuilder.java similarity index 52% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceRequestOrBuilder.java index 7e68b0d6ab76..4efde40008ea 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceRequestOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface GetInstanceRequestOrBuilder extends +public interface GetInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.GetInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetRuntimeRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetRuntimeRequest.java similarity index 62% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetRuntimeRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetRuntimeRequest.java index 6c1f6aea0b9d..716c12798ef0 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetRuntimeRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetRuntimeRequest.java @@ -1,62 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/managed_service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for getting a Managed Notebook Runtime.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.GetRuntimeRequest} */ -public final class GetRuntimeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetRuntimeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.GetRuntimeRequest) GetRuntimeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetRuntimeRequest.newBuilder() to construct. private GetRuntimeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetRuntimeRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetRuntimeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_GetRuntimeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_GetRuntimeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_GetRuntimeRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_GetRuntimeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.GetRuntimeRequest.class, com.google.cloud.notebooks.v1.GetRuntimeRequest.Builder.class); + com.google.cloud.notebooks.v1.GetRuntimeRequest.class, + com.google.cloud.notebooks.v1.GetRuntimeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,30 +89,32 @@ 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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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 { @@ -97,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +135,7 @@ 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_); } @@ -133,15 +159,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.cloud.notebooks.v1.GetRuntimeRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.GetRuntimeRequest other = (com.google.cloud.notebooks.v1.GetRuntimeRequest) obj; + com.google.cloud.notebooks.v1.GetRuntimeRequest other = + (com.google.cloud.notebooks.v1.GetRuntimeRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -160,130 +186,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.notebooks.v1.GetRuntimeRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.notebooks.v1.GetRuntimeRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.GetRuntimeRequest 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.cloud.notebooks.v1.GetRuntimeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.GetRuntimeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.GetRuntimeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.GetRuntimeRequest 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.cloud.notebooks.v1.GetRuntimeRequest 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.cloud.notebooks.v1.GetRuntimeRequest 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.cloud.notebooks.v1.GetRuntimeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.GetRuntimeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.GetRuntimeRequest 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.cloud.notebooks.v1.GetRuntimeRequest 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.cloud.notebooks.v1.GetRuntimeRequest 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.cloud.notebooks.v1.GetRuntimeRequest 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; } /** + * + * *
    * Request for getting a Managed Notebook Runtime.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.GetRuntimeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.GetRuntimeRequest) com.google.cloud.notebooks.v1.GetRuntimeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_GetRuntimeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_GetRuntimeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_GetRuntimeRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_GetRuntimeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.GetRuntimeRequest.class, com.google.cloud.notebooks.v1.GetRuntimeRequest.Builder.class); + com.google.cloud.notebooks.v1.GetRuntimeRequest.class, + com.google.cloud.notebooks.v1.GetRuntimeRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.GetRuntimeRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +325,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_GetRuntimeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_GetRuntimeRequest_descriptor; } @java.lang.Override @@ -314,7 +346,8 @@ public com.google.cloud.notebooks.v1.GetRuntimeRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.GetRuntimeRequest buildPartial() { - com.google.cloud.notebooks.v1.GetRuntimeRequest result = new com.google.cloud.notebooks.v1.GetRuntimeRequest(this); + com.google.cloud.notebooks.v1.GetRuntimeRequest result = + new com.google.cloud.notebooks.v1.GetRuntimeRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +357,39 @@ public com.google.cloud.notebooks.v1.GetRuntimeRequest buildPartial() { 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.cloud.notebooks.v1.GetRuntimeRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.GetRuntimeRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.GetRuntimeRequest) other); } else { super.mergeFrom(other); return this; @@ -363,7 +397,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.GetRuntimeRequest other) { - if (other == com.google.cloud.notebooks.v1.GetRuntimeRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.GetRuntimeRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -394,17 +429,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -417,19 +454,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -438,21 +479,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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 { @@ -460,64 +504,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -527,12 +584,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.GetRuntimeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.GetRuntimeRequest) private static final com.google.cloud.notebooks.v1.GetRuntimeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.GetRuntimeRequest(); } @@ -541,27 +598,27 @@ public static com.google.cloud.notebooks.v1.GetRuntimeRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetRuntimeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRuntimeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -576,6 +633,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.GetRuntimeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetRuntimeRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetRuntimeRequestOrBuilder.java new file mode 100644 index 000000000000..0b0aa61c88b6 --- /dev/null +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetRuntimeRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/notebooks/v1/managed_service.proto + +package com.google.cloud.notebooks.v1; + +public interface GetRuntimeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.GetRuntimeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format:
+   * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Format:
+   * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetScheduleRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetScheduleRequest.java similarity index 61% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetScheduleRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetScheduleRequest.java index abc928805e1e..dce663d4b4c6 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetScheduleRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetScheduleRequest.java @@ -1,62 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for getting scheduled notebook.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.GetScheduleRequest} */ -public final class GetScheduleRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetScheduleRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.GetScheduleRequest) GetScheduleRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetScheduleRequest.newBuilder() to construct. private GetScheduleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetScheduleRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetScheduleRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_GetScheduleRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_GetScheduleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_GetScheduleRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_GetScheduleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.GetScheduleRequest.class, com.google.cloud.notebooks.v1.GetScheduleRequest.Builder.class); + com.google.cloud.notebooks.v1.GetScheduleRequest.class, + com.google.cloud.notebooks.v1.GetScheduleRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,30 +89,32 @@ 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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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 { @@ -97,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +135,7 @@ 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_); } @@ -133,15 +159,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.cloud.notebooks.v1.GetScheduleRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.GetScheduleRequest other = (com.google.cloud.notebooks.v1.GetScheduleRequest) obj; + com.google.cloud.notebooks.v1.GetScheduleRequest other = + (com.google.cloud.notebooks.v1.GetScheduleRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -160,130 +186,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.notebooks.v1.GetScheduleRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.notebooks.v1.GetScheduleRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.GetScheduleRequest 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.cloud.notebooks.v1.GetScheduleRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.GetScheduleRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.GetScheduleRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.GetScheduleRequest 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.cloud.notebooks.v1.GetScheduleRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.GetScheduleRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.GetScheduleRequest 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.cloud.notebooks.v1.GetScheduleRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.GetScheduleRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.GetScheduleRequest 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.cloud.notebooks.v1.GetScheduleRequest 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.cloud.notebooks.v1.GetScheduleRequest 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.cloud.notebooks.v1.GetScheduleRequest 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; } /** + * + * *
    * Request for getting scheduled notebook.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.GetScheduleRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.GetScheduleRequest) com.google.cloud.notebooks.v1.GetScheduleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_GetScheduleRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_GetScheduleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_GetScheduleRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_GetScheduleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.GetScheduleRequest.class, com.google.cloud.notebooks.v1.GetScheduleRequest.Builder.class); + com.google.cloud.notebooks.v1.GetScheduleRequest.class, + com.google.cloud.notebooks.v1.GetScheduleRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.GetScheduleRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +325,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_GetScheduleRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_GetScheduleRequest_descriptor; } @java.lang.Override @@ -314,7 +346,8 @@ public com.google.cloud.notebooks.v1.GetScheduleRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.GetScheduleRequest buildPartial() { - com.google.cloud.notebooks.v1.GetScheduleRequest result = new com.google.cloud.notebooks.v1.GetScheduleRequest(this); + com.google.cloud.notebooks.v1.GetScheduleRequest result = + new com.google.cloud.notebooks.v1.GetScheduleRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +357,39 @@ public com.google.cloud.notebooks.v1.GetScheduleRequest buildPartial() { 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.cloud.notebooks.v1.GetScheduleRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.GetScheduleRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.GetScheduleRequest) other); } else { super.mergeFrom(other); return this; @@ -363,7 +397,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.GetScheduleRequest other) { - if (other == com.google.cloud.notebooks.v1.GetScheduleRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.GetScheduleRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -394,17 +429,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -417,19 +454,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -438,21 +479,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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 { @@ -460,64 +504,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -527,12 +584,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.GetScheduleRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.GetScheduleRequest) private static final com.google.cloud.notebooks.v1.GetScheduleRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.GetScheduleRequest(); } @@ -541,27 +598,27 @@ public static com.google.cloud.notebooks.v1.GetScheduleRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetScheduleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetScheduleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -576,6 +633,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.GetScheduleRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetScheduleRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetScheduleRequestOrBuilder.java new file mode 100644 index 000000000000..98eb60eaba5e --- /dev/null +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetScheduleRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/notebooks/v1/service.proto + +package com.google.cloud.notebooks.v1; + +public interface GetScheduleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.GetScheduleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format:
+   * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Format:
+   * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Instance.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Instance.java similarity index 73% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Instance.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Instance.java index e6b056f83a97..53d8e93c1a41 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Instance.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Instance.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/instance.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * The definition of a notebook instance.
  * 
* * Protobuf type {@code google.cloud.notebooks.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.cloud.notebooks.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_ = ""; postStartupScript_ = ""; @@ -44,44 +62,46 @@ private Instance() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Instance(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_Instance_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.InstanceProto + .internal_static_google_cloud_notebooks_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 21: return internalGetLabels(); case 22: return internalGetMetadata(); 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.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_Instance_fieldAccessorTable + return com.google.cloud.notebooks.v1.InstanceProto + .internal_static_google_cloud_notebooks_v1_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.Instance.class, com.google.cloud.notebooks.v1.Instance.Builder.class); + com.google.cloud.notebooks.v1.Instance.class, + com.google.cloud.notebooks.v1.Instance.Builder.class); } /** + * + * *
    * Definition of the types of hardware accelerators that can be used on this
    * instance.
@@ -89,9 +109,10 @@ protected com.google.protobuf.MapField internalGetMapField(
    *
    * Protobuf enum {@code google.cloud.notebooks.v1.Instance.AcceleratorType}
    */
-  public enum AcceleratorType
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Accelerator type is not specified.
      * 
@@ -100,6 +121,8 @@ public enum AcceleratorType */ ACCELERATOR_TYPE_UNSPECIFIED(0), /** + * + * *
      * Accelerator type is Nvidia Tesla K80.
      * 
@@ -108,6 +131,8 @@ public enum AcceleratorType */ NVIDIA_TESLA_K80(1), /** + * + * *
      * Accelerator type is Nvidia Tesla P100.
      * 
@@ -116,6 +141,8 @@ public enum AcceleratorType */ NVIDIA_TESLA_P100(2), /** + * + * *
      * Accelerator type is Nvidia Tesla V100.
      * 
@@ -124,6 +151,8 @@ public enum AcceleratorType */ NVIDIA_TESLA_V100(3), /** + * + * *
      * Accelerator type is Nvidia Tesla P4.
      * 
@@ -132,6 +161,8 @@ public enum AcceleratorType */ NVIDIA_TESLA_P4(4), /** + * + * *
      * Accelerator type is Nvidia Tesla T4.
      * 
@@ -140,6 +171,8 @@ public enum AcceleratorType */ NVIDIA_TESLA_T4(5), /** + * + * *
      * Accelerator type is Nvidia Tesla A100.
      * 
@@ -148,6 +181,8 @@ public enum AcceleratorType */ NVIDIA_TESLA_A100(11), /** + * + * *
      * Accelerator type is NVIDIA Tesla T4 Virtual Workstations.
      * 
@@ -156,6 +191,8 @@ public enum AcceleratorType */ NVIDIA_TESLA_T4_VWS(8), /** + * + * *
      * Accelerator type is NVIDIA Tesla P100 Virtual Workstations.
      * 
@@ -164,6 +201,8 @@ public enum AcceleratorType */ NVIDIA_TESLA_P100_VWS(9), /** + * + * *
      * Accelerator type is NVIDIA Tesla P4 Virtual Workstations.
      * 
@@ -172,6 +211,8 @@ public enum AcceleratorType */ NVIDIA_TESLA_P4_VWS(10), /** + * + * *
      * (Coming soon) Accelerator type is TPU V2.
      * 
@@ -180,6 +221,8 @@ public enum AcceleratorType */ TPU_V2(6), /** + * + * *
      * (Coming soon) Accelerator type is TPU V3.
      * 
@@ -191,6 +234,8 @@ public enum AcceleratorType ; /** + * + * *
      * Accelerator type is not specified.
      * 
@@ -199,6 +244,8 @@ public enum AcceleratorType */ public static final int ACCELERATOR_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Accelerator type is Nvidia Tesla K80.
      * 
@@ -207,6 +254,8 @@ public enum AcceleratorType */ public static final int NVIDIA_TESLA_K80_VALUE = 1; /** + * + * *
      * Accelerator type is Nvidia Tesla P100.
      * 
@@ -215,6 +264,8 @@ public enum AcceleratorType */ public static final int NVIDIA_TESLA_P100_VALUE = 2; /** + * + * *
      * Accelerator type is Nvidia Tesla V100.
      * 
@@ -223,6 +274,8 @@ public enum AcceleratorType */ public static final int NVIDIA_TESLA_V100_VALUE = 3; /** + * + * *
      * Accelerator type is Nvidia Tesla P4.
      * 
@@ -231,6 +284,8 @@ public enum AcceleratorType */ public static final int NVIDIA_TESLA_P4_VALUE = 4; /** + * + * *
      * Accelerator type is Nvidia Tesla T4.
      * 
@@ -239,6 +294,8 @@ public enum AcceleratorType */ public static final int NVIDIA_TESLA_T4_VALUE = 5; /** + * + * *
      * Accelerator type is Nvidia Tesla A100.
      * 
@@ -247,6 +304,8 @@ public enum AcceleratorType */ public static final int NVIDIA_TESLA_A100_VALUE = 11; /** + * + * *
      * Accelerator type is NVIDIA Tesla T4 Virtual Workstations.
      * 
@@ -255,6 +314,8 @@ public enum AcceleratorType */ public static final int NVIDIA_TESLA_T4_VWS_VALUE = 8; /** + * + * *
      * Accelerator type is NVIDIA Tesla P100 Virtual Workstations.
      * 
@@ -263,6 +324,8 @@ public enum AcceleratorType */ public static final int NVIDIA_TESLA_P100_VWS_VALUE = 9; /** + * + * *
      * Accelerator type is NVIDIA Tesla P4 Virtual Workstations.
      * 
@@ -271,6 +334,8 @@ public enum AcceleratorType */ public static final int NVIDIA_TESLA_P4_VWS_VALUE = 10; /** + * + * *
      * (Coming soon) Accelerator type is TPU V2.
      * 
@@ -279,6 +344,8 @@ public enum AcceleratorType */ public static final int TPU_V2_VALUE = 6; /** + * + * *
      * (Coming soon) Accelerator type is TPU V3.
      * 
@@ -287,7 +354,6 @@ public enum AcceleratorType */ public static final int TPU_V3_VALUE = 7; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -312,48 +378,60 @@ public static AcceleratorType valueOf(int value) { */ public static AcceleratorType forNumber(int value) { switch (value) { - case 0: return ACCELERATOR_TYPE_UNSPECIFIED; - case 1: return NVIDIA_TESLA_K80; - case 2: return NVIDIA_TESLA_P100; - case 3: return NVIDIA_TESLA_V100; - case 4: return NVIDIA_TESLA_P4; - case 5: return NVIDIA_TESLA_T4; - case 11: return NVIDIA_TESLA_A100; - case 8: return NVIDIA_TESLA_T4_VWS; - case 9: return NVIDIA_TESLA_P100_VWS; - case 10: return NVIDIA_TESLA_P4_VWS; - case 6: return TPU_V2; - case 7: return TPU_V3; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + case 0: + return ACCELERATOR_TYPE_UNSPECIFIED; + case 1: + return NVIDIA_TESLA_K80; + case 2: + return NVIDIA_TESLA_P100; + case 3: + return NVIDIA_TESLA_V100; + case 4: + return NVIDIA_TESLA_P4; + case 5: + return NVIDIA_TESLA_T4; + case 11: + return NVIDIA_TESLA_A100; + case 8: + return NVIDIA_TESLA_T4_VWS; + case 9: + return NVIDIA_TESLA_P100_VWS; + case 10: + return NVIDIA_TESLA_P4_VWS; + case 6: + return TPU_V2; + case 7: + return TPU_V3; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - AcceleratorType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AcceleratorType findValueByNumber(int number) { - return AcceleratorType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AcceleratorType findValueByNumber(int number) { + return AcceleratorType.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.cloud.notebooks.v1.Instance.getDescriptor().getEnumTypes().get(0); } @@ -362,8 +440,7 @@ public AcceleratorType findValueByNumber(int number) { public static AcceleratorType 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; @@ -381,15 +458,18 @@ private AcceleratorType(int value) { } /** + * + * *
    * The definition of the states of this instance.
    * 
* * Protobuf enum {@code google.cloud.notebooks.v1.Instance.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * State is not specified.
      * 
@@ -398,6 +478,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The control logic is starting the instance.
      * 
@@ -406,6 +488,8 @@ public enum State */ STARTING(1), /** + * + * *
      * The control logic is installing required frameworks and registering the
      * instance with notebook proxy
@@ -415,6 +499,8 @@ public enum State
      */
     PROVISIONING(2),
     /**
+     *
+     *
      * 
      * The instance is running.
      * 
@@ -423,6 +509,8 @@ public enum State */ ACTIVE(3), /** + * + * *
      * The control logic is stopping the instance.
      * 
@@ -431,6 +519,8 @@ public enum State */ STOPPING(4), /** + * + * *
      * The instance is stopped.
      * 
@@ -439,6 +529,8 @@ public enum State */ STOPPED(5), /** + * + * *
      * The instance is deleted.
      * 
@@ -447,6 +539,8 @@ public enum State */ DELETED(6), /** + * + * *
      * The instance is upgrading.
      * 
@@ -455,6 +549,8 @@ public enum State */ UPGRADING(7), /** + * + * *
      * The instance is being created.
      * 
@@ -463,6 +559,8 @@ public enum State */ INITIALIZING(8), /** + * + * *
      * The instance is getting registered.
      * 
@@ -471,6 +569,8 @@ public enum State */ REGISTERING(9), /** + * + * *
      * The instance is suspending.
      * 
@@ -479,6 +579,8 @@ public enum State */ SUSPENDING(10), /** + * + * *
      * The instance is suspended.
      * 
@@ -490,6 +592,8 @@ public enum State ; /** + * + * *
      * State is not specified.
      * 
@@ -498,6 +602,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The control logic is starting the instance.
      * 
@@ -506,6 +612,8 @@ public enum State */ public static final int STARTING_VALUE = 1; /** + * + * *
      * The control logic is installing required frameworks and registering the
      * instance with notebook proxy
@@ -515,6 +623,8 @@ public enum State
      */
     public static final int PROVISIONING_VALUE = 2;
     /**
+     *
+     *
      * 
      * The instance is running.
      * 
@@ -523,6 +633,8 @@ public enum State */ public static final int ACTIVE_VALUE = 3; /** + * + * *
      * The control logic is stopping the instance.
      * 
@@ -531,6 +643,8 @@ public enum State */ public static final int STOPPING_VALUE = 4; /** + * + * *
      * The instance is stopped.
      * 
@@ -539,6 +653,8 @@ public enum State */ public static final int STOPPED_VALUE = 5; /** + * + * *
      * The instance is deleted.
      * 
@@ -547,6 +663,8 @@ public enum State */ public static final int DELETED_VALUE = 6; /** + * + * *
      * The instance is upgrading.
      * 
@@ -555,6 +673,8 @@ public enum State */ public static final int UPGRADING_VALUE = 7; /** + * + * *
      * The instance is being created.
      * 
@@ -563,6 +683,8 @@ public enum State */ public static final int INITIALIZING_VALUE = 8; /** + * + * *
      * The instance is getting registered.
      * 
@@ -571,6 +693,8 @@ public enum State */ public static final int REGISTERING_VALUE = 9; /** + * + * *
      * The instance is suspending.
      * 
@@ -579,6 +703,8 @@ public enum State */ public static final int SUSPENDING_VALUE = 10; /** + * + * *
      * The instance is suspended.
      * 
@@ -587,7 +713,6 @@ public enum State */ public static final int SUSPENDED_VALUE = 11; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -612,58 +737,67 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return STARTING; - case 2: return PROVISIONING; - case 3: return ACTIVE; - case 4: return STOPPING; - case 5: return STOPPED; - case 6: return DELETED; - case 7: return UPGRADING; - case 8: return INITIALIZING; - case 9: return REGISTERING; - case 10: return SUSPENDING; - case 11: return SUSPENDED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + case 0: + return STATE_UNSPECIFIED; + case 1: + return STARTING; + case 2: + return PROVISIONING; + case 3: + return ACTIVE; + case 4: + return STOPPING; + case 5: + return STOPPED; + case 6: + return DELETED; + case 7: + return UPGRADING; + case 8: + return INITIALIZING; + case 9: + return REGISTERING; + case 10: + return SUSPENDING; + case 11: + return SUSPENDED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.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.cloud.notebooks.v1.Instance.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; @@ -681,15 +815,18 @@ private State(int value) { } /** + * + * *
    * Possible disk types for notebook instances.
    * 
* * Protobuf enum {@code google.cloud.notebooks.v1.Instance.DiskType} */ - public enum DiskType - implements com.google.protobuf.ProtocolMessageEnum { + public enum DiskType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Disk type not set.
      * 
@@ -698,6 +835,8 @@ public enum DiskType */ DISK_TYPE_UNSPECIFIED(0), /** + * + * *
      * Standard persistent disk type.
      * 
@@ -706,6 +845,8 @@ public enum DiskType */ PD_STANDARD(1), /** + * + * *
      * SSD persistent disk type.
      * 
@@ -714,6 +855,8 @@ public enum DiskType */ PD_SSD(2), /** + * + * *
      * Balanced persistent disk type.
      * 
@@ -722,6 +865,8 @@ public enum DiskType */ PD_BALANCED(3), /** + * + * *
      * Extreme persistent disk type.
      * 
@@ -733,6 +878,8 @@ public enum DiskType ; /** + * + * *
      * Disk type not set.
      * 
@@ -741,6 +888,8 @@ public enum DiskType */ public static final int DISK_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Standard persistent disk type.
      * 
@@ -749,6 +898,8 @@ public enum DiskType */ public static final int PD_STANDARD_VALUE = 1; /** + * + * *
      * SSD persistent disk type.
      * 
@@ -757,6 +908,8 @@ public enum DiskType */ public static final int PD_SSD_VALUE = 2; /** + * + * *
      * Balanced persistent disk type.
      * 
@@ -765,6 +918,8 @@ public enum DiskType */ public static final int PD_BALANCED_VALUE = 3; /** + * + * *
      * Extreme persistent disk type.
      * 
@@ -773,7 +928,6 @@ public enum DiskType */ public static final int PD_EXTREME_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -798,51 +952,53 @@ public static DiskType valueOf(int value) { */ public static DiskType forNumber(int value) { switch (value) { - case 0: return DISK_TYPE_UNSPECIFIED; - case 1: return PD_STANDARD; - case 2: return PD_SSD; - case 3: return PD_BALANCED; - case 4: return PD_EXTREME; - default: return null; + case 0: + return DISK_TYPE_UNSPECIFIED; + case 1: + return PD_STANDARD; + case 2: + return PD_SSD; + case 3: + return PD_BALANCED; + case 4: + return PD_EXTREME; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - DiskType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DiskType findValueByNumber(int number) { - return DiskType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DiskType findValueByNumber(int number) { + return DiskType.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.cloud.notebooks.v1.Instance.getDescriptor().getEnumTypes().get(2); } private static final DiskType[] VALUES = values(); - public static DiskType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static DiskType 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; @@ -860,15 +1016,18 @@ private DiskType(int value) { } /** + * + * *
    * Definition of the disk encryption options.
    * 
* * Protobuf enum {@code google.cloud.notebooks.v1.Instance.DiskEncryption} */ - public enum DiskEncryption - implements com.google.protobuf.ProtocolMessageEnum { + public enum DiskEncryption implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Disk encryption is not specified.
      * 
@@ -877,6 +1036,8 @@ public enum DiskEncryption */ DISK_ENCRYPTION_UNSPECIFIED(0), /** + * + * *
      * Use Google managed encryption keys to encrypt the boot disk.
      * 
@@ -885,6 +1046,8 @@ public enum DiskEncryption */ GMEK(1), /** + * + * *
      * Use customer managed encryption keys to encrypt the boot disk.
      * 
@@ -896,6 +1059,8 @@ public enum DiskEncryption ; /** + * + * *
      * Disk encryption is not specified.
      * 
@@ -904,6 +1069,8 @@ public enum DiskEncryption */ public static final int DISK_ENCRYPTION_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Use Google managed encryption keys to encrypt the boot disk.
      * 
@@ -912,6 +1079,8 @@ public enum DiskEncryption */ public static final int GMEK_VALUE = 1; /** + * + * *
      * Use customer managed encryption keys to encrypt the boot disk.
      * 
@@ -920,7 +1089,6 @@ public enum DiskEncryption */ public static final int CMEK_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -945,49 +1113,49 @@ public static DiskEncryption valueOf(int value) { */ public static DiskEncryption forNumber(int value) { switch (value) { - case 0: return DISK_ENCRYPTION_UNSPECIFIED; - case 1: return GMEK; - case 2: return CMEK; - default: return null; + case 0: + return DISK_ENCRYPTION_UNSPECIFIED; + case 1: + return GMEK; + case 2: + return CMEK; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - DiskEncryption> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DiskEncryption findValueByNumber(int number) { - return DiskEncryption.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DiskEncryption findValueByNumber(int number) { + return DiskEncryption.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.cloud.notebooks.v1.Instance.getDescriptor().getEnumTypes().get(3); } private static final DiskEncryption[] VALUES = values(); - public static DiskEncryption valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static DiskEncryption 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; @@ -1005,6 +1173,8 @@ private DiskEncryption(int value) { } /** + * + * *
    * The type of vNIC driver.
    * Default should be UNSPECIFIED_NIC_TYPE.
@@ -1012,9 +1182,10 @@ private DiskEncryption(int value) {
    *
    * Protobuf enum {@code google.cloud.notebooks.v1.Instance.NicType}
    */
-  public enum NicType
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum NicType implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * No type specified.
      * 
@@ -1023,6 +1194,8 @@ public enum NicType */ UNSPECIFIED_NIC_TYPE(0), /** + * + * *
      * VIRTIO
      * 
@@ -1031,6 +1204,8 @@ public enum NicType */ VIRTIO_NET(1), /** + * + * *
      * GVNIC
      * 
@@ -1042,6 +1217,8 @@ public enum NicType ; /** + * + * *
      * No type specified.
      * 
@@ -1050,6 +1227,8 @@ public enum NicType */ public static final int UNSPECIFIED_NIC_TYPE_VALUE = 0; /** + * + * *
      * VIRTIO
      * 
@@ -1058,6 +1237,8 @@ public enum NicType */ public static final int VIRTIO_NET_VALUE = 1; /** + * + * *
      * GVNIC
      * 
@@ -1066,7 +1247,6 @@ public enum NicType */ public static final int GVNIC_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1091,49 +1271,49 @@ public static NicType valueOf(int value) { */ public static NicType forNumber(int value) { switch (value) { - case 0: return UNSPECIFIED_NIC_TYPE; - case 1: return VIRTIO_NET; - case 2: return GVNIC; - default: return null; + case 0: + return UNSPECIFIED_NIC_TYPE; + case 1: + return VIRTIO_NET; + case 2: + return GVNIC; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - NicType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public NicType findValueByNumber(int number) { - return NicType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public NicType findValueByNumber(int number) { + return NicType.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.cloud.notebooks.v1.Instance.getDescriptor().getEnumTypes().get(4); } private static final NicType[] VALUES = values(); - public static NicType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static NicType 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; @@ -1150,40 +1330,52 @@ private NicType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.notebooks.v1.Instance.NicType) } - public interface AcceleratorConfigOrBuilder extends + public interface AcceleratorConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.Instance.AcceleratorConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Type of this accelerator.
      * 
* * .google.cloud.notebooks.v1.Instance.AcceleratorType type = 1; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
      * Type of this accelerator.
      * 
* * .google.cloud.notebooks.v1.Instance.AcceleratorType type = 1; + * * @return The type. */ com.google.cloud.notebooks.v1.Instance.AcceleratorType getType(); /** + * + * *
      * Count of cores of this accelerator.
      * 
* * int64 core_count = 2; + * * @return The coreCount. */ long getCoreCount(); } /** + * + * *
    * Definition of a hardware accelerator. Note that not all combinations
    * of `type` and `core_count` are valid. Check [GPUs on
@@ -1193,79 +1385,95 @@ public interface AcceleratorConfigOrBuilder extends
    *
    * Protobuf type {@code google.cloud.notebooks.v1.Instance.AcceleratorConfig}
    */
-  public static final class AcceleratorConfig extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class AcceleratorConfig extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.Instance.AcceleratorConfig)
       AcceleratorConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use AcceleratorConfig.newBuilder() to construct.
     private AcceleratorConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private AcceleratorConfig() {
       type_ = 0;
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new AcceleratorConfig();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_Instance_AcceleratorConfig_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.notebooks.v1.InstanceProto
+          .internal_static_google_cloud_notebooks_v1_Instance_AcceleratorConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_Instance_AcceleratorConfig_fieldAccessorTable
+      return com.google.cloud.notebooks.v1.InstanceProto
+          .internal_static_google_cloud_notebooks_v1_Instance_AcceleratorConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.notebooks.v1.Instance.AcceleratorConfig.class, com.google.cloud.notebooks.v1.Instance.AcceleratorConfig.Builder.class);
+              com.google.cloud.notebooks.v1.Instance.AcceleratorConfig.class,
+              com.google.cloud.notebooks.v1.Instance.AcceleratorConfig.Builder.class);
     }
 
     public static final int TYPE_FIELD_NUMBER = 1;
     private int type_;
     /**
+     *
+     *
      * 
      * Type of this accelerator.
      * 
* * .google.cloud.notebooks.v1.Instance.AcceleratorType type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Type of this accelerator.
      * 
* * .google.cloud.notebooks.v1.Instance.AcceleratorType type = 1; + * * @return The type. */ - @java.lang.Override public com.google.cloud.notebooks.v1.Instance.AcceleratorType getType() { + @java.lang.Override + public com.google.cloud.notebooks.v1.Instance.AcceleratorType getType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.Instance.AcceleratorType result = com.google.cloud.notebooks.v1.Instance.AcceleratorType.valueOf(type_); - return result == null ? com.google.cloud.notebooks.v1.Instance.AcceleratorType.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1.Instance.AcceleratorType result = + com.google.cloud.notebooks.v1.Instance.AcceleratorType.valueOf(type_); + return result == null + ? com.google.cloud.notebooks.v1.Instance.AcceleratorType.UNRECOGNIZED + : result; } public static final int CORE_COUNT_FIELD_NUMBER = 2; private long coreCount_; /** + * + * *
      * Count of cores of this accelerator.
      * 
* * int64 core_count = 2; + * * @return The coreCount. */ @java.lang.Override @@ -1274,6 +1482,7 @@ public long getCoreCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1285,9 +1494,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != com.google.cloud.notebooks.v1.Instance.AcceleratorType.ACCELERATOR_TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ + != com.google.cloud.notebooks.v1.Instance.AcceleratorType.ACCELERATOR_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, type_); } if (coreCount_ != 0L) { @@ -1302,13 +1512,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ != com.google.cloud.notebooks.v1.Instance.AcceleratorType.ACCELERATOR_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); + if (type_ + != com.google.cloud.notebooks.v1.Instance.AcceleratorType.ACCELERATOR_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); } if (coreCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, coreCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, coreCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1318,16 +1528,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.cloud.notebooks.v1.Instance.AcceleratorConfig)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.Instance.AcceleratorConfig other = (com.google.cloud.notebooks.v1.Instance.AcceleratorConfig) obj; + com.google.cloud.notebooks.v1.Instance.AcceleratorConfig other = + (com.google.cloud.notebooks.v1.Instance.AcceleratorConfig) obj; if (type_ != other.type_) return false; - if (getCoreCount() - != other.getCoreCount()) return false; + if (getCoreCount() != other.getCoreCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1342,95 +1552,101 @@ public int hashCode() { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + CORE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCoreCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCoreCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.notebooks.v1.Instance.AcceleratorConfig 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.cloud.notebooks.v1.Instance.AcceleratorConfig 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.cloud.notebooks.v1.Instance.AcceleratorConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.Instance.AcceleratorConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.Instance.AcceleratorConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.Instance.AcceleratorConfig 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.cloud.notebooks.v1.Instance.AcceleratorConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.Instance.AcceleratorConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.Instance.AcceleratorConfig 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.cloud.notebooks.v1.Instance.AcceleratorConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.Instance.AcceleratorConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.Instance.AcceleratorConfig 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.cloud.notebooks.v1.Instance.AcceleratorConfig 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.cloud.notebooks.v1.Instance.AcceleratorConfig 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.cloud.notebooks.v1.Instance.AcceleratorConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1.Instance.AcceleratorConfig 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 @@ -1440,6 +1656,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Definition of a hardware accelerator. Note that not all combinations
      * of `type` and `core_count` are valid. Check [GPUs on
@@ -1449,33 +1667,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.notebooks.v1.Instance.AcceleratorConfig}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.Instance.AcceleratorConfig)
         com.google.cloud.notebooks.v1.Instance.AcceleratorConfigOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_Instance_AcceleratorConfig_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.notebooks.v1.InstanceProto
+            .internal_static_google_cloud_notebooks_v1_Instance_AcceleratorConfig_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_Instance_AcceleratorConfig_fieldAccessorTable
+        return com.google.cloud.notebooks.v1.InstanceProto
+            .internal_static_google_cloud_notebooks_v1_Instance_AcceleratorConfig_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.notebooks.v1.Instance.AcceleratorConfig.class, com.google.cloud.notebooks.v1.Instance.AcceleratorConfig.Builder.class);
+                com.google.cloud.notebooks.v1.Instance.AcceleratorConfig.class,
+                com.google.cloud.notebooks.v1.Instance.AcceleratorConfig.Builder.class);
       }
 
       // Construct using com.google.cloud.notebooks.v1.Instance.AcceleratorConfig.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1487,9 +1705,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_Instance_AcceleratorConfig_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.notebooks.v1.InstanceProto
+            .internal_static_google_cloud_notebooks_v1_Instance_AcceleratorConfig_descriptor;
       }
 
       @java.lang.Override
@@ -1508,7 +1726,8 @@ public com.google.cloud.notebooks.v1.Instance.AcceleratorConfig build() {
 
       @java.lang.Override
       public com.google.cloud.notebooks.v1.Instance.AcceleratorConfig buildPartial() {
-        com.google.cloud.notebooks.v1.Instance.AcceleratorConfig result = new com.google.cloud.notebooks.v1.Instance.AcceleratorConfig(this);
+        com.google.cloud.notebooks.v1.Instance.AcceleratorConfig result =
+            new com.google.cloud.notebooks.v1.Instance.AcceleratorConfig(this);
         result.type_ = type_;
         result.coreCount_ = coreCount_;
         onBuilt();
@@ -1519,38 +1738,41 @@ public com.google.cloud.notebooks.v1.Instance.AcceleratorConfig buildPartial() {
       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.cloud.notebooks.v1.Instance.AcceleratorConfig) {
-          return mergeFrom((com.google.cloud.notebooks.v1.Instance.AcceleratorConfig)other);
+          return mergeFrom((com.google.cloud.notebooks.v1.Instance.AcceleratorConfig) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -1558,7 +1780,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.notebooks.v1.Instance.AcceleratorConfig other) {
-        if (other == com.google.cloud.notebooks.v1.Instance.AcceleratorConfig.getDefaultInstance()) return this;
+        if (other == com.google.cloud.notebooks.v1.Instance.AcceleratorConfig.getDefaultInstance())
+          return this;
         if (other.type_ != 0) {
           setTypeValue(other.getTypeValue());
         }
@@ -1591,22 +1814,25 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 8: {
-                type_ = input.readEnum();
+              case 8:
+                {
+                  type_ = input.readEnum();
 
-                break;
-              } // case 8
-              case 16: {
-                coreCount_ = input.readInt64();
+                  break;
+                } // case 8
+              case 16:
+                {
+                  coreCount_ = input.readInt64();
 
-                break;
-              } // case 16
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+                  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) {
@@ -1619,51 +1845,67 @@ public Builder mergeFrom(
 
       private int type_ = 0;
       /**
+       *
+       *
        * 
        * Type of this accelerator.
        * 
* * .google.cloud.notebooks.v1.Instance.AcceleratorType type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
        * Type of this accelerator.
        * 
* * .google.cloud.notebooks.v1.Instance.AcceleratorType type = 1; + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
        * Type of this accelerator.
        * 
* * .google.cloud.notebooks.v1.Instance.AcceleratorType type = 1; + * * @return The type. */ @java.lang.Override public com.google.cloud.notebooks.v1.Instance.AcceleratorType getType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.Instance.AcceleratorType result = com.google.cloud.notebooks.v1.Instance.AcceleratorType.valueOf(type_); - return result == null ? com.google.cloud.notebooks.v1.Instance.AcceleratorType.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1.Instance.AcceleratorType result = + com.google.cloud.notebooks.v1.Instance.AcceleratorType.valueOf(type_); + return result == null + ? com.google.cloud.notebooks.v1.Instance.AcceleratorType.UNRECOGNIZED + : result; } /** + * + * *
        * Type of this accelerator.
        * 
* * .google.cloud.notebooks.v1.Instance.AcceleratorType type = 1; + * * @param value The type to set. * @return This builder for chaining. */ @@ -1671,33 +1913,39 @@ public Builder setType(com.google.cloud.notebooks.v1.Instance.AcceleratorType va if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Type of this accelerator.
        * 
* * .google.cloud.notebooks.v1.Instance.AcceleratorType type = 1; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private long coreCount_ ; + private long coreCount_; /** + * + * *
        * Count of cores of this accelerator.
        * 
* * int64 core_count = 2; + * * @return The coreCount. */ @java.lang.Override @@ -1705,34 +1953,41 @@ public long getCoreCount() { return coreCount_; } /** + * + * *
        * Count of cores of this accelerator.
        * 
* * int64 core_count = 2; + * * @param value The coreCount to set. * @return This builder for chaining. */ public Builder setCoreCount(long value) { - + coreCount_ = value; onChanged(); return this; } /** + * + * *
        * Count of cores of this accelerator.
        * 
* * int64 core_count = 2; + * * @return This builder for chaining. */ public Builder clearCoreCount() { - + coreCount_ = 0L; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1745,12 +2000,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.Instance.AcceleratorConfig) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.Instance.AcceleratorConfig) private static final com.google.cloud.notebooks.v1.Instance.AcceleratorConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.Instance.AcceleratorConfig(); } @@ -1759,27 +2014,28 @@ public static com.google.cloud.notebooks.v1.Instance.AcceleratorConfig getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AcceleratorConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AcceleratorConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -1794,36 +2050,44 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.Instance.AcceleratorConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface DiskOrBuilder extends + public interface DiskOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.Instance.Disk) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Indicates whether the disk will be auto-deleted when the instance is
      * deleted (but not when the disk is detached from the instance).
      * 
* * bool auto_delete = 1; + * * @return The autoDelete. */ boolean getAutoDelete(); /** + * + * *
      * Indicates that this is a boot disk. The virtual machine will use the
      * first partition of the disk for its root filesystem.
      * 
* * bool boot = 2; + * * @return The boot. */ boolean getBoot(); /** + * + * *
      * Indicates a unique device name of your choice that is reflected into the
      * /dev/disk/by-id/google-* tree of a Linux operating system running within
@@ -1835,10 +2099,13 @@ public interface DiskOrBuilder extends
      * 
* * string device_name = 3; + * * @return The deviceName. */ java.lang.String getDeviceName(); /** + * + * *
      * Indicates a unique device name of your choice that is reflected into the
      * /dev/disk/by-id/google-* tree of a Linux operating system running within
@@ -1850,76 +2117,96 @@ public interface DiskOrBuilder extends
      * 
* * string device_name = 3; + * * @return The bytes for deviceName. */ - com.google.protobuf.ByteString - getDeviceNameBytes(); + com.google.protobuf.ByteString getDeviceNameBytes(); /** + * + * *
      * Indicates the size of the disk in base-2 GB.
      * 
* * int64 disk_size_gb = 4; + * * @return The diskSizeGb. */ long getDiskSizeGb(); /** + * + * *
      * Indicates a list of features to enable on the guest operating system.
      * Applicable only for bootable images. Read  Enabling guest operating
      * system features to see a list of available options.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * */ - java.util.List + java.util.List getGuestOsFeaturesList(); /** + * + * *
      * Indicates a list of features to enable on the guest operating system.
      * Applicable only for bootable images. Read  Enabling guest operating
      * system features to see a list of available options.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * */ com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature getGuestOsFeatures(int index); /** + * + * *
      * Indicates a list of features to enable on the guest operating system.
      * Applicable only for bootable images. Read  Enabling guest operating
      * system features to see a list of available options.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * */ int getGuestOsFeaturesCount(); /** + * + * *
      * Indicates a list of features to enable on the guest operating system.
      * Applicable only for bootable images. Read  Enabling guest operating
      * system features to see a list of available options.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * */ - java.util.List + java.util.List getGuestOsFeaturesOrBuilderList(); /** + * + * *
      * Indicates a list of features to enable on the guest operating system.
      * Applicable only for bootable images. Read  Enabling guest operating
      * system features to see a list of available options.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * */ com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder getGuestOsFeaturesOrBuilder( int index); /** + * + * *
      * A zero-based index to this disk, where 0 is reserved for the
      * boot disk. If you have many disks attached to an instance, each disk
@@ -1927,11 +2214,14 @@ com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder getGuestOsFe
      * 
* * int64 index = 6; + * * @return The index. */ long getIndex(); /** + * + * *
      * Indicates the disk interface to use for attaching this disk, which is
      * either SCSI or NVME. The default is SCSI. Persistent disks must always
@@ -1945,10 +2235,13 @@ com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder getGuestOsFe
      * 
* * string interface = 7; + * * @return The interface. */ java.lang.String getInterface(); /** + * + * *
      * Indicates the disk interface to use for attaching this disk, which is
      * either SCSI or NVME. The default is SCSI. Persistent disks must always
@@ -1962,34 +2255,41 @@ com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder getGuestOsFe
      * 
* * string interface = 7; + * * @return The bytes for interface. */ - com.google.protobuf.ByteString - getInterfaceBytes(); + com.google.protobuf.ByteString getInterfaceBytes(); /** + * + * *
      * Type of the resource. Always compute#attachedDisk for attached
      * disks.
      * 
* * string kind = 8; + * * @return The kind. */ java.lang.String getKind(); /** + * + * *
      * Type of the resource. Always compute#attachedDisk for attached
      * disks.
      * 
* * string kind = 8; + * * @return The bytes for kind. */ - com.google.protobuf.ByteString - getKindBytes(); + com.google.protobuf.ByteString getKindBytes(); /** + * + * *
      * A list of publicly visible licenses. Reserved for Google's use.
      * A License represents billing and aggregate usage data for public
@@ -1997,11 +2297,13 @@ com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder getGuestOsFe
      * 
* * repeated string licenses = 9; + * * @return A list containing the licenses. */ - java.util.List - getLicensesList(); + java.util.List getLicensesList(); /** + * + * *
      * A list of publicly visible licenses. Reserved for Google's use.
      * A License represents billing and aggregate usage data for public
@@ -2009,10 +2311,13 @@ com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder getGuestOsFe
      * 
* * repeated string licenses = 9; + * * @return The count of licenses. */ int getLicensesCount(); /** + * + * *
      * A list of publicly visible licenses. Reserved for Google's use.
      * A License represents billing and aggregate usage data for public
@@ -2020,11 +2325,14 @@ com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder getGuestOsFe
      * 
* * repeated string licenses = 9; + * * @param index The index of the element to return. * @return The licenses at the given index. */ java.lang.String getLicenses(int index); /** + * + * *
      * A list of publicly visible licenses. Reserved for Google's use.
      * A License represents billing and aggregate usage data for public
@@ -2032,13 +2340,15 @@ com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder getGuestOsFe
      * 
* * repeated string licenses = 9; + * * @param index The index of the value to return. * @return The bytes of the licenses at the given index. */ - com.google.protobuf.ByteString - getLicensesBytes(int index); + com.google.protobuf.ByteString getLicensesBytes(int index); /** + * + * *
      * The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If
      * not specified, the default is to attach the disk in READ_WRITE mode.
@@ -2048,10 +2358,13 @@ com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder getGuestOsFe
      * 
* * string mode = 10; + * * @return The mode. */ java.lang.String getMode(); /** + * + * *
      * The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If
      * not specified, the default is to attach the disk in READ_WRITE mode.
@@ -2061,34 +2374,41 @@ com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder getGuestOsFe
      * 
* * string mode = 10; + * * @return The bytes for mode. */ - com.google.protobuf.ByteString - getModeBytes(); + com.google.protobuf.ByteString getModeBytes(); /** + * + * *
      * Indicates a valid partial or full URL to an existing Persistent Disk
      * resource.
      * 
* * string source = 11; + * * @return The source. */ java.lang.String getSource(); /** + * + * *
      * Indicates a valid partial or full URL to an existing Persistent Disk
      * resource.
      * 
* * string source = 11; + * * @return The bytes for source. */ - com.google.protobuf.ByteString - getSourceBytes(); + com.google.protobuf.ByteString getSourceBytes(); /** + * + * *
      * Indicates the type of the disk, either SCRATCH or PERSISTENT.
      * Valid values:
@@ -2097,10 +2417,13 @@ com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder getGuestOsFe
      * 
* * string type = 12; + * * @return The type. */ java.lang.String getType(); /** + * + * *
      * Indicates the type of the disk, either SCRATCH or PERSISTENT.
      * Valid values:
@@ -2109,27 +2432,30 @@ com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder getGuestOsFe
      * 
* * string type = 12; + * * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); } /** + * + * *
    * An instance-attached disk resource.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.Instance.Disk} */ - public static final class Disk extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Disk extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.Instance.Disk) DiskOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Disk.newBuilder() to construct. private Disk(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Disk() { deviceName_ = ""; guestOsFeatures_ = java.util.Collections.emptyList(); @@ -2143,34 +2469,38 @@ private Disk() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Disk(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_Instance_Disk_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.InstanceProto + .internal_static_google_cloud_notebooks_v1_Instance_Disk_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_Instance_Disk_fieldAccessorTable + return com.google.cloud.notebooks.v1.InstanceProto + .internal_static_google_cloud_notebooks_v1_Instance_Disk_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.Instance.Disk.class, com.google.cloud.notebooks.v1.Instance.Disk.Builder.class); + com.google.cloud.notebooks.v1.Instance.Disk.class, + com.google.cloud.notebooks.v1.Instance.Disk.Builder.class); } - public interface GuestOsFeatureOrBuilder extends + public interface GuestOsFeatureOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * The ID of a supported feature. Read  Enabling guest operating system
        * features to see a list of available options.
@@ -2184,10 +2514,13 @@ public interface GuestOsFeatureOrBuilder extends
        * 
* * string type = 1; + * * @return The type. */ java.lang.String getType(); /** + * + * *
        * The ID of a supported feature. Read  Enabling guest operating system
        * features to see a list of available options.
@@ -2201,59 +2534,65 @@ public interface GuestOsFeatureOrBuilder extends
        * 
* * string type = 1; + * * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); } /** + * + * *
      * Guest OS features for boot disk.
      * 
* * Protobuf type {@code google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature} */ - public static final class GuestOsFeature extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class GuestOsFeature extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature) GuestOsFeatureOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GuestOsFeature.newBuilder() to construct. private GuestOsFeature(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GuestOsFeature() { type_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GuestOsFeature(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_Instance_Disk_GuestOsFeature_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.InstanceProto + .internal_static_google_cloud_notebooks_v1_Instance_Disk_GuestOsFeature_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_Instance_Disk_GuestOsFeature_fieldAccessorTable + return com.google.cloud.notebooks.v1.InstanceProto + .internal_static_google_cloud_notebooks_v1_Instance_Disk_GuestOsFeature_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.class, com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.Builder.class); + com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.class, + com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.Builder.class); } public static final int TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object type_; /** + * + * *
        * The ID of a supported feature. Read  Enabling guest operating system
        * features to see a list of available options.
@@ -2267,6 +2606,7 @@ protected java.lang.Object newInstance(
        * 
* * string type = 1; + * * @return The type. */ @java.lang.Override @@ -2275,14 +2615,15 @@ 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; } } /** + * + * *
        * The ID of a supported feature. Read  Enabling guest operating system
        * features to see a list of available options.
@@ -2296,16 +2637,15 @@ public java.lang.String getType() {
        * 
* * string type = 1; + * * @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 { @@ -2314,6 +2654,7 @@ public java.lang.String getType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2325,8 +2666,7 @@ 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(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } @@ -2350,15 +2690,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.cloud.notebooks.v1.Instance.Disk.GuestOsFeature)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature other = (com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature) obj; + com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature other = + (com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature) obj; - if (!getType() - .equals(other.getType())) return false; + if (!getType().equals(other.getType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2378,87 +2718,94 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature 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.cloud.notebooks.v1.Instance.Disk.GuestOsFeature 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.cloud.notebooks.v1.Instance.Disk.GuestOsFeature parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature 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.cloud.notebooks.v1.Instance.Disk.GuestOsFeature parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature 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.cloud.notebooks.v1.Instance.Disk.GuestOsFeature parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature 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.cloud.notebooks.v1.Instance.Disk.GuestOsFeature 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.cloud.notebooks.v1.Instance.Disk.GuestOsFeature 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.cloud.notebooks.v1.Instance.Disk.GuestOsFeature prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature 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 @@ -2468,39 +2815,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * Guest OS features for boot disk.
        * 
* * Protobuf type {@code google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature) com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_Instance_Disk_GuestOsFeature_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.InstanceProto + .internal_static_google_cloud_notebooks_v1_Instance_Disk_GuestOsFeature_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_Instance_Disk_GuestOsFeature_fieldAccessorTable + return com.google.cloud.notebooks.v1.InstanceProto + .internal_static_google_cloud_notebooks_v1_Instance_Disk_GuestOsFeature_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.class, com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.Builder.class); + com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.class, + com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.Builder.class); } // Construct using com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2510,13 +2859,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_Instance_Disk_GuestOsFeature_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.InstanceProto + .internal_static_google_cloud_notebooks_v1_Instance_Disk_GuestOsFeature_descriptor; } @java.lang.Override - public com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature getDefaultInstanceForType() { + public com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature + getDefaultInstanceForType() { return com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.getDefaultInstance(); } @@ -2531,7 +2881,8 @@ public com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature build() { @java.lang.Override public com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature buildPartial() { - com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature result = new com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature(this); + com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature result = + new com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature(this); result.type_ = type_; onBuilt(); return result; @@ -2541,38 +2892,41 @@ public com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature buildPartial() 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.cloud.notebooks.v1.Instance.Disk.GuestOsFeature) { - return mergeFrom((com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature)other); + return mergeFrom((com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature) other); } else { super.mergeFrom(other); return this; @@ -2580,7 +2934,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature other) { - if (other == com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.getDefaultInstance()) return this; + if (other + == com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.getDefaultInstance()) + return this; if (!other.getType().isEmpty()) { type_ = other.type_; onChanged(); @@ -2611,17 +2967,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - type_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + type_ = input.readStringRequireUtf8(); + + 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) { @@ -2634,6 +2992,8 @@ public Builder mergeFrom( private java.lang.Object type_ = ""; /** + * + * *
          * The ID of a supported feature. Read  Enabling guest operating system
          * features to see a list of available options.
@@ -2647,13 +3007,13 @@ public Builder mergeFrom(
          * 
* * string type = 1; + * * @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; @@ -2662,6 +3022,8 @@ public java.lang.String getType() { } } /** + * + * *
          * The ID of a supported feature. Read  Enabling guest operating system
          * features to see a list of available options.
@@ -2675,15 +3037,14 @@ public java.lang.String getType() {
          * 
* * string type = 1; + * * @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 { @@ -2691,6 +3052,8 @@ public java.lang.String getType() { } } /** + * + * *
          * The ID of a supported feature. Read  Enabling guest operating system
          * features to see a list of available options.
@@ -2704,21 +3067,23 @@ public java.lang.String getType() {
          * 
* * string type = 1; + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - java.lang.String value) { + public Builder setType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + type_ = value; onChanged(); return this; } /** - *
+         *
+         *
+         * 
          * The ID of a supported feature. Read  Enabling guest operating system
          * features to see a list of available options.
          * Valid values:
@@ -2731,15 +3096,18 @@ public Builder setType(
          * 
* * string type = 1; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** + * + * *
          * The ID of a supported feature. Read  Enabling guest operating system
          * features to see a list of available options.
@@ -2753,20 +3121,21 @@ public Builder clearType() {
          * 
* * string type = 1; + * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2779,41 +3148,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature) - private static final com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature DEFAULT_INSTANCE; + private static final com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature(); } - public static com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature getDefaultInstance() { + public static com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GuestOsFeature parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GuestOsFeature parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -2825,21 +3197,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature getDefaultInstanceForType() { + public com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int AUTO_DELETE_FIELD_NUMBER = 1; private boolean autoDelete_; /** + * + * *
      * Indicates whether the disk will be auto-deleted when the instance is
      * deleted (but not when the disk is detached from the instance).
      * 
* * bool auto_delete = 1; + * * @return The autoDelete. */ @java.lang.Override @@ -2850,12 +3225,15 @@ public boolean getAutoDelete() { public static final int BOOT_FIELD_NUMBER = 2; private boolean boot_; /** + * + * *
      * Indicates that this is a boot disk. The virtual machine will use the
      * first partition of the disk for its root filesystem.
      * 
* * bool boot = 2; + * * @return The boot. */ @java.lang.Override @@ -2866,6 +3244,8 @@ public boolean getBoot() { public static final int DEVICE_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object deviceName_; /** + * + * *
      * Indicates a unique device name of your choice that is reflected into the
      * /dev/disk/by-id/google-* tree of a Linux operating system running within
@@ -2877,6 +3257,7 @@ public boolean getBoot() {
      * 
* * string device_name = 3; + * * @return The deviceName. */ @java.lang.Override @@ -2885,14 +3266,15 @@ public java.lang.String getDeviceName() { 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(); deviceName_ = s; return s; } } /** + * + * *
      * Indicates a unique device name of your choice that is reflected into the
      * /dev/disk/by-id/google-* tree of a Linux operating system running within
@@ -2904,16 +3286,15 @@ public java.lang.String getDeviceName() {
      * 
* * string device_name = 3; + * * @return The bytes for deviceName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDeviceNameBytes() { + public com.google.protobuf.ByteString getDeviceNameBytes() { java.lang.Object ref = deviceName_; 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); deviceName_ = b; return b; } else { @@ -2924,11 +3305,14 @@ public java.lang.String getDeviceName() { public static final int DISK_SIZE_GB_FIELD_NUMBER = 4; private long diskSizeGb_; /** + * + * *
      * Indicates the size of the disk in base-2 GB.
      * 
* * int64 disk_size_gb = 4; + * * @return The diskSizeGb. */ @java.lang.Override @@ -2937,78 +3321,99 @@ public long getDiskSizeGb() { } public static final int GUEST_OS_FEATURES_FIELD_NUMBER = 5; - private java.util.List guestOsFeatures_; + private java.util.List + guestOsFeatures_; /** + * + * *
      * Indicates a list of features to enable on the guest operating system.
      * Applicable only for bootable images. Read  Enabling guest operating
      * system features to see a list of available options.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * */ @java.lang.Override - public java.util.List getGuestOsFeaturesList() { + public java.util.List + getGuestOsFeaturesList() { return guestOsFeatures_; } /** + * + * *
      * Indicates a list of features to enable on the guest operating system.
      * Applicable only for bootable images. Read  Enabling guest operating
      * system features to see a list of available options.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder> getGuestOsFeaturesOrBuilderList() { return guestOsFeatures_; } /** + * + * *
      * Indicates a list of features to enable on the guest operating system.
      * Applicable only for bootable images. Read  Enabling guest operating
      * system features to see a list of available options.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * */ @java.lang.Override public int getGuestOsFeaturesCount() { return guestOsFeatures_.size(); } /** + * + * *
      * Indicates a list of features to enable on the guest operating system.
      * Applicable only for bootable images. Read  Enabling guest operating
      * system features to see a list of available options.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * */ @java.lang.Override - public com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature getGuestOsFeatures(int index) { + public com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature getGuestOsFeatures( + int index) { return guestOsFeatures_.get(index); } /** + * + * *
      * Indicates a list of features to enable on the guest operating system.
      * Applicable only for bootable images. Read  Enabling guest operating
      * system features to see a list of available options.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * */ @java.lang.Override - public com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder getGuestOsFeaturesOrBuilder( - int index) { + public com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder + getGuestOsFeaturesOrBuilder(int index) { return guestOsFeatures_.get(index); } public static final int INDEX_FIELD_NUMBER = 6; private long index_; /** + * + * *
      * A zero-based index to this disk, where 0 is reserved for the
      * boot disk. If you have many disks attached to an instance, each disk
@@ -3016,6 +3421,7 @@ public com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder getGu
      * 
* * int64 index = 6; + * * @return The index. */ @java.lang.Override @@ -3026,6 +3432,8 @@ public long getIndex() { public static final int INTERFACE_FIELD_NUMBER = 7; private volatile java.lang.Object interface_; /** + * + * *
      * Indicates the disk interface to use for attaching this disk, which is
      * either SCSI or NVME. The default is SCSI. Persistent disks must always
@@ -3039,6 +3447,7 @@ public long getIndex() {
      * 
* * string interface = 7; + * * @return The interface. */ @java.lang.Override @@ -3047,14 +3456,15 @@ public java.lang.String getInterface() { 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(); interface_ = s; return s; } } /** + * + * *
      * Indicates the disk interface to use for attaching this disk, which is
      * either SCSI or NVME. The default is SCSI. Persistent disks must always
@@ -3068,16 +3478,15 @@ public java.lang.String getInterface() {
      * 
* * string interface = 7; + * * @return The bytes for interface. */ @java.lang.Override - public com.google.protobuf.ByteString - getInterfaceBytes() { + public com.google.protobuf.ByteString getInterfaceBytes() { java.lang.Object ref = interface_; 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); interface_ = b; return b; } else { @@ -3088,12 +3497,15 @@ public java.lang.String getInterface() { public static final int KIND_FIELD_NUMBER = 8; private volatile java.lang.Object kind_; /** + * + * *
      * Type of the resource. Always compute#attachedDisk for attached
      * disks.
      * 
* * string kind = 8; + * * @return The kind. */ @java.lang.Override @@ -3102,30 +3514,30 @@ public java.lang.String getKind() { 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(); kind_ = s; return s; } } /** + * + * *
      * Type of the resource. Always compute#attachedDisk for attached
      * disks.
      * 
* * string kind = 8; + * * @return The bytes for kind. */ @java.lang.Override - public com.google.protobuf.ByteString - getKindBytes() { + public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; 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); kind_ = b; return b; } else { @@ -3136,6 +3548,8 @@ public java.lang.String getKind() { public static final int LICENSES_FIELD_NUMBER = 9; private com.google.protobuf.LazyStringList licenses_; /** + * + * *
      * A list of publicly visible licenses. Reserved for Google's use.
      * A License represents billing and aggregate usage data for public
@@ -3143,13 +3557,15 @@ public java.lang.String getKind() {
      * 
* * repeated string licenses = 9; + * * @return A list containing the licenses. */ - public com.google.protobuf.ProtocolStringList - getLicensesList() { + public com.google.protobuf.ProtocolStringList getLicensesList() { return licenses_; } /** + * + * *
      * A list of publicly visible licenses. Reserved for Google's use.
      * A License represents billing and aggregate usage data for public
@@ -3157,12 +3573,15 @@ public java.lang.String getKind() {
      * 
* * repeated string licenses = 9; + * * @return The count of licenses. */ public int getLicensesCount() { return licenses_.size(); } /** + * + * *
      * A list of publicly visible licenses. Reserved for Google's use.
      * A License represents billing and aggregate usage data for public
@@ -3170,6 +3589,7 @@ public int getLicensesCount() {
      * 
* * repeated string licenses = 9; + * * @param index The index of the element to return. * @return The licenses at the given index. */ @@ -3177,6 +3597,8 @@ public java.lang.String getLicenses(int index) { return licenses_.get(index); } /** + * + * *
      * A list of publicly visible licenses. Reserved for Google's use.
      * A License represents billing and aggregate usage data for public
@@ -3184,17 +3606,19 @@ public java.lang.String getLicenses(int index) {
      * 
* * repeated string licenses = 9; + * * @param index The index of the value to return. * @return The bytes of the licenses at the given index. */ - public com.google.protobuf.ByteString - getLicensesBytes(int index) { + public com.google.protobuf.ByteString getLicensesBytes(int index) { return licenses_.getByteString(index); } public static final int MODE_FIELD_NUMBER = 10; private volatile java.lang.Object mode_; /** + * + * *
      * The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If
      * not specified, the default is to attach the disk in READ_WRITE mode.
@@ -3204,6 +3628,7 @@ public java.lang.String getLicenses(int index) {
      * 
* * string mode = 10; + * * @return The mode. */ @java.lang.Override @@ -3212,14 +3637,15 @@ public java.lang.String getMode() { 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(); mode_ = s; return s; } } /** + * + * *
      * The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If
      * not specified, the default is to attach the disk in READ_WRITE mode.
@@ -3229,16 +3655,15 @@ public java.lang.String getMode() {
      * 
* * string mode = 10; + * * @return The bytes for mode. */ @java.lang.Override - public com.google.protobuf.ByteString - getModeBytes() { + public com.google.protobuf.ByteString getModeBytes() { java.lang.Object ref = mode_; 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); mode_ = b; return b; } else { @@ -3249,12 +3674,15 @@ public java.lang.String getMode() { public static final int SOURCE_FIELD_NUMBER = 11; private volatile java.lang.Object source_; /** + * + * *
      * Indicates a valid partial or full URL to an existing Persistent Disk
      * resource.
      * 
* * string source = 11; + * * @return The source. */ @java.lang.Override @@ -3263,30 +3691,30 @@ public java.lang.String getSource() { 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(); source_ = s; return s; } } /** + * + * *
      * Indicates a valid partial or full URL to an existing Persistent Disk
      * resource.
      * 
* * string source = 11; + * * @return The bytes for source. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceBytes() { + public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object 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); source_ = b; return b; } else { @@ -3297,6 +3725,8 @@ public java.lang.String getSource() { public static final int TYPE_FIELD_NUMBER = 12; private volatile java.lang.Object type_; /** + * + * *
      * Indicates the type of the disk, either SCRATCH or PERSISTENT.
      * Valid values:
@@ -3305,6 +3735,7 @@ public java.lang.String getSource() {
      * 
* * string type = 12; + * * @return The type. */ @java.lang.Override @@ -3313,14 +3744,15 @@ 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; } } /** + * + * *
      * Indicates the type of the disk, either SCRATCH or PERSISTENT.
      * Valid values:
@@ -3329,16 +3761,15 @@ public java.lang.String getType() {
      * 
* * string type = 12; + * * @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 { @@ -3347,6 +3778,7 @@ public java.lang.String getType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3358,8 +3790,7 @@ 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 (autoDelete_ != false) { output.writeBool(1, autoDelete_); } @@ -3406,27 +3837,23 @@ public int getSerializedSize() { size = 0; if (autoDelete_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, autoDelete_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, autoDelete_); } if (boot_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, boot_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, boot_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, deviceName_); } if (diskSizeGb_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, diskSizeGb_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, diskSizeGb_); } for (int i = 0; i < guestOsFeatures_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, guestOsFeatures_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, guestOsFeatures_.get(i)); } if (index_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, index_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, index_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(interface_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, interface_); @@ -3459,37 +3886,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.cloud.notebooks.v1.Instance.Disk)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.Instance.Disk other = (com.google.cloud.notebooks.v1.Instance.Disk) obj; - - if (getAutoDelete() - != other.getAutoDelete()) return false; - if (getBoot() - != other.getBoot()) return false; - if (!getDeviceName() - .equals(other.getDeviceName())) return false; - if (getDiskSizeGb() - != other.getDiskSizeGb()) return false; - if (!getGuestOsFeaturesList() - .equals(other.getGuestOsFeaturesList())) return false; - if (getIndex() - != other.getIndex()) return false; - if (!getInterface() - .equals(other.getInterface())) return false; - if (!getKind() - .equals(other.getKind())) return false; - if (!getLicensesList() - .equals(other.getLicensesList())) return false; - if (!getMode() - .equals(other.getMode())) return false; - if (!getSource() - .equals(other.getSource())) return false; - if (!getType() - .equals(other.getType())) return false; + com.google.cloud.notebooks.v1.Instance.Disk other = + (com.google.cloud.notebooks.v1.Instance.Disk) obj; + + if (getAutoDelete() != other.getAutoDelete()) return false; + if (getBoot() != other.getBoot()) return false; + if (!getDeviceName().equals(other.getDeviceName())) return false; + if (getDiskSizeGb() != other.getDiskSizeGb()) return false; + if (!getGuestOsFeaturesList().equals(other.getGuestOsFeaturesList())) return false; + if (getIndex() != other.getIndex()) return false; + if (!getInterface().equals(other.getInterface())) return false; + if (!getKind().equals(other.getKind())) return false; + if (!getLicensesList().equals(other.getLicensesList())) return false; + if (!getMode().equals(other.getMode())) return false; + if (!getSource().equals(other.getSource())) return false; + if (!getType().equals(other.getType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3502,23 +3918,19 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + AUTO_DELETE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAutoDelete()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoDelete()); hash = (37 * hash) + BOOT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getBoot()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBoot()); hash = (37 * hash) + DEVICE_NAME_FIELD_NUMBER; hash = (53 * hash) + getDeviceName().hashCode(); hash = (37 * hash) + DISK_SIZE_GB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDiskSizeGb()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDiskSizeGb()); if (getGuestOsFeaturesCount() > 0) { hash = (37 * hash) + GUEST_OS_FEATURES_FIELD_NUMBER; hash = (53 * hash) + getGuestOsFeaturesList().hashCode(); } hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIndex()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getIndex()); hash = (37 * hash) + INTERFACE_FIELD_NUMBER; hash = (53 * hash) + getInterface().hashCode(); hash = (37 * hash) + KIND_FIELD_NUMBER; @@ -3538,88 +3950,94 @@ public int hashCode() { return hash; } - public static com.google.cloud.notebooks.v1.Instance.Disk parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.notebooks.v1.Instance.Disk parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.Instance.Disk 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.cloud.notebooks.v1.Instance.Disk parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.Instance.Disk parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.Instance.Disk parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.Instance.Disk 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.cloud.notebooks.v1.Instance.Disk 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.cloud.notebooks.v1.Instance.Disk 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.cloud.notebooks.v1.Instance.Disk parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.Instance.Disk parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.Instance.Disk 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.cloud.notebooks.v1.Instance.Disk 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.cloud.notebooks.v1.Instance.Disk 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.cloud.notebooks.v1.Instance.Disk 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 @@ -3629,39 +4047,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * An instance-attached disk resource.
      * 
* * Protobuf type {@code google.cloud.notebooks.v1.Instance.Disk} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.Instance.Disk) com.google.cloud.notebooks.v1.Instance.DiskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_Instance_Disk_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.InstanceProto + .internal_static_google_cloud_notebooks_v1_Instance_Disk_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_Instance_Disk_fieldAccessorTable + return com.google.cloud.notebooks.v1.InstanceProto + .internal_static_google_cloud_notebooks_v1_Instance_Disk_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.Instance.Disk.class, com.google.cloud.notebooks.v1.Instance.Disk.Builder.class); + com.google.cloud.notebooks.v1.Instance.Disk.class, + com.google.cloud.notebooks.v1.Instance.Disk.Builder.class); } // Construct using com.google.cloud.notebooks.v1.Instance.Disk.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -3698,9 +4118,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_Instance_Disk_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.InstanceProto + .internal_static_google_cloud_notebooks_v1_Instance_Disk_descriptor; } @java.lang.Override @@ -3719,7 +4139,8 @@ public com.google.cloud.notebooks.v1.Instance.Disk build() { @java.lang.Override public com.google.cloud.notebooks.v1.Instance.Disk buildPartial() { - com.google.cloud.notebooks.v1.Instance.Disk result = new com.google.cloud.notebooks.v1.Instance.Disk(this); + com.google.cloud.notebooks.v1.Instance.Disk result = + new com.google.cloud.notebooks.v1.Instance.Disk(this); int from_bitField0_ = bitField0_; result.autoDelete_ = autoDelete_; result.boot_ = boot_; @@ -3753,38 +4174,41 @@ public com.google.cloud.notebooks.v1.Instance.Disk buildPartial() { 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.cloud.notebooks.v1.Instance.Disk) { - return mergeFrom((com.google.cloud.notebooks.v1.Instance.Disk)other); + return mergeFrom((com.google.cloud.notebooks.v1.Instance.Disk) other); } else { super.mergeFrom(other); return this; @@ -3824,9 +4248,10 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.Instance.Disk other) { guestOsFeaturesBuilder_ = null; guestOsFeatures_ = other.guestOsFeatures_; bitField0_ = (bitField0_ & ~0x00000001); - guestOsFeaturesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getGuestOsFeaturesFieldBuilder() : null; + guestOsFeaturesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGuestOsFeaturesFieldBuilder() + : null; } else { guestOsFeaturesBuilder_.addAllMessages(other.guestOsFeatures_); } @@ -3891,81 +4316,94 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - autoDelete_ = input.readBool(); + case 8: + { + autoDelete_ = input.readBool(); - break; - } // case 8 - case 16: { - boot_ = input.readBool(); + break; + } // case 8 + case 16: + { + boot_ = input.readBool(); - break; - } // case 16 - case 26: { - deviceName_ = input.readStringRequireUtf8(); + break; + } // case 16 + case 26: + { + deviceName_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 32: { - diskSizeGb_ = input.readInt64(); + break; + } // case 26 + case 32: + { + diskSizeGb_ = input.readInt64(); - break; - } // case 32 - case 42: { - com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature m = - input.readMessage( - com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.parser(), - extensionRegistry); - if (guestOsFeaturesBuilder_ == null) { - ensureGuestOsFeaturesIsMutable(); - guestOsFeatures_.add(m); - } else { - guestOsFeaturesBuilder_.addMessage(m); - } - break; - } // case 42 - case 48: { - index_ = input.readInt64(); + break; + } // case 32 + case 42: + { + com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature m = + input.readMessage( + com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.parser(), + extensionRegistry); + if (guestOsFeaturesBuilder_ == null) { + ensureGuestOsFeaturesIsMutable(); + guestOsFeatures_.add(m); + } else { + guestOsFeaturesBuilder_.addMessage(m); + } + break; + } // case 42 + case 48: + { + index_ = input.readInt64(); - break; - } // case 48 - case 58: { - interface_ = input.readStringRequireUtf8(); + break; + } // case 48 + case 58: + { + interface_ = input.readStringRequireUtf8(); - break; - } // case 58 - case 66: { - kind_ = input.readStringRequireUtf8(); + break; + } // case 58 + case 66: + { + kind_ = input.readStringRequireUtf8(); - break; - } // case 66 - case 74: { - java.lang.String s = input.readStringRequireUtf8(); - ensureLicensesIsMutable(); - licenses_.add(s); - break; - } // case 74 - case 82: { - mode_ = input.readStringRequireUtf8(); + break; + } // case 66 + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureLicensesIsMutable(); + licenses_.add(s); + break; + } // case 74 + case 82: + { + mode_ = input.readStringRequireUtf8(); - break; - } // case 82 - case 90: { - source_ = input.readStringRequireUtf8(); + break; + } // case 82 + case 90: + { + source_ = input.readStringRequireUtf8(); - break; - } // case 90 - case 98: { - type_ = input.readStringRequireUtf8(); + break; + } // case 90 + case 98: + { + type_ = input.readStringRequireUtf8(); - break; - } // case 98 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -3975,16 +4413,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean autoDelete_ ; + private boolean autoDelete_; /** + * + * *
        * Indicates whether the disk will be auto-deleted when the instance is
        * deleted (but not when the disk is detached from the instance).
        * 
* * bool auto_delete = 1; + * * @return The autoDelete. */ @java.lang.Override @@ -3992,45 +4434,54 @@ public boolean getAutoDelete() { return autoDelete_; } /** + * + * *
        * Indicates whether the disk will be auto-deleted when the instance is
        * deleted (but not when the disk is detached from the instance).
        * 
* * bool auto_delete = 1; + * * @param value The autoDelete to set. * @return This builder for chaining. */ public Builder setAutoDelete(boolean value) { - + autoDelete_ = value; onChanged(); return this; } /** + * + * *
        * Indicates whether the disk will be auto-deleted when the instance is
        * deleted (but not when the disk is detached from the instance).
        * 
* * bool auto_delete = 1; + * * @return This builder for chaining. */ public Builder clearAutoDelete() { - + autoDelete_ = false; onChanged(); return this; } - private boolean boot_ ; + private boolean boot_; /** + * + * *
        * Indicates that this is a boot disk. The virtual machine will use the
        * first partition of the disk for its root filesystem.
        * 
* * bool boot = 2; + * * @return The boot. */ @java.lang.Override @@ -4038,32 +4489,38 @@ public boolean getBoot() { return boot_; } /** + * + * *
        * Indicates that this is a boot disk. The virtual machine will use the
        * first partition of the disk for its root filesystem.
        * 
* * bool boot = 2; + * * @param value The boot to set. * @return This builder for chaining. */ public Builder setBoot(boolean value) { - + boot_ = value; onChanged(); return this; } /** + * + * *
        * Indicates that this is a boot disk. The virtual machine will use the
        * first partition of the disk for its root filesystem.
        * 
* * bool boot = 2; + * * @return This builder for chaining. */ public Builder clearBoot() { - + boot_ = false; onChanged(); return this; @@ -4071,6 +4528,8 @@ public Builder clearBoot() { private java.lang.Object deviceName_ = ""; /** + * + * *
        * Indicates a unique device name of your choice that is reflected into the
        * /dev/disk/by-id/google-* tree of a Linux operating system running within
@@ -4082,13 +4541,13 @@ public Builder clearBoot() {
        * 
* * string device_name = 3; + * * @return The deviceName. */ public java.lang.String getDeviceName() { java.lang.Object ref = deviceName_; 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(); deviceName_ = s; return s; @@ -4097,6 +4556,8 @@ public java.lang.String getDeviceName() { } } /** + * + * *
        * Indicates a unique device name of your choice that is reflected into the
        * /dev/disk/by-id/google-* tree of a Linux operating system running within
@@ -4108,15 +4569,14 @@ public java.lang.String getDeviceName() {
        * 
* * string device_name = 3; + * * @return The bytes for deviceName. */ - public com.google.protobuf.ByteString - getDeviceNameBytes() { + public com.google.protobuf.ByteString getDeviceNameBytes() { java.lang.Object ref = deviceName_; 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); deviceName_ = b; return b; } else { @@ -4124,6 +4584,8 @@ public java.lang.String getDeviceName() { } } /** + * + * *
        * Indicates a unique device name of your choice that is reflected into the
        * /dev/disk/by-id/google-* tree of a Linux operating system running within
@@ -4135,20 +4597,22 @@ public java.lang.String getDeviceName() {
        * 
* * string device_name = 3; + * * @param value The deviceName to set. * @return This builder for chaining. */ - public Builder setDeviceName( - java.lang.String value) { + public Builder setDeviceName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + deviceName_ = value; onChanged(); return this; } /** + * + * *
        * Indicates a unique device name of your choice that is reflected into the
        * /dev/disk/by-id/google-* tree of a Linux operating system running within
@@ -4160,15 +4624,18 @@ public Builder setDeviceName(
        * 
* * string device_name = 3; + * * @return This builder for chaining. */ public Builder clearDeviceName() { - + deviceName_ = getDefaultInstance().getDeviceName(); onChanged(); return this; } /** + * + * *
        * Indicates a unique device name of your choice that is reflected into the
        * /dev/disk/by-id/google-* tree of a Linux operating system running within
@@ -4180,28 +4647,31 @@ public Builder clearDeviceName() {
        * 
* * string device_name = 3; + * * @param value The bytes for deviceName to set. * @return This builder for chaining. */ - public Builder setDeviceNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDeviceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deviceName_ = value; onChanged(); return this; } - private long diskSizeGb_ ; + private long diskSizeGb_; /** + * + * *
        * Indicates the size of the disk in base-2 GB.
        * 
* * int64 disk_size_gb = 4; + * * @return The diskSizeGb. */ @java.lang.Override @@ -4209,57 +4679,74 @@ public long getDiskSizeGb() { return diskSizeGb_; } /** + * + * *
        * Indicates the size of the disk in base-2 GB.
        * 
* * int64 disk_size_gb = 4; + * * @param value The diskSizeGb to set. * @return This builder for chaining. */ public Builder setDiskSizeGb(long value) { - + diskSizeGb_ = value; onChanged(); return this; } /** + * + * *
        * Indicates the size of the disk in base-2 GB.
        * 
* * int64 disk_size_gb = 4; + * * @return This builder for chaining. */ public Builder clearDiskSizeGb() { - + diskSizeGb_ = 0L; onChanged(); return this; } - private java.util.List guestOsFeatures_ = - java.util.Collections.emptyList(); + private java.util.List + guestOsFeatures_ = java.util.Collections.emptyList(); + private void ensureGuestOsFeaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - guestOsFeatures_ = new java.util.ArrayList(guestOsFeatures_); + guestOsFeatures_ = + new java.util.ArrayList( + guestOsFeatures_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature, com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.Builder, com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder> guestOsFeaturesBuilder_; + com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature, + com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.Builder, + com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder> + guestOsFeaturesBuilder_; /** + * + * *
        * Indicates a list of features to enable on the guest operating system.
        * Applicable only for bootable images. Read  Enabling guest operating
        * system features to see a list of available options.
        * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * */ - public java.util.List getGuestOsFeaturesList() { + public java.util.List + getGuestOsFeaturesList() { if (guestOsFeaturesBuilder_ == null) { return java.util.Collections.unmodifiableList(guestOsFeatures_); } else { @@ -4267,13 +4754,17 @@ public java.util.List * Indicates a list of features to enable on the guest operating system. * Applicable only for bootable images. Read Enabling guest operating * system features to see a list of available options. *
* - * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * */ public int getGuestOsFeaturesCount() { if (guestOsFeaturesBuilder_ == null) { @@ -4283,15 +4774,20 @@ public int getGuestOsFeaturesCount() { } } /** + * + * *
        * Indicates a list of features to enable on the guest operating system.
        * Applicable only for bootable images. Read  Enabling guest operating
        * system features to see a list of available options.
        * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * */ - public com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature getGuestOsFeatures(int index) { + public com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature getGuestOsFeatures( + int index) { if (guestOsFeaturesBuilder_ == null) { return guestOsFeatures_.get(index); } else { @@ -4299,13 +4795,17 @@ public com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature getGuestOsFeat } } /** + * + * *
        * Indicates a list of features to enable on the guest operating system.
        * Applicable only for bootable images. Read  Enabling guest operating
        * system features to see a list of available options.
        * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * */ public Builder setGuestOsFeatures( int index, com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature value) { @@ -4322,16 +4822,21 @@ public Builder setGuestOsFeatures( return this; } /** + * + * *
        * Indicates a list of features to enable on the guest operating system.
        * Applicable only for bootable images. Read  Enabling guest operating
        * system features to see a list of available options.
        * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * */ public Builder setGuestOsFeatures( - int index, com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.Builder builderForValue) { + int index, + com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.Builder builderForValue) { if (guestOsFeaturesBuilder_ == null) { ensureGuestOsFeaturesIsMutable(); guestOsFeatures_.set(index, builderForValue.build()); @@ -4342,15 +4847,20 @@ public Builder setGuestOsFeatures( return this; } /** + * + * *
        * Indicates a list of features to enable on the guest operating system.
        * Applicable only for bootable images. Read  Enabling guest operating
        * system features to see a list of available options.
        * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * */ - public Builder addGuestOsFeatures(com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature value) { + public Builder addGuestOsFeatures( + com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature value) { if (guestOsFeaturesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4364,13 +4874,17 @@ public Builder addGuestOsFeatures(com.google.cloud.notebooks.v1.Instance.Disk.Gu return this; } /** + * + * *
        * Indicates a list of features to enable on the guest operating system.
        * Applicable only for bootable images. Read  Enabling guest operating
        * system features to see a list of available options.
        * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * */ public Builder addGuestOsFeatures( int index, com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature value) { @@ -4387,13 +4901,17 @@ public Builder addGuestOsFeatures( return this; } /** + * + * *
        * Indicates a list of features to enable on the guest operating system.
        * Applicable only for bootable images. Read  Enabling guest operating
        * system features to see a list of available options.
        * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * */ public Builder addGuestOsFeatures( com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.Builder builderForValue) { @@ -4407,16 +4925,21 @@ public Builder addGuestOsFeatures( return this; } /** + * + * *
        * Indicates a list of features to enable on the guest operating system.
        * Applicable only for bootable images. Read  Enabling guest operating
        * system features to see a list of available options.
        * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * */ public Builder addGuestOsFeatures( - int index, com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.Builder builderForValue) { + int index, + com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.Builder builderForValue) { if (guestOsFeaturesBuilder_ == null) { ensureGuestOsFeaturesIsMutable(); guestOsFeatures_.add(index, builderForValue.build()); @@ -4427,20 +4950,24 @@ public Builder addGuestOsFeatures( return this; } /** + * + * *
        * Indicates a list of features to enable on the guest operating system.
        * Applicable only for bootable images. Read  Enabling guest operating
        * system features to see a list of available options.
        * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * */ public Builder addAllGuestOsFeatures( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (guestOsFeaturesBuilder_ == null) { ensureGuestOsFeaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, guestOsFeatures_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, guestOsFeatures_); onChanged(); } else { guestOsFeaturesBuilder_.addAllMessages(values); @@ -4448,13 +4975,17 @@ public Builder addAllGuestOsFeatures( return this; } /** + * + * *
        * Indicates a list of features to enable on the guest operating system.
        * Applicable only for bootable images. Read  Enabling guest operating
        * system features to see a list of available options.
        * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * */ public Builder clearGuestOsFeatures() { if (guestOsFeaturesBuilder_ == null) { @@ -4467,13 +4998,17 @@ public Builder clearGuestOsFeatures() { return this; } /** + * + * *
        * Indicates a list of features to enable on the guest operating system.
        * Applicable only for bootable images. Read  Enabling guest operating
        * system features to see a list of available options.
        * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * */ public Builder removeGuestOsFeatures(int index) { if (guestOsFeaturesBuilder_ == null) { @@ -4486,45 +5021,59 @@ public Builder removeGuestOsFeatures(int index) { return this; } /** + * + * *
        * Indicates a list of features to enable on the guest operating system.
        * Applicable only for bootable images. Read  Enabling guest operating
        * system features to see a list of available options.
        * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * */ - public com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.Builder getGuestOsFeaturesBuilder( - int index) { + public com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.Builder + getGuestOsFeaturesBuilder(int index) { return getGuestOsFeaturesFieldBuilder().getBuilder(index); } /** + * + * *
        * Indicates a list of features to enable on the guest operating system.
        * Applicable only for bootable images. Read  Enabling guest operating
        * system features to see a list of available options.
        * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * */ - public com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder getGuestOsFeaturesOrBuilder( - int index) { + public com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder + getGuestOsFeaturesOrBuilder(int index) { if (guestOsFeaturesBuilder_ == null) { - return guestOsFeatures_.get(index); } else { + return guestOsFeatures_.get(index); + } else { return guestOsFeaturesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Indicates a list of features to enable on the guest operating system.
        * Applicable only for bootable images. Read  Enabling guest operating
        * system features to see a list of available options.
        * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * */ - public java.util.List - getGuestOsFeaturesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder> + getGuestOsFeaturesOrBuilderList() { if (guestOsFeaturesBuilder_ != null) { return guestOsFeaturesBuilder_.getMessageOrBuilderList(); } else { @@ -4532,51 +5081,73 @@ public com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder getGu } } /** + * + * *
        * Indicates a list of features to enable on the guest operating system.
        * Applicable only for bootable images. Read  Enabling guest operating
        * system features to see a list of available options.
        * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * */ - public com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.Builder addGuestOsFeaturesBuilder() { - return getGuestOsFeaturesFieldBuilder().addBuilder( - com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.getDefaultInstance()); + public com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.Builder + addGuestOsFeaturesBuilder() { + return getGuestOsFeaturesFieldBuilder() + .addBuilder( + com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.getDefaultInstance()); } /** + * + * *
        * Indicates a list of features to enable on the guest operating system.
        * Applicable only for bootable images. Read  Enabling guest operating
        * system features to see a list of available options.
        * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * */ - public com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.Builder addGuestOsFeaturesBuilder( - int index) { - return getGuestOsFeaturesFieldBuilder().addBuilder( - index, com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.getDefaultInstance()); + public com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.Builder + addGuestOsFeaturesBuilder(int index) { + return getGuestOsFeaturesFieldBuilder() + .addBuilder( + index, + com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.getDefaultInstance()); } /** + * + * *
        * Indicates a list of features to enable on the guest operating system.
        * Applicable only for bootable images. Read  Enabling guest operating
        * system features to see a list of available options.
        * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature guest_os_features = 5; + * */ - public java.util.List - getGuestOsFeaturesBuilderList() { + public java.util.List + getGuestOsFeaturesBuilderList() { return getGuestOsFeaturesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature, com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.Builder, com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder> + com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature, + com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.Builder, + com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder> getGuestOsFeaturesFieldBuilder() { if (guestOsFeaturesBuilder_ == null) { - guestOsFeaturesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature, com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.Builder, com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder>( + guestOsFeaturesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature, + com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.Builder, + com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder>( guestOsFeatures_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -4586,8 +5157,10 @@ public com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.Builder addGue return guestOsFeaturesBuilder_; } - private long index_ ; + private long index_; /** + * + * *
        * A zero-based index to this disk, where 0 is reserved for the
        * boot disk. If you have many disks attached to an instance, each disk
@@ -4595,6 +5168,7 @@ public com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeature.Builder addGue
        * 
* * int64 index = 6; + * * @return The index. */ @java.lang.Override @@ -4602,6 +5176,8 @@ public long getIndex() { return index_; } /** + * + * *
        * A zero-based index to this disk, where 0 is reserved for the
        * boot disk. If you have many disks attached to an instance, each disk
@@ -4609,16 +5185,19 @@ public long getIndex() {
        * 
* * int64 index = 6; + * * @param value The index to set. * @return This builder for chaining. */ public Builder setIndex(long value) { - + index_ = value; onChanged(); return this; } /** + * + * *
        * A zero-based index to this disk, where 0 is reserved for the
        * boot disk. If you have many disks attached to an instance, each disk
@@ -4626,10 +5205,11 @@ public Builder setIndex(long value) {
        * 
* * int64 index = 6; + * * @return This builder for chaining. */ public Builder clearIndex() { - + index_ = 0L; onChanged(); return this; @@ -4637,6 +5217,8 @@ public Builder clearIndex() { private java.lang.Object interface_ = ""; /** + * + * *
        * Indicates the disk interface to use for attaching this disk, which is
        * either SCSI or NVME. The default is SCSI. Persistent disks must always
@@ -4650,13 +5232,13 @@ public Builder clearIndex() {
        * 
* * string interface = 7; + * * @return The interface. */ public java.lang.String getInterface() { java.lang.Object ref = interface_; 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(); interface_ = s; return s; @@ -4665,6 +5247,8 @@ public java.lang.String getInterface() { } } /** + * + * *
        * Indicates the disk interface to use for attaching this disk, which is
        * either SCSI or NVME. The default is SCSI. Persistent disks must always
@@ -4678,15 +5262,14 @@ public java.lang.String getInterface() {
        * 
* * string interface = 7; + * * @return The bytes for interface. */ - public com.google.protobuf.ByteString - getInterfaceBytes() { + public com.google.protobuf.ByteString getInterfaceBytes() { java.lang.Object ref = interface_; 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); interface_ = b; return b; } else { @@ -4694,6 +5277,8 @@ public java.lang.String getInterface() { } } /** + * + * *
        * Indicates the disk interface to use for attaching this disk, which is
        * either SCSI or NVME. The default is SCSI. Persistent disks must always
@@ -4707,20 +5292,22 @@ public java.lang.String getInterface() {
        * 
* * string interface = 7; + * * @param value The interface to set. * @return This builder for chaining. */ - public Builder setInterface( - java.lang.String value) { + public Builder setInterface(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + interface_ = value; onChanged(); return this; } /** + * + * *
        * Indicates the disk interface to use for attaching this disk, which is
        * either SCSI or NVME. The default is SCSI. Persistent disks must always
@@ -4734,15 +5321,18 @@ public Builder setInterface(
        * 
* * string interface = 7; + * * @return This builder for chaining. */ public Builder clearInterface() { - + interface_ = getDefaultInstance().getInterface(); onChanged(); return this; } /** + * + * *
        * Indicates the disk interface to use for attaching this disk, which is
        * either SCSI or NVME. The default is SCSI. Persistent disks must always
@@ -4756,16 +5346,16 @@ public Builder clearInterface() {
        * 
* * string interface = 7; + * * @param value The bytes for interface to set. * @return This builder for chaining. */ - public Builder setInterfaceBytes( - com.google.protobuf.ByteString value) { + public Builder setInterfaceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + interface_ = value; onChanged(); return this; @@ -4773,19 +5363,21 @@ public Builder setInterfaceBytes( private java.lang.Object kind_ = ""; /** + * + * *
        * Type of the resource. Always compute#attachedDisk for attached
        * disks.
        * 
* * string kind = 8; + * * @return The kind. */ public java.lang.String getKind() { java.lang.Object ref = kind_; 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(); kind_ = s; return s; @@ -4794,21 +5386,22 @@ public java.lang.String getKind() { } } /** + * + * *
        * Type of the resource. Always compute#attachedDisk for attached
        * disks.
        * 
* * string kind = 8; + * * @return The bytes for kind. */ - public com.google.protobuf.ByteString - getKindBytes() { + public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; 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); kind_ = b; return b; } else { @@ -4816,70 +5409,81 @@ public java.lang.String getKind() { } } /** + * + * *
        * Type of the resource. Always compute#attachedDisk for attached
        * disks.
        * 
* * string kind = 8; + * * @param value The kind to set. * @return This builder for chaining. */ - public Builder setKind( - java.lang.String value) { + public Builder setKind(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kind_ = value; onChanged(); return this; } /** + * + * *
        * Type of the resource. Always compute#attachedDisk for attached
        * disks.
        * 
* * string kind = 8; + * * @return This builder for chaining. */ public Builder clearKind() { - + kind_ = getDefaultInstance().getKind(); onChanged(); return this; } /** + * + * *
        * Type of the resource. Always compute#attachedDisk for attached
        * disks.
        * 
* * string kind = 8; + * * @param value The bytes for kind to set. * @return This builder for chaining. */ - public Builder setKindBytes( - com.google.protobuf.ByteString value) { + public Builder setKindBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList licenses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList licenses_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLicensesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { licenses_ = new com.google.protobuf.LazyStringArrayList(licenses_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
        * A list of publicly visible licenses. Reserved for Google's use.
        * A License represents billing and aggregate usage data for public
@@ -4887,13 +5491,15 @@ private void ensureLicensesIsMutable() {
        * 
* * repeated string licenses = 9; + * * @return A list containing the licenses. */ - public com.google.protobuf.ProtocolStringList - getLicensesList() { + public com.google.protobuf.ProtocolStringList getLicensesList() { return licenses_.getUnmodifiableView(); } /** + * + * *
        * A list of publicly visible licenses. Reserved for Google's use.
        * A License represents billing and aggregate usage data for public
@@ -4901,12 +5507,15 @@ private void ensureLicensesIsMutable() {
        * 
* * repeated string licenses = 9; + * * @return The count of licenses. */ public int getLicensesCount() { return licenses_.size(); } /** + * + * *
        * A list of publicly visible licenses. Reserved for Google's use.
        * A License represents billing and aggregate usage data for public
@@ -4914,6 +5523,7 @@ public int getLicensesCount() {
        * 
* * repeated string licenses = 9; + * * @param index The index of the element to return. * @return The licenses at the given index. */ @@ -4921,6 +5531,8 @@ public java.lang.String getLicenses(int index) { return licenses_.get(index); } /** + * + * *
        * A list of publicly visible licenses. Reserved for Google's use.
        * A License represents billing and aggregate usage data for public
@@ -4928,14 +5540,16 @@ public java.lang.String getLicenses(int index) {
        * 
* * repeated string licenses = 9; + * * @param index The index of the value to return. * @return The bytes of the licenses at the given index. */ - public com.google.protobuf.ByteString - getLicensesBytes(int index) { + public com.google.protobuf.ByteString getLicensesBytes(int index) { return licenses_.getByteString(index); } /** + * + * *
        * A list of publicly visible licenses. Reserved for Google's use.
        * A License represents billing and aggregate usage data for public
@@ -4943,21 +5557,23 @@ public java.lang.String getLicenses(int index) {
        * 
* * repeated string licenses = 9; + * * @param index The index to set the value at. * @param value The licenses to set. * @return This builder for chaining. */ - public Builder setLicenses( - int index, java.lang.String value) { + public Builder setLicenses(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLicensesIsMutable(); + throw new NullPointerException(); + } + ensureLicensesIsMutable(); licenses_.set(index, value); onChanged(); return this; } /** + * + * *
        * A list of publicly visible licenses. Reserved for Google's use.
        * A License represents billing and aggregate usage data for public
@@ -4965,20 +5581,22 @@ public Builder setLicenses(
        * 
* * repeated string licenses = 9; + * * @param value The licenses to add. * @return This builder for chaining. */ - public Builder addLicenses( - java.lang.String value) { + public Builder addLicenses(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLicensesIsMutable(); + throw new NullPointerException(); + } + ensureLicensesIsMutable(); licenses_.add(value); onChanged(); return this; } /** + * + * *
        * A list of publicly visible licenses. Reserved for Google's use.
        * A License represents billing and aggregate usage data for public
@@ -4986,18 +5604,19 @@ public Builder addLicenses(
        * 
* * repeated string licenses = 9; + * * @param values The licenses to add. * @return This builder for chaining. */ - public Builder addAllLicenses( - java.lang.Iterable values) { + public Builder addAllLicenses(java.lang.Iterable values) { ensureLicensesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, licenses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, licenses_); onChanged(); return this; } /** + * + * *
        * A list of publicly visible licenses. Reserved for Google's use.
        * A License represents billing and aggregate usage data for public
@@ -5005,6 +5624,7 @@ public Builder addAllLicenses(
        * 
* * repeated string licenses = 9; + * * @return This builder for chaining. */ public Builder clearLicenses() { @@ -5014,6 +5634,8 @@ public Builder clearLicenses() { return this; } /** + * + * *
        * A list of publicly visible licenses. Reserved for Google's use.
        * A License represents billing and aggregate usage data for public
@@ -5021,15 +5643,15 @@ public Builder clearLicenses() {
        * 
* * repeated string licenses = 9; + * * @param value The bytes of the licenses to add. * @return This builder for chaining. */ - public Builder addLicensesBytes( - com.google.protobuf.ByteString value) { + public Builder addLicensesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLicensesIsMutable(); licenses_.add(value); onChanged(); @@ -5038,6 +5660,8 @@ public Builder addLicensesBytes( private java.lang.Object mode_ = ""; /** + * + * *
        * The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If
        * not specified, the default is to attach the disk in READ_WRITE mode.
@@ -5047,13 +5671,13 @@ public Builder addLicensesBytes(
        * 
* * string mode = 10; + * * @return The mode. */ public java.lang.String getMode() { java.lang.Object ref = mode_; 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(); mode_ = s; return s; @@ -5062,6 +5686,8 @@ public java.lang.String getMode() { } } /** + * + * *
        * The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If
        * not specified, the default is to attach the disk in READ_WRITE mode.
@@ -5071,15 +5697,14 @@ public java.lang.String getMode() {
        * 
* * string mode = 10; + * * @return The bytes for mode. */ - public com.google.protobuf.ByteString - getModeBytes() { + public com.google.protobuf.ByteString getModeBytes() { java.lang.Object ref = mode_; 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); mode_ = b; return b; } else { @@ -5087,6 +5712,8 @@ public java.lang.String getMode() { } } /** + * + * *
        * The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If
        * not specified, the default is to attach the disk in READ_WRITE mode.
@@ -5096,20 +5723,22 @@ public java.lang.String getMode() {
        * 
* * string mode = 10; + * * @param value The mode to set. * @return This builder for chaining. */ - public Builder setMode( - java.lang.String value) { + public Builder setMode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mode_ = value; onChanged(); return this; } /** + * + * *
        * The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If
        * not specified, the default is to attach the disk in READ_WRITE mode.
@@ -5119,15 +5748,18 @@ public Builder setMode(
        * 
* * string mode = 10; + * * @return This builder for chaining. */ public Builder clearMode() { - + mode_ = getDefaultInstance().getMode(); onChanged(); return this; } /** + * + * *
        * The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If
        * not specified, the default is to attach the disk in READ_WRITE mode.
@@ -5137,16 +5769,16 @@ public Builder clearMode() {
        * 
* * string mode = 10; + * * @param value The bytes for mode to set. * @return This builder for chaining. */ - public Builder setModeBytes( - com.google.protobuf.ByteString value) { + public Builder setModeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mode_ = value; onChanged(); return this; @@ -5154,19 +5786,21 @@ public Builder setModeBytes( private java.lang.Object source_ = ""; /** + * + * *
        * Indicates a valid partial or full URL to an existing Persistent Disk
        * resource.
        * 
* * string source = 11; + * * @return The source. */ public java.lang.String getSource() { java.lang.Object 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(); source_ = s; return s; @@ -5175,21 +5809,22 @@ public java.lang.String getSource() { } } /** + * + * *
        * Indicates a valid partial or full URL to an existing Persistent Disk
        * resource.
        * 
* * string source = 11; + * * @return The bytes for source. */ - public com.google.protobuf.ByteString - getSourceBytes() { + public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object 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); source_ = b; return b; } else { @@ -5197,57 +5832,64 @@ public java.lang.String getSource() { } } /** + * + * *
        * Indicates a valid partial or full URL to an existing Persistent Disk
        * resource.
        * 
* * string source = 11; + * * @param value The source to set. * @return This builder for chaining. */ - public Builder setSource( - java.lang.String value) { + public Builder setSource(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + source_ = value; onChanged(); return this; } /** + * + * *
        * Indicates a valid partial or full URL to an existing Persistent Disk
        * resource.
        * 
* * string source = 11; + * * @return This builder for chaining. */ public Builder clearSource() { - + source_ = getDefaultInstance().getSource(); onChanged(); return this; } /** + * + * *
        * Indicates a valid partial or full URL to an existing Persistent Disk
        * resource.
        * 
* * string source = 11; + * * @param value The bytes for source to set. * @return This builder for chaining. */ - public Builder setSourceBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + source_ = value; onChanged(); return this; @@ -5255,6 +5897,8 @@ public Builder setSourceBytes( private java.lang.Object type_ = ""; /** + * + * *
        * Indicates the type of the disk, either SCRATCH or PERSISTENT.
        * Valid values:
@@ -5263,13 +5907,13 @@ public Builder setSourceBytes(
        * 
* * string type = 12; + * * @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; @@ -5278,6 +5922,8 @@ public java.lang.String getType() { } } /** + * + * *
        * Indicates the type of the disk, either SCRATCH or PERSISTENT.
        * Valid values:
@@ -5286,15 +5932,14 @@ public java.lang.String getType() {
        * 
* * string type = 12; + * * @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 { @@ -5302,6 +5947,8 @@ public java.lang.String getType() { } } /** + * + * *
        * Indicates the type of the disk, either SCRATCH or PERSISTENT.
        * Valid values:
@@ -5310,20 +5957,22 @@ public java.lang.String getType() {
        * 
* * string type = 12; + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - java.lang.String value) { + public Builder setType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + type_ = value; onChanged(); return this; } /** + * + * *
        * Indicates the type of the disk, either SCRATCH or PERSISTENT.
        * Valid values:
@@ -5332,15 +5981,18 @@ public Builder setType(
        * 
* * string type = 12; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** + * + * *
        * Indicates the type of the disk, either SCRATCH or PERSISTENT.
        * Valid values:
@@ -5349,20 +6001,21 @@ public Builder clearType() {
        * 
* * string type = 12; + * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -5375,12 +6028,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.Instance.Disk) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.Instance.Disk) private static final com.google.cloud.notebooks.v1.Instance.Disk DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.Instance.Disk(); } @@ -5389,27 +6042,28 @@ public static com.google.cloud.notebooks.v1.Instance.Disk getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Disk parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Disk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -5424,14 +6078,16 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.Instance.Disk getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface ShieldedInstanceConfigOrBuilder extends + public interface ShieldedInstanceConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Defines whether the instance has Secure Boot enabled.
      * Secure Boot helps ensure that the system only runs authentic software by
@@ -5440,21 +6096,27 @@ public interface ShieldedInstanceConfigOrBuilder extends
      * 
* * bool enable_secure_boot = 1; + * * @return The enableSecureBoot. */ boolean getEnableSecureBoot(); /** + * + * *
      * Defines whether the instance has the vTPM enabled. Enabled by default.
      * 
* * bool enable_vtpm = 2; + * * @return The enableVtpm. */ boolean getEnableVtpm(); /** + * + * *
      * Defines whether the instance has integrity monitoring enabled.
      * Enables monitoring and attestation of the boot integrity of the instance.
@@ -5464,11 +6126,14 @@ public interface ShieldedInstanceConfigOrBuilder extends
      * 
* * bool enable_integrity_monitoring = 3; + * * @return The enableIntegrityMonitoring. */ boolean getEnableIntegrityMonitoring(); } /** + * + * *
    * A set of Shielded Instance options.
    * Check [Images using supported Shielded VM features]
@@ -5477,46 +6142,49 @@ public interface ShieldedInstanceConfigOrBuilder extends
    *
    * Protobuf type {@code google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig}
    */
-  public static final class ShieldedInstanceConfig extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class ShieldedInstanceConfig extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig)
       ShieldedInstanceConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use ShieldedInstanceConfig.newBuilder() to construct.
     private ShieldedInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private ShieldedInstanceConfig() {
-    }
+
+    private ShieldedInstanceConfig() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new ShieldedInstanceConfig();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_Instance_ShieldedInstanceConfig_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.notebooks.v1.InstanceProto
+          .internal_static_google_cloud_notebooks_v1_Instance_ShieldedInstanceConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_Instance_ShieldedInstanceConfig_fieldAccessorTable
+      return com.google.cloud.notebooks.v1.InstanceProto
+          .internal_static_google_cloud_notebooks_v1_Instance_ShieldedInstanceConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.class, com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.Builder.class);
+              com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.class,
+              com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.Builder.class);
     }
 
     public static final int ENABLE_SECURE_BOOT_FIELD_NUMBER = 1;
     private boolean enableSecureBoot_;
     /**
+     *
+     *
      * 
      * Defines whether the instance has Secure Boot enabled.
      * Secure Boot helps ensure that the system only runs authentic software by
@@ -5525,6 +6193,7 @@ protected java.lang.Object newInstance(
      * 
* * bool enable_secure_boot = 1; + * * @return The enableSecureBoot. */ @java.lang.Override @@ -5535,11 +6204,14 @@ public boolean getEnableSecureBoot() { public static final int ENABLE_VTPM_FIELD_NUMBER = 2; private boolean enableVtpm_; /** - *
+     *
+     *
+     * 
      * Defines whether the instance has the vTPM enabled. Enabled by default.
      * 
* * bool enable_vtpm = 2; + * * @return The enableVtpm. */ @java.lang.Override @@ -5550,6 +6222,8 @@ public boolean getEnableVtpm() { public static final int ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER = 3; private boolean enableIntegrityMonitoring_; /** + * + * *
      * Defines whether the instance has integrity monitoring enabled.
      * Enables monitoring and attestation of the boot integrity of the instance.
@@ -5559,6 +6233,7 @@ public boolean getEnableVtpm() {
      * 
* * bool enable_integrity_monitoring = 3; + * * @return The enableIntegrityMonitoring. */ @java.lang.Override @@ -5567,6 +6242,7 @@ public boolean getEnableIntegrityMonitoring() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -5578,8 +6254,7 @@ 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 (enableSecureBoot_ != false) { output.writeBool(1, enableSecureBoot_); } @@ -5599,16 +6274,14 @@ public int getSerializedSize() { size = 0; if (enableSecureBoot_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enableSecureBoot_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableSecureBoot_); } if (enableVtpm_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, enableVtpm_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableVtpm_); } if (enableIntegrityMonitoring_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, enableIntegrityMonitoring_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableIntegrityMonitoring_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -5618,19 +6291,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.cloud.notebooks.v1.Instance.ShieldedInstanceConfig)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig other = (com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig) obj; + com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig other = + (com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig) obj; - if (getEnableSecureBoot() - != other.getEnableSecureBoot()) return false; - if (getEnableVtpm() - != other.getEnableVtpm()) return false; - if (getEnableIntegrityMonitoring() - != other.getEnableIntegrityMonitoring()) return false; + if (getEnableSecureBoot() != other.getEnableSecureBoot()) return false; + if (getEnableVtpm() != other.getEnableVtpm()) return false; + if (getEnableIntegrityMonitoring() != other.getEnableIntegrityMonitoring()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5643,101 +6314,105 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_SECURE_BOOT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableSecureBoot()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSecureBoot()); hash = (37 * hash) + ENABLE_VTPM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableVtpm()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableVtpm()); hash = (37 * hash) + ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableIntegrityMonitoring()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableIntegrityMonitoring()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig 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.cloud.notebooks.v1.Instance.ShieldedInstanceConfig 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.cloud.notebooks.v1.Instance.ShieldedInstanceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig 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.cloud.notebooks.v1.Instance.ShieldedInstanceConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig 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.cloud.notebooks.v1.Instance.ShieldedInstanceConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig 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.cloud.notebooks.v1.Instance.ShieldedInstanceConfig 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.cloud.notebooks.v1.Instance.ShieldedInstanceConfig 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.cloud.notebooks.v1.Instance.ShieldedInstanceConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig 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 @@ -5747,6 +6422,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A set of Shielded Instance options.
      * Check [Images using supported Shielded VM features]
@@ -5755,33 +6432,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig)
         com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfigOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_Instance_ShieldedInstanceConfig_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.notebooks.v1.InstanceProto
+            .internal_static_google_cloud_notebooks_v1_Instance_ShieldedInstanceConfig_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_Instance_ShieldedInstanceConfig_fieldAccessorTable
+        return com.google.cloud.notebooks.v1.InstanceProto
+            .internal_static_google_cloud_notebooks_v1_Instance_ShieldedInstanceConfig_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.class, com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.Builder.class);
+                com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.class,
+                com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.Builder.class);
       }
 
       // Construct using com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -5795,13 +6472,14 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_Instance_ShieldedInstanceConfig_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.notebooks.v1.InstanceProto
+            .internal_static_google_cloud_notebooks_v1_Instance_ShieldedInstanceConfig_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig getDefaultInstanceForType() {
+      public com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig
+          getDefaultInstanceForType() {
         return com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.getDefaultInstance();
       }
 
@@ -5816,7 +6494,8 @@ public com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig build() {
 
       @java.lang.Override
       public com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig buildPartial() {
-        com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig result = new com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig(this);
+        com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig result =
+            new com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig(this);
         result.enableSecureBoot_ = enableSecureBoot_;
         result.enableVtpm_ = enableVtpm_;
         result.enableIntegrityMonitoring_ = enableIntegrityMonitoring_;
@@ -5828,46 +6507,52 @@ public com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig buildPartia
       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.cloud.notebooks.v1.Instance.ShieldedInstanceConfig) {
-          return mergeFrom((com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig)other);
+          return mergeFrom((com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig other) {
-        if (other == com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig other) {
+        if (other
+            == com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.getDefaultInstance())
+          return this;
         if (other.getEnableSecureBoot() != false) {
           setEnableSecureBoot(other.getEnableSecureBoot());
         }
@@ -5903,27 +6588,31 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 8: {
-                enableSecureBoot_ = input.readBool();
+              case 8:
+                {
+                  enableSecureBoot_ = input.readBool();
 
-                break;
-              } // case 8
-              case 16: {
-                enableVtpm_ = input.readBool();
+                  break;
+                } // case 8
+              case 16:
+                {
+                  enableVtpm_ = input.readBool();
 
-                break;
-              } // case 16
-              case 24: {
-                enableIntegrityMonitoring_ = input.readBool();
+                  break;
+                } // case 16
+              case 24:
+                {
+                  enableIntegrityMonitoring_ = input.readBool();
 
-                break;
-              } // case 24
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+                  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) {
@@ -5934,8 +6623,10 @@ public Builder mergeFrom(
         return this;
       }
 
-      private boolean enableSecureBoot_ ;
+      private boolean enableSecureBoot_;
       /**
+       *
+       *
        * 
        * Defines whether the instance has Secure Boot enabled.
        * Secure Boot helps ensure that the system only runs authentic software by
@@ -5944,6 +6635,7 @@ public Builder mergeFrom(
        * 
* * bool enable_secure_boot = 1; + * * @return The enableSecureBoot. */ @java.lang.Override @@ -5951,6 +6643,8 @@ public boolean getEnableSecureBoot() { return enableSecureBoot_; } /** + * + * *
        * Defines whether the instance has Secure Boot enabled.
        * Secure Boot helps ensure that the system only runs authentic software by
@@ -5959,16 +6653,19 @@ public boolean getEnableSecureBoot() {
        * 
* * bool enable_secure_boot = 1; + * * @param value The enableSecureBoot to set. * @return This builder for chaining. */ public Builder setEnableSecureBoot(boolean value) { - + enableSecureBoot_ = value; onChanged(); return this; } /** + * + * *
        * Defines whether the instance has Secure Boot enabled.
        * Secure Boot helps ensure that the system only runs authentic software by
@@ -5977,22 +6674,26 @@ public Builder setEnableSecureBoot(boolean value) {
        * 
* * bool enable_secure_boot = 1; + * * @return This builder for chaining. */ public Builder clearEnableSecureBoot() { - + enableSecureBoot_ = false; onChanged(); return this; } - private boolean enableVtpm_ ; + private boolean enableVtpm_; /** + * + * *
        * Defines whether the instance has the vTPM enabled. Enabled by default.
        * 
* * bool enable_vtpm = 2; + * * @return The enableVtpm. */ @java.lang.Override @@ -6000,37 +6701,45 @@ public boolean getEnableVtpm() { return enableVtpm_; } /** + * + * *
        * Defines whether the instance has the vTPM enabled. Enabled by default.
        * 
* * bool enable_vtpm = 2; + * * @param value The enableVtpm to set. * @return This builder for chaining. */ public Builder setEnableVtpm(boolean value) { - + enableVtpm_ = value; onChanged(); return this; } /** + * + * *
        * Defines whether the instance has the vTPM enabled. Enabled by default.
        * 
* * bool enable_vtpm = 2; + * * @return This builder for chaining. */ public Builder clearEnableVtpm() { - + enableVtpm_ = false; onChanged(); return this; } - private boolean enableIntegrityMonitoring_ ; + private boolean enableIntegrityMonitoring_; /** + * + * *
        * Defines whether the instance has integrity monitoring enabled.
        * Enables monitoring and attestation of the boot integrity of the instance.
@@ -6040,6 +6749,7 @@ public Builder clearEnableVtpm() {
        * 
* * bool enable_integrity_monitoring = 3; + * * @return The enableIntegrityMonitoring. */ @java.lang.Override @@ -6047,6 +6757,8 @@ public boolean getEnableIntegrityMonitoring() { return enableIntegrityMonitoring_; } /** + * + * *
        * Defines whether the instance has integrity monitoring enabled.
        * Enables monitoring and attestation of the boot integrity of the instance.
@@ -6056,16 +6768,19 @@ public boolean getEnableIntegrityMonitoring() {
        * 
* * bool enable_integrity_monitoring = 3; + * * @param value The enableIntegrityMonitoring to set. * @return This builder for chaining. */ public Builder setEnableIntegrityMonitoring(boolean value) { - + enableIntegrityMonitoring_ = value; onChanged(); return this; } /** + * + * *
        * Defines whether the instance has integrity monitoring enabled.
        * Enables monitoring and attestation of the boot integrity of the instance.
@@ -6075,14 +6790,16 @@ public Builder setEnableIntegrityMonitoring(boolean value) {
        * 
* * bool enable_integrity_monitoring = 3; + * * @return This builder for chaining. */ public Builder clearEnableIntegrityMonitoring() { - + enableIntegrityMonitoring_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6095,41 +6812,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig) - private static final com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig DEFAULT_INSTANCE; + private static final com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig(); } - public static com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig getDefaultInstance() { + public static com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ShieldedInstanceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShieldedInstanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -6141,154 +6861,194 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig getDefaultInstanceForType() { + public com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface UpgradeHistoryEntryOrBuilder extends + public interface UpgradeHistoryEntryOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The snapshot of the boot disk of this notebook instance before upgrade.
      * 
* * string snapshot = 1; + * * @return The snapshot. */ java.lang.String getSnapshot(); /** + * + * *
      * The snapshot of the boot disk of this notebook instance before upgrade.
      * 
* * string snapshot = 1; + * * @return The bytes for snapshot. */ - com.google.protobuf.ByteString - getSnapshotBytes(); + com.google.protobuf.ByteString getSnapshotBytes(); /** + * + * *
      * The VM image before this instance upgrade.
      * 
* * string vm_image = 2; + * * @return The vmImage. */ java.lang.String getVmImage(); /** + * + * *
      * The VM image before this instance upgrade.
      * 
* * string vm_image = 2; + * * @return The bytes for vmImage. */ - com.google.protobuf.ByteString - getVmImageBytes(); + com.google.protobuf.ByteString getVmImageBytes(); /** + * + * *
      * The container image before this instance upgrade.
      * 
* * string container_image = 3; + * * @return The containerImage. */ java.lang.String getContainerImage(); /** + * + * *
      * The container image before this instance upgrade.
      * 
* * string container_image = 3; + * * @return The bytes for containerImage. */ - com.google.protobuf.ByteString - getContainerImageBytes(); + com.google.protobuf.ByteString getContainerImageBytes(); /** + * + * *
      * The framework of this notebook instance.
      * 
* * string framework = 4; + * * @return The framework. */ java.lang.String getFramework(); /** + * + * *
      * The framework of this notebook instance.
      * 
* * string framework = 4; + * * @return The bytes for framework. */ - com.google.protobuf.ByteString - getFrameworkBytes(); + com.google.protobuf.ByteString getFrameworkBytes(); /** + * + * *
      * The version of the notebook instance before this upgrade.
      * 
* * string version = 5; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
      * The version of the notebook instance before this upgrade.
      * 
* * string version = 5; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); /** + * + * *
      * The state of this instance upgrade history entry.
      * 
* * .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State state = 6; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
      * The state of this instance upgrade history entry.
      * 
* * .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State state = 6; + * * @return The state. */ com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State getState(); /** + * + * *
      * The time that this instance upgrade history entry is created.
      * 
* * .google.protobuf.Timestamp create_time = 7; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
      * The time that this instance upgrade history entry is created.
      * 
* * .google.protobuf.Timestamp create_time = 7; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
      * The time that this instance upgrade history entry is created.
      * 
@@ -6298,84 +7058,105 @@ public interface UpgradeHistoryEntryOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
      * Target VM Image. Format: ainotebooks-vm/project/image-name/name.
      * 
* * string target_image = 8 [deprecated = true]; - * @deprecated google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.target_image is deprecated. - * See google/cloud/notebooks/v1/instance.proto;l=351 + * + * @deprecated google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.target_image is + * deprecated. See google/cloud/notebooks/v1/instance.proto;l=351 * @return The targetImage. */ - @java.lang.Deprecated java.lang.String getTargetImage(); + @java.lang.Deprecated + java.lang.String getTargetImage(); /** + * + * *
      * Target VM Image. Format: ainotebooks-vm/project/image-name/name.
      * 
* * string target_image = 8 [deprecated = true]; - * @deprecated google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.target_image is deprecated. - * See google/cloud/notebooks/v1/instance.proto;l=351 + * + * @deprecated google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.target_image is + * deprecated. See google/cloud/notebooks/v1/instance.proto;l=351 * @return The bytes for targetImage. */ - @java.lang.Deprecated com.google.protobuf.ByteString - getTargetImageBytes(); + @java.lang.Deprecated + com.google.protobuf.ByteString getTargetImageBytes(); /** + * + * *
      * Action. Rolloback or Upgrade.
      * 
* * .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action action = 9; + * * @return The enum numeric value on the wire for action. */ int getActionValue(); /** + * + * *
      * Action. Rolloback or Upgrade.
      * 
* * .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action action = 9; + * * @return The action. */ com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action getAction(); /** + * + * *
      * Target VM Version, like m63.
      * 
* * string target_version = 10; + * * @return The targetVersion. */ java.lang.String getTargetVersion(); /** + * + * *
      * Target VM Version, like m63.
      * 
* * string target_version = 10; + * * @return The bytes for targetVersion. */ - com.google.protobuf.ByteString - getTargetVersionBytes(); + com.google.protobuf.ByteString getTargetVersionBytes(); } /** + * + * *
    * The entry of VM image upgrade history.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry} */ - public static final class UpgradeHistoryEntry extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class UpgradeHistoryEntry extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry) UpgradeHistoryEntryOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpgradeHistoryEntry.newBuilder() to construct. private UpgradeHistoryEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpgradeHistoryEntry() { snapshot_ = ""; vmImage_ = ""; @@ -6390,39 +7171,43 @@ private UpgradeHistoryEntry() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpgradeHistoryEntry(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_Instance_UpgradeHistoryEntry_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.InstanceProto + .internal_static_google_cloud_notebooks_v1_Instance_UpgradeHistoryEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_Instance_UpgradeHistoryEntry_fieldAccessorTable + return com.google.cloud.notebooks.v1.InstanceProto + .internal_static_google_cloud_notebooks_v1_Instance_UpgradeHistoryEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.class, com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Builder.class); + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.class, + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Builder.class); } /** + * + * *
      * The definition of the states of this upgrade history entry.
      * 
* * Protobuf enum {@code google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * State is not specified.
        * 
@@ -6431,6 +7216,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
        * The instance upgrade is started.
        * 
@@ -6439,6 +7226,8 @@ public enum State */ STARTED(1), /** + * + * *
        * The instance upgrade is succeeded.
        * 
@@ -6447,6 +7236,8 @@ public enum State */ SUCCEEDED(2), /** + * + * *
        * The instance upgrade is failed.
        * 
@@ -6458,6 +7249,8 @@ public enum State ; /** + * + * *
        * State is not specified.
        * 
@@ -6466,6 +7259,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
        * The instance upgrade is started.
        * 
@@ -6474,6 +7269,8 @@ public enum State */ public static final int STARTED_VALUE = 1; /** + * + * *
        * The instance upgrade is succeeded.
        * 
@@ -6482,6 +7279,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 2; /** + * + * *
        * The instance upgrade is failed.
        * 
@@ -6490,7 +7289,6 @@ public enum State */ public static final int FAILED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -6515,50 +7313,53 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return STARTED; - case 2: return SUCCEEDED; - case 3: return FAILED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return STARTED; + case 2: + return SUCCEEDED; + case 3: + return FAILED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.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.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.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; @@ -6576,15 +7377,18 @@ private State(int value) { } /** + * + * *
      * The definition of operations of this upgrade history entry.
      * 
* * Protobuf enum {@code google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action} */ - public enum Action - implements com.google.protobuf.ProtocolMessageEnum { + public enum Action implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
        * Operation is not specified.
        * 
@@ -6593,6 +7397,8 @@ public enum Action */ ACTION_UNSPECIFIED(0), /** + * + * *
        * Upgrade.
        * 
@@ -6601,6 +7407,8 @@ public enum Action */ UPGRADE(1), /** + * + * *
        * Rollback.
        * 
@@ -6612,6 +7420,8 @@ public enum Action ; /** + * + * *
        * Operation is not specified.
        * 
@@ -6620,6 +7430,8 @@ public enum Action */ public static final int ACTION_UNSPECIFIED_VALUE = 0; /** + * + * *
        * Upgrade.
        * 
@@ -6628,6 +7440,8 @@ public enum Action */ public static final int UPGRADE_VALUE = 1; /** + * + * *
        * Rollback.
        * 
@@ -6636,7 +7450,6 @@ public enum Action */ public static final int ROLLBACK_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -6661,49 +7474,51 @@ public static Action valueOf(int value) { */ public static Action forNumber(int value) { switch (value) { - case 0: return ACTION_UNSPECIFIED; - case 1: return UPGRADE; - case 2: return ROLLBACK; - default: return null; + case 0: + return ACTION_UNSPECIFIED; + case 1: + return UPGRADE; + case 2: + return ROLLBACK; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Action> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Action findValueByNumber(int number) { - return Action.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Action findValueByNumber(int number) { + return Action.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.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.getDescriptor().getEnumTypes().get(1); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.getDescriptor() + .getEnumTypes() + .get(1); } private static final Action[] VALUES = values(); - public static Action valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Action 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; @@ -6723,11 +7538,14 @@ private Action(int value) { public static final int SNAPSHOT_FIELD_NUMBER = 1; private volatile java.lang.Object snapshot_; /** + * + * *
      * The snapshot of the boot disk of this notebook instance before upgrade.
      * 
* * string snapshot = 1; + * * @return The snapshot. */ @java.lang.Override @@ -6736,29 +7554,29 @@ public java.lang.String getSnapshot() { 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(); snapshot_ = s; return s; } } /** + * + * *
      * The snapshot of the boot disk of this notebook instance before upgrade.
      * 
* * string snapshot = 1; + * * @return The bytes for snapshot. */ @java.lang.Override - public com.google.protobuf.ByteString - getSnapshotBytes() { + public com.google.protobuf.ByteString getSnapshotBytes() { java.lang.Object ref = snapshot_; 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); snapshot_ = b; return b; } else { @@ -6769,11 +7587,14 @@ public java.lang.String getSnapshot() { public static final int VM_IMAGE_FIELD_NUMBER = 2; private volatile java.lang.Object vmImage_; /** + * + * *
      * The VM image before this instance upgrade.
      * 
* * string vm_image = 2; + * * @return The vmImage. */ @java.lang.Override @@ -6782,29 +7603,29 @@ public java.lang.String getVmImage() { 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(); vmImage_ = s; return s; } } /** + * + * *
      * The VM image before this instance upgrade.
      * 
* * string vm_image = 2; + * * @return The bytes for vmImage. */ @java.lang.Override - public com.google.protobuf.ByteString - getVmImageBytes() { + public com.google.protobuf.ByteString getVmImageBytes() { java.lang.Object ref = vmImage_; 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); vmImage_ = b; return b; } else { @@ -6815,11 +7636,14 @@ public java.lang.String getVmImage() { public static final int CONTAINER_IMAGE_FIELD_NUMBER = 3; private volatile java.lang.Object containerImage_; /** + * + * *
      * The container image before this instance upgrade.
      * 
* * string container_image = 3; + * * @return The containerImage. */ @java.lang.Override @@ -6828,29 +7652,29 @@ public java.lang.String getContainerImage() { 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(); containerImage_ = s; return s; } } /** + * + * *
      * The container image before this instance upgrade.
      * 
* * string container_image = 3; + * * @return The bytes for containerImage. */ @java.lang.Override - public com.google.protobuf.ByteString - getContainerImageBytes() { + public com.google.protobuf.ByteString getContainerImageBytes() { java.lang.Object ref = containerImage_; 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); containerImage_ = b; return b; } else { @@ -6861,11 +7685,14 @@ public java.lang.String getContainerImage() { public static final int FRAMEWORK_FIELD_NUMBER = 4; private volatile java.lang.Object framework_; /** + * + * *
      * The framework of this notebook instance.
      * 
* * string framework = 4; + * * @return The framework. */ @java.lang.Override @@ -6874,29 +7701,29 @@ public java.lang.String getFramework() { 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(); framework_ = s; return s; } } /** + * + * *
      * The framework of this notebook instance.
      * 
* * string framework = 4; + * * @return The bytes for framework. */ @java.lang.Override - public com.google.protobuf.ByteString - getFrameworkBytes() { + public com.google.protobuf.ByteString getFrameworkBytes() { java.lang.Object ref = framework_; 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); framework_ = b; return b; } else { @@ -6907,11 +7734,14 @@ public java.lang.String getFramework() { public static final int VERSION_FIELD_NUMBER = 5; private volatile java.lang.Object version_; /** + * + * *
      * The version of the notebook instance before this upgrade.
      * 
* * string version = 5; + * * @return The version. */ @java.lang.Override @@ -6920,29 +7750,29 @@ public java.lang.String getVersion() { 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(); version_ = s; return s; } } /** + * + * *
      * The version of the notebook instance before this upgrade.
      * 
* * string version = 5; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; 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); version_ = b; return b; } else { @@ -6953,38 +7783,52 @@ public java.lang.String getVersion() { public static final int STATE_FIELD_NUMBER = 6; private int state_; /** + * + * *
      * The state of this instance upgrade history entry.
      * 
* * .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State state = 6; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The state of this instance upgrade history entry.
      * 
* * .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State state = 6; + * * @return The state. */ - @java.lang.Override public com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State getState() { + @java.lang.Override + public com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State result = com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State.valueOf(state_); - return result == null ? com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State result = + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State.valueOf(state_); + return result == null + ? com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State.UNRECOGNIZED + : result; } public static final int CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp createTime_; /** + * + * *
      * The time that this instance upgrade history entry is created.
      * 
* * .google.protobuf.Timestamp create_time = 7; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -6992,11 +7836,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
      * The time that this instance upgrade history entry is created.
      * 
* * .google.protobuf.Timestamp create_time = 7; + * * @return The createTime. */ @java.lang.Override @@ -7004,6 +7851,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
      * The time that this instance upgrade history entry is created.
      * 
@@ -7018,46 +7867,51 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int TARGET_IMAGE_FIELD_NUMBER = 8; private volatile java.lang.Object targetImage_; /** + * + * *
      * Target VM Image. Format: ainotebooks-vm/project/image-name/name.
      * 
* * string target_image = 8 [deprecated = true]; - * @deprecated google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.target_image is deprecated. - * See google/cloud/notebooks/v1/instance.proto;l=351 + * + * @deprecated google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.target_image is + * deprecated. See google/cloud/notebooks/v1/instance.proto;l=351 * @return The targetImage. */ @java.lang.Override - @java.lang.Deprecated public java.lang.String getTargetImage() { + @java.lang.Deprecated + public java.lang.String getTargetImage() { java.lang.Object ref = targetImage_; 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(); targetImage_ = s; return s; } } /** + * + * *
      * Target VM Image. Format: ainotebooks-vm/project/image-name/name.
      * 
* * string target_image = 8 [deprecated = true]; - * @deprecated google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.target_image is deprecated. - * See google/cloud/notebooks/v1/instance.proto;l=351 + * + * @deprecated google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.target_image is + * deprecated. See google/cloud/notebooks/v1/instance.proto;l=351 * @return The bytes for targetImage. */ @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getTargetImageBytes() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getTargetImageBytes() { java.lang.Object ref = targetImage_; 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); targetImage_ = b; return b; } else { @@ -7068,38 +7922,52 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int ACTION_FIELD_NUMBER = 9; private int action_; /** + * + * *
      * Action. Rolloback or Upgrade.
      * 
* * .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action action = 9; + * * @return The enum numeric value on the wire for action. */ - @java.lang.Override public int getActionValue() { + @java.lang.Override + public int getActionValue() { return action_; } /** + * + * *
      * Action. Rolloback or Upgrade.
      * 
* * .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action action = 9; + * * @return The action. */ - @java.lang.Override public com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action getAction() { + @java.lang.Override + public com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action getAction() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action result = com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action.valueOf(action_); - return result == null ? com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action result = + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action.valueOf(action_); + return result == null + ? com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action.UNRECOGNIZED + : result; } public static final int TARGET_VERSION_FIELD_NUMBER = 10; private volatile java.lang.Object targetVersion_; /** + * + * *
      * Target VM Version, like m63.
      * 
* * string target_version = 10; + * * @return The targetVersion. */ @java.lang.Override @@ -7108,29 +7976,29 @@ public java.lang.String getTargetVersion() { 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(); targetVersion_ = s; return s; } } /** + * + * *
      * Target VM Version, like m63.
      * 
* * string target_version = 10; + * * @return The bytes for targetVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetVersionBytes() { + public com.google.protobuf.ByteString getTargetVersionBytes() { java.lang.Object ref = targetVersion_; 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); targetVersion_ = b; return b; } else { @@ -7139,6 +8007,7 @@ public java.lang.String getTargetVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -7150,8 +8019,7 @@ 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(snapshot_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshot_); } @@ -7167,7 +8035,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, version_); } - if (state_ != com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(6, state_); } if (createTime_ != null) { @@ -7176,7 +8046,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetImage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, targetImage_); } - if (action_ != com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action.ACTION_UNSPECIFIED.getNumber()) { + if (action_ + != com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action.ACTION_UNSPECIFIED + .getNumber()) { output.writeEnum(9, action_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersion_)) { @@ -7206,20 +8078,21 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, version_); } - if (state_ != com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, state_); + if (state_ + != com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetImage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, targetImage_); } - if (action_ != com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action.ACTION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, action_); + if (action_ + != com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action.ACTION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, action_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, targetVersion_); @@ -7232,34 +8105,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.cloud.notebooks.v1.Instance.UpgradeHistoryEntry)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry other = (com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry) obj; - - if (!getSnapshot() - .equals(other.getSnapshot())) return false; - if (!getVmImage() - .equals(other.getVmImage())) return false; - if (!getContainerImage() - .equals(other.getContainerImage())) return false; - if (!getFramework() - .equals(other.getFramework())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry other = + (com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry) obj; + + if (!getSnapshot().equals(other.getSnapshot())) return false; + if (!getVmImage().equals(other.getVmImage())) return false; + if (!getContainerImage().equals(other.getContainerImage())) return false; + if (!getFramework().equals(other.getFramework())) return false; + if (!getVersion().equals(other.getVersion())) 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 (!getTargetImage() - .equals(other.getTargetImage())) return false; + if (!getTargetImage().equals(other.getTargetImage())) return false; if (action_ != other.action_) return false; - if (!getTargetVersion() - .equals(other.getTargetVersion())) return false; + if (!getTargetVersion().equals(other.getTargetVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -7299,87 +8165,94 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry 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.cloud.notebooks.v1.Instance.UpgradeHistoryEntry 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.cloud.notebooks.v1.Instance.UpgradeHistoryEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry 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.cloud.notebooks.v1.Instance.UpgradeHistoryEntry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry 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.cloud.notebooks.v1.Instance.UpgradeHistoryEntry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry 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.cloud.notebooks.v1.Instance.UpgradeHistoryEntry 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.cloud.notebooks.v1.Instance.UpgradeHistoryEntry 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.cloud.notebooks.v1.Instance.UpgradeHistoryEntry prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry 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 @@ -7389,39 +8262,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * The entry of VM image upgrade history.
      * 
* * Protobuf type {@code google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry) com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_Instance_UpgradeHistoryEntry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.InstanceProto + .internal_static_google_cloud_notebooks_v1_Instance_UpgradeHistoryEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_Instance_UpgradeHistoryEntry_fieldAccessorTable + return com.google.cloud.notebooks.v1.InstanceProto + .internal_static_google_cloud_notebooks_v1_Instance_UpgradeHistoryEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.class, com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Builder.class); + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.class, + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Builder.class); } // Construct using com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -7453,13 +8328,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_Instance_UpgradeHistoryEntry_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.InstanceProto + .internal_static_google_cloud_notebooks_v1_Instance_UpgradeHistoryEntry_descriptor; } @java.lang.Override - public com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry getDefaultInstanceForType() { + public com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry + getDefaultInstanceForType() { return com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.getDefaultInstance(); } @@ -7474,7 +8350,8 @@ public com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry build() { @java.lang.Override public com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry buildPartial() { - com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry result = new com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry(this); + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry result = + new com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry(this); result.snapshot_ = snapshot_; result.vmImage_ = vmImage_; result.containerImage_ = containerImage_; @@ -7497,38 +8374,41 @@ public com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry buildPartial() 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.cloud.notebooks.v1.Instance.UpgradeHistoryEntry) { - return mergeFrom((com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry)other); + return mergeFrom((com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry) other); } else { super.mergeFrom(other); return this; @@ -7536,7 +8416,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry other) { - if (other == com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.getDefaultInstance()) return this; + if (other + == com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.getDefaultInstance()) + return this; if (!other.getSnapshot().isEmpty()) { snapshot_ = other.snapshot_; onChanged(); @@ -7600,64 +8482,73 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - snapshot_ = input.readStringRequireUtf8(); + case 10: + { + snapshot_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - vmImage_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + vmImage_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - containerImage_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: + { + containerImage_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: { - framework_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: + { + framework_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: { - version_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: + { + version_ = input.readStringRequireUtf8(); - break; - } // case 42 - case 48: { - state_ = input.readEnum(); + break; + } // case 42 + case 48: + { + state_ = input.readEnum(); - break; - } // case 48 - case 58: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 48 + case 58: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 58 - case 66: { - targetImage_ = input.readStringRequireUtf8(); + break; + } // case 58 + case 66: + { + targetImage_ = input.readStringRequireUtf8(); - break; - } // case 66 - case 72: { - action_ = input.readEnum(); + break; + } // case 66 + case 72: + { + action_ = input.readEnum(); - break; - } // case 72 - case 82: { - targetVersion_ = input.readStringRequireUtf8(); + break; + } // case 72 + case 82: + { + targetVersion_ = input.readStringRequireUtf8(); - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -7670,18 +8561,20 @@ public Builder mergeFrom( private java.lang.Object snapshot_ = ""; /** + * + * *
        * The snapshot of the boot disk of this notebook instance before upgrade.
        * 
* * string snapshot = 1; + * * @return The snapshot. */ public java.lang.String getSnapshot() { java.lang.Object ref = snapshot_; 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(); snapshot_ = s; return s; @@ -7690,20 +8583,21 @@ public java.lang.String getSnapshot() { } } /** + * + * *
        * The snapshot of the boot disk of this notebook instance before upgrade.
        * 
* * string snapshot = 1; + * * @return The bytes for snapshot. */ - public com.google.protobuf.ByteString - getSnapshotBytes() { + public com.google.protobuf.ByteString getSnapshotBytes() { java.lang.Object ref = snapshot_; 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); snapshot_ = b; return b; } else { @@ -7711,54 +8605,61 @@ public java.lang.String getSnapshot() { } } /** + * + * *
        * The snapshot of the boot disk of this notebook instance before upgrade.
        * 
* * string snapshot = 1; + * * @param value The snapshot to set. * @return This builder for chaining. */ - public Builder setSnapshot( - java.lang.String value) { + public Builder setSnapshot(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + snapshot_ = value; onChanged(); return this; } /** + * + * *
        * The snapshot of the boot disk of this notebook instance before upgrade.
        * 
* * string snapshot = 1; + * * @return This builder for chaining. */ public Builder clearSnapshot() { - + snapshot_ = getDefaultInstance().getSnapshot(); onChanged(); return this; } /** + * + * *
        * The snapshot of the boot disk of this notebook instance before upgrade.
        * 
* * string snapshot = 1; + * * @param value The bytes for snapshot to set. * @return This builder for chaining. */ - public Builder setSnapshotBytes( - com.google.protobuf.ByteString value) { + public Builder setSnapshotBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + snapshot_ = value; onChanged(); return this; @@ -7766,18 +8667,20 @@ public Builder setSnapshotBytes( private java.lang.Object vmImage_ = ""; /** + * + * *
        * The VM image before this instance upgrade.
        * 
* * string vm_image = 2; + * * @return The vmImage. */ public java.lang.String getVmImage() { java.lang.Object ref = vmImage_; 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(); vmImage_ = s; return s; @@ -7786,20 +8689,21 @@ public java.lang.String getVmImage() { } } /** + * + * *
        * The VM image before this instance upgrade.
        * 
* * string vm_image = 2; + * * @return The bytes for vmImage. */ - public com.google.protobuf.ByteString - getVmImageBytes() { + public com.google.protobuf.ByteString getVmImageBytes() { java.lang.Object ref = vmImage_; 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); vmImage_ = b; return b; } else { @@ -7807,54 +8711,61 @@ public java.lang.String getVmImage() { } } /** + * + * *
        * The VM image before this instance upgrade.
        * 
* * string vm_image = 2; + * * @param value The vmImage to set. * @return This builder for chaining. */ - public Builder setVmImage( - java.lang.String value) { + public Builder setVmImage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vmImage_ = value; onChanged(); return this; } /** + * + * *
        * The VM image before this instance upgrade.
        * 
* * string vm_image = 2; + * * @return This builder for chaining. */ public Builder clearVmImage() { - + vmImage_ = getDefaultInstance().getVmImage(); onChanged(); return this; } /** + * + * *
        * The VM image before this instance upgrade.
        * 
* * string vm_image = 2; + * * @param value The bytes for vmImage to set. * @return This builder for chaining. */ - public Builder setVmImageBytes( - com.google.protobuf.ByteString value) { + public Builder setVmImageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vmImage_ = value; onChanged(); return this; @@ -7862,18 +8773,20 @@ public Builder setVmImageBytes( private java.lang.Object containerImage_ = ""; /** + * + * *
        * The container image before this instance upgrade.
        * 
* * string container_image = 3; + * * @return The containerImage. */ public java.lang.String getContainerImage() { java.lang.Object ref = containerImage_; 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(); containerImage_ = s; return s; @@ -7882,20 +8795,21 @@ public java.lang.String getContainerImage() { } } /** + * + * *
        * The container image before this instance upgrade.
        * 
* * string container_image = 3; + * * @return The bytes for containerImage. */ - public com.google.protobuf.ByteString - getContainerImageBytes() { + public com.google.protobuf.ByteString getContainerImageBytes() { java.lang.Object ref = containerImage_; 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); containerImage_ = b; return b; } else { @@ -7903,54 +8817,61 @@ public java.lang.String getContainerImage() { } } /** + * + * *
        * The container image before this instance upgrade.
        * 
* * string container_image = 3; + * * @param value The containerImage to set. * @return This builder for chaining. */ - public Builder setContainerImage( - java.lang.String value) { + public Builder setContainerImage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + containerImage_ = value; onChanged(); return this; } /** + * + * *
        * The container image before this instance upgrade.
        * 
* * string container_image = 3; + * * @return This builder for chaining. */ public Builder clearContainerImage() { - + containerImage_ = getDefaultInstance().getContainerImage(); onChanged(); return this; } /** + * + * *
        * The container image before this instance upgrade.
        * 
* * string container_image = 3; + * * @param value The bytes for containerImage to set. * @return This builder for chaining. */ - public Builder setContainerImageBytes( - com.google.protobuf.ByteString value) { + public Builder setContainerImageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + containerImage_ = value; onChanged(); return this; @@ -7958,18 +8879,20 @@ public Builder setContainerImageBytes( private java.lang.Object framework_ = ""; /** + * + * *
        * The framework of this notebook instance.
        * 
* * string framework = 4; + * * @return The framework. */ public java.lang.String getFramework() { java.lang.Object ref = framework_; 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(); framework_ = s; return s; @@ -7978,20 +8901,21 @@ public java.lang.String getFramework() { } } /** + * + * *
        * The framework of this notebook instance.
        * 
* * string framework = 4; + * * @return The bytes for framework. */ - public com.google.protobuf.ByteString - getFrameworkBytes() { + public com.google.protobuf.ByteString getFrameworkBytes() { java.lang.Object ref = framework_; 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); framework_ = b; return b; } else { @@ -7999,54 +8923,61 @@ public java.lang.String getFramework() { } } /** + * + * *
        * The framework of this notebook instance.
        * 
* * string framework = 4; + * * @param value The framework to set. * @return This builder for chaining. */ - public Builder setFramework( - java.lang.String value) { + public Builder setFramework(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + framework_ = value; onChanged(); return this; } /** + * + * *
        * The framework of this notebook instance.
        * 
* * string framework = 4; + * * @return This builder for chaining. */ public Builder clearFramework() { - + framework_ = getDefaultInstance().getFramework(); onChanged(); return this; } /** + * + * *
        * The framework of this notebook instance.
        * 
* * string framework = 4; + * * @param value The bytes for framework to set. * @return This builder for chaining. */ - public Builder setFrameworkBytes( - com.google.protobuf.ByteString value) { + public Builder setFrameworkBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + framework_ = value; onChanged(); return this; @@ -8054,18 +8985,20 @@ public Builder setFrameworkBytes( private java.lang.Object version_ = ""; /** + * + * *
        * The version of the notebook instance before this upgrade.
        * 
* * string version = 5; + * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; 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(); version_ = s; return s; @@ -8074,20 +9007,21 @@ public java.lang.String getVersion() { } } /** + * + * *
        * The version of the notebook instance before this upgrade.
        * 
* * string version = 5; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; 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); version_ = b; return b; } else { @@ -8095,54 +9029,61 @@ public java.lang.String getVersion() { } } /** + * + * *
        * The version of the notebook instance before this upgrade.
        * 
* * string version = 5; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + version_ = value; onChanged(); return this; } /** + * + * *
        * The version of the notebook instance before this upgrade.
        * 
* * string version = 5; + * * @return This builder for chaining. */ public Builder clearVersion() { - + version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** + * + * *
        * The version of the notebook instance before this upgrade.
        * 
* * string version = 5; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + version_ = value; onChanged(); return this; @@ -8150,73 +9091,93 @@ public Builder setVersionBytes( private int state_ = 0; /** + * + * *
        * The state of this instance upgrade history entry.
        * 
* * .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State state = 6; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
        * The state of this instance upgrade history entry.
        * 
* * .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State state = 6; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
        * The state of this instance upgrade history entry.
        * 
* * .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State state = 6; + * * @return The state. */ @java.lang.Override public com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State result = com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State.valueOf(state_); - return result == null ? com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State result = + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State.valueOf(state_); + return result == null + ? com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State.UNRECOGNIZED + : result; } /** + * + * *
        * The state of this instance upgrade history entry.
        * 
* * .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State state = 6; + * * @param value The state to set. * @return This builder for chaining. */ - public Builder setState(com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State value) { + public Builder setState( + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * The state of this instance upgrade history entry.
        * 
* * .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.State state = 6; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -8224,34 +9185,47 @@ 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_; /** + * + * *
        * The time that this instance upgrade history entry is created.
        * 
* * .google.protobuf.Timestamp create_time = 7; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
        * The time that this instance upgrade history entry is created.
        * 
* * .google.protobuf.Timestamp create_time = 7; + * * @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(); } } /** + * + * *
        * The time that this instance upgrade history entry is created.
        * 
@@ -8272,14 +9246,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * The time that this instance upgrade history entry is created.
        * 
* * .google.protobuf.Timestamp create_time = 7; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -8290,6 +9265,8 @@ public Builder setCreateTime( return this; } /** + * + * *
        * The time that this instance upgrade history entry is created.
        * 
@@ -8300,7 +9277,9 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_) + .mergeFrom(value) + .buildPartial(); } else { createTime_ = value; } @@ -8312,6 +9291,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
        * The time that this instance upgrade history entry is created.
        * 
@@ -8330,6 +9311,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
        * The time that this instance upgrade history entry is created.
        * 
@@ -8337,11 +9320,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 7; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
        * The time that this instance upgrade history entry is created.
        * 
@@ -8352,11 +9337,14 @@ 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_; } } /** + * + * *
        * The time that this instance upgrade history entry is created.
        * 
@@ -8364,14 +9352,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 7; */ 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_; @@ -8379,20 +9370,23 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private java.lang.Object targetImage_ = ""; /** + * + * *
        * Target VM Image. Format: ainotebooks-vm/project/image-name/name.
        * 
* * string target_image = 8 [deprecated = true]; - * @deprecated google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.target_image is deprecated. - * See google/cloud/notebooks/v1/instance.proto;l=351 + * + * @deprecated google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.target_image is + * deprecated. See google/cloud/notebooks/v1/instance.proto;l=351 * @return The targetImage. */ - @java.lang.Deprecated public java.lang.String getTargetImage() { + @java.lang.Deprecated + public java.lang.String getTargetImage() { java.lang.Object ref = targetImage_; 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(); targetImage_ = s; return s; @@ -8401,22 +9395,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } } /** + * + * *
        * Target VM Image. Format: ainotebooks-vm/project/image-name/name.
        * 
* * string target_image = 8 [deprecated = true]; - * @deprecated google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.target_image is deprecated. - * See google/cloud/notebooks/v1/instance.proto;l=351 + * + * @deprecated google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.target_image is + * deprecated. See google/cloud/notebooks/v1/instance.proto;l=351 * @return The bytes for targetImage. */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getTargetImageBytes() { + @java.lang.Deprecated + public com.google.protobuf.ByteString getTargetImageBytes() { java.lang.Object ref = targetImage_; 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); targetImage_ = b; return b; } else { @@ -8424,60 +9420,70 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } } /** + * + * *
        * Target VM Image. Format: ainotebooks-vm/project/image-name/name.
        * 
* * string target_image = 8 [deprecated = true]; - * @deprecated google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.target_image is deprecated. - * See google/cloud/notebooks/v1/instance.proto;l=351 + * + * @deprecated google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.target_image is + * deprecated. See google/cloud/notebooks/v1/instance.proto;l=351 * @param value The targetImage to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setTargetImage( - java.lang.String value) { + @java.lang.Deprecated + public Builder setTargetImage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetImage_ = value; onChanged(); return this; } /** + * + * *
        * Target VM Image. Format: ainotebooks-vm/project/image-name/name.
        * 
* * string target_image = 8 [deprecated = true]; - * @deprecated google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.target_image is deprecated. - * See google/cloud/notebooks/v1/instance.proto;l=351 + * + * @deprecated google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.target_image is + * deprecated. See google/cloud/notebooks/v1/instance.proto;l=351 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearTargetImage() { - + @java.lang.Deprecated + public Builder clearTargetImage() { + targetImage_ = getDefaultInstance().getTargetImage(); onChanged(); return this; } /** + * + * *
        * Target VM Image. Format: ainotebooks-vm/project/image-name/name.
        * 
* * string target_image = 8 [deprecated = true]; - * @deprecated google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.target_image is deprecated. - * See google/cloud/notebooks/v1/instance.proto;l=351 + * + * @deprecated google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.target_image is + * deprecated. See google/cloud/notebooks/v1/instance.proto;l=351 * @param value The bytes for targetImage to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setTargetImageBytes( - com.google.protobuf.ByteString value) { + @java.lang.Deprecated + public Builder setTargetImageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetImage_ = value; onChanged(); return this; @@ -8485,73 +9491,93 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private int action_ = 0; /** + * + * *
        * Action. Rolloback or Upgrade.
        * 
* * .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action action = 9; + * * @return The enum numeric value on the wire for action. */ - @java.lang.Override public int getActionValue() { + @java.lang.Override + public int getActionValue() { return action_; } /** + * + * *
        * Action. Rolloback or Upgrade.
        * 
* * .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action action = 9; + * * @param value The enum numeric value on the wire for action to set. * @return This builder for chaining. */ public Builder setActionValue(int value) { - + action_ = value; onChanged(); return this; } /** + * + * *
        * Action. Rolloback or Upgrade.
        * 
* * .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action action = 9; + * * @return The action. */ @java.lang.Override public com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action getAction() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action result = com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action.valueOf(action_); - return result == null ? com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action result = + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action.valueOf(action_); + return result == null + ? com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action.UNRECOGNIZED + : result; } /** + * + * *
        * Action. Rolloback or Upgrade.
        * 
* * .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action action = 9; + * * @param value The action to set. * @return This builder for chaining. */ - public Builder setAction(com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action value) { + public Builder setAction( + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action value) { if (value == null) { throw new NullPointerException(); } - + action_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Action. Rolloback or Upgrade.
        * 
* * .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Action action = 9; + * * @return This builder for chaining. */ public Builder clearAction() { - + action_ = 0; onChanged(); return this; @@ -8559,18 +9585,20 @@ public Builder clearAction() { private java.lang.Object targetVersion_ = ""; /** + * + * *
        * Target VM Version, like m63.
        * 
* * string target_version = 10; + * * @return The targetVersion. */ public java.lang.String getTargetVersion() { java.lang.Object ref = targetVersion_; 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(); targetVersion_ = s; return s; @@ -8579,20 +9607,21 @@ public java.lang.String getTargetVersion() { } } /** + * + * *
        * Target VM Version, like m63.
        * 
* * string target_version = 10; + * * @return The bytes for targetVersion. */ - public com.google.protobuf.ByteString - getTargetVersionBytes() { + public com.google.protobuf.ByteString getTargetVersionBytes() { java.lang.Object ref = targetVersion_; 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); targetVersion_ = b; return b; } else { @@ -8600,58 +9629,66 @@ public java.lang.String getTargetVersion() { } } /** + * + * *
        * Target VM Version, like m63.
        * 
* * string target_version = 10; + * * @param value The targetVersion to set. * @return This builder for chaining. */ - public Builder setTargetVersion( - java.lang.String value) { + public Builder setTargetVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetVersion_ = value; onChanged(); return this; } /** + * + * *
        * Target VM Version, like m63.
        * 
* * string target_version = 10; + * * @return This builder for chaining. */ public Builder clearTargetVersion() { - + targetVersion_ = getDefaultInstance().getTargetVersion(); onChanged(); return this; } /** + * + * *
        * Target VM Version, like m63.
        * 
* * string target_version = 10; + * * @param value The bytes for targetVersion to set. * @return This builder for chaining. */ - public Builder setTargetVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetVersion_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -8664,12 +9701,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry) - private static final com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry DEFAULT_INSTANCE; + private static final com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry(); } @@ -8678,27 +9716,28 @@ public static com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpgradeHistoryEntry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpgradeHistoryEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -8713,18 +9752,20 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int environmentCase_ = 0; private java.lang.Object environment_; + public enum EnvironmentCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { VM_IMAGE(2), CONTAINER_IMAGE(3), ENVIRONMENT_NOT_SET(0); private final int value; + private EnvironmentCase(int value) { this.value = value; } @@ -8740,32 +9781,38 @@ public static EnvironmentCase valueOf(int value) { public static EnvironmentCase forNumber(int value) { switch (value) { - case 2: return VM_IMAGE; - case 3: return CONTAINER_IMAGE; - case 0: return ENVIRONMENT_NOT_SET; - default: return null; + case 2: + return VM_IMAGE; + case 3: + return CONTAINER_IMAGE; + case 0: + return ENVIRONMENT_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public EnvironmentCase - getEnvironmentCase() { - return EnvironmentCase.forNumber( - environmentCase_); + public EnvironmentCase getEnvironmentCase() { + return EnvironmentCase.forNumber(environmentCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The name of this notebook instance. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -8774,30 +9821,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; } } /** + * + * *
    * Output only. The name of this notebook instance. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -8807,11 +9854,14 @@ public java.lang.String getName() { public static final int VM_IMAGE_FIELD_NUMBER = 2; /** + * + * *
    * Use a Compute Engine VM image to start the notebook instance.
    * 
* * .google.cloud.notebooks.v1.VmImage vm_image = 2; + * * @return Whether the vmImage field is set. */ @java.lang.Override @@ -8819,21 +9869,26 @@ public boolean hasVmImage() { return environmentCase_ == 2; } /** + * + * *
    * Use a Compute Engine VM image to start the notebook instance.
    * 
* * .google.cloud.notebooks.v1.VmImage vm_image = 2; + * * @return The vmImage. */ @java.lang.Override public com.google.cloud.notebooks.v1.VmImage getVmImage() { if (environmentCase_ == 2) { - return (com.google.cloud.notebooks.v1.VmImage) environment_; + return (com.google.cloud.notebooks.v1.VmImage) environment_; } return com.google.cloud.notebooks.v1.VmImage.getDefaultInstance(); } /** + * + * *
    * Use a Compute Engine VM image to start the notebook instance.
    * 
@@ -8843,18 +9898,21 @@ public com.google.cloud.notebooks.v1.VmImage getVmImage() { @java.lang.Override public com.google.cloud.notebooks.v1.VmImageOrBuilder getVmImageOrBuilder() { if (environmentCase_ == 2) { - return (com.google.cloud.notebooks.v1.VmImage) environment_; + return (com.google.cloud.notebooks.v1.VmImage) environment_; } return com.google.cloud.notebooks.v1.VmImage.getDefaultInstance(); } public static final int CONTAINER_IMAGE_FIELD_NUMBER = 3; /** + * + * *
    * Use a container image to start the notebook instance.
    * 
* * .google.cloud.notebooks.v1.ContainerImage container_image = 3; + * * @return Whether the containerImage field is set. */ @java.lang.Override @@ -8862,21 +9920,26 @@ public boolean hasContainerImage() { return environmentCase_ == 3; } /** + * + * *
    * Use a container image to start the notebook instance.
    * 
* * .google.cloud.notebooks.v1.ContainerImage container_image = 3; + * * @return The containerImage. */ @java.lang.Override public com.google.cloud.notebooks.v1.ContainerImage getContainerImage() { if (environmentCase_ == 3) { - return (com.google.cloud.notebooks.v1.ContainerImage) environment_; + return (com.google.cloud.notebooks.v1.ContainerImage) environment_; } return com.google.cloud.notebooks.v1.ContainerImage.getDefaultInstance(); } /** + * + * *
    * Use a container image to start the notebook instance.
    * 
@@ -8886,7 +9949,7 @@ public com.google.cloud.notebooks.v1.ContainerImage getContainerImage() { @java.lang.Override public com.google.cloud.notebooks.v1.ContainerImageOrBuilder getContainerImageOrBuilder() { if (environmentCase_ == 3) { - return (com.google.cloud.notebooks.v1.ContainerImage) environment_; + return (com.google.cloud.notebooks.v1.ContainerImage) environment_; } return com.google.cloud.notebooks.v1.ContainerImage.getDefaultInstance(); } @@ -8894,6 +9957,8 @@ public com.google.cloud.notebooks.v1.ContainerImageOrBuilder getContainerImageOr public static final int POST_STARTUP_SCRIPT_FIELD_NUMBER = 4; private volatile java.lang.Object postStartupScript_; /** + * + * *
    * Path to a Bash script that automatically runs after a notebook instance
    * fully boots up. The path must be a URL or
@@ -8901,6 +9966,7 @@ public com.google.cloud.notebooks.v1.ContainerImageOrBuilder getContainerImageOr
    * 
* * string post_startup_script = 4; + * * @return The postStartupScript. */ @java.lang.Override @@ -8909,14 +9975,15 @@ public java.lang.String getPostStartupScript() { 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(); postStartupScript_ = s; return s; } } /** + * + * *
    * Path to a Bash script that automatically runs after a notebook instance
    * fully boots up. The path must be a URL or
@@ -8924,16 +9991,15 @@ public java.lang.String getPostStartupScript() {
    * 
* * string post_startup_script = 4; + * * @return The bytes for postStartupScript. */ @java.lang.Override - public com.google.protobuf.ByteString - getPostStartupScriptBytes() { + public com.google.protobuf.ByteString getPostStartupScriptBytes() { java.lang.Object ref = postStartupScript_; 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); postStartupScript_ = b; return b; } else { @@ -8944,11 +10010,14 @@ public java.lang.String getPostStartupScript() { public static final int PROXY_URI_FIELD_NUMBER = 5; private volatile java.lang.Object proxyUri_; /** + * + * *
    * Output only. The proxy endpoint that is used to access the Jupyter notebook.
    * 
* * string proxy_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The proxyUri. */ @java.lang.Override @@ -8957,29 +10026,29 @@ public java.lang.String getProxyUri() { 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(); proxyUri_ = s; return s; } } /** + * + * *
    * Output only. The proxy endpoint that is used to access the Jupyter notebook.
    * 
* * string proxy_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for proxyUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getProxyUriBytes() { + public com.google.protobuf.ByteString getProxyUriBytes() { java.lang.Object ref = proxyUri_; 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); proxyUri_ = b; return b; } else { @@ -8990,6 +10059,8 @@ public java.lang.String getProxyUri() { public static final int INSTANCE_OWNERS_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList instanceOwners_; /** + * + * *
    * Input only. The owner of this instance after creation. Format: `alias@example.com`
    * Currently supports one owner only. If not specified, all of the service
@@ -8998,13 +10069,15 @@ public java.lang.String getProxyUri() {
    * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return A list containing the instanceOwners. */ - public com.google.protobuf.ProtocolStringList - getInstanceOwnersList() { + public com.google.protobuf.ProtocolStringList getInstanceOwnersList() { return instanceOwners_; } /** + * + * *
    * Input only. The owner of this instance after creation. Format: `alias@example.com`
    * Currently supports one owner only. If not specified, all of the service
@@ -9013,12 +10086,15 @@ public java.lang.String getProxyUri() {
    * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The count of instanceOwners. */ public int getInstanceOwnersCount() { return instanceOwners_.size(); } /** + * + * *
    * Input only. The owner of this instance after creation. Format: `alias@example.com`
    * Currently supports one owner only. If not specified, all of the service
@@ -9027,6 +10103,7 @@ public int getInstanceOwnersCount() {
    * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param index The index of the element to return. * @return The instanceOwners at the given index. */ @@ -9034,6 +10111,8 @@ public java.lang.String getInstanceOwners(int index) { return instanceOwners_.get(index); } /** + * + * *
    * Input only. The owner of this instance after creation. Format: `alias@example.com`
    * Currently supports one owner only. If not specified, all of the service
@@ -9042,17 +10121,19 @@ public java.lang.String getInstanceOwners(int index) {
    * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the instanceOwners at the given index. */ - public com.google.protobuf.ByteString - getInstanceOwnersBytes(int index) { + public com.google.protobuf.ByteString getInstanceOwnersBytes(int index) { return instanceOwners_.getByteString(index); } public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 7; private volatile java.lang.Object serviceAccount_; /** + * + * *
    * The service account on this instance, giving access to other Google
    * Cloud services.
@@ -9064,6 +10145,7 @@ public java.lang.String getInstanceOwners(int index) {
    * 
* * string service_account = 7; + * * @return The serviceAccount. */ @java.lang.Override @@ -9072,14 +10154,15 @@ public java.lang.String getServiceAccount() { 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(); serviceAccount_ = s; return s; } } /** + * + * *
    * The service account on this instance, giving access to other Google
    * Cloud services.
@@ -9091,16 +10174,15 @@ public java.lang.String getServiceAccount() {
    * 
* * string service_account = 7; + * * @return The bytes for serviceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountBytes() { + public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; 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); serviceAccount_ = b; return b; } else { @@ -9111,6 +10193,8 @@ public java.lang.String getServiceAccount() { public static final int SERVICE_ACCOUNT_SCOPES_FIELD_NUMBER = 31; private com.google.protobuf.LazyStringList serviceAccountScopes_; /** + * + * *
    * Optional. The URIs of service account scopes to be included in
    * Compute Engine instances.
@@ -9123,14 +10207,17 @@ public java.lang.String getServiceAccount() {
    *    https://www.googleapis.com/auth/compute
    * 
* - * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the serviceAccountScopes. */ - public com.google.protobuf.ProtocolStringList - getServiceAccountScopesList() { + public com.google.protobuf.ProtocolStringList getServiceAccountScopesList() { return serviceAccountScopes_; } /** + * + * *
    * Optional. The URIs of service account scopes to be included in
    * Compute Engine instances.
@@ -9143,13 +10230,17 @@ public java.lang.String getServiceAccount() {
    *    https://www.googleapis.com/auth/compute
    * 
* - * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of serviceAccountScopes. */ public int getServiceAccountScopesCount() { return serviceAccountScopes_.size(); } /** + * + * *
    * Optional. The URIs of service account scopes to be included in
    * Compute Engine instances.
@@ -9162,7 +10253,9 @@ public int getServiceAccountScopesCount() {
    *    https://www.googleapis.com/auth/compute
    * 
* - * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The serviceAccountScopes at the given index. */ @@ -9170,6 +10263,8 @@ public java.lang.String getServiceAccountScopes(int index) { return serviceAccountScopes_.get(index); } /** + * + * *
    * Optional. The URIs of service account scopes to be included in
    * Compute Engine instances.
@@ -9182,24 +10277,28 @@ public java.lang.String getServiceAccountScopes(int index) {
    *    https://www.googleapis.com/auth/compute
    * 
* - * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the serviceAccountScopes at the given index. */ - public com.google.protobuf.ByteString - getServiceAccountScopesBytes(int index) { + public com.google.protobuf.ByteString getServiceAccountScopesBytes(int index) { return serviceAccountScopes_.getByteString(index); } public static final int MACHINE_TYPE_FIELD_NUMBER = 8; private volatile java.lang.Object machineType_; /** + * + * *
    * Required. The [Compute Engine machine type](/compute/docs/machine-types) of this
    * instance.
    * 
* * string machine_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The machineType. */ @java.lang.Override @@ -9208,30 +10307,30 @@ public java.lang.String getMachineType() { 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(); machineType_ = s; return s; } } /** + * + * *
    * Required. The [Compute Engine machine type](/compute/docs/machine-types) of this
    * instance.
    * 
* * string machine_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for machineType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMachineTypeBytes() { + public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; 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); machineType_ = b; return b; } else { @@ -9242,6 +10341,8 @@ public java.lang.String getMachineType() { public static final int ACCELERATOR_CONFIG_FIELD_NUMBER = 9; private com.google.cloud.notebooks.v1.Instance.AcceleratorConfig acceleratorConfig_; /** + * + * *
    * The hardware accelerator used on this instance. If you use
    * accelerators, make sure that your configuration has
@@ -9250,6 +10351,7 @@ public java.lang.String getMachineType() {
    * 
* * .google.cloud.notebooks.v1.Instance.AcceleratorConfig accelerator_config = 9; + * * @return Whether the acceleratorConfig field is set. */ @java.lang.Override @@ -9257,6 +10359,8 @@ public boolean hasAcceleratorConfig() { return acceleratorConfig_ != null; } /** + * + * *
    * The hardware accelerator used on this instance. If you use
    * accelerators, make sure that your configuration has
@@ -9265,13 +10369,18 @@ public boolean hasAcceleratorConfig() {
    * 
* * .google.cloud.notebooks.v1.Instance.AcceleratorConfig accelerator_config = 9; + * * @return The acceleratorConfig. */ @java.lang.Override public com.google.cloud.notebooks.v1.Instance.AcceleratorConfig getAcceleratorConfig() { - return acceleratorConfig_ == null ? com.google.cloud.notebooks.v1.Instance.AcceleratorConfig.getDefaultInstance() : acceleratorConfig_; + return acceleratorConfig_ == null + ? com.google.cloud.notebooks.v1.Instance.AcceleratorConfig.getDefaultInstance() + : acceleratorConfig_; } /** + * + * *
    * The hardware accelerator used on this instance. If you use
    * accelerators, make sure that your configuration has
@@ -9282,40 +10391,56 @@ public com.google.cloud.notebooks.v1.Instance.AcceleratorConfig getAcceleratorCo
    * .google.cloud.notebooks.v1.Instance.AcceleratorConfig accelerator_config = 9;
    */
   @java.lang.Override
-  public com.google.cloud.notebooks.v1.Instance.AcceleratorConfigOrBuilder getAcceleratorConfigOrBuilder() {
+  public com.google.cloud.notebooks.v1.Instance.AcceleratorConfigOrBuilder
+      getAcceleratorConfigOrBuilder() {
     return getAcceleratorConfig();
   }
 
   public static final int STATE_FIELD_NUMBER = 10;
   private int state_;
   /**
+   *
+   *
    * 
    * Output only. The state of this instance.
    * 
* - * .google.cloud.notebooks.v1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The state of this instance.
    * 
* - * .google.cloud.notebooks.v1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.notebooks.v1.Instance.State getState() { + @java.lang.Override + public com.google.cloud.notebooks.v1.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.Instance.State result = com.google.cloud.notebooks.v1.Instance.State.valueOf(state_); + com.google.cloud.notebooks.v1.Instance.State result = + com.google.cloud.notebooks.v1.Instance.State.valueOf(state_); return result == null ? com.google.cloud.notebooks.v1.Instance.State.UNRECOGNIZED : result; } public static final int INSTALL_GPU_DRIVER_FIELD_NUMBER = 11; private boolean installGpuDriver_; /** + * + * *
    * Whether the end user authorizes Google Cloud to install GPU driver
    * on this instance.
@@ -9324,6 +10449,7 @@ public com.google.cloud.notebooks.v1.Instance.AcceleratorConfigOrBuilder getAcce
    * 
* * bool install_gpu_driver = 11; + * * @return The installGpuDriver. */ @java.lang.Override @@ -9334,12 +10460,15 @@ public boolean getInstallGpuDriver() { public static final int CUSTOM_GPU_DRIVER_PATH_FIELD_NUMBER = 12; private volatile java.lang.Object customGpuDriverPath_; /** + * + * *
    * Specify a custom Cloud Storage path where the GPU driver is stored.
    * If not specified, we'll automatically choose from official GPU drivers.
    * 
* * string custom_gpu_driver_path = 12; + * * @return The customGpuDriverPath. */ @java.lang.Override @@ -9348,30 +10477,30 @@ public java.lang.String getCustomGpuDriverPath() { 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(); customGpuDriverPath_ = s; return s; } } /** + * + * *
    * Specify a custom Cloud Storage path where the GPU driver is stored.
    * If not specified, we'll automatically choose from official GPU drivers.
    * 
* * string custom_gpu_driver_path = 12; + * * @return The bytes for customGpuDriverPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getCustomGpuDriverPathBytes() { + public com.google.protobuf.ByteString getCustomGpuDriverPathBytes() { java.lang.Object ref = customGpuDriverPath_; 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); customGpuDriverPath_ = b; return b; } else { @@ -9382,35 +10511,50 @@ public java.lang.String getCustomGpuDriverPath() { public static final int BOOT_DISK_TYPE_FIELD_NUMBER = 13; private int bootDiskType_; /** + * + * *
    * Input only. The type of the boot disk attached to this instance, defaults to
    * standard persistent disk (`PD_STANDARD`).
    * 
* - * .google.cloud.notebooks.v1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The enum numeric value on the wire for bootDiskType. */ - @java.lang.Override public int getBootDiskTypeValue() { + @java.lang.Override + public int getBootDiskTypeValue() { return bootDiskType_; } /** + * + * *
    * Input only. The type of the boot disk attached to this instance, defaults to
    * standard persistent disk (`PD_STANDARD`).
    * 
* - * .google.cloud.notebooks.v1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bootDiskType. */ - @java.lang.Override public com.google.cloud.notebooks.v1.Instance.DiskType getBootDiskType() { + @java.lang.Override + public com.google.cloud.notebooks.v1.Instance.DiskType getBootDiskType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.Instance.DiskType result = com.google.cloud.notebooks.v1.Instance.DiskType.valueOf(bootDiskType_); + com.google.cloud.notebooks.v1.Instance.DiskType result = + com.google.cloud.notebooks.v1.Instance.DiskType.valueOf(bootDiskType_); return result == null ? com.google.cloud.notebooks.v1.Instance.DiskType.UNRECOGNIZED : result; } public static final int BOOT_DISK_SIZE_GB_FIELD_NUMBER = 14; private long bootDiskSizeGb_; /** + * + * *
    * Input only. The size of the boot disk in GB attached to this instance, up to a maximum
    * of 64000&nbsp;GB (64&nbsp;TB). The minimum recommended value is
@@ -9418,6 +10562,7 @@ public java.lang.String getCustomGpuDriverPath() {
    * 
* * int64 boot_disk_size_gb = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bootDiskSizeGb. */ @java.lang.Override @@ -9428,35 +10573,50 @@ public long getBootDiskSizeGb() { public static final int DATA_DISK_TYPE_FIELD_NUMBER = 25; private int dataDiskType_; /** + * + * *
    * Input only. The type of the data disk attached to this instance, defaults to
    * standard persistent disk (`PD_STANDARD`).
    * 
* - * .google.cloud.notebooks.v1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The enum numeric value on the wire for dataDiskType. */ - @java.lang.Override public int getDataDiskTypeValue() { + @java.lang.Override + public int getDataDiskTypeValue() { return dataDiskType_; } /** + * + * *
    * Input only. The type of the data disk attached to this instance, defaults to
    * standard persistent disk (`PD_STANDARD`).
    * 
* - * .google.cloud.notebooks.v1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The dataDiskType. */ - @java.lang.Override public com.google.cloud.notebooks.v1.Instance.DiskType getDataDiskType() { + @java.lang.Override + public com.google.cloud.notebooks.v1.Instance.DiskType getDataDiskType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.Instance.DiskType result = com.google.cloud.notebooks.v1.Instance.DiskType.valueOf(dataDiskType_); + com.google.cloud.notebooks.v1.Instance.DiskType result = + com.google.cloud.notebooks.v1.Instance.DiskType.valueOf(dataDiskType_); return result == null ? com.google.cloud.notebooks.v1.Instance.DiskType.UNRECOGNIZED : result; } public static final int DATA_DISK_SIZE_GB_FIELD_NUMBER = 26; private long dataDiskSizeGb_; /** + * + * *
    * Input only. The size of the data disk in GB attached to this instance, up to a maximum
    * of 64000&nbsp;GB (64&nbsp;TB). You can choose the size of the data disk
@@ -9465,6 +10625,7 @@ public long getBootDiskSizeGb() {
    * 
* * int64 data_disk_size_gb = 26 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The dataDiskSizeGb. */ @java.lang.Override @@ -9475,11 +10636,14 @@ public long getDataDiskSizeGb() { public static final int NO_REMOVE_DATA_DISK_FIELD_NUMBER = 27; private boolean noRemoveDataDisk_; /** + * + * *
    * Input only. If true, the data disk will not be auto deleted when deleting the instance.
    * 
* * bool no_remove_data_disk = 27 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The noRemoveDataDisk. */ @java.lang.Override @@ -9490,33 +10654,50 @@ public boolean getNoRemoveDataDisk() { public static final int DISK_ENCRYPTION_FIELD_NUMBER = 15; private int diskEncryption_; /** + * + * *
    * Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
    * 
* - * .google.cloud.notebooks.v1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The enum numeric value on the wire for diskEncryption. */ - @java.lang.Override public int getDiskEncryptionValue() { + @java.lang.Override + public int getDiskEncryptionValue() { return diskEncryption_; } /** + * + * *
    * Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
    * 
* - * .google.cloud.notebooks.v1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The diskEncryption. */ - @java.lang.Override public com.google.cloud.notebooks.v1.Instance.DiskEncryption getDiskEncryption() { + @java.lang.Override + public com.google.cloud.notebooks.v1.Instance.DiskEncryption getDiskEncryption() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.Instance.DiskEncryption result = com.google.cloud.notebooks.v1.Instance.DiskEncryption.valueOf(diskEncryption_); - return result == null ? com.google.cloud.notebooks.v1.Instance.DiskEncryption.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1.Instance.DiskEncryption result = + com.google.cloud.notebooks.v1.Instance.DiskEncryption.valueOf(diskEncryption_); + return result == null + ? com.google.cloud.notebooks.v1.Instance.DiskEncryption.UNRECOGNIZED + : result; } public static final int KMS_KEY_FIELD_NUMBER = 16; private volatile java.lang.Object kmsKey_; /** + * + * *
    * Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption
    * is CMEK.
@@ -9526,6 +10707,7 @@ public boolean getNoRemoveDataDisk() {
    * 
* * string kms_key = 16 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The kmsKey. */ @java.lang.Override @@ -9534,14 +10716,15 @@ public java.lang.String getKmsKey() { 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(); kmsKey_ = s; return s; } } /** + * + * *
    * Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption
    * is CMEK.
@@ -9551,16 +10734,15 @@ public java.lang.String getKmsKey() {
    * 
* * string kms_key = 16 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for kmsKey. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyBytes() { + public com.google.protobuf.ByteString getKmsKeyBytes() { java.lang.Object ref = kmsKey_; 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); kmsKey_ = b; return b; } else { @@ -9571,73 +10753,97 @@ public java.lang.String getKmsKey() { public static final int DISKS_FIELD_NUMBER = 28; private java.util.List disks_; /** + * + * *
    * Output only. Attached disks to notebook instance.
    * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getDisksList() { return disks_; } /** + * + * *
    * Output only. Attached disks to notebook instance.
    * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getDisksOrBuilderList() { return disks_; } /** + * + * *
    * Output only. Attached disks to notebook instance.
    * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getDisksCount() { return disks_.size(); } /** + * + * *
    * Output only. Attached disks to notebook instance.
    * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.notebooks.v1.Instance.Disk getDisks(int index) { return disks_.get(index); } /** + * + * *
    * Output only. Attached disks to notebook instance.
    * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.notebooks.v1.Instance.DiskOrBuilder getDisksOrBuilder( - int index) { + public com.google.cloud.notebooks.v1.Instance.DiskOrBuilder getDisksOrBuilder(int index) { return disks_.get(index); } public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 30; private com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shieldedInstanceConfig_; /** + * + * *
    * Optional. Shielded VM configuration.
    * [Images using supported Shielded VM
    * features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
    * 
* - * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the shieldedInstanceConfig field is set. */ @java.lang.Override @@ -9645,41 +10851,56 @@ public boolean hasShieldedInstanceConfig() { return shieldedInstanceConfig_ != null; } /** + * + * *
    * Optional. Shielded VM configuration.
    * [Images using supported Shielded VM
    * features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
    * 
* - * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The shieldedInstanceConfig. */ @java.lang.Override public com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig getShieldedInstanceConfig() { - return shieldedInstanceConfig_ == null ? com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null + ? com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } /** + * + * *
    * Optional. Shielded VM configuration.
    * [Images using supported Shielded VM
    * features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
    * 
* - * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { + public com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { return getShieldedInstanceConfig(); } public static final int NO_PUBLIC_IP_FIELD_NUMBER = 17; private boolean noPublicIp_; /** + * + * *
    * If true, no public IP will be assigned to this instance.
    * 
* * bool no_public_ip = 17; + * * @return The noPublicIp. */ @java.lang.Override @@ -9690,11 +10911,14 @@ public boolean getNoPublicIp() { public static final int NO_PROXY_ACCESS_FIELD_NUMBER = 18; private boolean noProxyAccess_; /** + * + * *
    * If true, the notebook instance will not register with the proxy.
    * 
* * bool no_proxy_access = 18; + * * @return The noProxyAccess. */ @java.lang.Override @@ -9705,6 +10929,8 @@ public boolean getNoProxyAccess() { public static final int NETWORK_FIELD_NUMBER = 19; private volatile java.lang.Object network_; /** + * + * *
    * The name of the VPC that this instance is in.
    * Format:
@@ -9712,6 +10938,7 @@ public boolean getNoProxyAccess() {
    * 
* * string network = 19; + * * @return The network. */ @java.lang.Override @@ -9720,14 +10947,15 @@ public java.lang.String getNetwork() { 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(); network_ = s; return s; } } /** + * + * *
    * The name of the VPC that this instance is in.
    * Format:
@@ -9735,16 +10963,15 @@ public java.lang.String getNetwork() {
    * 
* * string network = 19; + * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; 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); network_ = b; return b; } else { @@ -9755,6 +10982,8 @@ public java.lang.String getNetwork() { public static final int SUBNET_FIELD_NUMBER = 20; private volatile java.lang.Object subnet_; /** + * + * *
    * The name of the subnet that this instance is in.
    * Format:
@@ -9762,6 +10991,7 @@ public java.lang.String getNetwork() {
    * 
* * string subnet = 20; + * * @return The subnet. */ @java.lang.Override @@ -9770,14 +11000,15 @@ public java.lang.String getSubnet() { 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(); subnet_ = s; return s; } } /** + * + * *
    * The name of the subnet that this instance is in.
    * Format:
@@ -9785,16 +11016,15 @@ public java.lang.String getSubnet() {
    * 
* * string subnet = 20; + * * @return The bytes for subnet. */ @java.lang.Override - public com.google.protobuf.ByteString - getSubnetBytes() { + public com.google.protobuf.ByteString getSubnetBytes() { java.lang.Object ref = subnet_; 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); subnet_ = b; return b; } else { @@ -9803,24 +11033,23 @@ public java.lang.String getSubnet() { } public static final int LABELS_FIELD_NUMBER = 21; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_Instance_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.notebooks.v1.InstanceProto + .internal_static_google_cloud_notebooks_v1_Instance_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -9829,6 +11058,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method.
@@ -9836,22 +11067,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 21;
    */
-
   @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 getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method.
@@ -9860,11 +11091,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 21;
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method.
@@ -9873,16 +11105,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 21;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method.
@@ -9891,12 +11123,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 21;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -9904,24 +11135,23 @@ public java.lang.String getLabelsOrThrow(
   }
 
   public static final int METADATA_FIELD_NUMBER = 22;
+
   private static final class MetadataDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry<
-        java.lang.String, java.lang.String> defaultEntry =
-            com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_Instance_MetadataEntry_descriptor, 
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "");
-  }
-  private com.google.protobuf.MapField<
-      java.lang.String, java.lang.String> metadata_;
-  private com.google.protobuf.MapField
-  internalGetMetadata() {
+    static final com.google.protobuf.MapEntry defaultEntry =
+        com.google.protobuf.MapEntry.newDefaultInstance(
+            com.google.cloud.notebooks.v1.InstanceProto
+                .internal_static_google_cloud_notebooks_v1_Instance_MetadataEntry_descriptor,
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "",
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "");
+  }
+
+  private com.google.protobuf.MapField metadata_;
+
+  private com.google.protobuf.MapField internalGetMetadata() {
     if (metadata_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(
-          MetadataDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry);
     }
     return metadata_;
   }
@@ -9930,28 +11160,30 @@ public int getMetadataCount() {
     return internalGetMetadata().getMap().size();
   }
   /**
+   *
+   *
    * 
    * Custom metadata to apply to this instance.
    * 
* * map<string, string> metadata = 22; */ - @java.lang.Override - public boolean containsMetadata( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetMetadata().getMap().containsKey(key); } - /** - * Use {@link #getMetadataMap()} instead. - */ + /** Use {@link #getMetadataMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMetadata() { return getMetadataMap(); } /** + * + * *
    * Custom metadata to apply to this instance.
    * 
@@ -9959,11 +11191,12 @@ public java.util.Map getMetadata() { * map<string, string> metadata = 22; */ @java.lang.Override - public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** + * + * *
    * Custom metadata to apply to this instance.
    * 
@@ -9971,16 +11204,17 @@ public java.util.Map getMetadataMap() { * map<string, string> metadata = 22; */ @java.lang.Override - public java.lang.String getMetadataOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMetadata().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Custom metadata to apply to this instance.
    * 
@@ -9988,12 +11222,11 @@ public java.lang.String getMetadataOrDefault( * map<string, string> metadata = 22; */ @java.lang.Override - - public java.lang.String getMetadataOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMetadata().getMap(); + public java.lang.String getMetadataOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -10003,37 +11236,45 @@ public java.lang.String getMetadataOrThrow( public static final int TAGS_FIELD_NUMBER = 32; private com.google.protobuf.LazyStringList tags_; /** + * + * *
    * Optional. The Compute Engine tags to add to runtime (see [Tagging
    * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
    * 
* * repeated string tags = 32 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList - getTagsList() { + public com.google.protobuf.ProtocolStringList getTagsList() { return tags_; } /** + * + * *
    * Optional. The Compute Engine tags to add to runtime (see [Tagging
    * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
    * 
* * repeated string tags = 32 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** + * + * *
    * Optional. The Compute Engine tags to add to runtime (see [Tagging
    * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
    * 
* * repeated string tags = 32 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -10041,112 +11282,147 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** + * + * *
    * Optional. The Compute Engine tags to add to runtime (see [Tagging
    * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
    * 
* * repeated string tags = 32 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { + public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } public static final int UPGRADE_HISTORY_FIELD_NUMBER = 29; - private java.util.List upgradeHistory_; + private java.util.List + upgradeHistory_; /** + * + * *
    * The upgrade history of this instance.
    * 
* - * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * */ @java.lang.Override - public java.util.List getUpgradeHistoryList() { + public java.util.List + getUpgradeHistoryList() { return upgradeHistory_; } /** + * + * *
    * The upgrade history of this instance.
    * 
* - * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntryOrBuilder> getUpgradeHistoryOrBuilderList() { return upgradeHistory_; } /** + * + * *
    * The upgrade history of this instance.
    * 
* - * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * */ @java.lang.Override public int getUpgradeHistoryCount() { return upgradeHistory_.size(); } /** + * + * *
    * The upgrade history of this instance.
    * 
* - * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * */ @java.lang.Override public com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry getUpgradeHistory(int index) { return upgradeHistory_.get(index); } /** + * + * *
    * The upgrade history of this instance.
    * 
* - * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * */ @java.lang.Override - public com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntryOrBuilder getUpgradeHistoryOrBuilder( - int index) { + public com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntryOrBuilder + getUpgradeHistoryOrBuilder(int index) { return upgradeHistory_.get(index); } public static final int NIC_TYPE_FIELD_NUMBER = 33; private int nicType_; /** + * + * *
    * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
    * VirtioNet.
    * 
* - * .google.cloud.notebooks.v1.Instance.NicType nic_type = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.Instance.NicType nic_type = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for nicType. */ - @java.lang.Override public int getNicTypeValue() { + @java.lang.Override + public int getNicTypeValue() { return nicType_; } /** + * + * *
    * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
    * VirtioNet.
    * 
* - * .google.cloud.notebooks.v1.Instance.NicType nic_type = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.Instance.NicType nic_type = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The nicType. */ - @java.lang.Override public com.google.cloud.notebooks.v1.Instance.NicType getNicType() { + @java.lang.Override + public com.google.cloud.notebooks.v1.Instance.NicType getNicType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.Instance.NicType result = com.google.cloud.notebooks.v1.Instance.NicType.valueOf(nicType_); + com.google.cloud.notebooks.v1.Instance.NicType result = + com.google.cloud.notebooks.v1.Instance.NicType.valueOf(nicType_); return result == null ? com.google.cloud.notebooks.v1.Instance.NicType.UNRECOGNIZED : result; } public static final int RESERVATION_AFFINITY_FIELD_NUMBER = 34; private com.google.cloud.notebooks.v1.ReservationAffinity reservationAffinity_; /** + * + * *
    * Optional. The optional reservation affinity. Setting this field will apply
    * the specified [Zonal Compute
@@ -10154,7 +11430,10 @@ public com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntryOrBuilder getUp
    * to this notebook instance.
    * 
* - * .google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the reservationAffinity field is set. */ @java.lang.Override @@ -10162,6 +11441,8 @@ public boolean hasReservationAffinity() { return reservationAffinity_ != null; } /** + * + * *
    * Optional. The optional reservation affinity. Setting this field will apply
    * the specified [Zonal Compute
@@ -10169,14 +11450,21 @@ public boolean hasReservationAffinity() {
    * to this notebook instance.
    * 
* - * .google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The reservationAffinity. */ @java.lang.Override public com.google.cloud.notebooks.v1.ReservationAffinity getReservationAffinity() { - return reservationAffinity_ == null ? com.google.cloud.notebooks.v1.ReservationAffinity.getDefaultInstance() : reservationAffinity_; + return reservationAffinity_ == null + ? com.google.cloud.notebooks.v1.ReservationAffinity.getDefaultInstance() + : reservationAffinity_; } /** + * + * *
    * Optional. The optional reservation affinity. Setting this field will apply
    * the specified [Zonal Compute
@@ -10184,21 +11472,27 @@ public com.google.cloud.notebooks.v1.ReservationAffinity getReservationAffinity(
    * to this notebook instance.
    * 
* - * .google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.notebooks.v1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder() { + public com.google.cloud.notebooks.v1.ReservationAffinityOrBuilder + getReservationAffinityOrBuilder() { return getReservationAffinity(); } public static final int CREATOR_FIELD_NUMBER = 36; private volatile java.lang.Object creator_; /** + * + * *
    * Output only. Email address of entity that sent original CreateInstance request.
    * 
* * string creator = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The creator. */ @java.lang.Override @@ -10207,29 +11501,29 @@ public java.lang.String getCreator() { 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(); creator_ = s; return s; } } /** + * + * *
    * Output only. Email address of entity that sent original CreateInstance request.
    * 
* * string creator = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for creator. */ @java.lang.Override - public com.google.protobuf.ByteString - getCreatorBytes() { + public com.google.protobuf.ByteString getCreatorBytes() { java.lang.Object ref = creator_; 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); creator_ = b; return b; } else { @@ -10240,12 +11534,15 @@ public java.lang.String getCreator() { public static final int CAN_IP_FORWARD_FIELD_NUMBER = 39; private boolean canIpForward_; /** + * + * *
    * Optional. Flag to enable ip forwarding or not, default false/off.
    * https://cloud.google.com/vpc/docs/using-routes#canipforward
    * 
* * bool can_ip_forward = 39 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The canIpForward. */ @java.lang.Override @@ -10256,11 +11553,15 @@ public boolean getCanIpForward() { public static final int CREATE_TIME_FIELD_NUMBER = 23; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Instance creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -10268,11 +11569,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Instance creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -10280,11 +11585,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Instance creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -10294,11 +11602,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 24; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. Instance update time.
    * 
* - * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -10306,11 +11618,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Instance update time.
    * 
* - * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -10318,11 +11634,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. Instance update time.
    * 
* - * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -10330,6 +11649,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -10341,8 +11661,7 @@ 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_); } @@ -10379,13 +11698,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customGpuDriverPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, customGpuDriverPath_); } - if (bootDiskType_ != com.google.cloud.notebooks.v1.Instance.DiskType.DISK_TYPE_UNSPECIFIED.getNumber()) { + if (bootDiskType_ + != com.google.cloud.notebooks.v1.Instance.DiskType.DISK_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(13, bootDiskType_); } if (bootDiskSizeGb_ != 0L) { output.writeInt64(14, bootDiskSizeGb_); } - if (diskEncryption_ != com.google.cloud.notebooks.v1.Instance.DiskEncryption.DISK_ENCRYPTION_UNSPECIFIED.getNumber()) { + if (diskEncryption_ + != com.google.cloud.notebooks.v1.Instance.DiskEncryption.DISK_ENCRYPTION_UNSPECIFIED + .getNumber()) { output.writeEnum(15, diskEncryption_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { @@ -10403,25 +11725,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnet_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 20, subnet_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 21); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetMetadata(), - MetadataDefaultEntryHolder.defaultEntry, - 22); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 21); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 22); if (createTime_ != null) { output.writeMessage(23, getCreateTime()); } if (updateTime_ != null) { output.writeMessage(24, getUpdateTime()); } - if (dataDiskType_ != com.google.cloud.notebooks.v1.Instance.DiskType.DISK_TYPE_UNSPECIFIED.getNumber()) { + if (dataDiskType_ + != com.google.cloud.notebooks.v1.Instance.DiskType.DISK_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(25, dataDiskType_); } if (dataDiskSizeGb_ != 0L) { @@ -10440,12 +11755,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(30, getShieldedInstanceConfig()); } for (int i = 0; i < serviceAccountScopes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 31, serviceAccountScopes_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 31, serviceAccountScopes_.getRaw(i)); } for (int i = 0; i < tags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 32, tags_.getRaw(i)); } - if (nicType_ != com.google.cloud.notebooks.v1.Instance.NicType.UNSPECIFIED_NIC_TYPE.getNumber()) { + if (nicType_ + != com.google.cloud.notebooks.v1.Instance.NicType.UNSPECIFIED_NIC_TYPE.getNumber()) { output.writeEnum(33, nicType_); } if (reservationAffinity_ != null) { @@ -10470,12 +11787,14 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (environmentCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.notebooks.v1.VmImage) environment_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.notebooks.v1.VmImage) environment_); } if (environmentCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.notebooks.v1.ContainerImage) environment_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.notebooks.v1.ContainerImage) environment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postStartupScript_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, postStartupScript_); @@ -10498,42 +11817,37 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, machineType_); } if (acceleratorConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getAcceleratorConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getAcceleratorConfig()); } if (state_ != com.google.cloud.notebooks.v1.Instance.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, state_); } if (installGpuDriver_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(11, installGpuDriver_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, installGpuDriver_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customGpuDriverPath_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, customGpuDriverPath_); } - if (bootDiskType_ != com.google.cloud.notebooks.v1.Instance.DiskType.DISK_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(13, bootDiskType_); + if (bootDiskType_ + != com.google.cloud.notebooks.v1.Instance.DiskType.DISK_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, bootDiskType_); } if (bootDiskSizeGb_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(14, bootDiskSizeGb_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(14, bootDiskSizeGb_); } - if (diskEncryption_ != com.google.cloud.notebooks.v1.Instance.DiskEncryption.DISK_ENCRYPTION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(15, diskEncryption_); + if (diskEncryption_ + != com.google.cloud.notebooks.v1.Instance.DiskEncryption.DISK_ENCRYPTION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, diskEncryption_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, kmsKey_); } if (noPublicIp_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(17, noPublicIp_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(17, noPublicIp_); } if (noProxyAccess_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(18, noProxyAccess_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, noProxyAccess_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, network_); @@ -10541,57 +11855,51 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnet_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, subnet_); } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, labels__); - } - for (java.util.Map.Entry entry - : internalGetMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry - metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, metadata__); + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, labels__); + } + for (java.util.Map.Entry entry : + internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry metadata__ = + MetadataDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, metadata__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(24, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getUpdateTime()); } - if (dataDiskType_ != com.google.cloud.notebooks.v1.Instance.DiskType.DISK_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(25, dataDiskType_); + if (dataDiskType_ + != com.google.cloud.notebooks.v1.Instance.DiskType.DISK_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(25, dataDiskType_); } if (dataDiskSizeGb_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(26, dataDiskSizeGb_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(26, dataDiskSizeGb_); } if (noRemoveDataDisk_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(27, noRemoveDataDisk_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(27, noRemoveDataDisk_); } for (int i = 0; i < disks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(28, disks_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, disks_.get(i)); } for (int i = 0; i < upgradeHistory_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(29, upgradeHistory_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, upgradeHistory_.get(i)); } if (shieldedInstanceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(30, getShieldedInstanceConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(30, getShieldedInstanceConfig()); } { int dataSize = 0; @@ -10609,20 +11917,19 @@ public int getSerializedSize() { size += dataSize; size += 2 * getTagsList().size(); } - if (nicType_ != com.google.cloud.notebooks.v1.Instance.NicType.UNSPECIFIED_NIC_TYPE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(33, nicType_); + if (nicType_ + != com.google.cloud.notebooks.v1.Instance.NicType.UNSPECIFIED_NIC_TYPE.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(33, nicType_); } if (reservationAffinity_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(34, getReservationAffinity()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(34, getReservationAffinity()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creator_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(36, creator_); } if (canIpForward_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(39, canIpForward_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(39, canIpForward_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -10632,100 +11939,69 @@ 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.cloud.notebooks.v1.Instance)) { return super.equals(obj); } com.google.cloud.notebooks.v1.Instance other = (com.google.cloud.notebooks.v1.Instance) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getPostStartupScript() - .equals(other.getPostStartupScript())) return false; - if (!getProxyUri() - .equals(other.getProxyUri())) return false; - if (!getInstanceOwnersList() - .equals(other.getInstanceOwnersList())) return false; - if (!getServiceAccount() - .equals(other.getServiceAccount())) return false; - if (!getServiceAccountScopesList() - .equals(other.getServiceAccountScopesList())) return false; - if (!getMachineType() - .equals(other.getMachineType())) return false; + if (!getName().equals(other.getName())) return false; + if (!getPostStartupScript().equals(other.getPostStartupScript())) return false; + if (!getProxyUri().equals(other.getProxyUri())) return false; + if (!getInstanceOwnersList().equals(other.getInstanceOwnersList())) return false; + if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (!getServiceAccountScopesList().equals(other.getServiceAccountScopesList())) return false; + if (!getMachineType().equals(other.getMachineType())) return false; if (hasAcceleratorConfig() != other.hasAcceleratorConfig()) return false; if (hasAcceleratorConfig()) { - if (!getAcceleratorConfig() - .equals(other.getAcceleratorConfig())) return false; + if (!getAcceleratorConfig().equals(other.getAcceleratorConfig())) return false; } if (state_ != other.state_) return false; - if (getInstallGpuDriver() - != other.getInstallGpuDriver()) return false; - if (!getCustomGpuDriverPath() - .equals(other.getCustomGpuDriverPath())) return false; + if (getInstallGpuDriver() != other.getInstallGpuDriver()) return false; + if (!getCustomGpuDriverPath().equals(other.getCustomGpuDriverPath())) return false; if (bootDiskType_ != other.bootDiskType_) return false; - if (getBootDiskSizeGb() - != other.getBootDiskSizeGb()) return false; + if (getBootDiskSizeGb() != other.getBootDiskSizeGb()) return false; if (dataDiskType_ != other.dataDiskType_) return false; - if (getDataDiskSizeGb() - != other.getDataDiskSizeGb()) return false; - if (getNoRemoveDataDisk() - != other.getNoRemoveDataDisk()) return false; + if (getDataDiskSizeGb() != other.getDataDiskSizeGb()) return false; + if (getNoRemoveDataDisk() != other.getNoRemoveDataDisk()) return false; if (diskEncryption_ != other.diskEncryption_) return false; - if (!getKmsKey() - .equals(other.getKmsKey())) return false; - if (!getDisksList() - .equals(other.getDisksList())) return false; + if (!getKmsKey().equals(other.getKmsKey())) return false; + if (!getDisksList().equals(other.getDisksList())) return false; if (hasShieldedInstanceConfig() != other.hasShieldedInstanceConfig()) return false; if (hasShieldedInstanceConfig()) { - if (!getShieldedInstanceConfig() - .equals(other.getShieldedInstanceConfig())) return false; - } - if (getNoPublicIp() - != other.getNoPublicIp()) return false; - if (getNoProxyAccess() - != other.getNoProxyAccess()) return false; - if (!getNetwork() - .equals(other.getNetwork())) return false; - if (!getSubnet() - .equals(other.getSubnet())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!internalGetMetadata().equals( - other.internalGetMetadata())) return false; - if (!getTagsList() - .equals(other.getTagsList())) return false; - if (!getUpgradeHistoryList() - .equals(other.getUpgradeHistoryList())) return false; + if (!getShieldedInstanceConfig().equals(other.getShieldedInstanceConfig())) return false; + } + if (getNoPublicIp() != other.getNoPublicIp()) return false; + if (getNoProxyAccess() != other.getNoProxyAccess()) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getSubnet().equals(other.getSubnet())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; + if (!getTagsList().equals(other.getTagsList())) return false; + if (!getUpgradeHistoryList().equals(other.getUpgradeHistoryList())) return false; if (nicType_ != other.nicType_) return false; if (hasReservationAffinity() != other.hasReservationAffinity()) return false; if (hasReservationAffinity()) { - if (!getReservationAffinity() - .equals(other.getReservationAffinity())) return false; + if (!getReservationAffinity().equals(other.getReservationAffinity())) return false; } - if (!getCreator() - .equals(other.getCreator())) return false; - if (getCanIpForward() - != other.getCanIpForward()) return false; + if (!getCreator().equals(other.getCreator())) return false; + if (getCanIpForward() != other.getCanIpForward()) 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 (!getEnvironmentCase().equals(other.getEnvironmentCase())) return false; switch (environmentCase_) { case 2: - if (!getVmImage() - .equals(other.getVmImage())) return false; + if (!getVmImage().equals(other.getVmImage())) return false; break; case 3: - if (!getContainerImage() - .equals(other.getContainerImage())) return false; + if (!getContainerImage().equals(other.getContainerImage())) return false; break; case 0: default: @@ -10766,23 +12042,19 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + INSTALL_GPU_DRIVER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInstallGpuDriver()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInstallGpuDriver()); hash = (37 * hash) + CUSTOM_GPU_DRIVER_PATH_FIELD_NUMBER; hash = (53 * hash) + getCustomGpuDriverPath().hashCode(); hash = (37 * hash) + BOOT_DISK_TYPE_FIELD_NUMBER; hash = (53 * hash) + bootDiskType_; hash = (37 * hash) + BOOT_DISK_SIZE_GB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBootDiskSizeGb()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBootDiskSizeGb()); hash = (37 * hash) + DATA_DISK_TYPE_FIELD_NUMBER; hash = (53 * hash) + dataDiskType_; hash = (37 * hash) + DATA_DISK_SIZE_GB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDataDiskSizeGb()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDataDiskSizeGb()); hash = (37 * hash) + NO_REMOVE_DATA_DISK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getNoRemoveDataDisk()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNoRemoveDataDisk()); hash = (37 * hash) + DISK_ENCRYPTION_FIELD_NUMBER; hash = (53 * hash) + diskEncryption_; hash = (37 * hash) + KMS_KEY_FIELD_NUMBER; @@ -10796,11 +12068,9 @@ public int hashCode() { hash = (53 * hash) + getShieldedInstanceConfig().hashCode(); } hash = (37 * hash) + NO_PUBLIC_IP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getNoPublicIp()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNoPublicIp()); hash = (37 * hash) + NO_PROXY_ACCESS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getNoProxyAccess()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNoProxyAccess()); hash = (37 * hash) + NETWORK_FIELD_NUMBER; hash = (53 * hash) + getNetwork().hashCode(); hash = (37 * hash) + SUBNET_FIELD_NUMBER; @@ -10830,8 +12100,7 @@ public int hashCode() { hash = (37 * hash) + CREATOR_FIELD_NUMBER; hash = (53 * hash) + getCreator().hashCode(); hash = (37 * hash) + CAN_IP_FORWARD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCanIpForward()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCanIpForward()); if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); @@ -10857,156 +12126,160 @@ public int hashCode() { return hash; } - public static com.google.cloud.notebooks.v1.Instance parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.notebooks.v1.Instance parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.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.cloud.notebooks.v1.Instance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.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.cloud.notebooks.v1.Instance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.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.cloud.notebooks.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.cloud.notebooks.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.cloud.notebooks.v1.Instance 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.cloud.notebooks.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.cloud.notebooks.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.cloud.notebooks.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.cloud.notebooks.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; } /** + * + * *
    * The definition of a notebook instance.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.Instance} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.Instance) com.google.cloud.notebooks.v1.InstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.InstanceProto + .internal_static_google_cloud_notebooks_v1_Instance_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 21: return internalGetLabels(); case 22: return internalGetMetadata(); 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 21: return internalGetMutableLabels(); case 22: return internalGetMutableMetadata(); 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.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_Instance_fieldAccessorTable + return com.google.cloud.notebooks.v1.InstanceProto + .internal_static_google_cloud_notebooks_v1_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.Instance.class, com.google.cloud.notebooks.v1.Instance.Builder.class); + com.google.cloud.notebooks.v1.Instance.class, + com.google.cloud.notebooks.v1.Instance.Builder.class); } // Construct using com.google.cloud.notebooks.v1.Instance.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -11118,9 +12391,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_Instance_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.InstanceProto + .internal_static_google_cloud_notebooks_v1_Instance_descriptor; } @java.lang.Override @@ -11139,7 +12412,8 @@ public com.google.cloud.notebooks.v1.Instance build() { @java.lang.Override public com.google.cloud.notebooks.v1.Instance buildPartial() { - com.google.cloud.notebooks.v1.Instance result = new com.google.cloud.notebooks.v1.Instance(this); + com.google.cloud.notebooks.v1.Instance result = + new com.google.cloud.notebooks.v1.Instance(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (environmentCase_ == 2) { @@ -11248,38 +12522,39 @@ public com.google.cloud.notebooks.v1.Instance buildPartial() { 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.cloud.notebooks.v1.Instance) { - return mergeFrom((com.google.cloud.notebooks.v1.Instance)other); + return mergeFrom((com.google.cloud.notebooks.v1.Instance) other); } else { super.mergeFrom(other); return this; @@ -11381,9 +12656,10 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.Instance other) { disksBuilder_ = null; disks_ = other.disks_; bitField0_ = (bitField0_ & ~0x00000004); - disksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDisksFieldBuilder() : null; + disksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDisksFieldBuilder() + : null; } else { disksBuilder_.addAllMessages(other.disks_); } @@ -11406,10 +12682,8 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.Instance other) { subnet_ = other.subnet_; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); - internalGetMutableMetadata().mergeFrom( - other.internalGetMetadata()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); if (!other.tags_.isEmpty()) { if (tags_.isEmpty()) { tags_ = other.tags_; @@ -11438,9 +12712,10 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.Instance other) { upgradeHistoryBuilder_ = null; upgradeHistory_ = other.upgradeHistory_; bitField0_ = (bitField0_ & ~0x00000040); - upgradeHistoryBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getUpgradeHistoryFieldBuilder() : null; + upgradeHistoryBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getUpgradeHistoryFieldBuilder() + : null; } else { upgradeHistoryBuilder_.addAllMessages(other.upgradeHistory_); } @@ -11466,17 +12741,20 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.Instance other) { mergeUpdateTime(other.getUpdateTime()); } switch (other.getEnvironmentCase()) { - case VM_IMAGE: { - mergeVmImage(other.getVmImage()); - break; - } - case CONTAINER_IMAGE: { - mergeContainerImage(other.getContainerImage()); - break; - } - case ENVIRONMENT_NOT_SET: { - break; - } + case VM_IMAGE: + { + mergeVmImage(other.getVmImage()); + break; + } + case CONTAINER_IMAGE: + { + mergeContainerImage(other.getContainerImage()); + break; + } + case ENVIRONMENT_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -11504,231 +12782,260 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); + case 10: + { + name_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - input.readMessage( - getVmImageFieldBuilder().getBuilder(), - extensionRegistry); - environmentCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getContainerImageFieldBuilder().getBuilder(), - extensionRegistry); - environmentCase_ = 3; - break; - } // case 26 - case 34: { - postStartupScript_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + input.readMessage(getVmImageFieldBuilder().getBuilder(), extensionRegistry); + environmentCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getContainerImageFieldBuilder().getBuilder(), extensionRegistry); + environmentCase_ = 3; + break; + } // case 26 + case 34: + { + postStartupScript_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: { - proxyUri_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: + { + proxyUri_ = input.readStringRequireUtf8(); - break; - } // case 42 - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - ensureInstanceOwnersIsMutable(); - instanceOwners_.add(s); - break; - } // case 50 - case 58: { - serviceAccount_ = input.readStringRequireUtf8(); + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureInstanceOwnersIsMutable(); + instanceOwners_.add(s); + break; + } // case 50 + case 58: + { + serviceAccount_ = input.readStringRequireUtf8(); - break; - } // case 58 - case 66: { - machineType_ = input.readStringRequireUtf8(); + break; + } // case 58 + case 66: + { + machineType_ = input.readStringRequireUtf8(); - break; - } // case 66 - case 74: { - input.readMessage( - getAcceleratorConfigFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 66 + case 74: + { + input.readMessage( + getAcceleratorConfigFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 74 - case 80: { - state_ = input.readEnum(); + break; + } // case 74 + case 80: + { + state_ = input.readEnum(); - break; - } // case 80 - case 88: { - installGpuDriver_ = input.readBool(); + break; + } // case 80 + case 88: + { + installGpuDriver_ = input.readBool(); - break; - } // case 88 - case 98: { - customGpuDriverPath_ = input.readStringRequireUtf8(); + break; + } // case 88 + case 98: + { + customGpuDriverPath_ = input.readStringRequireUtf8(); - break; - } // case 98 - case 104: { - bootDiskType_ = input.readEnum(); + break; + } // case 98 + case 104: + { + bootDiskType_ = input.readEnum(); - break; - } // case 104 - case 112: { - bootDiskSizeGb_ = input.readInt64(); + break; + } // case 104 + case 112: + { + bootDiskSizeGb_ = input.readInt64(); - break; - } // case 112 - case 120: { - diskEncryption_ = input.readEnum(); + break; + } // case 112 + case 120: + { + diskEncryption_ = input.readEnum(); - break; - } // case 120 - case 130: { - kmsKey_ = input.readStringRequireUtf8(); + break; + } // case 120 + case 130: + { + kmsKey_ = input.readStringRequireUtf8(); - break; - } // case 130 - case 136: { - noPublicIp_ = input.readBool(); + break; + } // case 130 + case 136: + { + noPublicIp_ = input.readBool(); - break; - } // case 136 - case 144: { - noProxyAccess_ = input.readBool(); + break; + } // case 136 + case 144: + { + noProxyAccess_ = input.readBool(); - break; - } // case 144 - case 154: { - network_ = input.readStringRequireUtf8(); + break; + } // case 144 + case 154: + { + network_ = input.readStringRequireUtf8(); - break; - } // case 154 - case 162: { - subnet_ = input.readStringRequireUtf8(); + break; + } // case 154 + case 162: + { + subnet_ = input.readStringRequireUtf8(); - break; - } // case 162 - case 170: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } // case 170 - case 178: { - com.google.protobuf.MapEntry - metadata__ = input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableMetadata().getMutableMap().put( - metadata__.getKey(), metadata__.getValue()); - break; - } // case 178 - case 186: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 162 + case 170: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 170 + case 178: + { + com.google.protobuf.MapEntry metadata__ = + input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableMetadata() + .getMutableMap() + .put(metadata__.getKey(), metadata__.getValue()); + break; + } // case 178 + case 186: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 186 - case 194: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 186 + case 194: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 194 - case 200: { - dataDiskType_ = input.readEnum(); + break; + } // case 194 + case 200: + { + dataDiskType_ = input.readEnum(); - break; - } // case 200 - case 208: { - dataDiskSizeGb_ = input.readInt64(); + break; + } // case 200 + case 208: + { + dataDiskSizeGb_ = input.readInt64(); - break; - } // case 208 - case 216: { - noRemoveDataDisk_ = input.readBool(); + break; + } // case 208 + case 216: + { + noRemoveDataDisk_ = input.readBool(); - break; - } // case 216 - case 226: { - com.google.cloud.notebooks.v1.Instance.Disk m = - input.readMessage( - com.google.cloud.notebooks.v1.Instance.Disk.parser(), - extensionRegistry); - if (disksBuilder_ == null) { - ensureDisksIsMutable(); - disks_.add(m); - } else { - disksBuilder_.addMessage(m); - } - break; - } // case 226 - case 234: { - com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry m = - input.readMessage( - com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.parser(), - extensionRegistry); - if (upgradeHistoryBuilder_ == null) { - ensureUpgradeHistoryIsMutable(); - upgradeHistory_.add(m); - } else { - upgradeHistoryBuilder_.addMessage(m); - } - break; - } // case 234 - case 242: { - input.readMessage( - getShieldedInstanceConfigFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 216 + case 226: + { + com.google.cloud.notebooks.v1.Instance.Disk m = + input.readMessage( + com.google.cloud.notebooks.v1.Instance.Disk.parser(), extensionRegistry); + if (disksBuilder_ == null) { + ensureDisksIsMutable(); + disks_.add(m); + } else { + disksBuilder_.addMessage(m); + } + break; + } // case 226 + case 234: + { + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry m = + input.readMessage( + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.parser(), + extensionRegistry); + if (upgradeHistoryBuilder_ == null) { + ensureUpgradeHistoryIsMutable(); + upgradeHistory_.add(m); + } else { + upgradeHistoryBuilder_.addMessage(m); + } + break; + } // case 234 + case 242: + { + input.readMessage( + getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 242 - case 250: { - java.lang.String s = input.readStringRequireUtf8(); - ensureServiceAccountScopesIsMutable(); - serviceAccountScopes_.add(s); - break; - } // case 250 - case 258: { - java.lang.String s = input.readStringRequireUtf8(); - ensureTagsIsMutable(); - tags_.add(s); - break; - } // case 258 - case 264: { - nicType_ = input.readEnum(); + break; + } // case 242 + case 250: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureServiceAccountScopesIsMutable(); + serviceAccountScopes_.add(s); + break; + } // case 250 + case 258: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 258 + case 264: + { + nicType_ = input.readEnum(); - break; - } // case 264 - case 274: { - input.readMessage( - getReservationAffinityFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 264 + case 274: + { + input.readMessage( + getReservationAffinityFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 274 - case 290: { - creator_ = input.readStringRequireUtf8(); + break; + } // case 274 + case 290: + { + creator_ = input.readStringRequireUtf8(); - break; - } // case 290 - case 312: { - canIpForward_ = input.readBool(); + break; + } // case 290 + case 312: + { + canIpForward_ = input.readBool(); - break; - } // case 312 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 312 + 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) { @@ -11738,12 +13045,12 @@ public Builder mergeFrom( } // finally return this; } + private int environmentCase_ = 0; private java.lang.Object environment_; - public EnvironmentCase - getEnvironmentCase() { - return EnvironmentCase.forNumber( - environmentCase_); + + public EnvironmentCase getEnvironmentCase() { + return EnvironmentCase.forNumber(environmentCase_); } public Builder clearEnvironment() { @@ -11757,19 +13064,21 @@ public Builder clearEnvironment() { private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The name of this notebook instance. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -11778,21 +13087,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The name of this notebook instance. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -11800,70 +13110,83 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The name of this notebook instance. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The name of this notebook instance. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The name of this notebook instance. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.VmImage, com.google.cloud.notebooks.v1.VmImage.Builder, com.google.cloud.notebooks.v1.VmImageOrBuilder> vmImageBuilder_; + com.google.cloud.notebooks.v1.VmImage, + com.google.cloud.notebooks.v1.VmImage.Builder, + com.google.cloud.notebooks.v1.VmImageOrBuilder> + vmImageBuilder_; /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
* * .google.cloud.notebooks.v1.VmImage vm_image = 2; + * * @return Whether the vmImage field is set. */ @java.lang.Override @@ -11871,11 +13194,14 @@ public boolean hasVmImage() { return environmentCase_ == 2; } /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
* * .google.cloud.notebooks.v1.VmImage vm_image = 2; + * * @return The vmImage. */ @java.lang.Override @@ -11893,6 +13219,8 @@ public com.google.cloud.notebooks.v1.VmImage getVmImage() { } } /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
@@ -11913,14 +13241,15 @@ public Builder setVmImage(com.google.cloud.notebooks.v1.VmImage value) { return this; } /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
* * .google.cloud.notebooks.v1.VmImage vm_image = 2; */ - public Builder setVmImage( - com.google.cloud.notebooks.v1.VmImage.Builder builderForValue) { + public Builder setVmImage(com.google.cloud.notebooks.v1.VmImage.Builder builderForValue) { if (vmImageBuilder_ == null) { environment_ = builderForValue.build(); onChanged(); @@ -11931,6 +13260,8 @@ public Builder setVmImage( return this; } /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
@@ -11939,10 +13270,13 @@ public Builder setVmImage( */ public Builder mergeVmImage(com.google.cloud.notebooks.v1.VmImage value) { if (vmImageBuilder_ == null) { - if (environmentCase_ == 2 && - environment_ != com.google.cloud.notebooks.v1.VmImage.getDefaultInstance()) { - environment_ = com.google.cloud.notebooks.v1.VmImage.newBuilder((com.google.cloud.notebooks.v1.VmImage) environment_) - .mergeFrom(value).buildPartial(); + if (environmentCase_ == 2 + && environment_ != com.google.cloud.notebooks.v1.VmImage.getDefaultInstance()) { + environment_ = + com.google.cloud.notebooks.v1.VmImage.newBuilder( + (com.google.cloud.notebooks.v1.VmImage) environment_) + .mergeFrom(value) + .buildPartial(); } else { environment_ = value; } @@ -11958,6 +13292,8 @@ public Builder mergeVmImage(com.google.cloud.notebooks.v1.VmImage value) { return this; } /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
@@ -11981,6 +13317,8 @@ public Builder clearVmImage() { return this; } /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
@@ -11991,6 +13329,8 @@ public com.google.cloud.notebooks.v1.VmImage.Builder getVmImageBuilder() { return getVmImageFieldBuilder().getBuilder(); } /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
@@ -12009,6 +13349,8 @@ public com.google.cloud.notebooks.v1.VmImageOrBuilder getVmImageOrBuilder() { } } /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
@@ -12016,32 +13358,44 @@ public com.google.cloud.notebooks.v1.VmImageOrBuilder getVmImageOrBuilder() { * .google.cloud.notebooks.v1.VmImage vm_image = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.VmImage, com.google.cloud.notebooks.v1.VmImage.Builder, com.google.cloud.notebooks.v1.VmImageOrBuilder> + com.google.cloud.notebooks.v1.VmImage, + com.google.cloud.notebooks.v1.VmImage.Builder, + com.google.cloud.notebooks.v1.VmImageOrBuilder> getVmImageFieldBuilder() { if (vmImageBuilder_ == null) { if (!(environmentCase_ == 2)) { environment_ = com.google.cloud.notebooks.v1.VmImage.getDefaultInstance(); } - vmImageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.VmImage, com.google.cloud.notebooks.v1.VmImage.Builder, com.google.cloud.notebooks.v1.VmImageOrBuilder>( + vmImageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.VmImage, + com.google.cloud.notebooks.v1.VmImage.Builder, + com.google.cloud.notebooks.v1.VmImageOrBuilder>( (com.google.cloud.notebooks.v1.VmImage) environment_, getParentForChildren(), isClean()); environment_ = null; } environmentCase_ = 2; - onChanged();; + onChanged(); + ; return vmImageBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.ContainerImage, com.google.cloud.notebooks.v1.ContainerImage.Builder, com.google.cloud.notebooks.v1.ContainerImageOrBuilder> containerImageBuilder_; + com.google.cloud.notebooks.v1.ContainerImage, + com.google.cloud.notebooks.v1.ContainerImage.Builder, + com.google.cloud.notebooks.v1.ContainerImageOrBuilder> + containerImageBuilder_; /** + * + * *
      * Use a container image to start the notebook instance.
      * 
* * .google.cloud.notebooks.v1.ContainerImage container_image = 3; + * * @return Whether the containerImage field is set. */ @java.lang.Override @@ -12049,11 +13403,14 @@ public boolean hasContainerImage() { return environmentCase_ == 3; } /** + * + * *
      * Use a container image to start the notebook instance.
      * 
* * .google.cloud.notebooks.v1.ContainerImage container_image = 3; + * * @return The containerImage. */ @java.lang.Override @@ -12071,6 +13428,8 @@ public com.google.cloud.notebooks.v1.ContainerImage getContainerImage() { } } /** + * + * *
      * Use a container image to start the notebook instance.
      * 
@@ -12091,6 +13450,8 @@ public Builder setContainerImage(com.google.cloud.notebooks.v1.ContainerImage va return this; } /** + * + * *
      * Use a container image to start the notebook instance.
      * 
@@ -12109,6 +13470,8 @@ public Builder setContainerImage( return this; } /** + * + * *
      * Use a container image to start the notebook instance.
      * 
@@ -12117,10 +13480,13 @@ public Builder setContainerImage( */ public Builder mergeContainerImage(com.google.cloud.notebooks.v1.ContainerImage value) { if (containerImageBuilder_ == null) { - if (environmentCase_ == 3 && - environment_ != com.google.cloud.notebooks.v1.ContainerImage.getDefaultInstance()) { - environment_ = com.google.cloud.notebooks.v1.ContainerImage.newBuilder((com.google.cloud.notebooks.v1.ContainerImage) environment_) - .mergeFrom(value).buildPartial(); + if (environmentCase_ == 3 + && environment_ != com.google.cloud.notebooks.v1.ContainerImage.getDefaultInstance()) { + environment_ = + com.google.cloud.notebooks.v1.ContainerImage.newBuilder( + (com.google.cloud.notebooks.v1.ContainerImage) environment_) + .mergeFrom(value) + .buildPartial(); } else { environment_ = value; } @@ -12136,6 +13502,8 @@ public Builder mergeContainerImage(com.google.cloud.notebooks.v1.ContainerImage return this; } /** + * + * *
      * Use a container image to start the notebook instance.
      * 
@@ -12159,6 +13527,8 @@ public Builder clearContainerImage() { return this; } /** + * + * *
      * Use a container image to start the notebook instance.
      * 
@@ -12169,6 +13539,8 @@ public com.google.cloud.notebooks.v1.ContainerImage.Builder getContainerImageBui return getContainerImageFieldBuilder().getBuilder(); } /** + * + * *
      * Use a container image to start the notebook instance.
      * 
@@ -12187,6 +13559,8 @@ public com.google.cloud.notebooks.v1.ContainerImageOrBuilder getContainerImageOr } } /** + * + * *
      * Use a container image to start the notebook instance.
      * 
@@ -12194,26 +13568,34 @@ public com.google.cloud.notebooks.v1.ContainerImageOrBuilder getContainerImageOr * .google.cloud.notebooks.v1.ContainerImage container_image = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.ContainerImage, com.google.cloud.notebooks.v1.ContainerImage.Builder, com.google.cloud.notebooks.v1.ContainerImageOrBuilder> + com.google.cloud.notebooks.v1.ContainerImage, + com.google.cloud.notebooks.v1.ContainerImage.Builder, + com.google.cloud.notebooks.v1.ContainerImageOrBuilder> getContainerImageFieldBuilder() { if (containerImageBuilder_ == null) { if (!(environmentCase_ == 3)) { environment_ = com.google.cloud.notebooks.v1.ContainerImage.getDefaultInstance(); } - containerImageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.ContainerImage, com.google.cloud.notebooks.v1.ContainerImage.Builder, com.google.cloud.notebooks.v1.ContainerImageOrBuilder>( + containerImageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.ContainerImage, + com.google.cloud.notebooks.v1.ContainerImage.Builder, + com.google.cloud.notebooks.v1.ContainerImageOrBuilder>( (com.google.cloud.notebooks.v1.ContainerImage) environment_, getParentForChildren(), isClean()); environment_ = null; } environmentCase_ = 3; - onChanged();; + onChanged(); + ; return containerImageBuilder_; } private java.lang.Object postStartupScript_ = ""; /** + * + * *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
@@ -12221,13 +13603,13 @@ public com.google.cloud.notebooks.v1.ContainerImageOrBuilder getContainerImageOr
      * 
* * string post_startup_script = 4; + * * @return The postStartupScript. */ public java.lang.String getPostStartupScript() { java.lang.Object ref = postStartupScript_; 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(); postStartupScript_ = s; return s; @@ -12236,6 +13618,8 @@ public java.lang.String getPostStartupScript() { } } /** + * + * *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
@@ -12243,15 +13627,14 @@ public java.lang.String getPostStartupScript() {
      * 
* * string post_startup_script = 4; + * * @return The bytes for postStartupScript. */ - public com.google.protobuf.ByteString - getPostStartupScriptBytes() { + public com.google.protobuf.ByteString getPostStartupScriptBytes() { java.lang.Object ref = postStartupScript_; 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); postStartupScript_ = b; return b; } else { @@ -12259,6 +13642,8 @@ public java.lang.String getPostStartupScript() { } } /** + * + * *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
@@ -12266,20 +13651,22 @@ public java.lang.String getPostStartupScript() {
      * 
* * string post_startup_script = 4; + * * @param value The postStartupScript to set. * @return This builder for chaining. */ - public Builder setPostStartupScript( - java.lang.String value) { + public Builder setPostStartupScript(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + postStartupScript_ = value; onChanged(); return this; } /** + * + * *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
@@ -12287,15 +13674,18 @@ public Builder setPostStartupScript(
      * 
* * string post_startup_script = 4; + * * @return This builder for chaining. */ public Builder clearPostStartupScript() { - + postStartupScript_ = getDefaultInstance().getPostStartupScript(); onChanged(); return this; } /** + * + * *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
@@ -12303,16 +13693,16 @@ public Builder clearPostStartupScript() {
      * 
* * string post_startup_script = 4; + * * @param value The bytes for postStartupScript to set. * @return This builder for chaining. */ - public Builder setPostStartupScriptBytes( - com.google.protobuf.ByteString value) { + public Builder setPostStartupScriptBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + postStartupScript_ = value; onChanged(); return this; @@ -12320,18 +13710,20 @@ public Builder setPostStartupScriptBytes( private java.lang.Object proxyUri_ = ""; /** + * + * *
      * Output only. The proxy endpoint that is used to access the Jupyter notebook.
      * 
* * string proxy_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The proxyUri. */ public java.lang.String getProxyUri() { java.lang.Object ref = proxyUri_; 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(); proxyUri_ = s; return s; @@ -12340,20 +13732,21 @@ public java.lang.String getProxyUri() { } } /** + * + * *
      * Output only. The proxy endpoint that is used to access the Jupyter notebook.
      * 
* * string proxy_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for proxyUri. */ - public com.google.protobuf.ByteString - getProxyUriBytes() { + public com.google.protobuf.ByteString getProxyUriBytes() { java.lang.Object ref = proxyUri_; 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); proxyUri_ = b; return b; } else { @@ -12361,67 +13754,78 @@ public java.lang.String getProxyUri() { } } /** + * + * *
      * Output only. The proxy endpoint that is used to access the Jupyter notebook.
      * 
* * string proxy_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The proxyUri to set. * @return This builder for chaining. */ - public Builder setProxyUri( - java.lang.String value) { + public Builder setProxyUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + proxyUri_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The proxy endpoint that is used to access the Jupyter notebook.
      * 
* * string proxy_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearProxyUri() { - + proxyUri_ = getDefaultInstance().getProxyUri(); onChanged(); return this; } /** + * + * *
      * Output only. The proxy endpoint that is used to access the Jupyter notebook.
      * 
* * string proxy_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for proxyUri to set. * @return This builder for chaining. */ - public Builder setProxyUriBytes( - com.google.protobuf.ByteString value) { + public Builder setProxyUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + proxyUri_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList instanceOwners_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList instanceOwners_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureInstanceOwnersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { instanceOwners_ = new com.google.protobuf.LazyStringArrayList(instanceOwners_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Input only. The owner of this instance after creation. Format: `alias@example.com`
      * Currently supports one owner only. If not specified, all of the service
@@ -12430,13 +13834,15 @@ private void ensureInstanceOwnersIsMutable() {
      * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return A list containing the instanceOwners. */ - public com.google.protobuf.ProtocolStringList - getInstanceOwnersList() { + public com.google.protobuf.ProtocolStringList getInstanceOwnersList() { return instanceOwners_.getUnmodifiableView(); } /** + * + * *
      * Input only. The owner of this instance after creation. Format: `alias@example.com`
      * Currently supports one owner only. If not specified, all of the service
@@ -12445,12 +13851,15 @@ private void ensureInstanceOwnersIsMutable() {
      * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The count of instanceOwners. */ public int getInstanceOwnersCount() { return instanceOwners_.size(); } /** + * + * *
      * Input only. The owner of this instance after creation. Format: `alias@example.com`
      * Currently supports one owner only. If not specified, all of the service
@@ -12459,6 +13868,7 @@ public int getInstanceOwnersCount() {
      * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param index The index of the element to return. * @return The instanceOwners at the given index. */ @@ -12466,6 +13876,8 @@ public java.lang.String getInstanceOwners(int index) { return instanceOwners_.get(index); } /** + * + * *
      * Input only. The owner of this instance after creation. Format: `alias@example.com`
      * Currently supports one owner only. If not specified, all of the service
@@ -12474,14 +13886,16 @@ public java.lang.String getInstanceOwners(int index) {
      * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the instanceOwners at the given index. */ - public com.google.protobuf.ByteString - getInstanceOwnersBytes(int index) { + public com.google.protobuf.ByteString getInstanceOwnersBytes(int index) { return instanceOwners_.getByteString(index); } /** + * + * *
      * Input only. The owner of this instance after creation. Format: `alias@example.com`
      * Currently supports one owner only. If not specified, all of the service
@@ -12490,21 +13904,23 @@ public java.lang.String getInstanceOwners(int index) {
      * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param index The index to set the value at. * @param value The instanceOwners to set. * @return This builder for chaining. */ - public Builder setInstanceOwners( - int index, java.lang.String value) { + public Builder setInstanceOwners(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInstanceOwnersIsMutable(); + throw new NullPointerException(); + } + ensureInstanceOwnersIsMutable(); instanceOwners_.set(index, value); onChanged(); return this; } /** + * + * *
      * Input only. The owner of this instance after creation. Format: `alias@example.com`
      * Currently supports one owner only. If not specified, all of the service
@@ -12513,20 +13929,22 @@ public Builder setInstanceOwners(
      * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The instanceOwners to add. * @return This builder for chaining. */ - public Builder addInstanceOwners( - java.lang.String value) { + public Builder addInstanceOwners(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInstanceOwnersIsMutable(); + throw new NullPointerException(); + } + ensureInstanceOwnersIsMutable(); instanceOwners_.add(value); onChanged(); return this; } /** + * + * *
      * Input only. The owner of this instance after creation. Format: `alias@example.com`
      * Currently supports one owner only. If not specified, all of the service
@@ -12535,18 +13953,19 @@ public Builder addInstanceOwners(
      * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param values The instanceOwners to add. * @return This builder for chaining. */ - public Builder addAllInstanceOwners( - java.lang.Iterable values) { + public Builder addAllInstanceOwners(java.lang.Iterable values) { ensureInstanceOwnersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, instanceOwners_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instanceOwners_); onChanged(); return this; } /** + * + * *
      * Input only. The owner of this instance after creation. Format: `alias@example.com`
      * Currently supports one owner only. If not specified, all of the service
@@ -12555,6 +13974,7 @@ public Builder addAllInstanceOwners(
      * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearInstanceOwners() { @@ -12564,6 +13984,8 @@ public Builder clearInstanceOwners() { return this; } /** + * + * *
      * Input only. The owner of this instance after creation. Format: `alias@example.com`
      * Currently supports one owner only. If not specified, all of the service
@@ -12572,15 +13994,15 @@ public Builder clearInstanceOwners() {
      * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The bytes of the instanceOwners to add. * @return This builder for chaining. */ - public Builder addInstanceOwnersBytes( - com.google.protobuf.ByteString value) { + public Builder addInstanceOwnersBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureInstanceOwnersIsMutable(); instanceOwners_.add(value); onChanged(); @@ -12589,6 +14011,8 @@ public Builder addInstanceOwnersBytes( private java.lang.Object serviceAccount_ = ""; /** + * + * *
      * The service account on this instance, giving access to other Google
      * Cloud services.
@@ -12600,13 +14024,13 @@ public Builder addInstanceOwnersBytes(
      * 
* * string service_account = 7; + * * @return The serviceAccount. */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; 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(); serviceAccount_ = s; return s; @@ -12615,6 +14039,8 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
      * The service account on this instance, giving access to other Google
      * Cloud services.
@@ -12626,15 +14052,14 @@ public java.lang.String getServiceAccount() {
      * 
* * string service_account = 7; + * * @return The bytes for serviceAccount. */ - public com.google.protobuf.ByteString - getServiceAccountBytes() { + public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; 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); serviceAccount_ = b; return b; } else { @@ -12642,6 +14067,8 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
      * The service account on this instance, giving access to other Google
      * Cloud services.
@@ -12653,20 +14080,22 @@ public java.lang.String getServiceAccount() {
      * 
* * string service_account = 7; + * * @param value The serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccount( - java.lang.String value) { + public Builder setServiceAccount(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccount_ = value; onChanged(); return this; } /** + * + * *
      * The service account on this instance, giving access to other Google
      * Cloud services.
@@ -12678,15 +14107,18 @@ public Builder setServiceAccount(
      * 
* * string service_account = 7; + * * @return This builder for chaining. */ public Builder clearServiceAccount() { - + serviceAccount_ = getDefaultInstance().getServiceAccount(); onChanged(); return this; } /** + * + * *
      * The service account on this instance, giving access to other Google
      * Cloud services.
@@ -12698,29 +14130,33 @@ public Builder clearServiceAccount() {
      * 
* * string service_account = 7; + * * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccountBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccount_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList serviceAccountScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList serviceAccountScopes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureServiceAccountScopesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { serviceAccountScopes_ = new com.google.protobuf.LazyStringArrayList(serviceAccountScopes_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Optional. The URIs of service account scopes to be included in
      * Compute Engine instances.
@@ -12733,14 +14169,17 @@ private void ensureServiceAccountScopesIsMutable() {
      *    https://www.googleapis.com/auth/compute
      * 
* - * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the serviceAccountScopes. */ - public com.google.protobuf.ProtocolStringList - getServiceAccountScopesList() { + public com.google.protobuf.ProtocolStringList getServiceAccountScopesList() { return serviceAccountScopes_.getUnmodifiableView(); } /** + * + * *
      * Optional. The URIs of service account scopes to be included in
      * Compute Engine instances.
@@ -12753,13 +14192,17 @@ private void ensureServiceAccountScopesIsMutable() {
      *    https://www.googleapis.com/auth/compute
      * 
* - * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of serviceAccountScopes. */ public int getServiceAccountScopesCount() { return serviceAccountScopes_.size(); } /** + * + * *
      * Optional. The URIs of service account scopes to be included in
      * Compute Engine instances.
@@ -12772,7 +14215,9 @@ public int getServiceAccountScopesCount() {
      *    https://www.googleapis.com/auth/compute
      * 
* - * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The serviceAccountScopes at the given index. */ @@ -12780,6 +14225,8 @@ public java.lang.String getServiceAccountScopes(int index) { return serviceAccountScopes_.get(index); } /** + * + * *
      * Optional. The URIs of service account scopes to be included in
      * Compute Engine instances.
@@ -12792,15 +14239,18 @@ public java.lang.String getServiceAccountScopes(int index) {
      *    https://www.googleapis.com/auth/compute
      * 
* - * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the serviceAccountScopes at the given index. */ - public com.google.protobuf.ByteString - getServiceAccountScopesBytes(int index) { + public com.google.protobuf.ByteString getServiceAccountScopesBytes(int index) { return serviceAccountScopes_.getByteString(index); } /** + * + * *
      * Optional. The URIs of service account scopes to be included in
      * Compute Engine instances.
@@ -12813,22 +14263,25 @@ public java.lang.String getServiceAccountScopes(int index) {
      *    https://www.googleapis.com/auth/compute
      * 
* - * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The serviceAccountScopes to set. * @return This builder for chaining. */ - public Builder setServiceAccountScopes( - int index, java.lang.String value) { + public Builder setServiceAccountScopes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureServiceAccountScopesIsMutable(); + throw new NullPointerException(); + } + ensureServiceAccountScopesIsMutable(); serviceAccountScopes_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. The URIs of service account scopes to be included in
      * Compute Engine instances.
@@ -12841,21 +14294,24 @@ public Builder setServiceAccountScopes(
      *    https://www.googleapis.com/auth/compute
      * 
* - * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The serviceAccountScopes to add. * @return This builder for chaining. */ - public Builder addServiceAccountScopes( - java.lang.String value) { + public Builder addServiceAccountScopes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureServiceAccountScopesIsMutable(); + throw new NullPointerException(); + } + ensureServiceAccountScopesIsMutable(); serviceAccountScopes_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. The URIs of service account scopes to be included in
      * Compute Engine instances.
@@ -12868,19 +14324,21 @@ public Builder addServiceAccountScopes(
      *    https://www.googleapis.com/auth/compute
      * 
* - * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The serviceAccountScopes to add. * @return This builder for chaining. */ - public Builder addAllServiceAccountScopes( - java.lang.Iterable values) { + public Builder addAllServiceAccountScopes(java.lang.Iterable values) { ensureServiceAccountScopesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, serviceAccountScopes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serviceAccountScopes_); onChanged(); return this; } /** + * + * *
      * Optional. The URIs of service account scopes to be included in
      * Compute Engine instances.
@@ -12893,7 +14351,9 @@ public Builder addAllServiceAccountScopes(
      *    https://www.googleapis.com/auth/compute
      * 
* - * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearServiceAccountScopes() { @@ -12903,6 +14363,8 @@ public Builder clearServiceAccountScopes() { return this; } /** + * + * *
      * Optional. The URIs of service account scopes to be included in
      * Compute Engine instances.
@@ -12915,16 +14377,17 @@ public Builder clearServiceAccountScopes() {
      *    https://www.googleapis.com/auth/compute
      * 
* - * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes of the serviceAccountScopes to add. * @return This builder for chaining. */ - public Builder addServiceAccountScopesBytes( - com.google.protobuf.ByteString value) { + public Builder addServiceAccountScopesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureServiceAccountScopesIsMutable(); serviceAccountScopes_.add(value); onChanged(); @@ -12933,19 +14396,21 @@ public Builder addServiceAccountScopesBytes( private java.lang.Object machineType_ = ""; /** + * + * *
      * Required. The [Compute Engine machine type](/compute/docs/machine-types) of this
      * instance.
      * 
* * string machine_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The machineType. */ public java.lang.String getMachineType() { java.lang.Object ref = machineType_; 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(); machineType_ = s; return s; @@ -12954,21 +14419,22 @@ public java.lang.String getMachineType() { } } /** + * + * *
      * Required. The [Compute Engine machine type](/compute/docs/machine-types) of this
      * instance.
      * 
* * string machine_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for machineType. */ - public com.google.protobuf.ByteString - getMachineTypeBytes() { + public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; 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); machineType_ = b; return b; } else { @@ -12976,57 +14442,64 @@ public java.lang.String getMachineType() { } } /** + * + * *
      * Required. The [Compute Engine machine type](/compute/docs/machine-types) of this
      * instance.
      * 
* * string machine_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The machineType to set. * @return This builder for chaining. */ - public Builder setMachineType( - java.lang.String value) { + public Builder setMachineType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + machineType_ = value; onChanged(); return this; } /** + * + * *
      * Required. The [Compute Engine machine type](/compute/docs/machine-types) of this
      * instance.
      * 
* * string machine_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearMachineType() { - + machineType_ = getDefaultInstance().getMachineType(); onChanged(); return this; } /** + * + * *
      * Required. The [Compute Engine machine type](/compute/docs/machine-types) of this
      * instance.
      * 
* * string machine_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for machineType to set. * @return This builder for chaining. */ - public Builder setMachineTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + machineType_ = value; onChanged(); return this; @@ -13034,8 +14507,13 @@ public Builder setMachineTypeBytes( private com.google.cloud.notebooks.v1.Instance.AcceleratorConfig acceleratorConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.Instance.AcceleratorConfig, com.google.cloud.notebooks.v1.Instance.AcceleratorConfig.Builder, com.google.cloud.notebooks.v1.Instance.AcceleratorConfigOrBuilder> acceleratorConfigBuilder_; + com.google.cloud.notebooks.v1.Instance.AcceleratorConfig, + com.google.cloud.notebooks.v1.Instance.AcceleratorConfig.Builder, + com.google.cloud.notebooks.v1.Instance.AcceleratorConfigOrBuilder> + acceleratorConfigBuilder_; /** + * + * *
      * The hardware accelerator used on this instance. If you use
      * accelerators, make sure that your configuration has
@@ -13044,12 +14522,15 @@ public Builder setMachineTypeBytes(
      * 
* * .google.cloud.notebooks.v1.Instance.AcceleratorConfig accelerator_config = 9; + * * @return Whether the acceleratorConfig field is set. */ public boolean hasAcceleratorConfig() { return acceleratorConfigBuilder_ != null || acceleratorConfig_ != null; } /** + * + * *
      * The hardware accelerator used on this instance. If you use
      * accelerators, make sure that your configuration has
@@ -13058,16 +14539,21 @@ public boolean hasAcceleratorConfig() {
      * 
* * .google.cloud.notebooks.v1.Instance.AcceleratorConfig accelerator_config = 9; + * * @return The acceleratorConfig. */ public com.google.cloud.notebooks.v1.Instance.AcceleratorConfig getAcceleratorConfig() { if (acceleratorConfigBuilder_ == null) { - return acceleratorConfig_ == null ? com.google.cloud.notebooks.v1.Instance.AcceleratorConfig.getDefaultInstance() : acceleratorConfig_; + return acceleratorConfig_ == null + ? com.google.cloud.notebooks.v1.Instance.AcceleratorConfig.getDefaultInstance() + : acceleratorConfig_; } else { return acceleratorConfigBuilder_.getMessage(); } } /** + * + * *
      * The hardware accelerator used on this instance. If you use
      * accelerators, make sure that your configuration has
@@ -13077,7 +14563,8 @@ public com.google.cloud.notebooks.v1.Instance.AcceleratorConfig getAcceleratorCo
      *
      * .google.cloud.notebooks.v1.Instance.AcceleratorConfig accelerator_config = 9;
      */
-    public Builder setAcceleratorConfig(com.google.cloud.notebooks.v1.Instance.AcceleratorConfig value) {
+    public Builder setAcceleratorConfig(
+        com.google.cloud.notebooks.v1.Instance.AcceleratorConfig value) {
       if (acceleratorConfigBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -13091,6 +14578,8 @@ public Builder setAcceleratorConfig(com.google.cloud.notebooks.v1.Instance.Accel
       return this;
     }
     /**
+     *
+     *
      * 
      * The hardware accelerator used on this instance. If you use
      * accelerators, make sure that your configuration has
@@ -13112,6 +14601,8 @@ public Builder setAcceleratorConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * The hardware accelerator used on this instance. If you use
      * accelerators, make sure that your configuration has
@@ -13121,11 +14612,15 @@ public Builder setAcceleratorConfig(
      *
      * .google.cloud.notebooks.v1.Instance.AcceleratorConfig accelerator_config = 9;
      */
-    public Builder mergeAcceleratorConfig(com.google.cloud.notebooks.v1.Instance.AcceleratorConfig value) {
+    public Builder mergeAcceleratorConfig(
+        com.google.cloud.notebooks.v1.Instance.AcceleratorConfig value) {
       if (acceleratorConfigBuilder_ == null) {
         if (acceleratorConfig_ != null) {
           acceleratorConfig_ =
-            com.google.cloud.notebooks.v1.Instance.AcceleratorConfig.newBuilder(acceleratorConfig_).mergeFrom(value).buildPartial();
+              com.google.cloud.notebooks.v1.Instance.AcceleratorConfig.newBuilder(
+                      acceleratorConfig_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           acceleratorConfig_ = value;
         }
@@ -13137,6 +14632,8 @@ public Builder mergeAcceleratorConfig(com.google.cloud.notebooks.v1.Instance.Acc
       return this;
     }
     /**
+     *
+     *
      * 
      * The hardware accelerator used on this instance. If you use
      * accelerators, make sure that your configuration has
@@ -13158,6 +14655,8 @@ public Builder clearAcceleratorConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The hardware accelerator used on this instance. If you use
      * accelerators, make sure that your configuration has
@@ -13167,12 +14666,15 @@ public Builder clearAcceleratorConfig() {
      *
      * .google.cloud.notebooks.v1.Instance.AcceleratorConfig accelerator_config = 9;
      */
-    public com.google.cloud.notebooks.v1.Instance.AcceleratorConfig.Builder getAcceleratorConfigBuilder() {
-      
+    public com.google.cloud.notebooks.v1.Instance.AcceleratorConfig.Builder
+        getAcceleratorConfigBuilder() {
+
       onChanged();
       return getAcceleratorConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The hardware accelerator used on this instance. If you use
      * accelerators, make sure that your configuration has
@@ -13182,15 +14684,19 @@ public com.google.cloud.notebooks.v1.Instance.AcceleratorConfig.Builder getAccel
      *
      * .google.cloud.notebooks.v1.Instance.AcceleratorConfig accelerator_config = 9;
      */
-    public com.google.cloud.notebooks.v1.Instance.AcceleratorConfigOrBuilder getAcceleratorConfigOrBuilder() {
+    public com.google.cloud.notebooks.v1.Instance.AcceleratorConfigOrBuilder
+        getAcceleratorConfigOrBuilder() {
       if (acceleratorConfigBuilder_ != null) {
         return acceleratorConfigBuilder_.getMessageOrBuilder();
       } else {
-        return acceleratorConfig_ == null ?
-            com.google.cloud.notebooks.v1.Instance.AcceleratorConfig.getDefaultInstance() : acceleratorConfig_;
+        return acceleratorConfig_ == null
+            ? com.google.cloud.notebooks.v1.Instance.AcceleratorConfig.getDefaultInstance()
+            : acceleratorConfig_;
       }
     }
     /**
+     *
+     *
      * 
      * The hardware accelerator used on this instance. If you use
      * accelerators, make sure that your configuration has
@@ -13201,14 +14707,17 @@ public com.google.cloud.notebooks.v1.Instance.AcceleratorConfigOrBuilder getAcce
      * .google.cloud.notebooks.v1.Instance.AcceleratorConfig accelerator_config = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.notebooks.v1.Instance.AcceleratorConfig, com.google.cloud.notebooks.v1.Instance.AcceleratorConfig.Builder, com.google.cloud.notebooks.v1.Instance.AcceleratorConfigOrBuilder> 
+            com.google.cloud.notebooks.v1.Instance.AcceleratorConfig,
+            com.google.cloud.notebooks.v1.Instance.AcceleratorConfig.Builder,
+            com.google.cloud.notebooks.v1.Instance.AcceleratorConfigOrBuilder>
         getAcceleratorConfigFieldBuilder() {
       if (acceleratorConfigBuilder_ == null) {
-        acceleratorConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.notebooks.v1.Instance.AcceleratorConfig, com.google.cloud.notebooks.v1.Instance.AcceleratorConfig.Builder, com.google.cloud.notebooks.v1.Instance.AcceleratorConfigOrBuilder>(
-                getAcceleratorConfig(),
-                getParentForChildren(),
-                isClean());
+        acceleratorConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.notebooks.v1.Instance.AcceleratorConfig,
+                com.google.cloud.notebooks.v1.Instance.AcceleratorConfig.Builder,
+                com.google.cloud.notebooks.v1.Instance.AcceleratorConfigOrBuilder>(
+                getAcceleratorConfig(), getParentForChildren(), isClean());
         acceleratorConfig_ = null;
       }
       return acceleratorConfigBuilder_;
@@ -13216,51 +14725,73 @@ public com.google.cloud.notebooks.v1.Instance.AcceleratorConfigOrBuilder getAcce
 
     private int state_ = 0;
     /**
+     *
+     *
      * 
      * Output only. The state of this instance.
      * 
* - * .google.cloud.notebooks.v1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The state of this instance.
      * 
* - * .google.cloud.notebooks.v1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The state of this instance.
      * 
* - * .google.cloud.notebooks.v1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.notebooks.v1.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.Instance.State result = com.google.cloud.notebooks.v1.Instance.State.valueOf(state_); + com.google.cloud.notebooks.v1.Instance.State result = + com.google.cloud.notebooks.v1.Instance.State.valueOf(state_); return result == null ? com.google.cloud.notebooks.v1.Instance.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The state of this instance.
      * 
* - * .google.cloud.notebooks.v1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -13268,28 +14799,35 @@ public Builder setState(com.google.cloud.notebooks.v1.Instance.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The state of this instance.
      * 
* - * .google.cloud.notebooks.v1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private boolean installGpuDriver_ ; + private boolean installGpuDriver_; /** + * + * *
      * Whether the end user authorizes Google Cloud to install GPU driver
      * on this instance.
@@ -13298,6 +14836,7 @@ public Builder clearState() {
      * 
* * bool install_gpu_driver = 11; + * * @return The installGpuDriver. */ @java.lang.Override @@ -13305,6 +14844,8 @@ public boolean getInstallGpuDriver() { return installGpuDriver_; } /** + * + * *
      * Whether the end user authorizes Google Cloud to install GPU driver
      * on this instance.
@@ -13313,16 +14854,19 @@ public boolean getInstallGpuDriver() {
      * 
* * bool install_gpu_driver = 11; + * * @param value The installGpuDriver to set. * @return This builder for chaining. */ public Builder setInstallGpuDriver(boolean value) { - + installGpuDriver_ = value; onChanged(); return this; } /** + * + * *
      * Whether the end user authorizes Google Cloud to install GPU driver
      * on this instance.
@@ -13331,10 +14875,11 @@ public Builder setInstallGpuDriver(boolean value) {
      * 
* * bool install_gpu_driver = 11; + * * @return This builder for chaining. */ public Builder clearInstallGpuDriver() { - + installGpuDriver_ = false; onChanged(); return this; @@ -13342,19 +14887,21 @@ public Builder clearInstallGpuDriver() { private java.lang.Object customGpuDriverPath_ = ""; /** + * + * *
      * Specify a custom Cloud Storage path where the GPU driver is stored.
      * If not specified, we'll automatically choose from official GPU drivers.
      * 
* * string custom_gpu_driver_path = 12; + * * @return The customGpuDriverPath. */ public java.lang.String getCustomGpuDriverPath() { java.lang.Object ref = customGpuDriverPath_; 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(); customGpuDriverPath_ = s; return s; @@ -13363,21 +14910,22 @@ public java.lang.String getCustomGpuDriverPath() { } } /** + * + * *
      * Specify a custom Cloud Storage path where the GPU driver is stored.
      * If not specified, we'll automatically choose from official GPU drivers.
      * 
* * string custom_gpu_driver_path = 12; + * * @return The bytes for customGpuDriverPath. */ - public com.google.protobuf.ByteString - getCustomGpuDriverPathBytes() { + public com.google.protobuf.ByteString getCustomGpuDriverPathBytes() { java.lang.Object ref = customGpuDriverPath_; 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); customGpuDriverPath_ = b; return b; } else { @@ -13385,57 +14933,64 @@ public java.lang.String getCustomGpuDriverPath() { } } /** + * + * *
      * Specify a custom Cloud Storage path where the GPU driver is stored.
      * If not specified, we'll automatically choose from official GPU drivers.
      * 
* * string custom_gpu_driver_path = 12; + * * @param value The customGpuDriverPath to set. * @return This builder for chaining. */ - public Builder setCustomGpuDriverPath( - java.lang.String value) { + public Builder setCustomGpuDriverPath(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + customGpuDriverPath_ = value; onChanged(); return this; } /** + * + * *
      * Specify a custom Cloud Storage path where the GPU driver is stored.
      * If not specified, we'll automatically choose from official GPU drivers.
      * 
* * string custom_gpu_driver_path = 12; + * * @return This builder for chaining. */ public Builder clearCustomGpuDriverPath() { - + customGpuDriverPath_ = getDefaultInstance().getCustomGpuDriverPath(); onChanged(); return this; } /** + * + * *
      * Specify a custom Cloud Storage path where the GPU driver is stored.
      * If not specified, we'll automatically choose from official GPU drivers.
      * 
* * string custom_gpu_driver_path = 12; + * * @param value The bytes for customGpuDriverPath to set. * @return This builder for chaining. */ - public Builder setCustomGpuDriverPathBytes( - com.google.protobuf.ByteString value) { + public Builder setCustomGpuDriverPathBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customGpuDriverPath_ = value; onChanged(); return this; @@ -13443,55 +14998,77 @@ public Builder setCustomGpuDriverPathBytes( private int bootDiskType_ = 0; /** + * + * *
      * Input only. The type of the boot disk attached to this instance, defaults to
      * standard persistent disk (`PD_STANDARD`).
      * 
* - * .google.cloud.notebooks.v1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The enum numeric value on the wire for bootDiskType. */ - @java.lang.Override public int getBootDiskTypeValue() { + @java.lang.Override + public int getBootDiskTypeValue() { return bootDiskType_; } /** + * + * *
      * Input only. The type of the boot disk attached to this instance, defaults to
      * standard persistent disk (`PD_STANDARD`).
      * 
* - * .google.cloud.notebooks.v1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for bootDiskType to set. * @return This builder for chaining. */ public Builder setBootDiskTypeValue(int value) { - + bootDiskType_ = value; onChanged(); return this; } /** + * + * *
      * Input only. The type of the boot disk attached to this instance, defaults to
      * standard persistent disk (`PD_STANDARD`).
      * 
* - * .google.cloud.notebooks.v1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bootDiskType. */ @java.lang.Override public com.google.cloud.notebooks.v1.Instance.DiskType getBootDiskType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.Instance.DiskType result = com.google.cloud.notebooks.v1.Instance.DiskType.valueOf(bootDiskType_); + com.google.cloud.notebooks.v1.Instance.DiskType result = + com.google.cloud.notebooks.v1.Instance.DiskType.valueOf(bootDiskType_); return result == null ? com.google.cloud.notebooks.v1.Instance.DiskType.UNRECOGNIZED : result; } /** + * + * *
      * Input only. The type of the boot disk attached to this instance, defaults to
      * standard persistent disk (`PD_STANDARD`).
      * 
* - * .google.cloud.notebooks.v1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The bootDiskType to set. * @return This builder for chaining. */ @@ -13499,29 +15076,36 @@ public Builder setBootDiskType(com.google.cloud.notebooks.v1.Instance.DiskType v if (value == null) { throw new NullPointerException(); } - + bootDiskType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Input only. The type of the boot disk attached to this instance, defaults to
      * standard persistent disk (`PD_STANDARD`).
      * 
* - * .google.cloud.notebooks.v1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearBootDiskType() { - + bootDiskType_ = 0; onChanged(); return this; } - private long bootDiskSizeGb_ ; + private long bootDiskSizeGb_; /** + * + * *
      * Input only. The size of the boot disk in GB attached to this instance, up to a maximum
      * of 64000&nbsp;GB (64&nbsp;TB). The minimum recommended value is
@@ -13529,6 +15113,7 @@ public Builder clearBootDiskType() {
      * 
* * int64 boot_disk_size_gb = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bootDiskSizeGb. */ @java.lang.Override @@ -13536,6 +15121,8 @@ public long getBootDiskSizeGb() { return bootDiskSizeGb_; } /** + * + * *
      * Input only. The size of the boot disk in GB attached to this instance, up to a maximum
      * of 64000&nbsp;GB (64&nbsp;TB). The minimum recommended value is
@@ -13543,16 +15130,19 @@ public long getBootDiskSizeGb() {
      * 
* * int64 boot_disk_size_gb = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The bootDiskSizeGb to set. * @return This builder for chaining. */ public Builder setBootDiskSizeGb(long value) { - + bootDiskSizeGb_ = value; onChanged(); return this; } /** + * + * *
      * Input only. The size of the boot disk in GB attached to this instance, up to a maximum
      * of 64000&nbsp;GB (64&nbsp;TB). The minimum recommended value is
@@ -13560,10 +15150,11 @@ public Builder setBootDiskSizeGb(long value) {
      * 
* * int64 boot_disk_size_gb = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearBootDiskSizeGb() { - + bootDiskSizeGb_ = 0L; onChanged(); return this; @@ -13571,55 +15162,77 @@ public Builder clearBootDiskSizeGb() { private int dataDiskType_ = 0; /** + * + * *
      * Input only. The type of the data disk attached to this instance, defaults to
      * standard persistent disk (`PD_STANDARD`).
      * 
* - * .google.cloud.notebooks.v1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The enum numeric value on the wire for dataDiskType. */ - @java.lang.Override public int getDataDiskTypeValue() { + @java.lang.Override + public int getDataDiskTypeValue() { return dataDiskType_; } /** + * + * *
      * Input only. The type of the data disk attached to this instance, defaults to
      * standard persistent disk (`PD_STANDARD`).
      * 
* - * .google.cloud.notebooks.v1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for dataDiskType to set. * @return This builder for chaining. */ public Builder setDataDiskTypeValue(int value) { - + dataDiskType_ = value; onChanged(); return this; } /** + * + * *
      * Input only. The type of the data disk attached to this instance, defaults to
      * standard persistent disk (`PD_STANDARD`).
      * 
* - * .google.cloud.notebooks.v1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The dataDiskType. */ @java.lang.Override public com.google.cloud.notebooks.v1.Instance.DiskType getDataDiskType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.Instance.DiskType result = com.google.cloud.notebooks.v1.Instance.DiskType.valueOf(dataDiskType_); + com.google.cloud.notebooks.v1.Instance.DiskType result = + com.google.cloud.notebooks.v1.Instance.DiskType.valueOf(dataDiskType_); return result == null ? com.google.cloud.notebooks.v1.Instance.DiskType.UNRECOGNIZED : result; } /** + * + * *
      * Input only. The type of the data disk attached to this instance, defaults to
      * standard persistent disk (`PD_STANDARD`).
      * 
* - * .google.cloud.notebooks.v1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The dataDiskType to set. * @return This builder for chaining. */ @@ -13627,29 +15240,36 @@ public Builder setDataDiskType(com.google.cloud.notebooks.v1.Instance.DiskType v if (value == null) { throw new NullPointerException(); } - + dataDiskType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Input only. The type of the data disk attached to this instance, defaults to
      * standard persistent disk (`PD_STANDARD`).
      * 
* - * .google.cloud.notebooks.v1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearDataDiskType() { - + dataDiskType_ = 0; onChanged(); return this; } - private long dataDiskSizeGb_ ; + private long dataDiskSizeGb_; /** + * + * *
      * Input only. The size of the data disk in GB attached to this instance, up to a maximum
      * of 64000&nbsp;GB (64&nbsp;TB). You can choose the size of the data disk
@@ -13658,6 +15278,7 @@ public Builder clearDataDiskType() {
      * 
* * int64 data_disk_size_gb = 26 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The dataDiskSizeGb. */ @java.lang.Override @@ -13665,6 +15286,8 @@ public long getDataDiskSizeGb() { return dataDiskSizeGb_; } /** + * + * *
      * Input only. The size of the data disk in GB attached to this instance, up to a maximum
      * of 64000&nbsp;GB (64&nbsp;TB). You can choose the size of the data disk
@@ -13673,16 +15296,19 @@ public long getDataDiskSizeGb() {
      * 
* * int64 data_disk_size_gb = 26 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The dataDiskSizeGb to set. * @return This builder for chaining. */ public Builder setDataDiskSizeGb(long value) { - + dataDiskSizeGb_ = value; onChanged(); return this; } /** + * + * *
      * Input only. The size of the data disk in GB attached to this instance, up to a maximum
      * of 64000&nbsp;GB (64&nbsp;TB). You can choose the size of the data disk
@@ -13691,22 +15317,26 @@ public Builder setDataDiskSizeGb(long value) {
      * 
* * int64 data_disk_size_gb = 26 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDataDiskSizeGb() { - + dataDiskSizeGb_ = 0L; onChanged(); return this; } - private boolean noRemoveDataDisk_ ; + private boolean noRemoveDataDisk_; /** + * + * *
      * Input only. If true, the data disk will not be auto deleted when deleting the instance.
      * 
* * bool no_remove_data_disk = 27 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The noRemoveDataDisk. */ @java.lang.Override @@ -13714,30 +15344,36 @@ public boolean getNoRemoveDataDisk() { return noRemoveDataDisk_; } /** + * + * *
      * Input only. If true, the data disk will not be auto deleted when deleting the instance.
      * 
* * bool no_remove_data_disk = 27 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The noRemoveDataDisk to set. * @return This builder for chaining. */ public Builder setNoRemoveDataDisk(boolean value) { - + noRemoveDataDisk_ = value; onChanged(); return this; } /** + * + * *
      * Input only. If true, the data disk will not be auto deleted when deleting the instance.
      * 
* * bool no_remove_data_disk = 27 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearNoRemoveDataDisk() { - + noRemoveDataDisk_ = false; onChanged(); return this; @@ -13745,51 +15381,75 @@ public Builder clearNoRemoveDataDisk() { private int diskEncryption_ = 0; /** + * + * *
      * Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
      * 
* - * .google.cloud.notebooks.v1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The enum numeric value on the wire for diskEncryption. */ - @java.lang.Override public int getDiskEncryptionValue() { + @java.lang.Override + public int getDiskEncryptionValue() { return diskEncryption_; } /** + * + * *
      * Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
      * 
* - * .google.cloud.notebooks.v1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for diskEncryption to set. * @return This builder for chaining. */ public Builder setDiskEncryptionValue(int value) { - + diskEncryption_ = value; onChanged(); return this; } /** + * + * *
      * Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
      * 
* - * .google.cloud.notebooks.v1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The diskEncryption. */ @java.lang.Override public com.google.cloud.notebooks.v1.Instance.DiskEncryption getDiskEncryption() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.Instance.DiskEncryption result = com.google.cloud.notebooks.v1.Instance.DiskEncryption.valueOf(diskEncryption_); - return result == null ? com.google.cloud.notebooks.v1.Instance.DiskEncryption.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1.Instance.DiskEncryption result = + com.google.cloud.notebooks.v1.Instance.DiskEncryption.valueOf(diskEncryption_); + return result == null + ? com.google.cloud.notebooks.v1.Instance.DiskEncryption.UNRECOGNIZED + : result; } /** + * + * *
      * Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
      * 
* - * .google.cloud.notebooks.v1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The diskEncryption to set. * @return This builder for chaining. */ @@ -13797,21 +15457,26 @@ public Builder setDiskEncryption(com.google.cloud.notebooks.v1.Instance.DiskEncr if (value == null) { throw new NullPointerException(); } - + diskEncryption_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
      * 
* - * .google.cloud.notebooks.v1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearDiskEncryption() { - + diskEncryption_ = 0; onChanged(); return this; @@ -13819,6 +15484,8 @@ public Builder clearDiskEncryption() { private java.lang.Object kmsKey_ = ""; /** + * + * *
      * Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption
      * is CMEK.
@@ -13828,13 +15495,13 @@ public Builder clearDiskEncryption() {
      * 
* * string kms_key = 16 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The kmsKey. */ public java.lang.String getKmsKey() { java.lang.Object ref = kmsKey_; 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(); kmsKey_ = s; return s; @@ -13843,6 +15510,8 @@ public java.lang.String getKmsKey() { } } /** + * + * *
      * Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption
      * is CMEK.
@@ -13852,15 +15521,14 @@ public java.lang.String getKmsKey() {
      * 
* * string kms_key = 16 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for kmsKey. */ - public com.google.protobuf.ByteString - getKmsKeyBytes() { + public com.google.protobuf.ByteString getKmsKeyBytes() { java.lang.Object ref = kmsKey_; 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); kmsKey_ = b; return b; } else { @@ -13868,6 +15536,8 @@ public java.lang.String getKmsKey() { } } /** + * + * *
      * Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption
      * is CMEK.
@@ -13877,20 +15547,22 @@ public java.lang.String getKmsKey() {
      * 
* * string kms_key = 16 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The kmsKey to set. * @return This builder for chaining. */ - public Builder setKmsKey( - java.lang.String value) { + public Builder setKmsKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kmsKey_ = value; onChanged(); return this; } /** + * + * *
      * Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption
      * is CMEK.
@@ -13900,15 +15572,18 @@ public Builder setKmsKey(
      * 
* * string kms_key = 16 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearKmsKey() { - + kmsKey_ = getDefaultInstance().getKmsKey(); onChanged(); return this; } /** + * + * *
      * Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption
      * is CMEK.
@@ -13918,39 +15593,47 @@ public Builder clearKmsKey() {
      * 
* * string kms_key = 16 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The bytes for kmsKey to set. * @return This builder for chaining. */ - public Builder setKmsKeyBytes( - com.google.protobuf.ByteString value) { + public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKey_ = value; onChanged(); return this; } private java.util.List disks_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureDisksIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { disks_ = new java.util.ArrayList(disks_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.Instance.Disk, com.google.cloud.notebooks.v1.Instance.Disk.Builder, com.google.cloud.notebooks.v1.Instance.DiskOrBuilder> disksBuilder_; + com.google.cloud.notebooks.v1.Instance.Disk, + com.google.cloud.notebooks.v1.Instance.Disk.Builder, + com.google.cloud.notebooks.v1.Instance.DiskOrBuilder> + disksBuilder_; /** + * + * *
      * Output only. Attached disks to notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getDisksList() { if (disksBuilder_ == null) { @@ -13960,11 +15643,15 @@ public java.util.List getDisksList( } } /** + * + * *
      * Output only. Attached disks to notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getDisksCount() { if (disksBuilder_ == null) { @@ -13974,11 +15661,15 @@ public int getDisksCount() { } } /** + * + * *
      * Output only. Attached disks to notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.notebooks.v1.Instance.Disk getDisks(int index) { if (disksBuilder_ == null) { @@ -13988,14 +15679,17 @@ public com.google.cloud.notebooks.v1.Instance.Disk getDisks(int index) { } } /** + * + * *
      * Output only. Attached disks to notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDisks( - int index, com.google.cloud.notebooks.v1.Instance.Disk value) { + public Builder setDisks(int index, com.google.cloud.notebooks.v1.Instance.Disk value) { if (disksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -14009,11 +15703,15 @@ public Builder setDisks( return this; } /** + * + * *
      * Output only. Attached disks to notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDisks( int index, com.google.cloud.notebooks.v1.Instance.Disk.Builder builderForValue) { @@ -14027,11 +15725,15 @@ public Builder setDisks( return this; } /** + * + * *
      * Output only. Attached disks to notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addDisks(com.google.cloud.notebooks.v1.Instance.Disk value) { if (disksBuilder_ == null) { @@ -14047,14 +15749,17 @@ public Builder addDisks(com.google.cloud.notebooks.v1.Instance.Disk value) { return this; } /** + * + * *
      * Output only. Attached disks to notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addDisks( - int index, com.google.cloud.notebooks.v1.Instance.Disk value) { + public Builder addDisks(int index, com.google.cloud.notebooks.v1.Instance.Disk value) { if (disksBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -14068,14 +15773,17 @@ public Builder addDisks( return this; } /** + * + * *
      * Output only. Attached disks to notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addDisks( - com.google.cloud.notebooks.v1.Instance.Disk.Builder builderForValue) { + public Builder addDisks(com.google.cloud.notebooks.v1.Instance.Disk.Builder builderForValue) { if (disksBuilder_ == null) { ensureDisksIsMutable(); disks_.add(builderForValue.build()); @@ -14086,11 +15794,15 @@ public Builder addDisks( return this; } /** + * + * *
      * Output only. Attached disks to notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addDisks( int index, com.google.cloud.notebooks.v1.Instance.Disk.Builder builderForValue) { @@ -14104,18 +15816,21 @@ public Builder addDisks( return this; } /** + * + * *
      * Output only. Attached disks to notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllDisks( java.lang.Iterable values) { if (disksBuilder_ == null) { ensureDisksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, disks_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, disks_); onChanged(); } else { disksBuilder_.addAllMessages(values); @@ -14123,11 +15838,15 @@ public Builder addAllDisks( return this; } /** + * + * *
      * Output only. Attached disks to notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDisks() { if (disksBuilder_ == null) { @@ -14140,11 +15859,15 @@ public Builder clearDisks() { return this; } /** + * + * *
      * Output only. Attached disks to notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeDisks(int index) { if (disksBuilder_ == null) { @@ -14157,39 +15880,50 @@ public Builder removeDisks(int index) { return this; } /** + * + * *
      * Output only. Attached disks to notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.notebooks.v1.Instance.Disk.Builder getDisksBuilder( - int index) { + public com.google.cloud.notebooks.v1.Instance.Disk.Builder getDisksBuilder(int index) { return getDisksFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Attached disks to notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.notebooks.v1.Instance.DiskOrBuilder getDisksOrBuilder( - int index) { + public com.google.cloud.notebooks.v1.Instance.DiskOrBuilder getDisksOrBuilder(int index) { if (disksBuilder_ == null) { - return disks_.get(index); } else { + return disks_.get(index); + } else { return disksBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Attached disks to notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getDisksOrBuilderList() { + public java.util.List + getDisksOrBuilderList() { if (disksBuilder_ != null) { return disksBuilder_.getMessageOrBuilderList(); } else { @@ -14197,49 +15931,63 @@ public com.google.cloud.notebooks.v1.Instance.DiskOrBuilder getDisksOrBuilder( } } /** + * + * *
      * Output only. Attached disks to notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.notebooks.v1.Instance.Disk.Builder addDisksBuilder() { - return getDisksFieldBuilder().addBuilder( - com.google.cloud.notebooks.v1.Instance.Disk.getDefaultInstance()); + return getDisksFieldBuilder() + .addBuilder(com.google.cloud.notebooks.v1.Instance.Disk.getDefaultInstance()); } /** + * + * *
      * Output only. Attached disks to notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.notebooks.v1.Instance.Disk.Builder addDisksBuilder( - int index) { - return getDisksFieldBuilder().addBuilder( - index, com.google.cloud.notebooks.v1.Instance.Disk.getDefaultInstance()); + public com.google.cloud.notebooks.v1.Instance.Disk.Builder addDisksBuilder(int index) { + return getDisksFieldBuilder() + .addBuilder(index, com.google.cloud.notebooks.v1.Instance.Disk.getDefaultInstance()); } /** + * + * *
      * Output only. Attached disks to notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getDisksBuilderList() { + public java.util.List + getDisksBuilderList() { return getDisksFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.Instance.Disk, com.google.cloud.notebooks.v1.Instance.Disk.Builder, com.google.cloud.notebooks.v1.Instance.DiskOrBuilder> + com.google.cloud.notebooks.v1.Instance.Disk, + com.google.cloud.notebooks.v1.Instance.Disk.Builder, + com.google.cloud.notebooks.v1.Instance.DiskOrBuilder> getDisksFieldBuilder() { if (disksBuilder_ == null) { - disksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.Instance.Disk, com.google.cloud.notebooks.v1.Instance.Disk.Builder, com.google.cloud.notebooks.v1.Instance.DiskOrBuilder>( - disks_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + disksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.notebooks.v1.Instance.Disk, + com.google.cloud.notebooks.v1.Instance.Disk.Builder, + com.google.cloud.notebooks.v1.Instance.DiskOrBuilder>( + disks_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); disks_ = null; } return disksBuilder_; @@ -14247,47 +15995,68 @@ public com.google.cloud.notebooks.v1.Instance.Disk.Builder addDisksBuilder( private com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shieldedInstanceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig, com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.Builder, com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfigOrBuilder> shieldedInstanceConfigBuilder_; + com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig, + com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.Builder, + com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfigOrBuilder> + shieldedInstanceConfigBuilder_; /** + * + * *
      * Optional. Shielded VM configuration.
      * [Images using supported Shielded VM
      * features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
      * 
* - * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the shieldedInstanceConfig field is set. */ public boolean hasShieldedInstanceConfig() { return shieldedInstanceConfigBuilder_ != null || shieldedInstanceConfig_ != null; } /** + * + * *
      * Optional. Shielded VM configuration.
      * [Images using supported Shielded VM
      * features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
      * 
* - * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The shieldedInstanceConfig. */ - public com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig getShieldedInstanceConfig() { + public com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig + getShieldedInstanceConfig() { if (shieldedInstanceConfigBuilder_ == null) { - return shieldedInstanceConfig_ == null ? com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null + ? com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } else { return shieldedInstanceConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Shielded VM configuration.
      * [Images using supported Shielded VM
      * features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
      * 
* - * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setShieldedInstanceConfig(com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig value) { + public Builder setShieldedInstanceConfig( + com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig value) { if (shieldedInstanceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -14301,13 +16070,17 @@ public Builder setShieldedInstanceConfig(com.google.cloud.notebooks.v1.Instance. return this; } /** + * + * *
      * Optional. Shielded VM configuration.
      * [Images using supported Shielded VM
      * features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
      * 
* - * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setShieldedInstanceConfig( com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.Builder builderForValue) { @@ -14321,19 +16094,27 @@ public Builder setShieldedInstanceConfig( return this; } /** + * + * *
      * Optional. Shielded VM configuration.
      * [Images using supported Shielded VM
      * features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
      * 
* - * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeShieldedInstanceConfig(com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig value) { + public Builder mergeShieldedInstanceConfig( + com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig value) { if (shieldedInstanceConfigBuilder_ == null) { if (shieldedInstanceConfig_ != null) { shieldedInstanceConfig_ = - com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.newBuilder(shieldedInstanceConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.newBuilder( + shieldedInstanceConfig_) + .mergeFrom(value) + .buildPartial(); } else { shieldedInstanceConfig_ = value; } @@ -14345,13 +16126,17 @@ public Builder mergeShieldedInstanceConfig(com.google.cloud.notebooks.v1.Instanc return this; } /** + * + * *
      * Optional. Shielded VM configuration.
      * [Images using supported Shielded VM
      * features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
      * 
* - * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearShieldedInstanceConfig() { if (shieldedInstanceConfigBuilder_ == null) { @@ -14365,66 +16150,87 @@ public Builder clearShieldedInstanceConfig() { return this; } /** + * + * *
      * Optional. Shielded VM configuration.
      * [Images using supported Shielded VM
      * features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
      * 
* - * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder() { - + public com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.Builder + getShieldedInstanceConfigBuilder() { + onChanged(); return getShieldedInstanceConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Shielded VM configuration.
      * [Images using supported Shielded VM
      * features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
      * 
* - * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { + public com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { if (shieldedInstanceConfigBuilder_ != null) { return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); } else { - return shieldedInstanceConfig_ == null ? - com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null + ? com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } } /** + * + * *
      * Optional. Shielded VM configuration.
      * [Images using supported Shielded VM
      * features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
      * 
* - * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig, com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.Builder, com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfigOrBuilder> + com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig, + com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.Builder, + com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfigOrBuilder> getShieldedInstanceConfigFieldBuilder() { if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig, com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.Builder, com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfigOrBuilder>( - getShieldedInstanceConfig(), - getParentForChildren(), - isClean()); + shieldedInstanceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig, + com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.Builder, + com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfigOrBuilder>( + getShieldedInstanceConfig(), getParentForChildren(), isClean()); shieldedInstanceConfig_ = null; } return shieldedInstanceConfigBuilder_; } - private boolean noPublicIp_ ; + private boolean noPublicIp_; /** + * + * *
      * If true, no public IP will be assigned to this instance.
      * 
* * bool no_public_ip = 17; + * * @return The noPublicIp. */ @java.lang.Override @@ -14432,42 +16238,51 @@ public boolean getNoPublicIp() { return noPublicIp_; } /** + * + * *
      * If true, no public IP will be assigned to this instance.
      * 
* * bool no_public_ip = 17; + * * @param value The noPublicIp to set. * @return This builder for chaining. */ public Builder setNoPublicIp(boolean value) { - + noPublicIp_ = value; onChanged(); return this; } /** + * + * *
      * If true, no public IP will be assigned to this instance.
      * 
* * bool no_public_ip = 17; + * * @return This builder for chaining. */ public Builder clearNoPublicIp() { - + noPublicIp_ = false; onChanged(); return this; } - private boolean noProxyAccess_ ; + private boolean noProxyAccess_; /** + * + * *
      * If true, the notebook instance will not register with the proxy.
      * 
* * bool no_proxy_access = 18; + * * @return The noProxyAccess. */ @java.lang.Override @@ -14475,30 +16290,36 @@ public boolean getNoProxyAccess() { return noProxyAccess_; } /** + * + * *
      * If true, the notebook instance will not register with the proxy.
      * 
* * bool no_proxy_access = 18; + * * @param value The noProxyAccess to set. * @return This builder for chaining. */ public Builder setNoProxyAccess(boolean value) { - + noProxyAccess_ = value; onChanged(); return this; } /** + * + * *
      * If true, the notebook instance will not register with the proxy.
      * 
* * bool no_proxy_access = 18; + * * @return This builder for chaining. */ public Builder clearNoProxyAccess() { - + noProxyAccess_ = false; onChanged(); return this; @@ -14506,6 +16327,8 @@ public Builder clearNoProxyAccess() { private java.lang.Object network_ = ""; /** + * + * *
      * The name of the VPC that this instance is in.
      * Format:
@@ -14513,13 +16336,13 @@ public Builder clearNoProxyAccess() {
      * 
* * string network = 19; + * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; 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(); network_ = s; return s; @@ -14528,6 +16351,8 @@ public java.lang.String getNetwork() { } } /** + * + * *
      * The name of the VPC that this instance is in.
      * Format:
@@ -14535,15 +16360,14 @@ public java.lang.String getNetwork() {
      * 
* * string network = 19; + * * @return The bytes for network. */ - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; 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); network_ = b; return b; } else { @@ -14551,6 +16375,8 @@ public java.lang.String getNetwork() { } } /** + * + * *
      * The name of the VPC that this instance is in.
      * Format:
@@ -14558,20 +16384,22 @@ public java.lang.String getNetwork() {
      * 
* * string network = 19; + * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork( - java.lang.String value) { + public Builder setNetwork(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + network_ = value; onChanged(); return this; } /** + * + * *
      * The name of the VPC that this instance is in.
      * Format:
@@ -14579,15 +16407,18 @@ public Builder setNetwork(
      * 
* * string network = 19; + * * @return This builder for chaining. */ public Builder clearNetwork() { - + network_ = getDefaultInstance().getNetwork(); onChanged(); return this; } /** + * + * *
      * The name of the VPC that this instance is in.
      * Format:
@@ -14595,16 +16426,16 @@ public Builder clearNetwork() {
      * 
* * string network = 19; + * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes( - com.google.protobuf.ByteString value) { + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; onChanged(); return this; @@ -14612,6 +16443,8 @@ public Builder setNetworkBytes( private java.lang.Object subnet_ = ""; /** + * + * *
      * The name of the subnet that this instance is in.
      * Format:
@@ -14619,13 +16452,13 @@ public Builder setNetworkBytes(
      * 
* * string subnet = 20; + * * @return The subnet. */ public java.lang.String getSubnet() { java.lang.Object ref = subnet_; 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(); subnet_ = s; return s; @@ -14634,6 +16467,8 @@ public java.lang.String getSubnet() { } } /** + * + * *
      * The name of the subnet that this instance is in.
      * Format:
@@ -14641,15 +16476,14 @@ public java.lang.String getSubnet() {
      * 
* * string subnet = 20; + * * @return The bytes for subnet. */ - public com.google.protobuf.ByteString - getSubnetBytes() { + public com.google.protobuf.ByteString getSubnetBytes() { java.lang.Object ref = subnet_; 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); subnet_ = b; return b; } else { @@ -14657,6 +16491,8 @@ public java.lang.String getSubnet() { } } /** + * + * *
      * The name of the subnet that this instance is in.
      * Format:
@@ -14664,20 +16500,22 @@ public java.lang.String getSubnet() {
      * 
* * string subnet = 20; + * * @param value The subnet to set. * @return This builder for chaining. */ - public Builder setSubnet( - java.lang.String value) { + public Builder setSubnet(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subnet_ = value; onChanged(); return this; } /** + * + * *
      * The name of the subnet that this instance is in.
      * Format:
@@ -14685,15 +16523,18 @@ public Builder setSubnet(
      * 
* * string subnet = 20; + * * @return This builder for chaining. */ public Builder clearSubnet() { - + subnet_ = getDefaultInstance().getSubnet(); onChanged(); return this; } /** + * + * *
      * The name of the subnet that this instance is in.
      * Format:
@@ -14701,37 +16542,36 @@ public Builder clearSubnet() {
      * 
* * string subnet = 20; + * * @param value The bytes for subnet to set. * @return This builder for chaining. */ - public Builder setSubnetBytes( - com.google.protobuf.ByteString value) { + public Builder setSubnetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subnet_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField 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 - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -14743,6 +16583,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels to apply to this instance.
      * These can be later modified by the setLabels method.
@@ -14750,22 +16592,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 21;
      */
-
     @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 getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Labels to apply to this instance.
      * These can be later modified by the setLabels method.
@@ -14774,11 +16616,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 21;
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Labels to apply to this instance.
      * These can be later modified by the setLabels method.
@@ -14787,16 +16630,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 21;
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Labels to apply to this instance.
      * These can be later modified by the setLabels method.
@@ -14805,12 +16649,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 21;
      */
     @java.lang.Override
-
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -14818,11 +16661,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Labels to apply to this instance.
      * These can be later modified by the setLabels method.
@@ -14830,23 +16674,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 21;
      */
-
-    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
-    getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Labels to apply to this instance.
      * These can be later modified by the setLabels method.
@@ -14854,19 +16696,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 21;
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    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");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Labels to apply to this instance.
      * These can be later modified by the setLabels method.
@@ -14874,30 +16717,27 @@ public Builder putLabels(
      *
      * map<string, string> labels = 21;
      */
-
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       return this;
     }
 
-    private com.google.protobuf.MapField<
-        java.lang.String, java.lang.String> metadata_;
-    private com.google.protobuf.MapField
-    internalGetMetadata() {
+    private com.google.protobuf.MapField metadata_;
+
+    private com.google.protobuf.MapField internalGetMetadata() {
       if (metadata_ == null) {
-        return com.google.protobuf.MapField.emptyMapField(
-            MetadataDefaultEntryHolder.defaultEntry);
+        return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry);
       }
       return metadata_;
     }
+
     private com.google.protobuf.MapField
-    internalGetMutableMetadata() {
-      onChanged();;
+        internalGetMutableMetadata() {
+      onChanged();
+      ;
       if (metadata_ == null) {
-        metadata_ = com.google.protobuf.MapField.newMapField(
-            MetadataDefaultEntryHolder.defaultEntry);
+        metadata_ =
+            com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry);
       }
       if (!metadata_.isMutable()) {
         metadata_ = metadata_.copy();
@@ -14909,28 +16749,30 @@ public int getMetadataCount() {
       return internalGetMetadata().getMap().size();
     }
     /**
+     *
+     *
      * 
      * Custom metadata to apply to this instance.
      * 
* * map<string, string> metadata = 22; */ - @java.lang.Override - public boolean containsMetadata( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetMetadata().getMap().containsKey(key); } - /** - * Use {@link #getMetadataMap()} instead. - */ + /** Use {@link #getMetadataMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMetadata() { return getMetadataMap(); } /** + * + * *
      * Custom metadata to apply to this instance.
      * 
@@ -14938,11 +16780,12 @@ public java.util.Map getMetadata() { * map<string, string> metadata = 22; */ @java.lang.Override - public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** + * + * *
      * Custom metadata to apply to this instance.
      * 
@@ -14950,16 +16793,17 @@ public java.util.Map getMetadataMap() { * map<string, string> metadata = 22; */ @java.lang.Override - public java.lang.String getMetadataOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMetadata().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Custom metadata to apply to this instance.
      * 
@@ -14967,12 +16811,11 @@ public java.lang.String getMetadataOrDefault( * map<string, string> metadata = 22; */ @java.lang.Override - - public java.lang.String getMetadataOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMetadata().getMap(); + public java.lang.String getMetadataOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -14980,106 +16823,113 @@ public java.lang.String getMetadataOrThrow( } public Builder clearMetadata() { - internalGetMutableMetadata().getMutableMap() - .clear(); + internalGetMutableMetadata().getMutableMap().clear(); return this; } /** + * + * *
      * Custom metadata to apply to this instance.
      * 
* * map<string, string> metadata = 22; */ - - public Builder removeMetadata( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableMetadata().getMutableMap() - .remove(key); + public Builder removeMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableMetadata().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableMetadata() { + public java.util.Map getMutableMetadata() { return internalGetMutableMetadata().getMutableMap(); } /** + * + * *
      * Custom metadata to apply to this instance.
      * 
* * map<string, string> metadata = 22; */ - public Builder putMetadata( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putMetadata(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableMetadata().getMutableMap() - .put(key, value); + internalGetMutableMetadata().getMutableMap().put(key, value); return this; } /** + * + * *
      * Custom metadata to apply to this instance.
      * 
* * map<string, string> metadata = 22; */ - - public Builder putAllMetadata( - java.util.Map values) { - internalGetMutableMetadata().getMutableMap() - .putAll(values); + public Builder putAllMetadata(java.util.Map values) { + internalGetMutableMetadata().getMutableMap().putAll(values); return this; } - private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList tags_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); bitField0_ |= 0x00000020; - } + } } /** + * + * *
      * Optional. The Compute Engine tags to add to runtime (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 32 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList - getTagsList() { + public com.google.protobuf.ProtocolStringList getTagsList() { return tags_.getUnmodifiableView(); } /** + * + * *
      * Optional. The Compute Engine tags to add to runtime (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 32 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** + * + * *
      * Optional. The Compute Engine tags to add to runtime (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 32 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -15087,85 +16937,95 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** + * + * *
      * Optional. The Compute Engine tags to add to runtime (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 32 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { + public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } /** + * + * *
      * Optional. The Compute Engine tags to add to runtime (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 32 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ - public Builder setTags( - int index, java.lang.String value) { + public Builder setTags(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); + throw new NullPointerException(); + } + ensureTagsIsMutable(); tags_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. The Compute Engine tags to add to runtime (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 32 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The tags to add. * @return This builder for chaining. */ - public Builder addTags( - java.lang.String value) { + public Builder addTags(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); + throw new NullPointerException(); + } + ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. The Compute Engine tags to add to runtime (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 32 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The tags to add. * @return This builder for chaining. */ - public Builder addAllTags( - java.lang.Iterable values) { + public Builder addAllTags(java.lang.Iterable values) { ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); onChanged(); return this; } /** + * + * *
      * Optional. The Compute Engine tags to add to runtime (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 32 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearTags() { @@ -15175,47 +17035,59 @@ public Builder clearTags() { return this; } /** + * + * *
      * Optional. The Compute Engine tags to add to runtime (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 32 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the tags to add. * @return This builder for chaining. */ - public Builder addTagsBytes( - com.google.protobuf.ByteString value) { + public Builder addTagsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } - private java.util.List upgradeHistory_ = - java.util.Collections.emptyList(); + private java.util.List + upgradeHistory_ = java.util.Collections.emptyList(); + private void ensureUpgradeHistoryIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { - upgradeHistory_ = new java.util.ArrayList(upgradeHistory_); + upgradeHistory_ = + new java.util.ArrayList( + upgradeHistory_); bitField0_ |= 0x00000040; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry, com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Builder, com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntryOrBuilder> upgradeHistoryBuilder_; + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry, + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Builder, + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntryOrBuilder> + upgradeHistoryBuilder_; /** + * + * *
      * The upgrade history of this instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * */ - public java.util.List getUpgradeHistoryList() { + public java.util.List + getUpgradeHistoryList() { if (upgradeHistoryBuilder_ == null) { return java.util.Collections.unmodifiableList(upgradeHistory_); } else { @@ -15223,11 +17095,14 @@ public java.util.List * The upgrade history of this instance. *
* - * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * */ public int getUpgradeHistoryCount() { if (upgradeHistoryBuilder_ == null) { @@ -15237,11 +17112,14 @@ public int getUpgradeHistoryCount() { } } /** + * + * *
      * The upgrade history of this instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * */ public com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry getUpgradeHistory(int index) { if (upgradeHistoryBuilder_ == null) { @@ -15251,11 +17129,14 @@ public com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry getUpgradeHist } } /** + * + * *
      * The upgrade history of this instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * */ public Builder setUpgradeHistory( int index, com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry value) { @@ -15272,14 +17153,18 @@ public Builder setUpgradeHistory( return this; } /** + * + * *
      * The upgrade history of this instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * */ public Builder setUpgradeHistory( - int index, com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Builder builderForValue) { + int index, + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Builder builderForValue) { if (upgradeHistoryBuilder_ == null) { ensureUpgradeHistoryIsMutable(); upgradeHistory_.set(index, builderForValue.build()); @@ -15290,13 +17175,17 @@ public Builder setUpgradeHistory( return this; } /** + * + * *
      * The upgrade history of this instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * */ - public Builder addUpgradeHistory(com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry value) { + public Builder addUpgradeHistory( + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry value) { if (upgradeHistoryBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -15310,11 +17199,14 @@ public Builder addUpgradeHistory(com.google.cloud.notebooks.v1.Instance.UpgradeH return this; } /** + * + * *
      * The upgrade history of this instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * */ public Builder addUpgradeHistory( int index, com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry value) { @@ -15331,11 +17223,14 @@ public Builder addUpgradeHistory( return this; } /** + * + * *
      * The upgrade history of this instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * */ public Builder addUpgradeHistory( com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Builder builderForValue) { @@ -15349,14 +17244,18 @@ public Builder addUpgradeHistory( return this; } /** + * + * *
      * The upgrade history of this instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * */ public Builder addUpgradeHistory( - int index, com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Builder builderForValue) { + int index, + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Builder builderForValue) { if (upgradeHistoryBuilder_ == null) { ensureUpgradeHistoryIsMutable(); upgradeHistory_.add(index, builderForValue.build()); @@ -15367,18 +17266,21 @@ public Builder addUpgradeHistory( return this; } /** + * + * *
      * The upgrade history of this instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * */ public Builder addAllUpgradeHistory( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (upgradeHistoryBuilder_ == null) { ensureUpgradeHistoryIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, upgradeHistory_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, upgradeHistory_); onChanged(); } else { upgradeHistoryBuilder_.addAllMessages(values); @@ -15386,11 +17288,14 @@ public Builder addAllUpgradeHistory( return this; } /** + * + * *
      * The upgrade history of this instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * */ public Builder clearUpgradeHistory() { if (upgradeHistoryBuilder_ == null) { @@ -15403,11 +17308,14 @@ public Builder clearUpgradeHistory() { return this; } /** + * + * *
      * The upgrade history of this instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * */ public Builder removeUpgradeHistory(int index) { if (upgradeHistoryBuilder_ == null) { @@ -15420,39 +17328,50 @@ public Builder removeUpgradeHistory(int index) { return this; } /** + * + * *
      * The upgrade history of this instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * */ - public com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Builder getUpgradeHistoryBuilder( - int index) { + public com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Builder + getUpgradeHistoryBuilder(int index) { return getUpgradeHistoryFieldBuilder().getBuilder(index); } /** + * + * *
      * The upgrade history of this instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * */ - public com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntryOrBuilder getUpgradeHistoryOrBuilder( - int index) { + public com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntryOrBuilder + getUpgradeHistoryOrBuilder(int index) { if (upgradeHistoryBuilder_ == null) { - return upgradeHistory_.get(index); } else { + return upgradeHistory_.get(index); + } else { return upgradeHistoryBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The upgrade history of this instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * */ - public java.util.List - getUpgradeHistoryOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntryOrBuilder> + getUpgradeHistoryOrBuilderList() { if (upgradeHistoryBuilder_ != null) { return upgradeHistoryBuilder_.getMessageOrBuilderList(); } else { @@ -15460,45 +17379,64 @@ public com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntryOrBuilder getUp } } /** + * + * *
      * The upgrade history of this instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * */ - public com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Builder addUpgradeHistoryBuilder() { - return getUpgradeHistoryFieldBuilder().addBuilder( - com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.getDefaultInstance()); + public com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Builder + addUpgradeHistoryBuilder() { + return getUpgradeHistoryFieldBuilder() + .addBuilder( + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.getDefaultInstance()); } /** + * + * *
      * The upgrade history of this instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * */ - public com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Builder addUpgradeHistoryBuilder( - int index) { - return getUpgradeHistoryFieldBuilder().addBuilder( - index, com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.getDefaultInstance()); + public com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Builder + addUpgradeHistoryBuilder(int index) { + return getUpgradeHistoryFieldBuilder() + .addBuilder( + index, + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.getDefaultInstance()); } /** + * + * *
      * The upgrade history of this instance.
      * 
* - * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * */ - public java.util.List - getUpgradeHistoryBuilderList() { + public java.util.List + getUpgradeHistoryBuilderList() { return getUpgradeHistoryFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry, com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Builder, com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntryOrBuilder> + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry, + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Builder, + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntryOrBuilder> getUpgradeHistoryFieldBuilder() { if (upgradeHistoryBuilder_ == null) { - upgradeHistoryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry, com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Builder, com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntryOrBuilder>( + upgradeHistoryBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry, + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Builder, + com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntryOrBuilder>( upgradeHistory_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), @@ -15510,55 +17448,77 @@ public com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry.Builder addUpg private int nicType_ = 0; /** + * + * *
      * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
      * VirtioNet.
      * 
* - * .google.cloud.notebooks.v1.Instance.NicType nic_type = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.Instance.NicType nic_type = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for nicType. */ - @java.lang.Override public int getNicTypeValue() { + @java.lang.Override + public int getNicTypeValue() { return nicType_; } /** + * + * *
      * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
      * VirtioNet.
      * 
* - * .google.cloud.notebooks.v1.Instance.NicType nic_type = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.Instance.NicType nic_type = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for nicType to set. * @return This builder for chaining. */ public Builder setNicTypeValue(int value) { - + nicType_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
      * VirtioNet.
      * 
* - * .google.cloud.notebooks.v1.Instance.NicType nic_type = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.Instance.NicType nic_type = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The nicType. */ @java.lang.Override public com.google.cloud.notebooks.v1.Instance.NicType getNicType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.Instance.NicType result = com.google.cloud.notebooks.v1.Instance.NicType.valueOf(nicType_); + com.google.cloud.notebooks.v1.Instance.NicType result = + com.google.cloud.notebooks.v1.Instance.NicType.valueOf(nicType_); return result == null ? com.google.cloud.notebooks.v1.Instance.NicType.UNRECOGNIZED : result; } /** + * + * *
      * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
      * VirtioNet.
      * 
* - * .google.cloud.notebooks.v1.Instance.NicType nic_type = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.Instance.NicType nic_type = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The nicType to set. * @return This builder for chaining. */ @@ -15566,22 +17526,27 @@ public Builder setNicType(com.google.cloud.notebooks.v1.Instance.NicType value) if (value == null) { throw new NullPointerException(); } - + nicType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
      * VirtioNet.
      * 
* - * .google.cloud.notebooks.v1.Instance.NicType nic_type = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.Instance.NicType nic_type = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearNicType() { - + nicType_ = 0; onChanged(); return this; @@ -15589,8 +17554,13 @@ public Builder clearNicType() { private com.google.cloud.notebooks.v1.ReservationAffinity reservationAffinity_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.ReservationAffinity, com.google.cloud.notebooks.v1.ReservationAffinity.Builder, com.google.cloud.notebooks.v1.ReservationAffinityOrBuilder> reservationAffinityBuilder_; + com.google.cloud.notebooks.v1.ReservationAffinity, + com.google.cloud.notebooks.v1.ReservationAffinity.Builder, + com.google.cloud.notebooks.v1.ReservationAffinityOrBuilder> + reservationAffinityBuilder_; /** + * + * *
      * Optional. The optional reservation affinity. Setting this field will apply
      * the specified [Zonal Compute
@@ -15598,13 +17568,18 @@ public Builder clearNicType() {
      * to this notebook instance.
      * 
* - * .google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the reservationAffinity field is set. */ public boolean hasReservationAffinity() { return reservationAffinityBuilder_ != null || reservationAffinity_ != null; } /** + * + * *
      * Optional. The optional reservation affinity. Setting this field will apply
      * the specified [Zonal Compute
@@ -15612,17 +17587,24 @@ public boolean hasReservationAffinity() {
      * to this notebook instance.
      * 
* - * .google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The reservationAffinity. */ public com.google.cloud.notebooks.v1.ReservationAffinity getReservationAffinity() { if (reservationAffinityBuilder_ == null) { - return reservationAffinity_ == null ? com.google.cloud.notebooks.v1.ReservationAffinity.getDefaultInstance() : reservationAffinity_; + return reservationAffinity_ == null + ? com.google.cloud.notebooks.v1.ReservationAffinity.getDefaultInstance() + : reservationAffinity_; } else { return reservationAffinityBuilder_.getMessage(); } } /** + * + * *
      * Optional. The optional reservation affinity. Setting this field will apply
      * the specified [Zonal Compute
@@ -15630,7 +17612,9 @@ public com.google.cloud.notebooks.v1.ReservationAffinity getReservationAffinity(
      * to this notebook instance.
      * 
* - * .google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReservationAffinity(com.google.cloud.notebooks.v1.ReservationAffinity value) { if (reservationAffinityBuilder_ == null) { @@ -15646,6 +17630,8 @@ public Builder setReservationAffinity(com.google.cloud.notebooks.v1.ReservationA return this; } /** + * + * *
      * Optional. The optional reservation affinity. Setting this field will apply
      * the specified [Zonal Compute
@@ -15653,7 +17639,9 @@ public Builder setReservationAffinity(com.google.cloud.notebooks.v1.ReservationA
      * to this notebook instance.
      * 
* - * .google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReservationAffinity( com.google.cloud.notebooks.v1.ReservationAffinity.Builder builderForValue) { @@ -15667,6 +17655,8 @@ public Builder setReservationAffinity( return this; } /** + * + * *
      * Optional. The optional reservation affinity. Setting this field will apply
      * the specified [Zonal Compute
@@ -15674,13 +17664,18 @@ public Builder setReservationAffinity(
      * to this notebook instance.
      * 
* - * .google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeReservationAffinity(com.google.cloud.notebooks.v1.ReservationAffinity value) { + public Builder mergeReservationAffinity( + com.google.cloud.notebooks.v1.ReservationAffinity value) { if (reservationAffinityBuilder_ == null) { if (reservationAffinity_ != null) { reservationAffinity_ = - com.google.cloud.notebooks.v1.ReservationAffinity.newBuilder(reservationAffinity_).mergeFrom(value).buildPartial(); + com.google.cloud.notebooks.v1.ReservationAffinity.newBuilder(reservationAffinity_) + .mergeFrom(value) + .buildPartial(); } else { reservationAffinity_ = value; } @@ -15692,6 +17687,8 @@ public Builder mergeReservationAffinity(com.google.cloud.notebooks.v1.Reservatio return this; } /** + * + * *
      * Optional. The optional reservation affinity. Setting this field will apply
      * the specified [Zonal Compute
@@ -15699,7 +17696,9 @@ public Builder mergeReservationAffinity(com.google.cloud.notebooks.v1.Reservatio
      * to this notebook instance.
      * 
* - * .google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearReservationAffinity() { if (reservationAffinityBuilder_ == null) { @@ -15713,6 +17712,8 @@ public Builder clearReservationAffinity() { return this; } /** + * + * *
      * Optional. The optional reservation affinity. Setting this field will apply
      * the specified [Zonal Compute
@@ -15720,14 +17721,19 @@ public Builder clearReservationAffinity() {
      * to this notebook instance.
      * 
* - * .google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.notebooks.v1.ReservationAffinity.Builder getReservationAffinityBuilder() { - + public com.google.cloud.notebooks.v1.ReservationAffinity.Builder + getReservationAffinityBuilder() { + onChanged(); return getReservationAffinityFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The optional reservation affinity. Setting this field will apply
      * the specified [Zonal Compute
@@ -15735,17 +17741,23 @@ public com.google.cloud.notebooks.v1.ReservationAffinity.Builder getReservationA
      * to this notebook instance.
      * 
* - * .google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.notebooks.v1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder() { + public com.google.cloud.notebooks.v1.ReservationAffinityOrBuilder + getReservationAffinityOrBuilder() { if (reservationAffinityBuilder_ != null) { return reservationAffinityBuilder_.getMessageOrBuilder(); } else { - return reservationAffinity_ == null ? - com.google.cloud.notebooks.v1.ReservationAffinity.getDefaultInstance() : reservationAffinity_; + return reservationAffinity_ == null + ? com.google.cloud.notebooks.v1.ReservationAffinity.getDefaultInstance() + : reservationAffinity_; } } /** + * + * *
      * Optional. The optional reservation affinity. Setting this field will apply
      * the specified [Zonal Compute
@@ -15753,17 +17765,22 @@ public com.google.cloud.notebooks.v1.ReservationAffinityOrBuilder getReservation
      * to this notebook instance.
      * 
* - * .google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.ReservationAffinity, com.google.cloud.notebooks.v1.ReservationAffinity.Builder, com.google.cloud.notebooks.v1.ReservationAffinityOrBuilder> + com.google.cloud.notebooks.v1.ReservationAffinity, + com.google.cloud.notebooks.v1.ReservationAffinity.Builder, + com.google.cloud.notebooks.v1.ReservationAffinityOrBuilder> getReservationAffinityFieldBuilder() { if (reservationAffinityBuilder_ == null) { - reservationAffinityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.ReservationAffinity, com.google.cloud.notebooks.v1.ReservationAffinity.Builder, com.google.cloud.notebooks.v1.ReservationAffinityOrBuilder>( - getReservationAffinity(), - getParentForChildren(), - isClean()); + reservationAffinityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.ReservationAffinity, + com.google.cloud.notebooks.v1.ReservationAffinity.Builder, + com.google.cloud.notebooks.v1.ReservationAffinityOrBuilder>( + getReservationAffinity(), getParentForChildren(), isClean()); reservationAffinity_ = null; } return reservationAffinityBuilder_; @@ -15771,18 +17788,20 @@ public com.google.cloud.notebooks.v1.ReservationAffinityOrBuilder getReservation private java.lang.Object creator_ = ""; /** + * + * *
      * Output only. Email address of entity that sent original CreateInstance request.
      * 
* * string creator = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The creator. */ public java.lang.String getCreator() { java.lang.Object ref = creator_; 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(); creator_ = s; return s; @@ -15791,20 +17810,21 @@ public java.lang.String getCreator() { } } /** + * + * *
      * Output only. Email address of entity that sent original CreateInstance request.
      * 
* * string creator = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for creator. */ - public com.google.protobuf.ByteString - getCreatorBytes() { + public com.google.protobuf.ByteString getCreatorBytes() { java.lang.Object ref = creator_; 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); creator_ = b; return b; } else { @@ -15812,67 +17832,77 @@ public java.lang.String getCreator() { } } /** + * + * *
      * Output only. Email address of entity that sent original CreateInstance request.
      * 
* * string creator = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The creator to set. * @return This builder for chaining. */ - public Builder setCreator( - java.lang.String value) { + public Builder setCreator(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + creator_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Email address of entity that sent original CreateInstance request.
      * 
* * string creator = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearCreator() { - + creator_ = getDefaultInstance().getCreator(); onChanged(); return this; } /** + * + * *
      * Output only. Email address of entity that sent original CreateInstance request.
      * 
* * string creator = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for creator to set. * @return This builder for chaining. */ - public Builder setCreatorBytes( - com.google.protobuf.ByteString value) { + public Builder setCreatorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + creator_ = value; onChanged(); return this; } - private boolean canIpForward_ ; + private boolean canIpForward_; /** + * + * *
      * Optional. Flag to enable ip forwarding or not, default false/off.
      * https://cloud.google.com/vpc/docs/using-routes#canipforward
      * 
* * bool can_ip_forward = 39 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The canIpForward. */ @java.lang.Override @@ -15880,32 +17910,38 @@ public boolean getCanIpForward() { return canIpForward_; } /** + * + * *
      * Optional. Flag to enable ip forwarding or not, default false/off.
      * https://cloud.google.com/vpc/docs/using-routes#canipforward
      * 
* * bool can_ip_forward = 39 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The canIpForward to set. * @return This builder for chaining. */ public Builder setCanIpForward(boolean value) { - + canIpForward_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Flag to enable ip forwarding or not, default false/off.
      * https://cloud.google.com/vpc/docs/using-routes#canipforward
      * 
* * bool can_ip_forward = 39 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCanIpForward() { - + canIpForward_ = false; onChanged(); return this; @@ -15913,39 +17949,58 @@ public Builder clearCanIpForward() { 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_; /** + * + * *
      * Output only. Instance creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. Instance creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Instance creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -15961,14 +18016,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Instance creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -15979,17 +18037,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Instance creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -16001,11 +18063,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Instance creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -16019,48 +18085,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Instance creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Instance creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Instance creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; @@ -16068,39 +18150,58 @@ 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_; /** + * + * *
      * Output only. Instance update time.
      * 
* - * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. Instance update time.
      * 
* - * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Instance update time.
      * 
* - * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -16116,14 +18217,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Instance update time.
      * 
* - * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -16134,17 +18238,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Instance update time.
      * 
* - * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -16156,11 +18264,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Instance update time.
      * 
* - * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -16174,55 +18286,71 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Instance update time.
      * 
* - * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Instance update time.
      * 
* - * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. Instance update time.
      * 
* - * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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); } @@ -16232,12 +18360,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.Instance) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.Instance) private static final com.google.cloud.notebooks.v1.Instance DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.Instance(); } @@ -16246,27 +18374,27 @@ public static com.google.cloud.notebooks.v1.Instance getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @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 PARSER = + new com.google.protobuf.AbstractParser() { + @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 parser() { return PARSER; @@ -16281,6 +18409,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.Instance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceConfig.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceConfig.java similarity index 68% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceConfig.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceConfig.java index 97e51cb3c3d9..489c99f26f60 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceConfig.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceConfig.java @@ -1,62 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/instance_config.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Notebook instance configurations that can be updated.
  * 
* * Protobuf type {@code google.cloud.notebooks.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.cloud.notebooks.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() { notebookUpgradeSchedule_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InstanceConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.InstanceConfigProto.internal_static_google_cloud_notebooks_v1_InstanceConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.InstanceConfigProto + .internal_static_google_cloud_notebooks_v1_InstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.InstanceConfigProto.internal_static_google_cloud_notebooks_v1_InstanceConfig_fieldAccessorTable + return com.google.cloud.notebooks.v1.InstanceConfigProto + .internal_static_google_cloud_notebooks_v1_InstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.InstanceConfig.class, com.google.cloud.notebooks.v1.InstanceConfig.Builder.class); + com.google.cloud.notebooks.v1.InstanceConfig.class, + com.google.cloud.notebooks.v1.InstanceConfig.Builder.class); } public static final int NOTEBOOK_UPGRADE_SCHEDULE_FIELD_NUMBER = 1; private volatile java.lang.Object notebookUpgradeSchedule_; /** + * + * *
    * Cron expression in UTC timezone, used to schedule instance auto upgrade.
    * Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
    * 
* * string notebook_upgrade_schedule = 1; + * * @return The notebookUpgradeSchedule. */ @java.lang.Override @@ -65,30 +87,30 @@ public java.lang.String getNotebookUpgradeSchedule() { 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(); notebookUpgradeSchedule_ = s; return s; } } /** + * + * *
    * Cron expression in UTC timezone, used to schedule instance auto upgrade.
    * Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
    * 
* * string notebook_upgrade_schedule = 1; + * * @return The bytes for notebookUpgradeSchedule. */ @java.lang.Override - public com.google.protobuf.ByteString - getNotebookUpgradeScheduleBytes() { + public com.google.protobuf.ByteString getNotebookUpgradeScheduleBytes() { java.lang.Object ref = notebookUpgradeSchedule_; 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); notebookUpgradeSchedule_ = b; return b; } else { @@ -99,11 +121,14 @@ public java.lang.String getNotebookUpgradeSchedule() { public static final int ENABLE_HEALTH_MONITORING_FIELD_NUMBER = 2; private boolean enableHealthMonitoring_; /** + * + * *
    * Verifies core internal services are running.
    * 
* * bool enable_health_monitoring = 2; + * * @return The enableHealthMonitoring. */ @java.lang.Override @@ -112,6 +137,7 @@ public boolean getEnableHealthMonitoring() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -123,8 +149,7 @@ 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(notebookUpgradeSchedule_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, notebookUpgradeSchedule_); } @@ -144,8 +169,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, notebookUpgradeSchedule_); } if (enableHealthMonitoring_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, enableHealthMonitoring_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableHealthMonitoring_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -155,17 +179,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.cloud.notebooks.v1.InstanceConfig)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.InstanceConfig other = (com.google.cloud.notebooks.v1.InstanceConfig) obj; + com.google.cloud.notebooks.v1.InstanceConfig other = + (com.google.cloud.notebooks.v1.InstanceConfig) obj; - if (!getNotebookUpgradeSchedule() - .equals(other.getNotebookUpgradeSchedule())) return false; - if (getEnableHealthMonitoring() - != other.getEnableHealthMonitoring()) return false; + if (!getNotebookUpgradeSchedule().equals(other.getNotebookUpgradeSchedule())) return false; + if (getEnableHealthMonitoring() != other.getEnableHealthMonitoring()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -180,137 +203,142 @@ public int hashCode() { hash = (37 * hash) + NOTEBOOK_UPGRADE_SCHEDULE_FIELD_NUMBER; hash = (53 * hash) + getNotebookUpgradeSchedule().hashCode(); hash = (37 * hash) + ENABLE_HEALTH_MONITORING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableHealthMonitoring()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableHealthMonitoring()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.notebooks.v1.InstanceConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.notebooks.v1.InstanceConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.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.cloud.notebooks.v1.InstanceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.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.cloud.notebooks.v1.InstanceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.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.cloud.notebooks.v1.InstanceConfig 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.cloud.notebooks.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.cloud.notebooks.v1.InstanceConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.InstanceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.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.cloud.notebooks.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.cloud.notebooks.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.cloud.notebooks.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; } /** + * + * *
    * Notebook instance configurations that can be updated.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.InstanceConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.InstanceConfig) com.google.cloud.notebooks.v1.InstanceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.InstanceConfigProto.internal_static_google_cloud_notebooks_v1_InstanceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.InstanceConfigProto + .internal_static_google_cloud_notebooks_v1_InstanceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.InstanceConfigProto.internal_static_google_cloud_notebooks_v1_InstanceConfig_fieldAccessorTable + return com.google.cloud.notebooks.v1.InstanceConfigProto + .internal_static_google_cloud_notebooks_v1_InstanceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.InstanceConfig.class, com.google.cloud.notebooks.v1.InstanceConfig.Builder.class); + com.google.cloud.notebooks.v1.InstanceConfig.class, + com.google.cloud.notebooks.v1.InstanceConfig.Builder.class); } // Construct using com.google.cloud.notebooks.v1.InstanceConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -322,9 +350,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.InstanceConfigProto.internal_static_google_cloud_notebooks_v1_InstanceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.InstanceConfigProto + .internal_static_google_cloud_notebooks_v1_InstanceConfig_descriptor; } @java.lang.Override @@ -343,7 +371,8 @@ public com.google.cloud.notebooks.v1.InstanceConfig build() { @java.lang.Override public com.google.cloud.notebooks.v1.InstanceConfig buildPartial() { - com.google.cloud.notebooks.v1.InstanceConfig result = new com.google.cloud.notebooks.v1.InstanceConfig(this); + com.google.cloud.notebooks.v1.InstanceConfig result = + new com.google.cloud.notebooks.v1.InstanceConfig(this); result.notebookUpgradeSchedule_ = notebookUpgradeSchedule_; result.enableHealthMonitoring_ = enableHealthMonitoring_; onBuilt(); @@ -354,38 +383,39 @@ public com.google.cloud.notebooks.v1.InstanceConfig buildPartial() { 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.cloud.notebooks.v1.InstanceConfig) { - return mergeFrom((com.google.cloud.notebooks.v1.InstanceConfig)other); + return mergeFrom((com.google.cloud.notebooks.v1.InstanceConfig) other); } else { super.mergeFrom(other); return this; @@ -427,22 +457,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - notebookUpgradeSchedule_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - enableHealthMonitoring_ = input.readBool(); - - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + notebookUpgradeSchedule_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + enableHealthMonitoring_ = input.readBool(); + + 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) { @@ -455,19 +488,21 @@ public Builder mergeFrom( private java.lang.Object notebookUpgradeSchedule_ = ""; /** + * + * *
      * Cron expression in UTC timezone, used to schedule instance auto upgrade.
      * Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
      * 
* * string notebook_upgrade_schedule = 1; + * * @return The notebookUpgradeSchedule. */ public java.lang.String getNotebookUpgradeSchedule() { java.lang.Object ref = notebookUpgradeSchedule_; 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(); notebookUpgradeSchedule_ = s; return s; @@ -476,21 +511,22 @@ public java.lang.String getNotebookUpgradeSchedule() { } } /** + * + * *
      * Cron expression in UTC timezone, used to schedule instance auto upgrade.
      * Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
      * 
* * string notebook_upgrade_schedule = 1; + * * @return The bytes for notebookUpgradeSchedule. */ - public com.google.protobuf.ByteString - getNotebookUpgradeScheduleBytes() { + public com.google.protobuf.ByteString getNotebookUpgradeScheduleBytes() { java.lang.Object ref = notebookUpgradeSchedule_; 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); notebookUpgradeSchedule_ = b; return b; } else { @@ -498,69 +534,79 @@ public java.lang.String getNotebookUpgradeSchedule() { } } /** + * + * *
      * Cron expression in UTC timezone, used to schedule instance auto upgrade.
      * Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
      * 
* * string notebook_upgrade_schedule = 1; + * * @param value The notebookUpgradeSchedule to set. * @return This builder for chaining. */ - public Builder setNotebookUpgradeSchedule( - java.lang.String value) { + public Builder setNotebookUpgradeSchedule(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + notebookUpgradeSchedule_ = value; onChanged(); return this; } /** + * + * *
      * Cron expression in UTC timezone, used to schedule instance auto upgrade.
      * Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
      * 
* * string notebook_upgrade_schedule = 1; + * * @return This builder for chaining. */ public Builder clearNotebookUpgradeSchedule() { - + notebookUpgradeSchedule_ = getDefaultInstance().getNotebookUpgradeSchedule(); onChanged(); return this; } /** + * + * *
      * Cron expression in UTC timezone, used to schedule instance auto upgrade.
      * Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
      * 
* * string notebook_upgrade_schedule = 1; + * * @param value The bytes for notebookUpgradeSchedule to set. * @return This builder for chaining. */ - public Builder setNotebookUpgradeScheduleBytes( - com.google.protobuf.ByteString value) { + public Builder setNotebookUpgradeScheduleBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + notebookUpgradeSchedule_ = value; onChanged(); return this; } - private boolean enableHealthMonitoring_ ; + private boolean enableHealthMonitoring_; /** + * + * *
      * Verifies core internal services are running.
      * 
* * bool enable_health_monitoring = 2; + * * @return The enableHealthMonitoring. */ @java.lang.Override @@ -568,37 +614,43 @@ public boolean getEnableHealthMonitoring() { return enableHealthMonitoring_; } /** + * + * *
      * Verifies core internal services are running.
      * 
* * bool enable_health_monitoring = 2; + * * @param value The enableHealthMonitoring to set. * @return This builder for chaining. */ public Builder setEnableHealthMonitoring(boolean value) { - + enableHealthMonitoring_ = value; onChanged(); return this; } /** + * + * *
      * Verifies core internal services are running.
      * 
* * bool enable_health_monitoring = 2; + * * @return This builder for chaining. */ public Builder clearEnableHealthMonitoring() { - + enableHealthMonitoring_ = false; 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); } @@ -608,12 +660,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.InstanceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.InstanceConfig) private static final com.google.cloud.notebooks.v1.InstanceConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.InstanceConfig(); } @@ -622,27 +674,27 @@ public static com.google.cloud.notebooks.v1.InstanceConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @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 PARSER = + new com.google.protobuf.AbstractParser() { + @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 parser() { return PARSER; @@ -657,6 +709,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.InstanceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceConfigOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceConfigOrBuilder.java similarity index 60% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceConfigOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceConfigOrBuilder.java index 8a57f47b214c..20862eda3077 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceConfigOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceConfigOrBuilder.java @@ -1,40 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/instance_config.proto package com.google.cloud.notebooks.v1; -public interface InstanceConfigOrBuilder extends +public interface InstanceConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.InstanceConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Cron expression in UTC timezone, used to schedule instance auto upgrade.
    * Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
    * 
* * string notebook_upgrade_schedule = 1; + * * @return The notebookUpgradeSchedule. */ java.lang.String getNotebookUpgradeSchedule(); /** + * + * *
    * Cron expression in UTC timezone, used to schedule instance auto upgrade.
    * Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
    * 
* * string notebook_upgrade_schedule = 1; + * * @return The bytes for notebookUpgradeSchedule. */ - com.google.protobuf.ByteString - getNotebookUpgradeScheduleBytes(); + com.google.protobuf.ByteString getNotebookUpgradeScheduleBytes(); /** + * + * *
    * Verifies core internal services are running.
    * 
* * bool enable_health_monitoring = 2; + * * @return The enableHealthMonitoring. */ boolean getEnableHealthMonitoring(); diff --git a/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceConfigProto.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceConfigProto.java new file mode 100644 index 000000000000..f407a2e76d59 --- /dev/null +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceConfigProto.java @@ -0,0 +1,68 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/notebooks/v1/instance_config.proto + +package com.google.cloud.notebooks.v1; + +public final class InstanceConfigProto { + private InstanceConfigProto() {} + + 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_cloud_notebooks_v1_InstanceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_InstanceConfig_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/cloud/notebooks/v1/instance_con" + + "fig.proto\022\031google.cloud.notebooks.v1\"U\n\016" + + "InstanceConfig\022!\n\031notebook_upgrade_sched" + + "ule\030\001 \001(\t\022 \n\030enable_health_monitoring\030\002 " + + "\001(\010B\321\001\n\035com.google.cloud.notebooks.v1B\023I" + + "nstanceConfigProtoP\001ZBgoogle.golang.org/" + + "genproto/googleapis/cloud/notebooks/v1;n" + + "otebooks\252\002\031Google.Cloud.Notebooks.V1\312\002\031G" + + "oogle\\Cloud\\Notebooks\\V1\352\002\034Google::Cloud" + + "::Notebooks::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_cloud_notebooks_v1_InstanceConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_notebooks_v1_InstanceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_InstanceConfig_descriptor, + new java.lang.String[] { + "NotebookUpgradeSchedule", "EnableHealthMonitoring", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceName.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceName.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceName.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceName.java diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceOrBuilder.java similarity index 78% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceOrBuilder.java index 77a080ab4caf..7703397e361a 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceOrBuilder.java @@ -1,53 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/instance.proto package com.google.cloud.notebooks.v1; -public interface InstanceOrBuilder extends +public interface InstanceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.Instance) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The name of this notebook instance. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The name of this notebook instance. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Use a Compute Engine VM image to start the notebook instance.
    * 
* * .google.cloud.notebooks.v1.VmImage vm_image = 2; + * * @return Whether the vmImage field is set. */ boolean hasVmImage(); /** + * + * *
    * Use a Compute Engine VM image to start the notebook instance.
    * 
* * .google.cloud.notebooks.v1.VmImage vm_image = 2; + * * @return The vmImage. */ com.google.cloud.notebooks.v1.VmImage getVmImage(); /** + * + * *
    * Use a Compute Engine VM image to start the notebook instance.
    * 
@@ -57,24 +86,32 @@ public interface InstanceOrBuilder extends com.google.cloud.notebooks.v1.VmImageOrBuilder getVmImageOrBuilder(); /** + * + * *
    * Use a container image to start the notebook instance.
    * 
* * .google.cloud.notebooks.v1.ContainerImage container_image = 3; + * * @return Whether the containerImage field is set. */ boolean hasContainerImage(); /** + * + * *
    * Use a container image to start the notebook instance.
    * 
* * .google.cloud.notebooks.v1.ContainerImage container_image = 3; + * * @return The containerImage. */ com.google.cloud.notebooks.v1.ContainerImage getContainerImage(); /** + * + * *
    * Use a container image to start the notebook instance.
    * 
@@ -84,6 +121,8 @@ public interface InstanceOrBuilder extends com.google.cloud.notebooks.v1.ContainerImageOrBuilder getContainerImageOrBuilder(); /** + * + * *
    * Path to a Bash script that automatically runs after a notebook instance
    * fully boots up. The path must be a URL or
@@ -91,10 +130,13 @@ public interface InstanceOrBuilder extends
    * 
* * string post_startup_script = 4; + * * @return The postStartupScript. */ java.lang.String getPostStartupScript(); /** + * + * *
    * Path to a Bash script that automatically runs after a notebook instance
    * fully boots up. The path must be a URL or
@@ -102,32 +144,39 @@ public interface InstanceOrBuilder extends
    * 
* * string post_startup_script = 4; + * * @return The bytes for postStartupScript. */ - com.google.protobuf.ByteString - getPostStartupScriptBytes(); + com.google.protobuf.ByteString getPostStartupScriptBytes(); /** + * + * *
    * Output only. The proxy endpoint that is used to access the Jupyter notebook.
    * 
* * string proxy_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The proxyUri. */ java.lang.String getProxyUri(); /** + * + * *
    * Output only. The proxy endpoint that is used to access the Jupyter notebook.
    * 
* * string proxy_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for proxyUri. */ - com.google.protobuf.ByteString - getProxyUriBytes(); + com.google.protobuf.ByteString getProxyUriBytes(); /** + * + * *
    * Input only. The owner of this instance after creation. Format: `alias@example.com`
    * Currently supports one owner only. If not specified, all of the service
@@ -136,11 +185,13 @@ public interface InstanceOrBuilder extends
    * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return A list containing the instanceOwners. */ - java.util.List - getInstanceOwnersList(); + java.util.List getInstanceOwnersList(); /** + * + * *
    * Input only. The owner of this instance after creation. Format: `alias@example.com`
    * Currently supports one owner only. If not specified, all of the service
@@ -149,10 +200,13 @@ public interface InstanceOrBuilder extends
    * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The count of instanceOwners. */ int getInstanceOwnersCount(); /** + * + * *
    * Input only. The owner of this instance after creation. Format: `alias@example.com`
    * Currently supports one owner only. If not specified, all of the service
@@ -161,11 +215,14 @@ public interface InstanceOrBuilder extends
    * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param index The index of the element to return. * @return The instanceOwners at the given index. */ java.lang.String getInstanceOwners(int index); /** + * + * *
    * Input only. The owner of this instance after creation. Format: `alias@example.com`
    * Currently supports one owner only. If not specified, all of the service
@@ -174,13 +231,15 @@ public interface InstanceOrBuilder extends
    * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the instanceOwners at the given index. */ - com.google.protobuf.ByteString - getInstanceOwnersBytes(int index); + com.google.protobuf.ByteString getInstanceOwnersBytes(int index); /** + * + * *
    * The service account on this instance, giving access to other Google
    * Cloud services.
@@ -192,10 +251,13 @@ public interface InstanceOrBuilder extends
    * 
* * string service_account = 7; + * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** + * + * *
    * The service account on this instance, giving access to other Google
    * Cloud services.
@@ -207,12 +269,14 @@ public interface InstanceOrBuilder extends
    * 
* * string service_account = 7; + * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString - getServiceAccountBytes(); + com.google.protobuf.ByteString getServiceAccountBytes(); /** + * + * *
    * Optional. The URIs of service account scopes to be included in
    * Compute Engine instances.
@@ -225,12 +289,15 @@ public interface InstanceOrBuilder extends
    *    https://www.googleapis.com/auth/compute
    * 
* - * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the serviceAccountScopes. */ - java.util.List - getServiceAccountScopesList(); + java.util.List getServiceAccountScopesList(); /** + * + * *
    * Optional. The URIs of service account scopes to be included in
    * Compute Engine instances.
@@ -243,11 +310,15 @@ public interface InstanceOrBuilder extends
    *    https://www.googleapis.com/auth/compute
    * 
* - * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of serviceAccountScopes. */ int getServiceAccountScopesCount(); /** + * + * *
    * Optional. The URIs of service account scopes to be included in
    * Compute Engine instances.
@@ -260,12 +331,16 @@ public interface InstanceOrBuilder extends
    *    https://www.googleapis.com/auth/compute
    * 
* - * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The serviceAccountScopes at the given index. */ java.lang.String getServiceAccountScopes(int index); /** + * + * *
    * Optional. The URIs of service account scopes to be included in
    * Compute Engine instances.
@@ -278,36 +353,44 @@ public interface InstanceOrBuilder extends
    *    https://www.googleapis.com/auth/compute
    * 
* - * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string service_account_scopes = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the serviceAccountScopes at the given index. */ - com.google.protobuf.ByteString - getServiceAccountScopesBytes(int index); + com.google.protobuf.ByteString getServiceAccountScopesBytes(int index); /** + * + * *
    * Required. The [Compute Engine machine type](/compute/docs/machine-types) of this
    * instance.
    * 
* * string machine_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The machineType. */ java.lang.String getMachineType(); /** + * + * *
    * Required. The [Compute Engine machine type](/compute/docs/machine-types) of this
    * instance.
    * 
* * string machine_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for machineType. */ - com.google.protobuf.ByteString - getMachineTypeBytes(); + com.google.protobuf.ByteString getMachineTypeBytes(); /** + * + * *
    * The hardware accelerator used on this instance. If you use
    * accelerators, make sure that your configuration has
@@ -316,10 +399,13 @@ public interface InstanceOrBuilder extends
    * 
* * .google.cloud.notebooks.v1.Instance.AcceleratorConfig accelerator_config = 9; + * * @return Whether the acceleratorConfig field is set. */ boolean hasAcceleratorConfig(); /** + * + * *
    * The hardware accelerator used on this instance. If you use
    * accelerators, make sure that your configuration has
@@ -328,10 +414,13 @@ public interface InstanceOrBuilder extends
    * 
* * .google.cloud.notebooks.v1.Instance.AcceleratorConfig accelerator_config = 9; + * * @return The acceleratorConfig. */ com.google.cloud.notebooks.v1.Instance.AcceleratorConfig getAcceleratorConfig(); /** + * + * *
    * The hardware accelerator used on this instance. If you use
    * accelerators, make sure that your configuration has
@@ -344,25 +433,37 @@ public interface InstanceOrBuilder extends
   com.google.cloud.notebooks.v1.Instance.AcceleratorConfigOrBuilder getAcceleratorConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. The state of this instance.
    * 
* - * .google.cloud.notebooks.v1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The state of this instance.
    * 
* - * .google.cloud.notebooks.v1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.notebooks.v1.Instance.State getState(); /** + * + * *
    * Whether the end user authorizes Google Cloud to install GPU driver
    * on this instance.
@@ -371,54 +472,72 @@ public interface InstanceOrBuilder extends
    * 
* * bool install_gpu_driver = 11; + * * @return The installGpuDriver. */ boolean getInstallGpuDriver(); /** + * + * *
    * Specify a custom Cloud Storage path where the GPU driver is stored.
    * If not specified, we'll automatically choose from official GPU drivers.
    * 
* * string custom_gpu_driver_path = 12; + * * @return The customGpuDriverPath. */ java.lang.String getCustomGpuDriverPath(); /** + * + * *
    * Specify a custom Cloud Storage path where the GPU driver is stored.
    * If not specified, we'll automatically choose from official GPU drivers.
    * 
* * string custom_gpu_driver_path = 12; + * * @return The bytes for customGpuDriverPath. */ - com.google.protobuf.ByteString - getCustomGpuDriverPathBytes(); + com.google.protobuf.ByteString getCustomGpuDriverPathBytes(); /** + * + * *
    * Input only. The type of the boot disk attached to this instance, defaults to
    * standard persistent disk (`PD_STANDARD`).
    * 
* - * .google.cloud.notebooks.v1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The enum numeric value on the wire for bootDiskType. */ int getBootDiskTypeValue(); /** + * + * *
    * Input only. The type of the boot disk attached to this instance, defaults to
    * standard persistent disk (`PD_STANDARD`).
    * 
* - * .google.cloud.notebooks.v1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bootDiskType. */ com.google.cloud.notebooks.v1.Instance.DiskType getBootDiskType(); /** + * + * *
    * Input only. The size of the boot disk in GB attached to this instance, up to a maximum
    * of 64000&nbsp;GB (64&nbsp;TB). The minimum recommended value is
@@ -426,32 +545,45 @@ public interface InstanceOrBuilder extends
    * 
* * int64 boot_disk_size_gb = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bootDiskSizeGb. */ long getBootDiskSizeGb(); /** + * + * *
    * Input only. The type of the data disk attached to this instance, defaults to
    * standard persistent disk (`PD_STANDARD`).
    * 
* - * .google.cloud.notebooks.v1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The enum numeric value on the wire for dataDiskType. */ int getDataDiskTypeValue(); /** + * + * *
    * Input only. The type of the data disk attached to this instance, defaults to
    * standard persistent disk (`PD_STANDARD`).
    * 
* - * .google.cloud.notebooks.v1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The dataDiskType. */ com.google.cloud.notebooks.v1.Instance.DiskType getDataDiskType(); /** + * + * *
    * Input only. The size of the data disk in GB attached to this instance, up to a maximum
    * of 64000&nbsp;GB (64&nbsp;TB). You can choose the size of the data disk
@@ -460,40 +592,56 @@ public interface InstanceOrBuilder extends
    * 
* * int64 data_disk_size_gb = 26 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The dataDiskSizeGb. */ long getDataDiskSizeGb(); /** + * + * *
    * Input only. If true, the data disk will not be auto deleted when deleting the instance.
    * 
* * bool no_remove_data_disk = 27 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The noRemoveDataDisk. */ boolean getNoRemoveDataDisk(); /** + * + * *
    * Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
    * 
* - * .google.cloud.notebooks.v1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The enum numeric value on the wire for diskEncryption. */ int getDiskEncryptionValue(); /** + * + * *
    * Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
    * 
* - * .google.cloud.notebooks.v1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The diskEncryption. */ com.google.cloud.notebooks.v1.Instance.DiskEncryption getDiskEncryption(); /** + * + * *
    * Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption
    * is CMEK.
@@ -503,10 +651,13 @@ public interface InstanceOrBuilder extends
    * 
* * string kms_key = 16 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The kmsKey. */ java.lang.String getKmsKey(); /** + * + * *
    * Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption
    * is CMEK.
@@ -516,109 +667,150 @@ public interface InstanceOrBuilder extends
    * 
* * string kms_key = 16 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for kmsKey. */ - com.google.protobuf.ByteString - getKmsKeyBytes(); + com.google.protobuf.ByteString getKmsKeyBytes(); /** + * + * *
    * Output only. Attached disks to notebook instance.
    * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getDisksList(); + java.util.List getDisksList(); /** + * + * *
    * Output only. Attached disks to notebook instance.
    * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.notebooks.v1.Instance.Disk getDisks(int index); /** + * + * *
    * Output only. Attached disks to notebook instance.
    * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getDisksCount(); /** + * + * *
    * Output only. Attached disks to notebook instance.
    * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getDisksOrBuilderList(); /** + * + * *
    * Output only. Attached disks to notebook instance.
    * 
* - * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Instance.Disk disks = 28 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.notebooks.v1.Instance.DiskOrBuilder getDisksOrBuilder( - int index); + com.google.cloud.notebooks.v1.Instance.DiskOrBuilder getDisksOrBuilder(int index); /** + * + * *
    * Optional. Shielded VM configuration.
    * [Images using supported Shielded VM
    * features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
    * 
* - * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the shieldedInstanceConfig field is set. */ boolean hasShieldedInstanceConfig(); /** + * + * *
    * Optional. Shielded VM configuration.
    * [Images using supported Shielded VM
    * features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
    * 
* - * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The shieldedInstanceConfig. */ com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig getShieldedInstanceConfig(); /** + * + * *
    * Optional. Shielded VM configuration.
    * [Images using supported Shielded VM
    * features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
    * 
* - * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder(); + com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder(); /** + * + * *
    * If true, no public IP will be assigned to this instance.
    * 
* * bool no_public_ip = 17; + * * @return The noPublicIp. */ boolean getNoPublicIp(); /** + * + * *
    * If true, the notebook instance will not register with the proxy.
    * 
* * bool no_proxy_access = 18; + * * @return The noProxyAccess. */ boolean getNoProxyAccess(); /** + * + * *
    * The name of the VPC that this instance is in.
    * Format:
@@ -626,10 +818,13 @@ com.google.cloud.notebooks.v1.Instance.DiskOrBuilder getDisksOrBuilder(
    * 
* * string network = 19; + * * @return The network. */ java.lang.String getNetwork(); /** + * + * *
    * The name of the VPC that this instance is in.
    * Format:
@@ -637,12 +832,14 @@ com.google.cloud.notebooks.v1.Instance.DiskOrBuilder getDisksOrBuilder(
    * 
* * string network = 19; + * * @return The bytes for network. */ - com.google.protobuf.ByteString - getNetworkBytes(); + com.google.protobuf.ByteString getNetworkBytes(); /** + * + * *
    * The name of the subnet that this instance is in.
    * Format:
@@ -650,10 +847,13 @@ com.google.cloud.notebooks.v1.Instance.DiskOrBuilder getDisksOrBuilder(
    * 
* * string subnet = 20; + * * @return The subnet. */ java.lang.String getSubnet(); /** + * + * *
    * The name of the subnet that this instance is in.
    * Format:
@@ -661,12 +861,14 @@ com.google.cloud.notebooks.v1.Instance.DiskOrBuilder getDisksOrBuilder(
    * 
* * string subnet = 20; + * * @return The bytes for subnet. */ - com.google.protobuf.ByteString - getSubnetBytes(); + com.google.protobuf.ByteString getSubnetBytes(); /** + * + * *
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method.
@@ -676,6 +878,8 @@ com.google.cloud.notebooks.v1.Instance.DiskOrBuilder getDisksOrBuilder(
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method.
@@ -683,15 +887,13 @@ com.google.cloud.notebooks.v1.Instance.DiskOrBuilder getDisksOrBuilder(
    *
    * map<string, string> labels = 21;
    */
-  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
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method.
@@ -699,9 +901,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 21;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method.
@@ -711,11 +914,13 @@ boolean containsLabels(
    */
 
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method.
@@ -723,11 +928,11 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 21;
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Custom metadata to apply to this instance.
    * 
@@ -736,30 +941,31 @@ java.lang.String getLabelsOrThrow( */ int getMetadataCount(); /** + * + * *
    * Custom metadata to apply to this instance.
    * 
* * map<string, string> metadata = 22; */ - boolean containsMetadata( - java.lang.String key); - /** - * Use {@link #getMetadataMap()} instead. - */ + boolean containsMetadata(java.lang.String key); + /** Use {@link #getMetadataMap()} instead. */ @java.lang.Deprecated - java.util.Map - getMetadata(); + java.util.Map getMetadata(); /** + * + * *
    * Custom metadata to apply to this instance.
    * 
* * map<string, string> metadata = 22; */ - java.util.Map - getMetadataMap(); + java.util.Map getMetadataMap(); /** + * + * *
    * Custom metadata to apply to this instance.
    * 
@@ -768,132 +974,169 @@ boolean containsMetadata( */ /* nullable */ -java.lang.String getMetadataOrDefault( + java.lang.String getMetadataOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Custom metadata to apply to this instance.
    * 
* * map<string, string> metadata = 22; */ - - java.lang.String getMetadataOrThrow( - java.lang.String key); + java.lang.String getMetadataOrThrow(java.lang.String key); /** + * + * *
    * Optional. The Compute Engine tags to add to runtime (see [Tagging
    * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
    * 
* * repeated string tags = 32 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the tags. */ - java.util.List - getTagsList(); + java.util.List getTagsList(); /** + * + * *
    * Optional. The Compute Engine tags to add to runtime (see [Tagging
    * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
    * 
* * repeated string tags = 32 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of tags. */ int getTagsCount(); /** + * + * *
    * Optional. The Compute Engine tags to add to runtime (see [Tagging
    * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
    * 
* * repeated string tags = 32 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** + * + * *
    * Optional. The Compute Engine tags to add to runtime (see [Tagging
    * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
    * 
* * repeated string tags = 32 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - com.google.protobuf.ByteString - getTagsBytes(int index); + com.google.protobuf.ByteString getTagsBytes(int index); /** + * + * *
    * The upgrade history of this instance.
    * 
* - * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * */ - java.util.List + java.util.List getUpgradeHistoryList(); /** + * + * *
    * The upgrade history of this instance.
    * 
* - * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * */ com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry getUpgradeHistory(int index); /** + * + * *
    * The upgrade history of this instance.
    * 
* - * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * */ int getUpgradeHistoryCount(); /** + * + * *
    * The upgrade history of this instance.
    * 
* - * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * */ - java.util.List + java.util.List getUpgradeHistoryOrBuilderList(); /** + * + * *
    * The upgrade history of this instance.
    * 
* - * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * repeated .google.cloud.notebooks.v1.Instance.UpgradeHistoryEntry upgrade_history = 29; + * */ com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntryOrBuilder getUpgradeHistoryOrBuilder( int index); /** + * + * *
    * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
    * VirtioNet.
    * 
* - * .google.cloud.notebooks.v1.Instance.NicType nic_type = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.Instance.NicType nic_type = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for nicType. */ int getNicTypeValue(); /** + * + * *
    * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
    * VirtioNet.
    * 
* - * .google.cloud.notebooks.v1.Instance.NicType nic_type = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.Instance.NicType nic_type = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The nicType. */ com.google.cloud.notebooks.v1.Instance.NicType getNicType(); /** + * + * *
    * Optional. The optional reservation affinity. Setting this field will apply
    * the specified [Zonal Compute
@@ -901,11 +1144,16 @@ com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntryOrBuilder getUpgradeHi
    * to this notebook instance.
    * 
* - * .google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the reservationAffinity field is set. */ boolean hasReservationAffinity(); /** + * + * *
    * Optional. The optional reservation affinity. Setting this field will apply
    * the specified [Zonal Compute
@@ -913,11 +1161,16 @@ com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntryOrBuilder getUpgradeHi
    * to this notebook instance.
    * 
* - * .google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The reservationAffinity. */ com.google.cloud.notebooks.v1.ReservationAffinity getReservationAffinity(); /** + * + * *
    * Optional. The optional reservation affinity. Setting this field will apply
    * the specified [Zonal Compute
@@ -925,92 +1178,124 @@ com.google.cloud.notebooks.v1.Instance.UpgradeHistoryEntryOrBuilder getUpgradeHi
    * to this notebook instance.
    * 
* - * .google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.ReservationAffinity reservation_affinity = 34 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.notebooks.v1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder(); /** + * + * *
    * Output only. Email address of entity that sent original CreateInstance request.
    * 
* * string creator = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The creator. */ java.lang.String getCreator(); /** + * + * *
    * Output only. Email address of entity that sent original CreateInstance request.
    * 
* * string creator = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for creator. */ - com.google.protobuf.ByteString - getCreatorBytes(); + com.google.protobuf.ByteString getCreatorBytes(); /** + * + * *
    * Optional. Flag to enable ip forwarding or not, default false/off.
    * https://cloud.google.com/vpc/docs/using-routes#canipforward
    * 
* * bool can_ip_forward = 39 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The canIpForward. */ boolean getCanIpForward(); /** + * + * *
    * Output only. Instance creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Instance creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Instance creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Instance update time.
    * 
* - * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. Instance update time.
    * 
* - * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. Instance update time.
    * 
* - * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); diff --git a/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceProto.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceProto.java new file mode 100644 index 000000000000..df7df629af0b --- /dev/null +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceProto.java @@ -0,0 +1,334 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/notebooks/v1/instance.proto + +package com.google.cloud.notebooks.v1; + +public final class InstanceProto { + private InstanceProto() {} + + 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_cloud_notebooks_v1_ReservationAffinity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_ReservationAffinity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_Instance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_Instance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_Instance_AcceleratorConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_Instance_AcceleratorConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_Instance_Disk_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_Instance_Disk_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_Instance_Disk_GuestOsFeature_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_Instance_Disk_GuestOsFeature_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_Instance_ShieldedInstanceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_Instance_ShieldedInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_Instance_UpgradeHistoryEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_Instance_UpgradeHistoryEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_Instance_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_Instance_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_Instance_MetadataEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_Instance_MetadataEntry_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/cloud/notebooks/v1/instance.pro" + + "to\022\031google.cloud.notebooks.v1\032\037google/ap" + + "i/field_behavior.proto\032\031google/api/resou" + + "rce.proto\032+google/cloud/notebooks/v1/env" + + "ironment.proto\032\037google/protobuf/timestam" + + "p.proto\"\371\001\n\023ReservationAffinity\022Z\n\030consu" + + "me_reservation_type\030\001 \001(\01623.google.cloud" + + ".notebooks.v1.ReservationAffinity.TypeB\003" + + "\340A\001\022\020\n\003key\030\002 \001(\tB\003\340A\001\022\023\n\006values\030\003 \003(\tB\003\340" + + "A\001\"_\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016NO_R" + + "ESERVATION\020\001\022\023\n\017ANY_RESERVATION\020\002\022\030\n\024SPE" + + "CIFIC_RESERVATION\020\003\"\255\034\n\010Instance\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\003\0226\n\010vm_image\030\002 \001(\0132\".google.c" + + "loud.notebooks.v1.VmImageH\000\022D\n\017container" + + "_image\030\003 \001(\0132).google.cloud.notebooks.v1" + + ".ContainerImageH\000\022\033\n\023post_startup_script" + + "\030\004 \001(\t\022\026\n\tproxy_uri\030\005 \001(\tB\003\340A\003\022\034\n\017instan" + + "ce_owners\030\006 \003(\tB\003\340A\004\022\027\n\017service_account\030" + + "\007 \001(\t\022#\n\026service_account_scopes\030\037 \003(\tB\003\340" + + "A\001\022\031\n\014machine_type\030\010 \001(\tB\003\340A\002\022Q\n\022acceler" + + "ator_config\030\t \001(\01325.google.cloud.noteboo" + + "ks.v1.Instance.AcceleratorConfig\022=\n\005stat" + + "e\030\n \001(\0162).google.cloud.notebooks.v1.Inst" + + "ance.StateB\003\340A\003\022\032\n\022install_gpu_driver\030\013 " + + "\001(\010\022\036\n\026custom_gpu_driver_path\030\014 \001(\t\022I\n\016b" + + "oot_disk_type\030\r \001(\0162,.google.cloud.noteb" + + "ooks.v1.Instance.DiskTypeB\003\340A\004\022\036\n\021boot_d" + + "isk_size_gb\030\016 \001(\003B\003\340A\004\022I\n\016data_disk_type" + + "\030\031 \001(\0162,.google.cloud.notebooks.v1.Insta" + + "nce.DiskTypeB\003\340A\004\022\036\n\021data_disk_size_gb\030\032" + + " \001(\003B\003\340A\004\022 \n\023no_remove_data_disk\030\033 \001(\010B\003" + + "\340A\004\022P\n\017disk_encryption\030\017 \001(\01622.google.cl" + + "oud.notebooks.v1.Instance.DiskEncryption" + + "B\003\340A\004\022\024\n\007kms_key\030\020 \001(\tB\003\340A\004\022<\n\005disks\030\034 \003" + + "(\0132(.google.cloud.notebooks.v1.Instance." + + "DiskB\003\340A\003\022a\n\030shielded_instance_config\030\036 " + + "\001(\0132:.google.cloud.notebooks.v1.Instance" + + ".ShieldedInstanceConfigB\003\340A\001\022\024\n\014no_publi" + + "c_ip\030\021 \001(\010\022\027\n\017no_proxy_access\030\022 \001(\010\022\017\n\007n" + + "etwork\030\023 \001(\t\022\016\n\006subnet\030\024 \001(\t\022?\n\006labels\030\025" + + " \003(\0132/.google.cloud.notebooks.v1.Instanc" + + "e.LabelsEntry\022C\n\010metadata\030\026 \003(\01321.google" + + ".cloud.notebooks.v1.Instance.MetadataEnt" + + "ry\022\021\n\004tags\030 \003(\tB\003\340A\001\022P\n\017upgrade_history" + + "\030\035 \003(\01327.google.cloud.notebooks.v1.Insta" + + "nce.UpgradeHistoryEntry\022B\n\010nic_type\030! \001(" + + "\0162+.google.cloud.notebooks.v1.Instance.N" + + "icTypeB\003\340A\001\022Q\n\024reservation_affinity\030\" \001(" + + "\0132..google.cloud.notebooks.v1.Reservatio" + + "nAffinityB\003\340A\001\022\024\n\007creator\030$ \001(\tB\003\340A\003\022\033\n\016" + + "can_ip_forward\030\' \001(\010B\003\340A\001\0224\n\013create_time" + + "\030\027 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "4\n\013update_time\030\030 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\032j\n\021AcceleratorConfig\022A\n\004ty" + + "pe\030\001 \001(\01623.google.cloud.notebooks.v1.Ins" + + "tance.AcceleratorType\022\022\n\ncore_count\030\002 \001(" + + "\003\032\266\002\n\004Disk\022\023\n\013auto_delete\030\001 \001(\010\022\014\n\004boot\030" + + "\002 \001(\010\022\023\n\013device_name\030\003 \001(\t\022\024\n\014disk_size_" + + "gb\030\004 \001(\003\022R\n\021guest_os_features\030\005 \003(\01327.go" + + "ogle.cloud.notebooks.v1.Instance.Disk.Gu" + + "estOsFeature\022\r\n\005index\030\006 \001(\003\022\021\n\tinterface" + + "\030\007 \001(\t\022\014\n\004kind\030\010 \001(\t\022\020\n\010licenses\030\t \003(\t\022\014" + + "\n\004mode\030\n \001(\t\022\016\n\006source\030\013 \001(\t\022\014\n\004type\030\014 \001" + + "(\t\032\036\n\016GuestOsFeature\022\014\n\004type\030\001 \001(\t\032n\n\026Sh" + + "ieldedInstanceConfig\022\032\n\022enable_secure_bo" + + "ot\030\001 \001(\010\022\023\n\013enable_vtpm\030\002 \001(\010\022#\n\033enable_" + + "integrity_monitoring\030\003 \001(\010\032\374\003\n\023UpgradeHi" + + "storyEntry\022\020\n\010snapshot\030\001 \001(\t\022\020\n\010vm_image" + + "\030\002 \001(\t\022\027\n\017container_image\030\003 \001(\t\022\021\n\tframe" + + "work\030\004 \001(\t\022\017\n\007version\030\005 \001(\t\022L\n\005state\030\006 \001" + + "(\0162=.google.cloud.notebooks.v1.Instance." + + "UpgradeHistoryEntry.State\022/\n\013create_time" + + "\030\007 \001(\0132\032.google.protobuf.Timestamp\022\030\n\014ta" + + "rget_image\030\010 \001(\tB\002\030\001\022N\n\006action\030\t \001(\0162>.g" + + "oogle.cloud.notebooks.v1.Instance.Upgrad" + + "eHistoryEntry.Action\022\026\n\016target_version\030\n" + + " \001(\t\"F\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007" + + "STARTED\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003\";\n\006" + + "Action\022\026\n\022ACTION_UNSPECIFIED\020\000\022\013\n\007UPGRAD" + + "E\020\001\022\014\n\010ROLLBACK\020\002\032-\n\013LabelsEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032/\n\rMetadataEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\235\002\n\017Ac" + + "celeratorType\022 \n\034ACCELERATOR_TYPE_UNSPEC" + + "IFIED\020\000\022\024\n\020NVIDIA_TESLA_K80\020\001\022\025\n\021NVIDIA_" + + "TESLA_P100\020\002\022\025\n\021NVIDIA_TESLA_V100\020\003\022\023\n\017N" + + "VIDIA_TESLA_P4\020\004\022\023\n\017NVIDIA_TESLA_T4\020\005\022\025\n" + + "\021NVIDIA_TESLA_A100\020\013\022\027\n\023NVIDIA_TESLA_T4_" + + "VWS\020\010\022\031\n\025NVIDIA_TESLA_P100_VWS\020\t\022\027\n\023NVID" + + "IA_TESLA_P4_VWS\020\n\022\n\n\006TPU_V2\020\006\022\n\n\006TPU_V3\020" + + "\007\"\303\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010ST" + + "ARTING\020\001\022\020\n\014PROVISIONING\020\002\022\n\n\006ACTIVE\020\003\022\014" + + "\n\010STOPPING\020\004\022\013\n\007STOPPED\020\005\022\013\n\007DELETED\020\006\022\r" + + "\n\tUPGRADING\020\007\022\020\n\014INITIALIZING\020\010\022\017\n\013REGIS" + + "TERING\020\t\022\016\n\nSUSPENDING\020\n\022\r\n\tSUSPENDED\020\013\"" + + "c\n\010DiskType\022\031\n\025DISK_TYPE_UNSPECIFIED\020\000\022\017" + + "\n\013PD_STANDARD\020\001\022\n\n\006PD_SSD\020\002\022\017\n\013PD_BALANC" + + "ED\020\003\022\016\n\nPD_EXTREME\020\004\"E\n\016DiskEncryption\022\037" + + "\n\033DISK_ENCRYPTION_UNSPECIFIED\020\000\022\010\n\004GMEK\020" + + "\001\022\010\n\004CMEK\020\002\">\n\007NicType\022\030\n\024UNSPECIFIED_NI" + + "C_TYPE\020\000\022\016\n\nVIRTIO_NET\020\001\022\t\n\005GVNIC\020\002:O\352AL" + + "\n!notebooks.googleapis.com/Instance\022\'pro" + + "jects/{project}/instances/{instance}B\r\n\013" + + "environmentB\313\001\n\035com.google.cloud.noteboo" + + "ks.v1B\rInstanceProtoP\001ZBgoogle.golang.or" + + "g/genproto/googleapis/cloud/notebooks/v1" + + ";notebooks\252\002\031Google.Cloud.Notebooks.V1\312\002" + + "\031Google\\Cloud\\Notebooks\\V1\352\002\034Google::Clo" + + "ud::Notebooks::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.cloud.notebooks.v1.EnvironmentProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_notebooks_v1_ReservationAffinity_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_notebooks_v1_ReservationAffinity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_ReservationAffinity_descriptor, + new java.lang.String[] { + "ConsumeReservationType", "Key", "Values", + }); + internal_static_google_cloud_notebooks_v1_Instance_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_notebooks_v1_Instance_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_Instance_descriptor, + new java.lang.String[] { + "Name", + "VmImage", + "ContainerImage", + "PostStartupScript", + "ProxyUri", + "InstanceOwners", + "ServiceAccount", + "ServiceAccountScopes", + "MachineType", + "AcceleratorConfig", + "State", + "InstallGpuDriver", + "CustomGpuDriverPath", + "BootDiskType", + "BootDiskSizeGb", + "DataDiskType", + "DataDiskSizeGb", + "NoRemoveDataDisk", + "DiskEncryption", + "KmsKey", + "Disks", + "ShieldedInstanceConfig", + "NoPublicIp", + "NoProxyAccess", + "Network", + "Subnet", + "Labels", + "Metadata", + "Tags", + "UpgradeHistory", + "NicType", + "ReservationAffinity", + "Creator", + "CanIpForward", + "CreateTime", + "UpdateTime", + "Environment", + }); + internal_static_google_cloud_notebooks_v1_Instance_AcceleratorConfig_descriptor = + internal_static_google_cloud_notebooks_v1_Instance_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_notebooks_v1_Instance_AcceleratorConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_Instance_AcceleratorConfig_descriptor, + new java.lang.String[] { + "Type", "CoreCount", + }); + internal_static_google_cloud_notebooks_v1_Instance_Disk_descriptor = + internal_static_google_cloud_notebooks_v1_Instance_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_notebooks_v1_Instance_Disk_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_Instance_Disk_descriptor, + new java.lang.String[] { + "AutoDelete", + "Boot", + "DeviceName", + "DiskSizeGb", + "GuestOsFeatures", + "Index", + "Interface", + "Kind", + "Licenses", + "Mode", + "Source", + "Type", + }); + internal_static_google_cloud_notebooks_v1_Instance_Disk_GuestOsFeature_descriptor = + internal_static_google_cloud_notebooks_v1_Instance_Disk_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_notebooks_v1_Instance_Disk_GuestOsFeature_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_Instance_Disk_GuestOsFeature_descriptor, + new java.lang.String[] { + "Type", + }); + internal_static_google_cloud_notebooks_v1_Instance_ShieldedInstanceConfig_descriptor = + internal_static_google_cloud_notebooks_v1_Instance_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_notebooks_v1_Instance_ShieldedInstanceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_Instance_ShieldedInstanceConfig_descriptor, + new java.lang.String[] { + "EnableSecureBoot", "EnableVtpm", "EnableIntegrityMonitoring", + }); + internal_static_google_cloud_notebooks_v1_Instance_UpgradeHistoryEntry_descriptor = + internal_static_google_cloud_notebooks_v1_Instance_descriptor.getNestedTypes().get(3); + internal_static_google_cloud_notebooks_v1_Instance_UpgradeHistoryEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_Instance_UpgradeHistoryEntry_descriptor, + new java.lang.String[] { + "Snapshot", + "VmImage", + "ContainerImage", + "Framework", + "Version", + "State", + "CreateTime", + "TargetImage", + "Action", + "TargetVersion", + }); + internal_static_google_cloud_notebooks_v1_Instance_LabelsEntry_descriptor = + internal_static_google_cloud_notebooks_v1_Instance_descriptor.getNestedTypes().get(4); + internal_static_google_cloud_notebooks_v1_Instance_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_Instance_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_notebooks_v1_Instance_MetadataEntry_descriptor = + internal_static_google_cloud_notebooks_v1_Instance_descriptor.getNestedTypes().get(5); + internal_static_google_cloud_notebooks_v1_Instance_MetadataEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_Instance_MetadataEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.notebooks.v1.EnvironmentProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableRequest.java similarity index 66% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableRequest.java index f97a862c2fd0..0441429feb67 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for checking if a notebook instance is upgradeable.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.IsInstanceUpgradeableRequest} */ -public final class IsInstanceUpgradeableRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class IsInstanceUpgradeableRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.IsInstanceUpgradeableRequest) IsInstanceUpgradeableRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IsInstanceUpgradeableRequest.newBuilder() to construct. private IsInstanceUpgradeableRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private IsInstanceUpgradeableRequest() { notebookInstance_ = ""; type_ = 0; @@ -26,38 +44,42 @@ private IsInstanceUpgradeableRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IsInstanceUpgradeableRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest.class, com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest.Builder.class); + com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest.class, + com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest.Builder.class); } public static final int NOTEBOOK_INSTANCE_FIELD_NUMBER = 1; private volatile java.lang.Object notebookInstance_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string notebook_instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The notebookInstance. */ @java.lang.Override @@ -66,30 +88,30 @@ public java.lang.String getNotebookInstance() { 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(); notebookInstance_ = s; return s; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string notebook_instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for notebookInstance. */ @java.lang.Override - public com.google.protobuf.ByteString - getNotebookInstanceBytes() { + public com.google.protobuf.ByteString getNotebookInstanceBytes() { java.lang.Object ref = notebookInstance_; 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); notebookInstance_ = b; return b; } else { @@ -100,33 +122,47 @@ public java.lang.String getNotebookInstance() { public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** + * + * *
    * Optional. The optional UpgradeType. Setting this field will search for additional
    * compute images to upgrade this instance.
    * 
* - * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * Optional. The optional UpgradeType. Setting this field will search for additional
    * compute images to upgrade this instance.
    * 
* - * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The type. */ - @java.lang.Override public com.google.cloud.notebooks.v1.UpgradeType getType() { + @java.lang.Override + public com.google.cloud.notebooks.v1.UpgradeType getType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.UpgradeType result = com.google.cloud.notebooks.v1.UpgradeType.valueOf(type_); + com.google.cloud.notebooks.v1.UpgradeType result = + com.google.cloud.notebooks.v1.UpgradeType.valueOf(type_); return result == null ? com.google.cloud.notebooks.v1.UpgradeType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,8 +174,7 @@ 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(notebookInstance_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, notebookInstance_); } @@ -159,8 +194,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, notebookInstance_); } if (type_ != com.google.cloud.notebooks.v1.UpgradeType.UPGRADE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -170,15 +204,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.cloud.notebooks.v1.IsInstanceUpgradeableRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest other = (com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest) obj; + com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest other = + (com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest) obj; - if (!getNotebookInstance() - .equals(other.getNotebookInstance())) return false; + if (!getNotebookInstance().equals(other.getNotebookInstance())) return false; if (type_ != other.type_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -201,129 +235,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest 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.cloud.notebooks.v1.IsInstanceUpgradeableRequest 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.cloud.notebooks.v1.IsInstanceUpgradeableRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest 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.cloud.notebooks.v1.IsInstanceUpgradeableRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest 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.cloud.notebooks.v1.IsInstanceUpgradeableRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest 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.cloud.notebooks.v1.IsInstanceUpgradeableRequest 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.cloud.notebooks.v1.IsInstanceUpgradeableRequest 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.cloud.notebooks.v1.IsInstanceUpgradeableRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest 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; } /** + * + * *
    * Request for checking if a notebook instance is upgradeable.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.IsInstanceUpgradeableRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.IsInstanceUpgradeableRequest) com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest.class, com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest.Builder.class); + com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest.class, + com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -335,9 +376,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableRequest_descriptor; } @java.lang.Override @@ -356,7 +397,8 @@ public com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest buildPartial() { - com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest result = new com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest(this); + com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest result = + new com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest(this); result.notebookInstance_ = notebookInstance_; result.type_ = type_; onBuilt(); @@ -367,38 +409,39 @@ public com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest buildPartial() 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.cloud.notebooks.v1.IsInstanceUpgradeableRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest) other); } else { super.mergeFrom(other); return this; @@ -406,7 +449,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest other) { - if (other == com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest.getDefaultInstance()) + return this; if (!other.getNotebookInstance().isEmpty()) { notebookInstance_ = other.notebookInstance_; onChanged(); @@ -440,22 +484,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - notebookInstance_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - type_ = input.readEnum(); - - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + notebookInstance_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + + 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) { @@ -468,19 +515,21 @@ public Builder mergeFrom( private java.lang.Object notebookInstance_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string notebook_instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The notebookInstance. */ public java.lang.String getNotebookInstance() { java.lang.Object ref = notebookInstance_; 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(); notebookInstance_ = s; return s; @@ -489,21 +538,22 @@ public java.lang.String getNotebookInstance() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string notebook_instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for notebookInstance. */ - public com.google.protobuf.ByteString - getNotebookInstanceBytes() { + public com.google.protobuf.ByteString getNotebookInstanceBytes() { java.lang.Object ref = notebookInstance_; 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); notebookInstance_ = b; return b; } else { @@ -511,57 +561,64 @@ public java.lang.String getNotebookInstance() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string notebook_instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The notebookInstance to set. * @return This builder for chaining. */ - public Builder setNotebookInstance( - java.lang.String value) { + public Builder setNotebookInstance(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + notebookInstance_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string notebook_instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearNotebookInstance() { - + notebookInstance_ = getDefaultInstance().getNotebookInstance(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string notebook_instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for notebookInstance to set. * @return This builder for chaining. */ - public Builder setNotebookInstanceBytes( - com.google.protobuf.ByteString value) { + public Builder setNotebookInstanceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + notebookInstance_ = value; onChanged(); return this; @@ -569,55 +626,77 @@ public Builder setNotebookInstanceBytes( private int type_ = 0; /** + * + * *
      * Optional. The optional UpgradeType. Setting this field will search for additional
      * compute images to upgrade this instance.
      * 
* - * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Optional. The optional UpgradeType. Setting this field will search for additional
      * compute images to upgrade this instance.
      * 
* - * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The optional UpgradeType. Setting this field will search for additional
      * compute images to upgrade this instance.
      * 
* - * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The type. */ @java.lang.Override public com.google.cloud.notebooks.v1.UpgradeType getType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.UpgradeType result = com.google.cloud.notebooks.v1.UpgradeType.valueOf(type_); + com.google.cloud.notebooks.v1.UpgradeType result = + com.google.cloud.notebooks.v1.UpgradeType.valueOf(type_); return result == null ? com.google.cloud.notebooks.v1.UpgradeType.UNRECOGNIZED : result; } /** + * + * *
      * Optional. The optional UpgradeType. Setting this field will search for additional
      * compute images to upgrade this instance.
      * 
* - * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The type to set. * @return This builder for chaining. */ @@ -625,29 +704,34 @@ public Builder setType(com.google.cloud.notebooks.v1.UpgradeType value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. The optional UpgradeType. Setting this field will search for additional
      * compute images to upgrade this instance.
      * 
* - * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; 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); } @@ -657,12 +741,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.IsInstanceUpgradeableRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.IsInstanceUpgradeableRequest) private static final com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest(); } @@ -671,27 +755,27 @@ public static com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IsInstanceUpgradeableRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IsInstanceUpgradeableRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -706,6 +790,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableRequestOrBuilder.java similarity index 57% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableRequestOrBuilder.java index fee14a8c3197..d14aab9ea0f4 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableRequestOrBuilder.java @@ -1,51 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface IsInstanceUpgradeableRequestOrBuilder extends +public interface IsInstanceUpgradeableRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.IsInstanceUpgradeableRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string notebook_instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The notebookInstance. */ java.lang.String getNotebookInstance(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string notebook_instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for notebookInstance. */ - com.google.protobuf.ByteString - getNotebookInstanceBytes(); + com.google.protobuf.ByteString getNotebookInstanceBytes(); /** + * + * *
    * Optional. The optional UpgradeType. Setting this field will search for additional
    * compute images to upgrade this instance.
    * 
* - * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * Optional. The optional UpgradeType. Setting this field will search for additional
    * compute images to upgrade this instance.
    * 
* - * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The type. */ com.google.cloud.notebooks.v1.UpgradeType getType(); diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableResponse.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableResponse.java similarity index 70% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableResponse.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableResponse.java index 097151a4ca03..8e017fa7e2a3 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableResponse.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Response for checking if a notebook instance is upgradeable.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.IsInstanceUpgradeableResponse} */ -public final class IsInstanceUpgradeableResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class IsInstanceUpgradeableResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.IsInstanceUpgradeableResponse) IsInstanceUpgradeableResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IsInstanceUpgradeableResponse.newBuilder() to construct. private IsInstanceUpgradeableResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private IsInstanceUpgradeableResponse() { upgradeVersion_ = ""; upgradeInfo_ = ""; @@ -27,37 +45,41 @@ private IsInstanceUpgradeableResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IsInstanceUpgradeableResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableResponse_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse.class, com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse.Builder.class); + com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse.class, + com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse.Builder.class); } public static final int UPGRADEABLE_FIELD_NUMBER = 1; private boolean upgradeable_; /** + * + * *
    * If an instance is upgradeable.
    * 
* * bool upgradeable = 1; + * * @return The upgradeable. */ @java.lang.Override @@ -68,12 +90,15 @@ public boolean getUpgradeable() { public static final int UPGRADE_VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object upgradeVersion_; /** + * + * *
    * The version this instance will be upgraded to if calling the upgrade
    * endpoint. This field will only be populated if field upgradeable is true.
    * 
* * string upgrade_version = 2; + * * @return The upgradeVersion. */ @java.lang.Override @@ -82,30 +107,30 @@ public java.lang.String getUpgradeVersion() { 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(); upgradeVersion_ = s; return s; } } /** + * + * *
    * The version this instance will be upgraded to if calling the upgrade
    * endpoint. This field will only be populated if field upgradeable is true.
    * 
* * string upgrade_version = 2; + * * @return The bytes for upgradeVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getUpgradeVersionBytes() { + public com.google.protobuf.ByteString getUpgradeVersionBytes() { java.lang.Object ref = upgradeVersion_; 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); upgradeVersion_ = b; return b; } else { @@ -116,11 +141,14 @@ public java.lang.String getUpgradeVersion() { public static final int UPGRADE_INFO_FIELD_NUMBER = 3; private volatile java.lang.Object upgradeInfo_; /** + * + * *
    * Additional information about upgrade.
    * 
* * string upgrade_info = 3; + * * @return The upgradeInfo. */ @java.lang.Override @@ -129,29 +157,29 @@ public java.lang.String getUpgradeInfo() { 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(); upgradeInfo_ = s; return s; } } /** + * + * *
    * Additional information about upgrade.
    * 
* * string upgrade_info = 3; + * * @return The bytes for upgradeInfo. */ @java.lang.Override - public com.google.protobuf.ByteString - getUpgradeInfoBytes() { + public com.google.protobuf.ByteString getUpgradeInfoBytes() { java.lang.Object ref = upgradeInfo_; 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); upgradeInfo_ = b; return b; } else { @@ -162,6 +190,8 @@ public java.lang.String getUpgradeInfo() { public static final int UPGRADE_IMAGE_FIELD_NUMBER = 4; private volatile java.lang.Object upgradeImage_; /** + * + * *
    * The new image self link this instance will be upgraded to if calling the
    * upgrade endpoint. This field will only be populated if field upgradeable
@@ -169,6 +199,7 @@ public java.lang.String getUpgradeInfo() {
    * 
* * string upgrade_image = 4; + * * @return The upgradeImage. */ @java.lang.Override @@ -177,14 +208,15 @@ public java.lang.String getUpgradeImage() { 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(); upgradeImage_ = s; return s; } } /** + * + * *
    * The new image self link this instance will be upgraded to if calling the
    * upgrade endpoint. This field will only be populated if field upgradeable
@@ -192,16 +224,15 @@ public java.lang.String getUpgradeImage() {
    * 
* * string upgrade_image = 4; + * * @return The bytes for upgradeImage. */ @java.lang.Override - public com.google.protobuf.ByteString - getUpgradeImageBytes() { + public com.google.protobuf.ByteString getUpgradeImageBytes() { java.lang.Object ref = upgradeImage_; 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); upgradeImage_ = b; return b; } else { @@ -210,6 +241,7 @@ public java.lang.String getUpgradeImage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -221,8 +253,7 @@ 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 (upgradeable_ != false) { output.writeBool(1, upgradeable_); } @@ -245,8 +276,7 @@ public int getSerializedSize() { size = 0; if (upgradeable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, upgradeable_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, upgradeable_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(upgradeVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, upgradeVersion_); @@ -265,21 +295,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.cloud.notebooks.v1.IsInstanceUpgradeableResponse)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse other = (com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse) obj; + com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse other = + (com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse) obj; - if (getUpgradeable() - != other.getUpgradeable()) return false; - if (!getUpgradeVersion() - .equals(other.getUpgradeVersion())) return false; - if (!getUpgradeInfo() - .equals(other.getUpgradeInfo())) return false; - if (!getUpgradeImage() - .equals(other.getUpgradeImage())) return false; + if (getUpgradeable() != other.getUpgradeable()) return false; + if (!getUpgradeVersion().equals(other.getUpgradeVersion())) return false; + if (!getUpgradeInfo().equals(other.getUpgradeInfo())) return false; + if (!getUpgradeImage().equals(other.getUpgradeImage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -292,8 +319,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + UPGRADEABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUpgradeable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUpgradeable()); hash = (37 * hash) + UPGRADE_VERSION_FIELD_NUMBER; hash = (53 * hash) + getUpgradeVersion().hashCode(); hash = (37 * hash) + UPGRADE_INFO_FIELD_NUMBER; @@ -306,129 +332,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse 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.cloud.notebooks.v1.IsInstanceUpgradeableResponse 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.cloud.notebooks.v1.IsInstanceUpgradeableResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse 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.cloud.notebooks.v1.IsInstanceUpgradeableResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse 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.cloud.notebooks.v1.IsInstanceUpgradeableResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse 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.cloud.notebooks.v1.IsInstanceUpgradeableResponse 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.cloud.notebooks.v1.IsInstanceUpgradeableResponse 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.cloud.notebooks.v1.IsInstanceUpgradeableResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse 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; } /** + * + * *
    * Response for checking if a notebook instance is upgradeable.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.IsInstanceUpgradeableResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.IsInstanceUpgradeableResponse) com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableResponse_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse.class, com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse.Builder.class); + com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse.class, + com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse.Builder.class); } // Construct using com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -444,9 +477,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableResponse_descriptor; } @java.lang.Override @@ -465,7 +498,8 @@ public com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse build() { @java.lang.Override public com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse buildPartial() { - com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse result = new com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse(this); + com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse result = + new com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse(this); result.upgradeable_ = upgradeable_; result.upgradeVersion_ = upgradeVersion_; result.upgradeInfo_ = upgradeInfo_; @@ -478,38 +512,39 @@ public com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse buildPartial( 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.cloud.notebooks.v1.IsInstanceUpgradeableResponse) { - return mergeFrom((com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse)other); + return mergeFrom((com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse) other); } else { super.mergeFrom(other); return this; @@ -517,7 +552,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse other) { - if (other == com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse.getDefaultInstance()) + return this; if (other.getUpgradeable() != false) { setUpgradeable(other.getUpgradeable()); } @@ -559,32 +595,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - upgradeable_ = input.readBool(); + case 8: + { + upgradeable_ = input.readBool(); - break; - } // case 8 - case 18: { - upgradeVersion_ = input.readStringRequireUtf8(); + break; + } // case 8 + case 18: + { + upgradeVersion_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - upgradeInfo_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: + { + upgradeInfo_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: { - upgradeImage_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: + { + upgradeImage_ = input.readStringRequireUtf8(); - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -595,13 +636,16 @@ public Builder mergeFrom( return this; } - private boolean upgradeable_ ; + private boolean upgradeable_; /** + * + * *
      * If an instance is upgradeable.
      * 
* * bool upgradeable = 1; + * * @return The upgradeable. */ @java.lang.Override @@ -609,30 +653,36 @@ public boolean getUpgradeable() { return upgradeable_; } /** + * + * *
      * If an instance is upgradeable.
      * 
* * bool upgradeable = 1; + * * @param value The upgradeable to set. * @return This builder for chaining. */ public Builder setUpgradeable(boolean value) { - + upgradeable_ = value; onChanged(); return this; } /** + * + * *
      * If an instance is upgradeable.
      * 
* * bool upgradeable = 1; + * * @return This builder for chaining. */ public Builder clearUpgradeable() { - + upgradeable_ = false; onChanged(); return this; @@ -640,19 +690,21 @@ public Builder clearUpgradeable() { private java.lang.Object upgradeVersion_ = ""; /** + * + * *
      * The version this instance will be upgraded to if calling the upgrade
      * endpoint. This field will only be populated if field upgradeable is true.
      * 
* * string upgrade_version = 2; + * * @return The upgradeVersion. */ public java.lang.String getUpgradeVersion() { java.lang.Object ref = upgradeVersion_; 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(); upgradeVersion_ = s; return s; @@ -661,21 +713,22 @@ public java.lang.String getUpgradeVersion() { } } /** + * + * *
      * The version this instance will be upgraded to if calling the upgrade
      * endpoint. This field will only be populated if field upgradeable is true.
      * 
* * string upgrade_version = 2; + * * @return The bytes for upgradeVersion. */ - public com.google.protobuf.ByteString - getUpgradeVersionBytes() { + public com.google.protobuf.ByteString getUpgradeVersionBytes() { java.lang.Object ref = upgradeVersion_; 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); upgradeVersion_ = b; return b; } else { @@ -683,57 +736,64 @@ public java.lang.String getUpgradeVersion() { } } /** + * + * *
      * The version this instance will be upgraded to if calling the upgrade
      * endpoint. This field will only be populated if field upgradeable is true.
      * 
* * string upgrade_version = 2; + * * @param value The upgradeVersion to set. * @return This builder for chaining. */ - public Builder setUpgradeVersion( - java.lang.String value) { + public Builder setUpgradeVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + upgradeVersion_ = value; onChanged(); return this; } /** + * + * *
      * The version this instance will be upgraded to if calling the upgrade
      * endpoint. This field will only be populated if field upgradeable is true.
      * 
* * string upgrade_version = 2; + * * @return This builder for chaining. */ public Builder clearUpgradeVersion() { - + upgradeVersion_ = getDefaultInstance().getUpgradeVersion(); onChanged(); return this; } /** + * + * *
      * The version this instance will be upgraded to if calling the upgrade
      * endpoint. This field will only be populated if field upgradeable is true.
      * 
* * string upgrade_version = 2; + * * @param value The bytes for upgradeVersion to set. * @return This builder for chaining. */ - public Builder setUpgradeVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setUpgradeVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + upgradeVersion_ = value; onChanged(); return this; @@ -741,18 +801,20 @@ public Builder setUpgradeVersionBytes( private java.lang.Object upgradeInfo_ = ""; /** + * + * *
      * Additional information about upgrade.
      * 
* * string upgrade_info = 3; + * * @return The upgradeInfo. */ public java.lang.String getUpgradeInfo() { java.lang.Object ref = upgradeInfo_; 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(); upgradeInfo_ = s; return s; @@ -761,20 +823,21 @@ public java.lang.String getUpgradeInfo() { } } /** + * + * *
      * Additional information about upgrade.
      * 
* * string upgrade_info = 3; + * * @return The bytes for upgradeInfo. */ - public com.google.protobuf.ByteString - getUpgradeInfoBytes() { + public com.google.protobuf.ByteString getUpgradeInfoBytes() { java.lang.Object ref = upgradeInfo_; 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); upgradeInfo_ = b; return b; } else { @@ -782,54 +845,61 @@ public java.lang.String getUpgradeInfo() { } } /** + * + * *
      * Additional information about upgrade.
      * 
* * string upgrade_info = 3; + * * @param value The upgradeInfo to set. * @return This builder for chaining. */ - public Builder setUpgradeInfo( - java.lang.String value) { + public Builder setUpgradeInfo(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + upgradeInfo_ = value; onChanged(); return this; } /** + * + * *
      * Additional information about upgrade.
      * 
* * string upgrade_info = 3; + * * @return This builder for chaining. */ public Builder clearUpgradeInfo() { - + upgradeInfo_ = getDefaultInstance().getUpgradeInfo(); onChanged(); return this; } /** + * + * *
      * Additional information about upgrade.
      * 
* * string upgrade_info = 3; + * * @param value The bytes for upgradeInfo to set. * @return This builder for chaining. */ - public Builder setUpgradeInfoBytes( - com.google.protobuf.ByteString value) { + public Builder setUpgradeInfoBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + upgradeInfo_ = value; onChanged(); return this; @@ -837,6 +907,8 @@ public Builder setUpgradeInfoBytes( private java.lang.Object upgradeImage_ = ""; /** + * + * *
      * The new image self link this instance will be upgraded to if calling the
      * upgrade endpoint. This field will only be populated if field upgradeable
@@ -844,13 +916,13 @@ public Builder setUpgradeInfoBytes(
      * 
* * string upgrade_image = 4; + * * @return The upgradeImage. */ public java.lang.String getUpgradeImage() { java.lang.Object ref = upgradeImage_; 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(); upgradeImage_ = s; return s; @@ -859,6 +931,8 @@ public java.lang.String getUpgradeImage() { } } /** + * + * *
      * The new image self link this instance will be upgraded to if calling the
      * upgrade endpoint. This field will only be populated if field upgradeable
@@ -866,15 +940,14 @@ public java.lang.String getUpgradeImage() {
      * 
* * string upgrade_image = 4; + * * @return The bytes for upgradeImage. */ - public com.google.protobuf.ByteString - getUpgradeImageBytes() { + public com.google.protobuf.ByteString getUpgradeImageBytes() { java.lang.Object ref = upgradeImage_; 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); upgradeImage_ = b; return b; } else { @@ -882,6 +955,8 @@ public java.lang.String getUpgradeImage() { } } /** + * + * *
      * The new image self link this instance will be upgraded to if calling the
      * upgrade endpoint. This field will only be populated if field upgradeable
@@ -889,20 +964,22 @@ public java.lang.String getUpgradeImage() {
      * 
* * string upgrade_image = 4; + * * @param value The upgradeImage to set. * @return This builder for chaining. */ - public Builder setUpgradeImage( - java.lang.String value) { + public Builder setUpgradeImage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + upgradeImage_ = value; onChanged(); return this; } /** + * + * *
      * The new image self link this instance will be upgraded to if calling the
      * upgrade endpoint. This field will only be populated if field upgradeable
@@ -910,15 +987,18 @@ public Builder setUpgradeImage(
      * 
* * string upgrade_image = 4; + * * @return This builder for chaining. */ public Builder clearUpgradeImage() { - + upgradeImage_ = getDefaultInstance().getUpgradeImage(); onChanged(); return this; } /** + * + * *
      * The new image self link this instance will be upgraded to if calling the
      * upgrade endpoint. This field will only be populated if field upgradeable
@@ -926,23 +1006,23 @@ public Builder clearUpgradeImage() {
      * 
* * string upgrade_image = 4; + * * @param value The bytes for upgradeImage to set. * @return This builder for chaining. */ - public Builder setUpgradeImageBytes( - com.google.protobuf.ByteString value) { + public Builder setUpgradeImageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + upgradeImage_ = 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); } @@ -952,12 +1032,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.IsInstanceUpgradeableResponse) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.IsInstanceUpgradeableResponse) private static final com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse(); } @@ -966,27 +1046,27 @@ public static com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IsInstanceUpgradeableResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IsInstanceUpgradeableResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -1001,6 +1081,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableResponseOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableResponseOrBuilder.java similarity index 68% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableResponseOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableResponseOrBuilder.java index a472fe128f77..144afe4fd025 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableResponseOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableResponseOrBuilder.java @@ -1,65 +1,96 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface IsInstanceUpgradeableResponseOrBuilder extends +public interface IsInstanceUpgradeableResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.IsInstanceUpgradeableResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * If an instance is upgradeable.
    * 
* * bool upgradeable = 1; + * * @return The upgradeable. */ boolean getUpgradeable(); /** + * + * *
    * The version this instance will be upgraded to if calling the upgrade
    * endpoint. This field will only be populated if field upgradeable is true.
    * 
* * string upgrade_version = 2; + * * @return The upgradeVersion. */ java.lang.String getUpgradeVersion(); /** + * + * *
    * The version this instance will be upgraded to if calling the upgrade
    * endpoint. This field will only be populated if field upgradeable is true.
    * 
* * string upgrade_version = 2; + * * @return The bytes for upgradeVersion. */ - com.google.protobuf.ByteString - getUpgradeVersionBytes(); + com.google.protobuf.ByteString getUpgradeVersionBytes(); /** + * + * *
    * Additional information about upgrade.
    * 
* * string upgrade_info = 3; + * * @return The upgradeInfo. */ java.lang.String getUpgradeInfo(); /** + * + * *
    * Additional information about upgrade.
    * 
* * string upgrade_info = 3; + * * @return The bytes for upgradeInfo. */ - com.google.protobuf.ByteString - getUpgradeInfoBytes(); + com.google.protobuf.ByteString getUpgradeInfoBytes(); /** + * + * *
    * The new image self link this instance will be upgraded to if calling the
    * upgrade endpoint. This field will only be populated if field upgradeable
@@ -67,10 +98,13 @@ public interface IsInstanceUpgradeableResponseOrBuilder extends
    * 
* * string upgrade_image = 4; + * * @return The upgradeImage. */ java.lang.String getUpgradeImage(); /** + * + * *
    * The new image self link this instance will be upgraded to if calling the
    * upgrade endpoint. This field will only be populated if field upgradeable
@@ -78,8 +112,8 @@ public interface IsInstanceUpgradeableResponseOrBuilder extends
    * 
* * string upgrade_image = 4; + * * @return The bytes for upgradeImage. */ - com.google.protobuf.ByteString - getUpgradeImageBytes(); + com.google.protobuf.ByteString getUpgradeImageBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsRequest.java similarity index 68% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsRequest.java index e1ad60a5d1db..177c37581683 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for listing environments.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.ListEnvironmentsRequest} */ -public final class ListEnvironmentsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListEnvironmentsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.ListEnvironmentsRequest) ListEnvironmentsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListEnvironmentsRequest.newBuilder() to construct. private ListEnvironmentsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListEnvironmentsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,37 +44,41 @@ private ListEnvironmentsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListEnvironmentsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListEnvironmentsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListEnvironmentsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListEnvironmentsRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListEnvironmentsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ListEnvironmentsRequest.class, com.google.cloud.notebooks.v1.ListEnvironmentsRequest.Builder.class); + com.google.cloud.notebooks.v1.ListEnvironmentsRequest.class, + com.google.cloud.notebooks.v1.ListEnvironmentsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Format: `projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -65,29 +87,29 @@ 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; } } /** + * + * *
    * Required. Format: `projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -98,11 +120,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Maximum return size of the list call.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -113,12 +138,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A previous returned page token that can be used to continue listing from
    * the last result.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -127,30 +155,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; } } /** + * + * *
    * A previous returned page token that can be used to continue listing from
    * the last result.
    * 
* * string page_token = 3; + * * @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 { @@ -159,6 +187,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,8 +199,7 @@ 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_); } @@ -194,8 +222,7 @@ 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_); @@ -208,19 +235,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.cloud.notebooks.v1.ListEnvironmentsRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.ListEnvironmentsRequest other = (com.google.cloud.notebooks.v1.ListEnvironmentsRequest) obj; + com.google.cloud.notebooks.v1.ListEnvironmentsRequest other = + (com.google.cloud.notebooks.v1.ListEnvironmentsRequest) 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; } @@ -244,129 +269,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.ListEnvironmentsRequest 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.cloud.notebooks.v1.ListEnvironmentsRequest 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.cloud.notebooks.v1.ListEnvironmentsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ListEnvironmentsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.ListEnvironmentsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ListEnvironmentsRequest 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.cloud.notebooks.v1.ListEnvironmentsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ListEnvironmentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.ListEnvironmentsRequest 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.cloud.notebooks.v1.ListEnvironmentsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ListEnvironmentsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.ListEnvironmentsRequest 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.cloud.notebooks.v1.ListEnvironmentsRequest 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.cloud.notebooks.v1.ListEnvironmentsRequest 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.cloud.notebooks.v1.ListEnvironmentsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1.ListEnvironmentsRequest 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; } /** + * + * *
    * Request for listing environments.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.ListEnvironmentsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.ListEnvironmentsRequest) com.google.cloud.notebooks.v1.ListEnvironmentsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListEnvironmentsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListEnvironmentsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListEnvironmentsRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListEnvironmentsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ListEnvironmentsRequest.class, com.google.cloud.notebooks.v1.ListEnvironmentsRequest.Builder.class); + com.google.cloud.notebooks.v1.ListEnvironmentsRequest.class, + com.google.cloud.notebooks.v1.ListEnvironmentsRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.ListEnvironmentsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -380,9 +412,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListEnvironmentsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListEnvironmentsRequest_descriptor; } @java.lang.Override @@ -401,7 +433,8 @@ public com.google.cloud.notebooks.v1.ListEnvironmentsRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.ListEnvironmentsRequest buildPartial() { - com.google.cloud.notebooks.v1.ListEnvironmentsRequest result = new com.google.cloud.notebooks.v1.ListEnvironmentsRequest(this); + com.google.cloud.notebooks.v1.ListEnvironmentsRequest result = + new com.google.cloud.notebooks.v1.ListEnvironmentsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -413,38 +446,39 @@ public com.google.cloud.notebooks.v1.ListEnvironmentsRequest buildPartial() { 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.cloud.notebooks.v1.ListEnvironmentsRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.ListEnvironmentsRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.ListEnvironmentsRequest) other); } else { super.mergeFrom(other); return this; @@ -452,7 +486,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.ListEnvironmentsRequest other) { - if (other == com.google.cloud.notebooks.v1.ListEnvironmentsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.ListEnvironmentsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -490,27 +525,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + 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) { @@ -523,18 +562,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Format: `projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -543,20 +584,21 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Format: `projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -564,66 +606,76 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Format: `projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format: `projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Format: `projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum return size of the list call.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -631,30 +683,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum return size of the list call.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Maximum return size of the list call.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -662,19 +720,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A previous returned page token that can be used to continue listing from
      * the last result.
      * 
* * string page_token = 3; + * * @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; @@ -683,21 +743,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A previous returned page token that can be used to continue listing from
      * the last result.
      * 
* * string page_token = 3; + * * @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 { @@ -705,64 +766,71 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A previous returned page token that can be used to continue listing from
      * the last result.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A previous returned page token that can be used to continue listing from
      * the last result.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A previous returned page token that can be used to continue listing from
      * the last result.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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); } @@ -772,12 +840,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.ListEnvironmentsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.ListEnvironmentsRequest) private static final com.google.cloud.notebooks.v1.ListEnvironmentsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.ListEnvironmentsRequest(); } @@ -786,27 +854,27 @@ public static com.google.cloud.notebooks.v1.ListEnvironmentsRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEnvironmentsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEnvironmentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -821,6 +889,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.ListEnvironmentsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsRequestOrBuilder.java index 0842a0bc6b46..f435d6036fae 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsRequestOrBuilder.java @@ -1,61 +1,90 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface ListEnvironmentsRequestOrBuilder extends +public interface ListEnvironmentsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.ListEnvironmentsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format: `projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Format: `projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Maximum return size of the list call.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A previous returned page token that can be used to continue listing from
    * the last result.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A previous returned page token that can be used to continue listing from
    * the last result.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsResponse.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsResponse.java similarity index 72% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsResponse.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsResponse.java index 00075e45b912..680ba56f55b4 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsResponse.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Response for listing environments.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.ListEnvironmentsResponse} */ -public final class ListEnvironmentsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListEnvironmentsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.ListEnvironmentsResponse) ListEnvironmentsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListEnvironmentsResponse.newBuilder() to construct. private ListEnvironmentsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListEnvironmentsResponse() { environments_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,32 +45,35 @@ private ListEnvironmentsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListEnvironmentsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListEnvironmentsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListEnvironmentsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListEnvironmentsResponse_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListEnvironmentsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ListEnvironmentsResponse.class, com.google.cloud.notebooks.v1.ListEnvironmentsResponse.Builder.class); + com.google.cloud.notebooks.v1.ListEnvironmentsResponse.class, + com.google.cloud.notebooks.v1.ListEnvironmentsResponse.Builder.class); } public static final int ENVIRONMENTS_FIELD_NUMBER = 1; private java.util.List environments_; /** + * + * *
    * A list of returned environments.
    * 
@@ -64,6 +85,8 @@ public java.util.List getEnvironments return environments_; } /** + * + * *
    * A list of returned environments.
    * 
@@ -71,11 +94,13 @@ public java.util.List getEnvironments * repeated .google.cloud.notebooks.v1.Environment environments = 1; */ @java.lang.Override - public java.util.List + public java.util.List getEnvironmentsOrBuilderList() { return environments_; } /** + * + * *
    * A list of returned environments.
    * 
@@ -87,6 +112,8 @@ public int getEnvironmentsCount() { return environments_.size(); } /** + * + * *
    * A list of returned environments.
    * 
@@ -98,6 +125,8 @@ public com.google.cloud.notebooks.v1.Environment getEnvironments(int index) { return environments_.get(index); } /** + * + * *
    * A list of returned environments.
    * 
@@ -105,20 +134,22 @@ public com.google.cloud.notebooks.v1.Environment getEnvironments(int index) { * repeated .google.cloud.notebooks.v1.Environment environments = 1; */ @java.lang.Override - public com.google.cloud.notebooks.v1.EnvironmentOrBuilder getEnvironmentsOrBuilder( - int index) { + public com.google.cloud.notebooks.v1.EnvironmentOrBuilder getEnvironmentsOrBuilder(int index) { return environments_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A page token that can be used to continue listing from the last result
    * in the next list call.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -127,30 +158,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; } } /** + * + * *
    * A page token that can be used to continue listing from the last result
    * in the next list call.
    * 
* * string next_page_token = 2; + * * @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 { @@ -161,34 +192,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -196,20 +235,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -221,8 +263,7 @@ 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 < environments_.size(); i++) { output.writeMessage(1, environments_.get(i)); } @@ -242,8 +283,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < environments_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, environments_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, environments_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -264,19 +304,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.cloud.notebooks.v1.ListEnvironmentsResponse)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.ListEnvironmentsResponse other = (com.google.cloud.notebooks.v1.ListEnvironmentsResponse) obj; + com.google.cloud.notebooks.v1.ListEnvironmentsResponse other = + (com.google.cloud.notebooks.v1.ListEnvironmentsResponse) obj; - if (!getEnvironmentsList() - .equals(other.getEnvironmentsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getEnvironmentsList().equals(other.getEnvironmentsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -304,129 +342,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.ListEnvironmentsResponse 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.cloud.notebooks.v1.ListEnvironmentsResponse 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.cloud.notebooks.v1.ListEnvironmentsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ListEnvironmentsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.ListEnvironmentsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ListEnvironmentsResponse 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.cloud.notebooks.v1.ListEnvironmentsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ListEnvironmentsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.ListEnvironmentsResponse 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.cloud.notebooks.v1.ListEnvironmentsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ListEnvironmentsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.ListEnvironmentsResponse 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.cloud.notebooks.v1.ListEnvironmentsResponse 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.cloud.notebooks.v1.ListEnvironmentsResponse 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.cloud.notebooks.v1.ListEnvironmentsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1.ListEnvironmentsResponse 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; } /** + * + * *
    * Response for listing environments.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.ListEnvironmentsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.ListEnvironmentsResponse) com.google.cloud.notebooks.v1.ListEnvironmentsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListEnvironmentsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListEnvironmentsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListEnvironmentsResponse_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListEnvironmentsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ListEnvironmentsResponse.class, com.google.cloud.notebooks.v1.ListEnvironmentsResponse.Builder.class); + com.google.cloud.notebooks.v1.ListEnvironmentsResponse.class, + com.google.cloud.notebooks.v1.ListEnvironmentsResponse.Builder.class); } // Construct using com.google.cloud.notebooks.v1.ListEnvironmentsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -445,9 +490,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListEnvironmentsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListEnvironmentsResponse_descriptor; } @java.lang.Override @@ -466,7 +511,8 @@ public com.google.cloud.notebooks.v1.ListEnvironmentsResponse build() { @java.lang.Override public com.google.cloud.notebooks.v1.ListEnvironmentsResponse buildPartial() { - com.google.cloud.notebooks.v1.ListEnvironmentsResponse result = new com.google.cloud.notebooks.v1.ListEnvironmentsResponse(this); + com.google.cloud.notebooks.v1.ListEnvironmentsResponse result = + new com.google.cloud.notebooks.v1.ListEnvironmentsResponse(this); int from_bitField0_ = bitField0_; if (environmentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -491,38 +537,39 @@ public com.google.cloud.notebooks.v1.ListEnvironmentsResponse buildPartial() { 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.cloud.notebooks.v1.ListEnvironmentsResponse) { - return mergeFrom((com.google.cloud.notebooks.v1.ListEnvironmentsResponse)other); + return mergeFrom((com.google.cloud.notebooks.v1.ListEnvironmentsResponse) other); } else { super.mergeFrom(other); return this; @@ -530,7 +577,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.ListEnvironmentsResponse other) { - if (other == com.google.cloud.notebooks.v1.ListEnvironmentsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.ListEnvironmentsResponse.getDefaultInstance()) + return this; if (environmentsBuilder_ == null) { if (!other.environments_.isEmpty()) { if (environments_.isEmpty()) { @@ -549,9 +597,10 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.ListEnvironmentsResponse environmentsBuilder_ = null; environments_ = other.environments_; bitField0_ = (bitField0_ & ~0x00000001); - environmentsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEnvironmentsFieldBuilder() : null; + environmentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEnvironmentsFieldBuilder() + : null; } else { environmentsBuilder_.addAllMessages(other.environments_); } @@ -597,36 +646,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.notebooks.v1.Environment m = - input.readMessage( - com.google.cloud.notebooks.v1.Environment.parser(), - extensionRegistry); - if (environmentsBuilder_ == null) { - ensureEnvironmentsIsMutable(); - environments_.add(m); - } else { - environmentsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.notebooks.v1.Environment m = + input.readMessage( + com.google.cloud.notebooks.v1.Environment.parser(), extensionRegistry); + if (environmentsBuilder_ == null) { + ensureEnvironmentsIsMutable(); + environments_.add(m); + } else { + environmentsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.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) { @@ -636,21 +688,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List environments_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureEnvironmentsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - environments_ = new java.util.ArrayList(environments_); + environments_ = + new java.util.ArrayList(environments_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.Environment, com.google.cloud.notebooks.v1.Environment.Builder, com.google.cloud.notebooks.v1.EnvironmentOrBuilder> environmentsBuilder_; + com.google.cloud.notebooks.v1.Environment, + com.google.cloud.notebooks.v1.Environment.Builder, + com.google.cloud.notebooks.v1.EnvironmentOrBuilder> + environmentsBuilder_; /** + * + * *
      * A list of returned environments.
      * 
@@ -665,6 +725,8 @@ public java.util.List getEnvironments } } /** + * + * *
      * A list of returned environments.
      * 
@@ -679,6 +741,8 @@ public int getEnvironmentsCount() { } } /** + * + * *
      * A list of returned environments.
      * 
@@ -693,14 +757,15 @@ public com.google.cloud.notebooks.v1.Environment getEnvironments(int index) { } } /** + * + * *
      * A list of returned environments.
      * 
* * repeated .google.cloud.notebooks.v1.Environment environments = 1; */ - public Builder setEnvironments( - int index, com.google.cloud.notebooks.v1.Environment value) { + public Builder setEnvironments(int index, com.google.cloud.notebooks.v1.Environment value) { if (environmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -714,6 +779,8 @@ public Builder setEnvironments( return this; } /** + * + * *
      * A list of returned environments.
      * 
@@ -732,6 +799,8 @@ public Builder setEnvironments( return this; } /** + * + * *
      * A list of returned environments.
      * 
@@ -752,14 +821,15 @@ public Builder addEnvironments(com.google.cloud.notebooks.v1.Environment value) return this; } /** + * + * *
      * A list of returned environments.
      * 
* * repeated .google.cloud.notebooks.v1.Environment environments = 1; */ - public Builder addEnvironments( - int index, com.google.cloud.notebooks.v1.Environment value) { + public Builder addEnvironments(int index, com.google.cloud.notebooks.v1.Environment value) { if (environmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -773,6 +843,8 @@ public Builder addEnvironments( return this; } /** + * + * *
      * A list of returned environments.
      * 
@@ -791,6 +863,8 @@ public Builder addEnvironments( return this; } /** + * + * *
      * A list of returned environments.
      * 
@@ -809,6 +883,8 @@ public Builder addEnvironments( return this; } /** + * + * *
      * A list of returned environments.
      * 
@@ -819,8 +895,7 @@ public Builder addAllEnvironments( java.lang.Iterable values) { if (environmentsBuilder_ == null) { ensureEnvironmentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, environments_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, environments_); onChanged(); } else { environmentsBuilder_.addAllMessages(values); @@ -828,6 +903,8 @@ public Builder addAllEnvironments( return this; } /** + * + * *
      * A list of returned environments.
      * 
@@ -845,6 +922,8 @@ public Builder clearEnvironments() { return this; } /** + * + * *
      * A list of returned environments.
      * 
@@ -862,39 +941,44 @@ public Builder removeEnvironments(int index) { return this; } /** + * + * *
      * A list of returned environments.
      * 
* * repeated .google.cloud.notebooks.v1.Environment environments = 1; */ - public com.google.cloud.notebooks.v1.Environment.Builder getEnvironmentsBuilder( - int index) { + public com.google.cloud.notebooks.v1.Environment.Builder getEnvironmentsBuilder(int index) { return getEnvironmentsFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of returned environments.
      * 
* * repeated .google.cloud.notebooks.v1.Environment environments = 1; */ - public com.google.cloud.notebooks.v1.EnvironmentOrBuilder getEnvironmentsOrBuilder( - int index) { + public com.google.cloud.notebooks.v1.EnvironmentOrBuilder getEnvironmentsOrBuilder(int index) { if (environmentsBuilder_ == null) { - return environments_.get(index); } else { + return environments_.get(index); + } else { return environmentsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of returned environments.
      * 
* * repeated .google.cloud.notebooks.v1.Environment environments = 1; */ - public java.util.List - getEnvironmentsOrBuilderList() { + public java.util.List + getEnvironmentsOrBuilderList() { if (environmentsBuilder_ != null) { return environmentsBuilder_.getMessageOrBuilderList(); } else { @@ -902,6 +986,8 @@ public com.google.cloud.notebooks.v1.EnvironmentOrBuilder getEnvironmentsOrBuild } } /** + * + * *
      * A list of returned environments.
      * 
@@ -909,42 +995,48 @@ public com.google.cloud.notebooks.v1.EnvironmentOrBuilder getEnvironmentsOrBuild * repeated .google.cloud.notebooks.v1.Environment environments = 1; */ public com.google.cloud.notebooks.v1.Environment.Builder addEnvironmentsBuilder() { - return getEnvironmentsFieldBuilder().addBuilder( - com.google.cloud.notebooks.v1.Environment.getDefaultInstance()); + return getEnvironmentsFieldBuilder() + .addBuilder(com.google.cloud.notebooks.v1.Environment.getDefaultInstance()); } /** + * + * *
      * A list of returned environments.
      * 
* * repeated .google.cloud.notebooks.v1.Environment environments = 1; */ - public com.google.cloud.notebooks.v1.Environment.Builder addEnvironmentsBuilder( - int index) { - return getEnvironmentsFieldBuilder().addBuilder( - index, com.google.cloud.notebooks.v1.Environment.getDefaultInstance()); + public com.google.cloud.notebooks.v1.Environment.Builder addEnvironmentsBuilder(int index) { + return getEnvironmentsFieldBuilder() + .addBuilder(index, com.google.cloud.notebooks.v1.Environment.getDefaultInstance()); } /** + * + * *
      * A list of returned environments.
      * 
* * repeated .google.cloud.notebooks.v1.Environment environments = 1; */ - public java.util.List - getEnvironmentsBuilderList() { + public java.util.List + getEnvironmentsBuilderList() { return getEnvironmentsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.Environment, com.google.cloud.notebooks.v1.Environment.Builder, com.google.cloud.notebooks.v1.EnvironmentOrBuilder> + com.google.cloud.notebooks.v1.Environment, + com.google.cloud.notebooks.v1.Environment.Builder, + com.google.cloud.notebooks.v1.EnvironmentOrBuilder> getEnvironmentsFieldBuilder() { if (environmentsBuilder_ == null) { - environmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.Environment, com.google.cloud.notebooks.v1.Environment.Builder, com.google.cloud.notebooks.v1.EnvironmentOrBuilder>( - environments_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + environmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.notebooks.v1.Environment, + com.google.cloud.notebooks.v1.Environment.Builder, + com.google.cloud.notebooks.v1.EnvironmentOrBuilder>( + environments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); environments_ = null; } return environmentsBuilder_; @@ -952,19 +1044,21 @@ public com.google.cloud.notebooks.v1.Environment.Builder addEnvironmentsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A page token that can be used to continue listing from the last result
      * in the next list call.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -973,21 +1067,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A page token that can be used to continue listing from the last result
      * in the next list call.
      * 
* * string next_page_token = 2; + * * @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 { @@ -995,98 +1090,115 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A page token that can be used to continue listing from the last result
      * in the next list call.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A page token that can be used to continue listing from the last result
      * in the next list call.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A page token that can be used to continue listing from the last result
      * in the next list call.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1094,80 +1206,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1177,28 +1299,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(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); } @@ -1208,12 +1332,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.ListEnvironmentsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.ListEnvironmentsResponse) private static final com.google.cloud.notebooks.v1.ListEnvironmentsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.ListEnvironmentsResponse(); } @@ -1222,27 +1346,27 @@ public static com.google.cloud.notebooks.v1.ListEnvironmentsResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEnvironmentsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEnvironmentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -1257,6 +1381,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.ListEnvironmentsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsResponseOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsResponseOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsResponseOrBuilder.java index 5d744d041faf..e5e37208ad1f 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsResponseOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface ListEnvironmentsResponseOrBuilder extends +public interface ListEnvironmentsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.ListEnvironmentsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of returned environments.
    * 
* * repeated .google.cloud.notebooks.v1.Environment environments = 1; */ - java.util.List - getEnvironmentsList(); + java.util.List getEnvironmentsList(); /** + * + * *
    * A list of returned environments.
    * 
@@ -25,6 +44,8 @@ public interface ListEnvironmentsResponseOrBuilder extends */ com.google.cloud.notebooks.v1.Environment getEnvironments(int index); /** + * + * *
    * A list of returned environments.
    * 
@@ -33,84 +54,102 @@ public interface ListEnvironmentsResponseOrBuilder extends */ int getEnvironmentsCount(); /** + * + * *
    * A list of returned environments.
    * 
* * repeated .google.cloud.notebooks.v1.Environment environments = 1; */ - java.util.List + java.util.List getEnvironmentsOrBuilderList(); /** + * + * *
    * A list of returned environments.
    * 
* * repeated .google.cloud.notebooks.v1.Environment environments = 1; */ - com.google.cloud.notebooks.v1.EnvironmentOrBuilder getEnvironmentsOrBuilder( - int index); + com.google.cloud.notebooks.v1.EnvironmentOrBuilder getEnvironmentsOrBuilder(int index); /** + * + * *
    * A page token that can be used to continue listing from the last result
    * in the next list call.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A page token that can be used to continue listing from the last result
    * in the next list call.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsRequest.java similarity index 68% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsRequest.java index ad1e70a6fd84..94dd0ff73d85 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for listing scheduled notebook executions.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.ListExecutionsRequest} */ -public final class ListExecutionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListExecutionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.ListExecutionsRequest) ListExecutionsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListExecutionsRequest.newBuilder() to construct. private ListExecutionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListExecutionsRequest() { parent_ = ""; pageToken_ = ""; @@ -28,38 +46,44 @@ private ListExecutionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListExecutionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListExecutionsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListExecutionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListExecutionsRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListExecutionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ListExecutionsRequest.class, com.google.cloud.notebooks.v1.ListExecutionsRequest.Builder.class); + com.google.cloud.notebooks.v1.ListExecutionsRequest.class, + com.google.cloud.notebooks.v1.ListExecutionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -68,30 +92,32 @@ 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; } } /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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 { @@ -102,11 +128,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Maximum return size of the list call.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -117,12 +146,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A previous returned page token that can be used to continue listing
    * from the last result.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -131,30 +163,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; } } /** + * + * *
    * A previous returned page token that can be used to continue listing
    * from the last result.
    * 
* * string page_token = 3; + * * @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 { @@ -165,6 +197,8 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * Filter applied to resulting executions. Currently only supports filtering
    * executions by a specified schedule_id.
@@ -172,6 +206,7 @@ public java.lang.String getPageToken() {
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -180,14 +215,15 @@ 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; } } /** + * + * *
    * Filter applied to resulting executions. Currently only supports filtering
    * executions by a specified schedule_id.
@@ -195,16 +231,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 4; + * * @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 { @@ -215,11 +250,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Sort by field.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -228,29 +266,29 @@ public java.lang.String getOrderBy() { 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(); orderBy_ = s; return s; } } /** + * + * *
    * Sort by field.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; 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); orderBy_ = b; return b; } else { @@ -259,6 +297,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -270,8 +309,7 @@ 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_); } @@ -300,8 +338,7 @@ 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_); @@ -320,23 +357,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.cloud.notebooks.v1.ListExecutionsRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.ListExecutionsRequest other = (com.google.cloud.notebooks.v1.ListExecutionsRequest) 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 (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.notebooks.v1.ListExecutionsRequest other = + (com.google.cloud.notebooks.v1.ListExecutionsRequest) 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 (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -364,129 +397,135 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.ListExecutionsRequest 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.cloud.notebooks.v1.ListExecutionsRequest 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.cloud.notebooks.v1.ListExecutionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ListExecutionsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.ListExecutionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ListExecutionsRequest 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.cloud.notebooks.v1.ListExecutionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ListExecutionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.ListExecutionsRequest 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.cloud.notebooks.v1.ListExecutionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ListExecutionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.ListExecutionsRequest 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.cloud.notebooks.v1.ListExecutionsRequest 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.cloud.notebooks.v1.ListExecutionsRequest 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.cloud.notebooks.v1.ListExecutionsRequest 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; } /** + * + * *
    * Request for listing scheduled notebook executions.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.ListExecutionsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.ListExecutionsRequest) com.google.cloud.notebooks.v1.ListExecutionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListExecutionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListExecutionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListExecutionsRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListExecutionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ListExecutionsRequest.class, com.google.cloud.notebooks.v1.ListExecutionsRequest.Builder.class); + com.google.cloud.notebooks.v1.ListExecutionsRequest.class, + com.google.cloud.notebooks.v1.ListExecutionsRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.ListExecutionsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -504,9 +543,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListExecutionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListExecutionsRequest_descriptor; } @java.lang.Override @@ -525,7 +564,8 @@ public com.google.cloud.notebooks.v1.ListExecutionsRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.ListExecutionsRequest buildPartial() { - com.google.cloud.notebooks.v1.ListExecutionsRequest result = new com.google.cloud.notebooks.v1.ListExecutionsRequest(this); + com.google.cloud.notebooks.v1.ListExecutionsRequest result = + new com.google.cloud.notebooks.v1.ListExecutionsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -539,38 +579,39 @@ public com.google.cloud.notebooks.v1.ListExecutionsRequest buildPartial() { 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.cloud.notebooks.v1.ListExecutionsRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.ListExecutionsRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.ListExecutionsRequest) other); } else { super.mergeFrom(other); return this; @@ -578,7 +619,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.ListExecutionsRequest other) { - if (other == com.google.cloud.notebooks.v1.ListExecutionsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.ListExecutionsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -624,37 +666,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: { - filter_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: { - orderBy_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -667,19 +715,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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; @@ -688,21 +740,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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 { @@ -710,69 +765,85 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum return size of the list call.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -780,30 +851,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum return size of the list call.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Maximum return size of the list call.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -811,19 +888,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A previous returned page token that can be used to continue listing
      * from the last result.
      * 
* * string page_token = 3; + * * @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; @@ -832,21 +911,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A previous returned page token that can be used to continue listing
      * from the last result.
      * 
* * string page_token = 3; + * * @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 { @@ -854,57 +934,64 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A previous returned page token that can be used to continue listing
      * from the last result.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A previous returned page token that can be used to continue listing
      * from the last result.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A previous returned page token that can be used to continue listing
      * from the last result.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -912,6 +999,8 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Filter applied to resulting executions. Currently only supports filtering
      * executions by a specified schedule_id.
@@ -919,13 +1008,13 @@ public Builder setPageTokenBytes(
      * 
* * string filter = 4; + * * @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; @@ -934,6 +1023,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter applied to resulting executions. Currently only supports filtering
      * executions by a specified schedule_id.
@@ -941,15 +1032,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4; + * * @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 { @@ -957,6 +1047,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter applied to resulting executions. Currently only supports filtering
      * executions by a specified schedule_id.
@@ -964,20 +1056,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Filter applied to resulting executions. Currently only supports filtering
      * executions by a specified schedule_id.
@@ -985,15 +1079,18 @@ public Builder setFilter(
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Filter applied to resulting executions. Currently only supports filtering
      * executions by a specified schedule_id.
@@ -1001,16 +1098,16 @@ public Builder clearFilter() {
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1018,18 +1115,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Sort by field.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; 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(); orderBy_ = s; return s; @@ -1038,20 +1137,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort by field.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; 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); orderBy_ = b; return b; } else { @@ -1059,61 +1159,68 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Sort by field.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Sort by field.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Sort by field.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = 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); } @@ -1123,12 +1230,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.ListExecutionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.ListExecutionsRequest) private static final com.google.cloud.notebooks.v1.ListExecutionsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.ListExecutionsRequest(); } @@ -1137,27 +1244,27 @@ public static com.google.cloud.notebooks.v1.ListExecutionsRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListExecutionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExecutionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -1172,6 +1279,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.ListExecutionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsRequestOrBuilder.java index ea751b169019..941ea049ece6 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsRequestOrBuilder.java @@ -1,67 +1,102 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface ListExecutionsRequestOrBuilder extends +public interface ListExecutionsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.ListExecutionsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Maximum return size of the list call.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A previous returned page token that can be used to continue listing
    * from the last result.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A previous returned page token that can be used to continue listing
    * from the last result.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Filter applied to resulting executions. Currently only supports filtering
    * executions by a specified schedule_id.
@@ -69,10 +104,13 @@ public interface ListExecutionsRequestOrBuilder extends
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Filter applied to resulting executions. Currently only supports filtering
    * executions by a specified schedule_id.
@@ -80,28 +118,33 @@ public interface ListExecutionsRequestOrBuilder extends
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Sort by field.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Sort by field.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsResponse.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsResponse.java similarity index 74% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsResponse.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsResponse.java index 29e0f5807d2e..729d2ea1934a 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsResponse.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Response for listing scheduled notebook executions
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.ListExecutionsResponse} */ -public final class ListExecutionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListExecutionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.ListExecutionsResponse) ListExecutionsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListExecutionsResponse.newBuilder() to construct. private ListExecutionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListExecutionsResponse() { executions_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,32 +45,35 @@ private ListExecutionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListExecutionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListExecutionsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListExecutionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListExecutionsResponse_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListExecutionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ListExecutionsResponse.class, com.google.cloud.notebooks.v1.ListExecutionsResponse.Builder.class); + com.google.cloud.notebooks.v1.ListExecutionsResponse.class, + com.google.cloud.notebooks.v1.ListExecutionsResponse.Builder.class); } public static final int EXECUTIONS_FIELD_NUMBER = 1; private java.util.List executions_; /** + * + * *
    * A list of returned instances.
    * 
@@ -64,6 +85,8 @@ public java.util.List getExecutionsList return executions_; } /** + * + * *
    * A list of returned instances.
    * 
@@ -71,11 +94,13 @@ public java.util.List getExecutionsList * repeated .google.cloud.notebooks.v1.Execution executions = 1; */ @java.lang.Override - public java.util.List + public java.util.List getExecutionsOrBuilderList() { return executions_; } /** + * + * *
    * A list of returned instances.
    * 
@@ -87,6 +112,8 @@ public int getExecutionsCount() { return executions_.size(); } /** + * + * *
    * A list of returned instances.
    * 
@@ -98,6 +125,8 @@ public com.google.cloud.notebooks.v1.Execution getExecutions(int index) { return executions_.get(index); } /** + * + * *
    * A list of returned instances.
    * 
@@ -105,20 +134,22 @@ public com.google.cloud.notebooks.v1.Execution getExecutions(int index) { * repeated .google.cloud.notebooks.v1.Execution executions = 1; */ @java.lang.Override - public com.google.cloud.notebooks.v1.ExecutionOrBuilder getExecutionsOrBuilder( - int index) { + public com.google.cloud.notebooks.v1.ExecutionOrBuilder getExecutionsOrBuilder(int index) { return executions_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Page token that can be used to continue listing from the last result in the
    * next list call.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -127,30 +158,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; } } /** + * + * *
    * Page token that can be used to continue listing from the last result in the
    * next list call.
    * 
* * string next_page_token = 2; + * * @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 { @@ -161,6 +192,8 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Executions IDs that could not be reached. For example:
    *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
@@ -168,13 +201,15 @@ public java.lang.String getNextPageToken() {
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Executions IDs that could not be reached. For example:
    *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
@@ -182,12 +217,15 @@ public java.lang.String getNextPageToken() {
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Executions IDs that could not be reached. For example:
    *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
@@ -195,6 +233,7 @@ public int getUnreachableCount() {
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -202,6 +241,8 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Executions IDs that could not be reached. For example:
    *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
@@ -209,15 +250,16 @@ public java.lang.String getUnreachable(int index) {
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +271,7 @@ 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 < executions_.size(); i++) { output.writeMessage(1, executions_.get(i)); } @@ -250,8 +291,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < executions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, executions_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, executions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -272,19 +312,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.cloud.notebooks.v1.ListExecutionsResponse)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.ListExecutionsResponse other = (com.google.cloud.notebooks.v1.ListExecutionsResponse) obj; + com.google.cloud.notebooks.v1.ListExecutionsResponse other = + (com.google.cloud.notebooks.v1.ListExecutionsResponse) obj; - if (!getExecutionsList() - .equals(other.getExecutionsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getExecutionsList().equals(other.getExecutionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -312,129 +350,135 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.ListExecutionsResponse 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.cloud.notebooks.v1.ListExecutionsResponse 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.cloud.notebooks.v1.ListExecutionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ListExecutionsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.ListExecutionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ListExecutionsResponse 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.cloud.notebooks.v1.ListExecutionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ListExecutionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.ListExecutionsResponse 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.cloud.notebooks.v1.ListExecutionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ListExecutionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.ListExecutionsResponse 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.cloud.notebooks.v1.ListExecutionsResponse 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.cloud.notebooks.v1.ListExecutionsResponse 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.cloud.notebooks.v1.ListExecutionsResponse 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; } /** + * + * *
    * Response for listing scheduled notebook executions
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.ListExecutionsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.ListExecutionsResponse) com.google.cloud.notebooks.v1.ListExecutionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListExecutionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListExecutionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListExecutionsResponse_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListExecutionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ListExecutionsResponse.class, com.google.cloud.notebooks.v1.ListExecutionsResponse.Builder.class); + com.google.cloud.notebooks.v1.ListExecutionsResponse.class, + com.google.cloud.notebooks.v1.ListExecutionsResponse.Builder.class); } // Construct using com.google.cloud.notebooks.v1.ListExecutionsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -453,9 +497,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListExecutionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListExecutionsResponse_descriptor; } @java.lang.Override @@ -474,7 +518,8 @@ public com.google.cloud.notebooks.v1.ListExecutionsResponse build() { @java.lang.Override public com.google.cloud.notebooks.v1.ListExecutionsResponse buildPartial() { - com.google.cloud.notebooks.v1.ListExecutionsResponse result = new com.google.cloud.notebooks.v1.ListExecutionsResponse(this); + com.google.cloud.notebooks.v1.ListExecutionsResponse result = + new com.google.cloud.notebooks.v1.ListExecutionsResponse(this); int from_bitField0_ = bitField0_; if (executionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -499,38 +544,39 @@ public com.google.cloud.notebooks.v1.ListExecutionsResponse buildPartial() { 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.cloud.notebooks.v1.ListExecutionsResponse) { - return mergeFrom((com.google.cloud.notebooks.v1.ListExecutionsResponse)other); + return mergeFrom((com.google.cloud.notebooks.v1.ListExecutionsResponse) other); } else { super.mergeFrom(other); return this; @@ -538,7 +584,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.ListExecutionsResponse other) { - if (other == com.google.cloud.notebooks.v1.ListExecutionsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.ListExecutionsResponse.getDefaultInstance()) + return this; if (executionsBuilder_ == null) { if (!other.executions_.isEmpty()) { if (executions_.isEmpty()) { @@ -557,9 +604,10 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.ListExecutionsResponse ot executionsBuilder_ = null; executions_ = other.executions_; bitField0_ = (bitField0_ & ~0x00000001); - executionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getExecutionsFieldBuilder() : null; + executionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getExecutionsFieldBuilder() + : null; } else { executionsBuilder_.addAllMessages(other.executions_); } @@ -605,36 +653,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.notebooks.v1.Execution m = - input.readMessage( - com.google.cloud.notebooks.v1.Execution.parser(), - extensionRegistry); - if (executionsBuilder_ == null) { - ensureExecutionsIsMutable(); - executions_.add(m); - } else { - executionsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.notebooks.v1.Execution m = + input.readMessage( + com.google.cloud.notebooks.v1.Execution.parser(), extensionRegistry); + if (executionsBuilder_ == null) { + ensureExecutionsIsMutable(); + executions_.add(m); + } else { + executionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.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) { @@ -644,21 +695,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List executions_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureExecutionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { executions_ = new java.util.ArrayList(executions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.Execution, com.google.cloud.notebooks.v1.Execution.Builder, com.google.cloud.notebooks.v1.ExecutionOrBuilder> executionsBuilder_; + com.google.cloud.notebooks.v1.Execution, + com.google.cloud.notebooks.v1.Execution.Builder, + com.google.cloud.notebooks.v1.ExecutionOrBuilder> + executionsBuilder_; /** + * + * *
      * A list of returned instances.
      * 
@@ -673,6 +731,8 @@ public java.util.List getExecutionsList } } /** + * + * *
      * A list of returned instances.
      * 
@@ -687,6 +747,8 @@ public int getExecutionsCount() { } } /** + * + * *
      * A list of returned instances.
      * 
@@ -701,14 +763,15 @@ public com.google.cloud.notebooks.v1.Execution getExecutions(int index) { } } /** + * + * *
      * A list of returned instances.
      * 
* * repeated .google.cloud.notebooks.v1.Execution executions = 1; */ - public Builder setExecutions( - int index, com.google.cloud.notebooks.v1.Execution value) { + public Builder setExecutions(int index, com.google.cloud.notebooks.v1.Execution value) { if (executionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -722,6 +785,8 @@ public Builder setExecutions( return this; } /** + * + * *
      * A list of returned instances.
      * 
@@ -740,6 +805,8 @@ public Builder setExecutions( return this; } /** + * + * *
      * A list of returned instances.
      * 
@@ -760,14 +827,15 @@ public Builder addExecutions(com.google.cloud.notebooks.v1.Execution value) { return this; } /** + * + * *
      * A list of returned instances.
      * 
* * repeated .google.cloud.notebooks.v1.Execution executions = 1; */ - public Builder addExecutions( - int index, com.google.cloud.notebooks.v1.Execution value) { + public Builder addExecutions(int index, com.google.cloud.notebooks.v1.Execution value) { if (executionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -781,14 +849,15 @@ public Builder addExecutions( return this; } /** + * + * *
      * A list of returned instances.
      * 
* * repeated .google.cloud.notebooks.v1.Execution executions = 1; */ - public Builder addExecutions( - com.google.cloud.notebooks.v1.Execution.Builder builderForValue) { + public Builder addExecutions(com.google.cloud.notebooks.v1.Execution.Builder builderForValue) { if (executionsBuilder_ == null) { ensureExecutionsIsMutable(); executions_.add(builderForValue.build()); @@ -799,6 +868,8 @@ public Builder addExecutions( return this; } /** + * + * *
      * A list of returned instances.
      * 
@@ -817,6 +888,8 @@ public Builder addExecutions( return this; } /** + * + * *
      * A list of returned instances.
      * 
@@ -827,8 +900,7 @@ public Builder addAllExecutions( java.lang.Iterable values) { if (executionsBuilder_ == null) { ensureExecutionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, executions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, executions_); onChanged(); } else { executionsBuilder_.addAllMessages(values); @@ -836,6 +908,8 @@ public Builder addAllExecutions( return this; } /** + * + * *
      * A list of returned instances.
      * 
@@ -853,6 +927,8 @@ public Builder clearExecutions() { return this; } /** + * + * *
      * A list of returned instances.
      * 
@@ -870,39 +946,44 @@ public Builder removeExecutions(int index) { return this; } /** + * + * *
      * A list of returned instances.
      * 
* * repeated .google.cloud.notebooks.v1.Execution executions = 1; */ - public com.google.cloud.notebooks.v1.Execution.Builder getExecutionsBuilder( - int index) { + public com.google.cloud.notebooks.v1.Execution.Builder getExecutionsBuilder(int index) { return getExecutionsFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of returned instances.
      * 
* * repeated .google.cloud.notebooks.v1.Execution executions = 1; */ - public com.google.cloud.notebooks.v1.ExecutionOrBuilder getExecutionsOrBuilder( - int index) { + public com.google.cloud.notebooks.v1.ExecutionOrBuilder getExecutionsOrBuilder(int index) { if (executionsBuilder_ == null) { - return executions_.get(index); } else { + return executions_.get(index); + } else { return executionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of returned instances.
      * 
* * repeated .google.cloud.notebooks.v1.Execution executions = 1; */ - public java.util.List - getExecutionsOrBuilderList() { + public java.util.List + getExecutionsOrBuilderList() { if (executionsBuilder_ != null) { return executionsBuilder_.getMessageOrBuilderList(); } else { @@ -910,6 +991,8 @@ public com.google.cloud.notebooks.v1.ExecutionOrBuilder getExecutionsOrBuilder( } } /** + * + * *
      * A list of returned instances.
      * 
@@ -917,42 +1000,48 @@ public com.google.cloud.notebooks.v1.ExecutionOrBuilder getExecutionsOrBuilder( * repeated .google.cloud.notebooks.v1.Execution executions = 1; */ public com.google.cloud.notebooks.v1.Execution.Builder addExecutionsBuilder() { - return getExecutionsFieldBuilder().addBuilder( - com.google.cloud.notebooks.v1.Execution.getDefaultInstance()); + return getExecutionsFieldBuilder() + .addBuilder(com.google.cloud.notebooks.v1.Execution.getDefaultInstance()); } /** + * + * *
      * A list of returned instances.
      * 
* * repeated .google.cloud.notebooks.v1.Execution executions = 1; */ - public com.google.cloud.notebooks.v1.Execution.Builder addExecutionsBuilder( - int index) { - return getExecutionsFieldBuilder().addBuilder( - index, com.google.cloud.notebooks.v1.Execution.getDefaultInstance()); + public com.google.cloud.notebooks.v1.Execution.Builder addExecutionsBuilder(int index) { + return getExecutionsFieldBuilder() + .addBuilder(index, com.google.cloud.notebooks.v1.Execution.getDefaultInstance()); } /** + * + * *
      * A list of returned instances.
      * 
* * repeated .google.cloud.notebooks.v1.Execution executions = 1; */ - public java.util.List - getExecutionsBuilderList() { + public java.util.List + getExecutionsBuilderList() { return getExecutionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.Execution, com.google.cloud.notebooks.v1.Execution.Builder, com.google.cloud.notebooks.v1.ExecutionOrBuilder> + com.google.cloud.notebooks.v1.Execution, + com.google.cloud.notebooks.v1.Execution.Builder, + com.google.cloud.notebooks.v1.ExecutionOrBuilder> getExecutionsFieldBuilder() { if (executionsBuilder_ == null) { - executionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.Execution, com.google.cloud.notebooks.v1.Execution.Builder, com.google.cloud.notebooks.v1.ExecutionOrBuilder>( - executions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + executionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.notebooks.v1.Execution, + com.google.cloud.notebooks.v1.Execution.Builder, + com.google.cloud.notebooks.v1.ExecutionOrBuilder>( + executions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); executions_ = null; } return executionsBuilder_; @@ -960,19 +1049,21 @@ public com.google.cloud.notebooks.v1.Execution.Builder addExecutionsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Page token that can be used to continue listing from the last result in the
      * next list call.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -981,21 +1072,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Page token that can be used to continue listing from the last result in the
      * next list call.
      * 
* * string next_page_token = 2; + * * @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 { @@ -1003,70 +1095,81 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Page token that can be used to continue listing from the last result in the
      * next list call.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Page token that can be used to continue listing from the last result in the
      * next list call.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Page token that can be used to continue listing from the last result in the
      * next list call.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Executions IDs that could not be reached. For example:
      *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
@@ -1074,13 +1177,15 @@ private void ensureUnreachableIsMutable() {
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Executions IDs that could not be reached. For example:
      *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
@@ -1088,12 +1193,15 @@ private void ensureUnreachableIsMutable() {
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Executions IDs that could not be reached. For example:
      *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
@@ -1101,6 +1209,7 @@ public int getUnreachableCount() {
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1108,6 +1217,8 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Executions IDs that could not be reached. For example:
      *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
@@ -1115,14 +1226,16 @@ public java.lang.String getUnreachable(int index) {
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Executions IDs that could not be reached. For example:
      *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
@@ -1130,21 +1243,23 @@ public java.lang.String getUnreachable(int index) {
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Executions IDs that could not be reached. For example:
      *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
@@ -1152,20 +1267,22 @@ public Builder setUnreachable(
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Executions IDs that could not be reached. For example:
      *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
@@ -1173,18 +1290,19 @@ public Builder addUnreachable(
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Executions IDs that could not be reached. For example:
      *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
@@ -1192,6 +1310,7 @@ public Builder addAllUnreachable(
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1201,6 +1320,8 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Executions IDs that could not be reached. For example:
      *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
@@ -1208,23 +1329,23 @@ public Builder clearUnreachable() {
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(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); } @@ -1234,12 +1355,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.ListExecutionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.ListExecutionsResponse) private static final com.google.cloud.notebooks.v1.ListExecutionsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.ListExecutionsResponse(); } @@ -1248,27 +1369,27 @@ public static com.google.cloud.notebooks.v1.ListExecutionsResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListExecutionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExecutionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -1283,6 +1404,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.ListExecutionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsResponseOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsResponseOrBuilder.java similarity index 76% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsResponseOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsResponseOrBuilder.java index d439a5f7c7e0..fb271a874ad2 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsResponseOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface ListExecutionsResponseOrBuilder extends +public interface ListExecutionsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.ListExecutionsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of returned instances.
    * 
* * repeated .google.cloud.notebooks.v1.Execution executions = 1; */ - java.util.List - getExecutionsList(); + java.util.List getExecutionsList(); /** + * + * *
    * A list of returned instances.
    * 
@@ -25,6 +44,8 @@ public interface ListExecutionsResponseOrBuilder extends */ com.google.cloud.notebooks.v1.Execution getExecutions(int index); /** + * + * *
    * A list of returned instances.
    * 
@@ -33,47 +54,57 @@ public interface ListExecutionsResponseOrBuilder extends */ int getExecutionsCount(); /** + * + * *
    * A list of returned instances.
    * 
* * repeated .google.cloud.notebooks.v1.Execution executions = 1; */ - java.util.List + java.util.List getExecutionsOrBuilderList(); /** + * + * *
    * A list of returned instances.
    * 
* * repeated .google.cloud.notebooks.v1.Execution executions = 1; */ - com.google.cloud.notebooks.v1.ExecutionOrBuilder getExecutionsOrBuilder( - int index); + com.google.cloud.notebooks.v1.ExecutionOrBuilder getExecutionsOrBuilder(int index); /** + * + * *
    * Page token that can be used to continue listing from the last result in the
    * next list call.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Page token that can be used to continue listing from the last result in the
    * next list call.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Executions IDs that could not be reached. For example:
    *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
@@ -81,11 +112,13 @@ com.google.cloud.notebooks.v1.ExecutionOrBuilder getExecutionsOrBuilder(
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Executions IDs that could not be reached. For example:
    *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
@@ -93,10 +126,13 @@ com.google.cloud.notebooks.v1.ExecutionOrBuilder getExecutionsOrBuilder(
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Executions IDs that could not be reached. For example:
    *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
@@ -104,11 +140,14 @@ com.google.cloud.notebooks.v1.ExecutionOrBuilder getExecutionsOrBuilder(
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Executions IDs that could not be reached. For example:
    *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
@@ -116,9 +155,9 @@ com.google.cloud.notebooks.v1.ExecutionOrBuilder getExecutionsOrBuilder(
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesRequest.java similarity index 68% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesRequest.java index 78bf22594fec..910606fea7a4 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for listing notebook instances.
  * 
* * Protobuf type {@code google.cloud.notebooks.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.cloud.notebooks.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_ = ""; @@ -26,38 +44,42 @@ private ListInstancesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListInstancesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListInstancesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ListInstancesRequest.class, com.google.cloud.notebooks.v1.ListInstancesRequest.Builder.class); + com.google.cloud.notebooks.v1.ListInstancesRequest.class, + com.google.cloud.notebooks.v1.ListInstancesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -66,30 +88,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; } } /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -100,11 +122,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Maximum return size of the list call.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -115,12 +140,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A previous returned page token that can be used to continue listing
    * from the last result.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -129,30 +157,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; } } /** + * + * *
    * A previous returned page token that can be used to continue listing
    * from the last result.
    * 
* * string page_token = 3; + * * @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 { @@ -161,6 +189,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +201,7 @@ 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_); } @@ -196,8 +224,7 @@ 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_); @@ -210,19 +237,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.cloud.notebooks.v1.ListInstancesRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.ListInstancesRequest other = (com.google.cloud.notebooks.v1.ListInstancesRequest) obj; + com.google.cloud.notebooks.v1.ListInstancesRequest other = + (com.google.cloud.notebooks.v1.ListInstancesRequest) 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; } @@ -246,129 +271,135 @@ public int hashCode() { } public static com.google.cloud.notebooks.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.cloud.notebooks.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.cloud.notebooks.v1.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.ListInstancesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.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.cloud.notebooks.v1.ListInstancesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ListInstancesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.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.cloud.notebooks.v1.ListInstancesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ListInstancesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.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.cloud.notebooks.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.cloud.notebooks.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.cloud.notebooks.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; } /** + * + * *
    * Request for listing notebook instances.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.ListInstancesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.ListInstancesRequest) com.google.cloud.notebooks.v1.ListInstancesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ListInstancesRequest.class, com.google.cloud.notebooks.v1.ListInstancesRequest.Builder.class); + com.google.cloud.notebooks.v1.ListInstancesRequest.class, + com.google.cloud.notebooks.v1.ListInstancesRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.ListInstancesRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -382,9 +413,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListInstancesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListInstancesRequest_descriptor; } @java.lang.Override @@ -403,7 +434,8 @@ public com.google.cloud.notebooks.v1.ListInstancesRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.ListInstancesRequest buildPartial() { - com.google.cloud.notebooks.v1.ListInstancesRequest result = new com.google.cloud.notebooks.v1.ListInstancesRequest(this); + com.google.cloud.notebooks.v1.ListInstancesRequest result = + new com.google.cloud.notebooks.v1.ListInstancesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -415,38 +447,39 @@ public com.google.cloud.notebooks.v1.ListInstancesRequest buildPartial() { 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.cloud.notebooks.v1.ListInstancesRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.ListInstancesRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.ListInstancesRequest) other); } else { super.mergeFrom(other); return this; @@ -454,7 +487,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.ListInstancesRequest other) { - if (other == com.google.cloud.notebooks.v1.ListInstancesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.ListInstancesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -492,27 +526,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + 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) { @@ -525,19 +563,21 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -546,21 +586,22 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -568,69 +609,79 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum return size of the list call.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -638,30 +689,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum return size of the list call.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Maximum return size of the list call.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -669,19 +726,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A previous returned page token that can be used to continue listing
      * from the last result.
      * 
* * string page_token = 3; + * * @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; @@ -690,21 +749,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A previous returned page token that can be used to continue listing
      * from the last result.
      * 
* * string page_token = 3; + * * @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 { @@ -712,64 +772,71 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A previous returned page token that can be used to continue listing
      * from the last result.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A previous returned page token that can be used to continue listing
      * from the last result.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A previous returned page token that can be used to continue listing
      * from the last result.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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); } @@ -779,12 +846,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.ListInstancesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.ListInstancesRequest) private static final com.google.cloud.notebooks.v1.ListInstancesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.ListInstancesRequest(); } @@ -793,27 +860,27 @@ public static com.google.cloud.notebooks.v1.ListInstancesRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @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 PARSER = + new com.google.protobuf.AbstractParser() { + @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 parser() { return PARSER; @@ -828,6 +895,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.ListInstancesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesRequestOrBuilder.java index 8c01ef1ac652..793f3af711d3 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesRequestOrBuilder.java @@ -1,63 +1,92 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface ListInstancesRequestOrBuilder extends +public interface ListInstancesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.ListInstancesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Maximum return size of the list call.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A previous returned page token that can be used to continue listing
    * from the last result.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A previous returned page token that can be used to continue listing
    * from the last result.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesResponse.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesResponse.java similarity index 73% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesResponse.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesResponse.java index c18f051bfddb..4a3c5d121146 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesResponse.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Response for listing notebook instances.
  * 
* * Protobuf type {@code google.cloud.notebooks.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.cloud.notebooks.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_ = ""; @@ -27,32 +45,35 @@ private ListInstancesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListInstancesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListInstancesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ListInstancesResponse.class, com.google.cloud.notebooks.v1.ListInstancesResponse.Builder.class); + com.google.cloud.notebooks.v1.ListInstancesResponse.class, + com.google.cloud.notebooks.v1.ListInstancesResponse.Builder.class); } public static final int INSTANCES_FIELD_NUMBER = 1; private java.util.List instances_; /** + * + * *
    * A list of returned instances.
    * 
@@ -64,6 +85,8 @@ public java.util.List getInstancesList() return instances_; } /** + * + * *
    * A list of returned instances.
    * 
@@ -71,11 +94,13 @@ public java.util.List getInstancesList() * repeated .google.cloud.notebooks.v1.Instance instances = 1; */ @java.lang.Override - public java.util.List + public java.util.List getInstancesOrBuilderList() { return instances_; } /** + * + * *
    * A list of returned instances.
    * 
@@ -87,6 +112,8 @@ public int getInstancesCount() { return instances_.size(); } /** + * + * *
    * A list of returned instances.
    * 
@@ -98,6 +125,8 @@ public com.google.cloud.notebooks.v1.Instance getInstances(int index) { return instances_.get(index); } /** + * + * *
    * A list of returned instances.
    * 
@@ -105,20 +134,22 @@ public com.google.cloud.notebooks.v1.Instance getInstances(int index) { * repeated .google.cloud.notebooks.v1.Instance instances = 1; */ @java.lang.Override - public com.google.cloud.notebooks.v1.InstanceOrBuilder getInstancesOrBuilder( - int index) { + public com.google.cloud.notebooks.v1.InstanceOrBuilder getInstancesOrBuilder(int index) { return instances_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Page token that can be used to continue listing from the last result in the
    * next list call.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -127,30 +158,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; } } /** + * + * *
    * Page token that can be used to continue listing from the last result in the
    * next list call.
    * 
* * string next_page_token = 2; + * * @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 { @@ -161,6 +192,8 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached. For example,
    * ['us-west1-a', 'us-central1-b'].
@@ -168,13 +201,15 @@ public java.lang.String getNextPageToken() {
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached. For example,
    * ['us-west1-a', 'us-central1-b'].
@@ -182,12 +217,15 @@ public java.lang.String getNextPageToken() {
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached. For example,
    * ['us-west1-a', 'us-central1-b'].
@@ -195,6 +233,7 @@ public int getUnreachableCount() {
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -202,6 +241,8 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached. For example,
    * ['us-west1-a', 'us-central1-b'].
@@ -209,15 +250,16 @@ public java.lang.String getUnreachable(int index) {
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +271,7 @@ 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)); } @@ -250,8 +291,7 @@ 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_); @@ -272,19 +312,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.cloud.notebooks.v1.ListInstancesResponse)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.ListInstancesResponse other = (com.google.cloud.notebooks.v1.ListInstancesResponse) obj; + com.google.cloud.notebooks.v1.ListInstancesResponse other = + (com.google.cloud.notebooks.v1.ListInstancesResponse) obj; - if (!getInstancesList() - .equals(other.getInstancesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getInstancesList().equals(other.getInstancesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -312,129 +350,135 @@ public int hashCode() { } public static com.google.cloud.notebooks.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.cloud.notebooks.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.cloud.notebooks.v1.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.ListInstancesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.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.cloud.notebooks.v1.ListInstancesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ListInstancesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.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.cloud.notebooks.v1.ListInstancesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ListInstancesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.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.cloud.notebooks.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.cloud.notebooks.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.cloud.notebooks.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; } /** + * + * *
    * Response for listing notebook instances.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.ListInstancesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.ListInstancesResponse) com.google.cloud.notebooks.v1.ListInstancesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ListInstancesResponse.class, com.google.cloud.notebooks.v1.ListInstancesResponse.Builder.class); + com.google.cloud.notebooks.v1.ListInstancesResponse.class, + com.google.cloud.notebooks.v1.ListInstancesResponse.Builder.class); } // Construct using com.google.cloud.notebooks.v1.ListInstancesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -453,9 +497,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListInstancesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListInstancesResponse_descriptor; } @java.lang.Override @@ -474,7 +518,8 @@ public com.google.cloud.notebooks.v1.ListInstancesResponse build() { @java.lang.Override public com.google.cloud.notebooks.v1.ListInstancesResponse buildPartial() { - com.google.cloud.notebooks.v1.ListInstancesResponse result = new com.google.cloud.notebooks.v1.ListInstancesResponse(this); + com.google.cloud.notebooks.v1.ListInstancesResponse result = + new com.google.cloud.notebooks.v1.ListInstancesResponse(this); int from_bitField0_ = bitField0_; if (instancesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -499,38 +544,39 @@ public com.google.cloud.notebooks.v1.ListInstancesResponse buildPartial() { 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.cloud.notebooks.v1.ListInstancesResponse) { - return mergeFrom((com.google.cloud.notebooks.v1.ListInstancesResponse)other); + return mergeFrom((com.google.cloud.notebooks.v1.ListInstancesResponse) other); } else { super.mergeFrom(other); return this; @@ -538,7 +584,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.ListInstancesResponse other) { - if (other == com.google.cloud.notebooks.v1.ListInstancesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.ListInstancesResponse.getDefaultInstance()) + return this; if (instancesBuilder_ == null) { if (!other.instances_.isEmpty()) { if (instances_.isEmpty()) { @@ -557,9 +604,10 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.ListInstancesResponse oth 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_); } @@ -605,36 +653,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.notebooks.v1.Instance m = - input.readMessage( - com.google.cloud.notebooks.v1.Instance.parser(), - extensionRegistry); - if (instancesBuilder_ == null) { - ensureInstancesIsMutable(); - instances_.add(m); - } else { - instancesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.notebooks.v1.Instance m = + input.readMessage( + com.google.cloud.notebooks.v1.Instance.parser(), extensionRegistry); + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(m); + } else { + instancesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.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) { @@ -644,21 +695,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List instances_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureInstancesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { instances_ = new java.util.ArrayList(instances_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.Instance, com.google.cloud.notebooks.v1.Instance.Builder, com.google.cloud.notebooks.v1.InstanceOrBuilder> instancesBuilder_; + com.google.cloud.notebooks.v1.Instance, + com.google.cloud.notebooks.v1.Instance.Builder, + com.google.cloud.notebooks.v1.InstanceOrBuilder> + instancesBuilder_; /** + * + * *
      * A list of returned instances.
      * 
@@ -673,6 +731,8 @@ public java.util.List getInstancesList() } } /** + * + * *
      * A list of returned instances.
      * 
@@ -687,6 +747,8 @@ public int getInstancesCount() { } } /** + * + * *
      * A list of returned instances.
      * 
@@ -701,14 +763,15 @@ public com.google.cloud.notebooks.v1.Instance getInstances(int index) { } } /** + * + * *
      * A list of returned instances.
      * 
* * repeated .google.cloud.notebooks.v1.Instance instances = 1; */ - public Builder setInstances( - int index, com.google.cloud.notebooks.v1.Instance value) { + public Builder setInstances(int index, com.google.cloud.notebooks.v1.Instance value) { if (instancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -722,6 +785,8 @@ public Builder setInstances( return this; } /** + * + * *
      * A list of returned instances.
      * 
@@ -740,6 +805,8 @@ public Builder setInstances( return this; } /** + * + * *
      * A list of returned instances.
      * 
@@ -760,14 +827,15 @@ public Builder addInstances(com.google.cloud.notebooks.v1.Instance value) { return this; } /** + * + * *
      * A list of returned instances.
      * 
* * repeated .google.cloud.notebooks.v1.Instance instances = 1; */ - public Builder addInstances( - int index, com.google.cloud.notebooks.v1.Instance value) { + public Builder addInstances(int index, com.google.cloud.notebooks.v1.Instance value) { if (instancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -781,14 +849,15 @@ public Builder addInstances( return this; } /** + * + * *
      * A list of returned instances.
      * 
* * repeated .google.cloud.notebooks.v1.Instance instances = 1; */ - public Builder addInstances( - com.google.cloud.notebooks.v1.Instance.Builder builderForValue) { + public Builder addInstances(com.google.cloud.notebooks.v1.Instance.Builder builderForValue) { if (instancesBuilder_ == null) { ensureInstancesIsMutable(); instances_.add(builderForValue.build()); @@ -799,6 +868,8 @@ public Builder addInstances( return this; } /** + * + * *
      * A list of returned instances.
      * 
@@ -817,6 +888,8 @@ public Builder addInstances( return this; } /** + * + * *
      * A list of returned instances.
      * 
@@ -827,8 +900,7 @@ public Builder addAllInstances( java.lang.Iterable 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); @@ -836,6 +908,8 @@ public Builder addAllInstances( return this; } /** + * + * *
      * A list of returned instances.
      * 
@@ -853,6 +927,8 @@ public Builder clearInstances() { return this; } /** + * + * *
      * A list of returned instances.
      * 
@@ -870,39 +946,44 @@ public Builder removeInstances(int index) { return this; } /** + * + * *
      * A list of returned instances.
      * 
* * repeated .google.cloud.notebooks.v1.Instance instances = 1; */ - public com.google.cloud.notebooks.v1.Instance.Builder getInstancesBuilder( - int index) { + public com.google.cloud.notebooks.v1.Instance.Builder getInstancesBuilder(int index) { return getInstancesFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of returned instances.
      * 
* * repeated .google.cloud.notebooks.v1.Instance instances = 1; */ - public com.google.cloud.notebooks.v1.InstanceOrBuilder getInstancesOrBuilder( - int index) { + public com.google.cloud.notebooks.v1.InstanceOrBuilder getInstancesOrBuilder(int index) { if (instancesBuilder_ == null) { - return instances_.get(index); } else { + return instances_.get(index); + } else { return instancesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of returned instances.
      * 
* * repeated .google.cloud.notebooks.v1.Instance instances = 1; */ - public java.util.List - getInstancesOrBuilderList() { + public java.util.List + getInstancesOrBuilderList() { if (instancesBuilder_ != null) { return instancesBuilder_.getMessageOrBuilderList(); } else { @@ -910,6 +991,8 @@ public com.google.cloud.notebooks.v1.InstanceOrBuilder getInstancesOrBuilder( } } /** + * + * *
      * A list of returned instances.
      * 
@@ -917,42 +1000,48 @@ public com.google.cloud.notebooks.v1.InstanceOrBuilder getInstancesOrBuilder( * repeated .google.cloud.notebooks.v1.Instance instances = 1; */ public com.google.cloud.notebooks.v1.Instance.Builder addInstancesBuilder() { - return getInstancesFieldBuilder().addBuilder( - com.google.cloud.notebooks.v1.Instance.getDefaultInstance()); + return getInstancesFieldBuilder() + .addBuilder(com.google.cloud.notebooks.v1.Instance.getDefaultInstance()); } /** + * + * *
      * A list of returned instances.
      * 
* * repeated .google.cloud.notebooks.v1.Instance instances = 1; */ - public com.google.cloud.notebooks.v1.Instance.Builder addInstancesBuilder( - int index) { - return getInstancesFieldBuilder().addBuilder( - index, com.google.cloud.notebooks.v1.Instance.getDefaultInstance()); + public com.google.cloud.notebooks.v1.Instance.Builder addInstancesBuilder(int index) { + return getInstancesFieldBuilder() + .addBuilder(index, com.google.cloud.notebooks.v1.Instance.getDefaultInstance()); } /** + * + * *
      * A list of returned instances.
      * 
* * repeated .google.cloud.notebooks.v1.Instance instances = 1; */ - public java.util.List - getInstancesBuilderList() { + public java.util.List + getInstancesBuilderList() { return getInstancesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.Instance, com.google.cloud.notebooks.v1.Instance.Builder, com.google.cloud.notebooks.v1.InstanceOrBuilder> + com.google.cloud.notebooks.v1.Instance, + com.google.cloud.notebooks.v1.Instance.Builder, + com.google.cloud.notebooks.v1.InstanceOrBuilder> getInstancesFieldBuilder() { if (instancesBuilder_ == null) { - instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.Instance, com.google.cloud.notebooks.v1.Instance.Builder, com.google.cloud.notebooks.v1.InstanceOrBuilder>( - instances_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + instancesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.notebooks.v1.Instance, + com.google.cloud.notebooks.v1.Instance.Builder, + com.google.cloud.notebooks.v1.InstanceOrBuilder>( + instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); instances_ = null; } return instancesBuilder_; @@ -960,19 +1049,21 @@ public com.google.cloud.notebooks.v1.Instance.Builder addInstancesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Page token that can be used to continue listing from the last result in the
      * next list call.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -981,21 +1072,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Page token that can be used to continue listing from the last result in the
      * next list call.
      * 
* * string next_page_token = 2; + * * @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 { @@ -1003,70 +1095,81 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Page token that can be used to continue listing from the last result in the
      * next list call.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Page token that can be used to continue listing from the last result in the
      * next list call.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Page token that can be used to continue listing from the last result in the
      * next list call.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached. For example,
      * ['us-west1-a', 'us-central1-b'].
@@ -1074,13 +1177,15 @@ private void ensureUnreachableIsMutable() {
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached. For example,
      * ['us-west1-a', 'us-central1-b'].
@@ -1088,12 +1193,15 @@ private void ensureUnreachableIsMutable() {
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached. For example,
      * ['us-west1-a', 'us-central1-b'].
@@ -1101,6 +1209,7 @@ public int getUnreachableCount() {
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1108,6 +1217,8 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached. For example,
      * ['us-west1-a', 'us-central1-b'].
@@ -1115,14 +1226,16 @@ public java.lang.String getUnreachable(int index) {
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached. For example,
      * ['us-west1-a', 'us-central1-b'].
@@ -1130,21 +1243,23 @@ public java.lang.String getUnreachable(int index) {
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached. For example,
      * ['us-west1-a', 'us-central1-b'].
@@ -1152,20 +1267,22 @@ public Builder setUnreachable(
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached. For example,
      * ['us-west1-a', 'us-central1-b'].
@@ -1173,18 +1290,19 @@ public Builder addUnreachable(
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached. For example,
      * ['us-west1-a', 'us-central1-b'].
@@ -1192,6 +1310,7 @@ public Builder addAllUnreachable(
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1201,6 +1320,8 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached. For example,
      * ['us-west1-a', 'us-central1-b'].
@@ -1208,23 +1329,23 @@ public Builder clearUnreachable() {
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(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); } @@ -1234,12 +1355,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.ListInstancesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.ListInstancesResponse) private static final com.google.cloud.notebooks.v1.ListInstancesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.ListInstancesResponse(); } @@ -1248,27 +1369,27 @@ public static com.google.cloud.notebooks.v1.ListInstancesResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @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 PARSER = + new com.google.protobuf.AbstractParser() { + @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 parser() { return PARSER; @@ -1283,6 +1404,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.ListInstancesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesResponseOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesResponseOrBuilder.java similarity index 74% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesResponseOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesResponseOrBuilder.java index f21c6cff4c7f..c0aa1403e19d 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesResponseOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface ListInstancesResponseOrBuilder extends +public interface ListInstancesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.ListInstancesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of returned instances.
    * 
* * repeated .google.cloud.notebooks.v1.Instance instances = 1; */ - java.util.List - getInstancesList(); + java.util.List getInstancesList(); /** + * + * *
    * A list of returned instances.
    * 
@@ -25,6 +44,8 @@ public interface ListInstancesResponseOrBuilder extends */ com.google.cloud.notebooks.v1.Instance getInstances(int index); /** + * + * *
    * A list of returned instances.
    * 
@@ -33,47 +54,57 @@ public interface ListInstancesResponseOrBuilder extends */ int getInstancesCount(); /** + * + * *
    * A list of returned instances.
    * 
* * repeated .google.cloud.notebooks.v1.Instance instances = 1; */ - java.util.List + java.util.List getInstancesOrBuilderList(); /** + * + * *
    * A list of returned instances.
    * 
* * repeated .google.cloud.notebooks.v1.Instance instances = 1; */ - com.google.cloud.notebooks.v1.InstanceOrBuilder getInstancesOrBuilder( - int index); + com.google.cloud.notebooks.v1.InstanceOrBuilder getInstancesOrBuilder(int index); /** + * + * *
    * Page token that can be used to continue listing from the last result in the
    * next list call.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Page token that can be used to continue listing from the last result in the
    * next list call.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached. For example,
    * ['us-west1-a', 'us-central1-b'].
@@ -81,11 +112,13 @@ com.google.cloud.notebooks.v1.InstanceOrBuilder getInstancesOrBuilder(
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached. For example,
    * ['us-west1-a', 'us-central1-b'].
@@ -93,10 +126,13 @@ com.google.cloud.notebooks.v1.InstanceOrBuilder getInstancesOrBuilder(
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached. For example,
    * ['us-west1-a', 'us-central1-b'].
@@ -104,11 +140,14 @@ com.google.cloud.notebooks.v1.InstanceOrBuilder getInstancesOrBuilder(
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached. For example,
    * ['us-west1-a', 'us-central1-b'].
@@ -116,9 +155,9 @@ com.google.cloud.notebooks.v1.InstanceOrBuilder getInstancesOrBuilder(
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesRequest.java similarity index 66% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesRequest.java index 662f22acb771..391953002410 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/managed_service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for listing Managed Notebook Runtimes.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.ListRuntimesRequest} */ -public final class ListRuntimesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListRuntimesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.ListRuntimesRequest) ListRuntimesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListRuntimesRequest.newBuilder() to construct. private ListRuntimesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListRuntimesRequest() { parent_ = ""; pageToken_ = ""; @@ -26,38 +44,44 @@ private ListRuntimesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRuntimesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_ListRuntimesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_ListRuntimesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_ListRuntimesRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_ListRuntimesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ListRuntimesRequest.class, com.google.cloud.notebooks.v1.ListRuntimesRequest.Builder.class); + com.google.cloud.notebooks.v1.ListRuntimesRequest.class, + com.google.cloud.notebooks.v1.ListRuntimesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -66,30 +90,32 @@ 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; } } /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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 { @@ -100,11 +126,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Maximum return size of the list call.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -115,12 +144,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A previous returned page token that can be used to continue listing
    * from the last result.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -129,30 +161,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; } } /** + * + * *
    * A previous returned page token that can be used to continue listing
    * from the last result.
    * 
* * string page_token = 3; + * * @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 { @@ -161,6 +193,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +205,7 @@ 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_); } @@ -196,8 +228,7 @@ 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_); @@ -210,19 +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.cloud.notebooks.v1.ListRuntimesRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.ListRuntimesRequest other = (com.google.cloud.notebooks.v1.ListRuntimesRequest) obj; + com.google.cloud.notebooks.v1.ListRuntimesRequest other = + (com.google.cloud.notebooks.v1.ListRuntimesRequest) 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; } @@ -246,129 +275,135 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.ListRuntimesRequest 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.cloud.notebooks.v1.ListRuntimesRequest 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.cloud.notebooks.v1.ListRuntimesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ListRuntimesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.ListRuntimesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ListRuntimesRequest 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.cloud.notebooks.v1.ListRuntimesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ListRuntimesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.ListRuntimesRequest 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.cloud.notebooks.v1.ListRuntimesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ListRuntimesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.ListRuntimesRequest 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.cloud.notebooks.v1.ListRuntimesRequest 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.cloud.notebooks.v1.ListRuntimesRequest 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.cloud.notebooks.v1.ListRuntimesRequest 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; } /** + * + * *
    * Request for listing Managed Notebook Runtimes.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.ListRuntimesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.ListRuntimesRequest) com.google.cloud.notebooks.v1.ListRuntimesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_ListRuntimesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_ListRuntimesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_ListRuntimesRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_ListRuntimesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ListRuntimesRequest.class, com.google.cloud.notebooks.v1.ListRuntimesRequest.Builder.class); + com.google.cloud.notebooks.v1.ListRuntimesRequest.class, + com.google.cloud.notebooks.v1.ListRuntimesRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.ListRuntimesRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -382,9 +417,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_ListRuntimesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_ListRuntimesRequest_descriptor; } @java.lang.Override @@ -403,7 +438,8 @@ public com.google.cloud.notebooks.v1.ListRuntimesRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.ListRuntimesRequest buildPartial() { - com.google.cloud.notebooks.v1.ListRuntimesRequest result = new com.google.cloud.notebooks.v1.ListRuntimesRequest(this); + com.google.cloud.notebooks.v1.ListRuntimesRequest result = + new com.google.cloud.notebooks.v1.ListRuntimesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -415,38 +451,39 @@ public com.google.cloud.notebooks.v1.ListRuntimesRequest buildPartial() { 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.cloud.notebooks.v1.ListRuntimesRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.ListRuntimesRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.ListRuntimesRequest) other); } else { super.mergeFrom(other); return this; @@ -454,7 +491,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.ListRuntimesRequest other) { - if (other == com.google.cloud.notebooks.v1.ListRuntimesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.ListRuntimesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -492,27 +530,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + 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) { @@ -525,19 +567,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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; @@ -546,21 +592,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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 { @@ -568,69 +617,85 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum return size of the list call.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -638,30 +703,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum return size of the list call.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Maximum return size of the list call.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -669,19 +740,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A previous returned page token that can be used to continue listing
      * from the last result.
      * 
* * string page_token = 3; + * * @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; @@ -690,21 +763,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A previous returned page token that can be used to continue listing
      * from the last result.
      * 
* * string page_token = 3; + * * @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 { @@ -712,64 +786,71 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A previous returned page token that can be used to continue listing
      * from the last result.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A previous returned page token that can be used to continue listing
      * from the last result.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A previous returned page token that can be used to continue listing
      * from the last result.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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); } @@ -779,12 +860,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.ListRuntimesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.ListRuntimesRequest) private static final com.google.cloud.notebooks.v1.ListRuntimesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.ListRuntimesRequest(); } @@ -793,27 +874,27 @@ public static com.google.cloud.notebooks.v1.ListRuntimesRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRuntimesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRuntimesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -828,6 +909,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.ListRuntimesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesRequestOrBuilder.java similarity index 53% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesRequestOrBuilder.java index 50df38ebd9a3..f5628a857625 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesRequestOrBuilder.java @@ -1,63 +1,96 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/managed_service.proto package com.google.cloud.notebooks.v1; -public interface ListRuntimesRequestOrBuilder extends +public interface ListRuntimesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.ListRuntimesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Maximum return size of the list call.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A previous returned page token that can be used to continue listing
    * from the last result.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A previous returned page token that can be used to continue listing
    * from the last result.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesResponse.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesResponse.java similarity index 73% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesResponse.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesResponse.java index b0590df71bc5..397ffbb2517d 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesResponse.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/managed_service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Response for listing Managed Notebook Runtimes.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.ListRuntimesResponse} */ -public final class ListRuntimesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListRuntimesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.ListRuntimesResponse) ListRuntimesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListRuntimesResponse.newBuilder() to construct. private ListRuntimesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListRuntimesResponse() { runtimes_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,32 +45,35 @@ private ListRuntimesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRuntimesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_ListRuntimesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_ListRuntimesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_ListRuntimesResponse_fieldAccessorTable + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_ListRuntimesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ListRuntimesResponse.class, com.google.cloud.notebooks.v1.ListRuntimesResponse.Builder.class); + com.google.cloud.notebooks.v1.ListRuntimesResponse.class, + com.google.cloud.notebooks.v1.ListRuntimesResponse.Builder.class); } public static final int RUNTIMES_FIELD_NUMBER = 1; private java.util.List runtimes_; /** + * + * *
    * A list of returned Runtimes.
    * 
@@ -64,6 +85,8 @@ public java.util.List getRuntimesList() { return runtimes_; } /** + * + * *
    * A list of returned Runtimes.
    * 
@@ -71,11 +94,13 @@ public java.util.List getRuntimesList() { * repeated .google.cloud.notebooks.v1.Runtime runtimes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRuntimesOrBuilderList() { return runtimes_; } /** + * + * *
    * A list of returned Runtimes.
    * 
@@ -87,6 +112,8 @@ public int getRuntimesCount() { return runtimes_.size(); } /** + * + * *
    * A list of returned Runtimes.
    * 
@@ -98,6 +125,8 @@ public com.google.cloud.notebooks.v1.Runtime getRuntimes(int index) { return runtimes_.get(index); } /** + * + * *
    * A list of returned Runtimes.
    * 
@@ -105,20 +134,22 @@ public com.google.cloud.notebooks.v1.Runtime getRuntimes(int index) { * repeated .google.cloud.notebooks.v1.Runtime runtimes = 1; */ @java.lang.Override - public com.google.cloud.notebooks.v1.RuntimeOrBuilder getRuntimesOrBuilder( - int index) { + public com.google.cloud.notebooks.v1.RuntimeOrBuilder getRuntimesOrBuilder(int index) { return runtimes_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Page token that can be used to continue listing from the last result in the
    * next list call.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -127,30 +158,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; } } /** + * + * *
    * Page token that can be used to continue listing from the last result in the
    * next list call.
    * 
* * string next_page_token = 2; + * * @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 { @@ -161,6 +192,8 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached. For example,
    * ['us-west1', 'us-central1'].
@@ -168,13 +201,15 @@ public java.lang.String getNextPageToken() {
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached. For example,
    * ['us-west1', 'us-central1'].
@@ -182,12 +217,15 @@ public java.lang.String getNextPageToken() {
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached. For example,
    * ['us-west1', 'us-central1'].
@@ -195,6 +233,7 @@ public int getUnreachableCount() {
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -202,6 +241,8 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached. For example,
    * ['us-west1', 'us-central1'].
@@ -209,15 +250,16 @@ public java.lang.String getUnreachable(int index) {
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +271,7 @@ 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 < runtimes_.size(); i++) { output.writeMessage(1, runtimes_.get(i)); } @@ -250,8 +291,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < runtimes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, runtimes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, runtimes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -272,19 +312,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.cloud.notebooks.v1.ListRuntimesResponse)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.ListRuntimesResponse other = (com.google.cloud.notebooks.v1.ListRuntimesResponse) obj; + com.google.cloud.notebooks.v1.ListRuntimesResponse other = + (com.google.cloud.notebooks.v1.ListRuntimesResponse) obj; - if (!getRuntimesList() - .equals(other.getRuntimesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getRuntimesList().equals(other.getRuntimesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -312,129 +350,135 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.ListRuntimesResponse 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.cloud.notebooks.v1.ListRuntimesResponse 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.cloud.notebooks.v1.ListRuntimesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ListRuntimesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.ListRuntimesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ListRuntimesResponse 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.cloud.notebooks.v1.ListRuntimesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ListRuntimesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.ListRuntimesResponse 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.cloud.notebooks.v1.ListRuntimesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ListRuntimesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.ListRuntimesResponse 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.cloud.notebooks.v1.ListRuntimesResponse 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.cloud.notebooks.v1.ListRuntimesResponse 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.cloud.notebooks.v1.ListRuntimesResponse 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; } /** + * + * *
    * Response for listing Managed Notebook Runtimes.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.ListRuntimesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.ListRuntimesResponse) com.google.cloud.notebooks.v1.ListRuntimesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_ListRuntimesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_ListRuntimesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_ListRuntimesResponse_fieldAccessorTable + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_ListRuntimesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ListRuntimesResponse.class, com.google.cloud.notebooks.v1.ListRuntimesResponse.Builder.class); + com.google.cloud.notebooks.v1.ListRuntimesResponse.class, + com.google.cloud.notebooks.v1.ListRuntimesResponse.Builder.class); } // Construct using com.google.cloud.notebooks.v1.ListRuntimesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -453,9 +497,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_ListRuntimesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_ListRuntimesResponse_descriptor; } @java.lang.Override @@ -474,7 +518,8 @@ public com.google.cloud.notebooks.v1.ListRuntimesResponse build() { @java.lang.Override public com.google.cloud.notebooks.v1.ListRuntimesResponse buildPartial() { - com.google.cloud.notebooks.v1.ListRuntimesResponse result = new com.google.cloud.notebooks.v1.ListRuntimesResponse(this); + com.google.cloud.notebooks.v1.ListRuntimesResponse result = + new com.google.cloud.notebooks.v1.ListRuntimesResponse(this); int from_bitField0_ = bitField0_; if (runtimesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -499,38 +544,39 @@ public com.google.cloud.notebooks.v1.ListRuntimesResponse buildPartial() { 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.cloud.notebooks.v1.ListRuntimesResponse) { - return mergeFrom((com.google.cloud.notebooks.v1.ListRuntimesResponse)other); + return mergeFrom((com.google.cloud.notebooks.v1.ListRuntimesResponse) other); } else { super.mergeFrom(other); return this; @@ -538,7 +584,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.ListRuntimesResponse other) { - if (other == com.google.cloud.notebooks.v1.ListRuntimesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.ListRuntimesResponse.getDefaultInstance()) + return this; if (runtimesBuilder_ == null) { if (!other.runtimes_.isEmpty()) { if (runtimes_.isEmpty()) { @@ -557,9 +604,10 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.ListRuntimesResponse othe runtimesBuilder_ = null; runtimes_ = other.runtimes_; bitField0_ = (bitField0_ & ~0x00000001); - runtimesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRuntimesFieldBuilder() : null; + runtimesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRuntimesFieldBuilder() + : null; } else { runtimesBuilder_.addAllMessages(other.runtimes_); } @@ -605,36 +653,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.notebooks.v1.Runtime m = - input.readMessage( - com.google.cloud.notebooks.v1.Runtime.parser(), - extensionRegistry); - if (runtimesBuilder_ == null) { - ensureRuntimesIsMutable(); - runtimes_.add(m); - } else { - runtimesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.notebooks.v1.Runtime m = + input.readMessage( + com.google.cloud.notebooks.v1.Runtime.parser(), extensionRegistry); + if (runtimesBuilder_ == null) { + ensureRuntimesIsMutable(); + runtimes_.add(m); + } else { + runtimesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.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) { @@ -644,21 +695,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List runtimes_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRuntimesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { runtimes_ = new java.util.ArrayList(runtimes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.Runtime, com.google.cloud.notebooks.v1.Runtime.Builder, com.google.cloud.notebooks.v1.RuntimeOrBuilder> runtimesBuilder_; + com.google.cloud.notebooks.v1.Runtime, + com.google.cloud.notebooks.v1.Runtime.Builder, + com.google.cloud.notebooks.v1.RuntimeOrBuilder> + runtimesBuilder_; /** + * + * *
      * A list of returned Runtimes.
      * 
@@ -673,6 +731,8 @@ public java.util.List getRuntimesList() { } } /** + * + * *
      * A list of returned Runtimes.
      * 
@@ -687,6 +747,8 @@ public int getRuntimesCount() { } } /** + * + * *
      * A list of returned Runtimes.
      * 
@@ -701,14 +763,15 @@ public com.google.cloud.notebooks.v1.Runtime getRuntimes(int index) { } } /** + * + * *
      * A list of returned Runtimes.
      * 
* * repeated .google.cloud.notebooks.v1.Runtime runtimes = 1; */ - public Builder setRuntimes( - int index, com.google.cloud.notebooks.v1.Runtime value) { + public Builder setRuntimes(int index, com.google.cloud.notebooks.v1.Runtime value) { if (runtimesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -722,6 +785,8 @@ public Builder setRuntimes( return this; } /** + * + * *
      * A list of returned Runtimes.
      * 
@@ -740,6 +805,8 @@ public Builder setRuntimes( return this; } /** + * + * *
      * A list of returned Runtimes.
      * 
@@ -760,14 +827,15 @@ public Builder addRuntimes(com.google.cloud.notebooks.v1.Runtime value) { return this; } /** + * + * *
      * A list of returned Runtimes.
      * 
* * repeated .google.cloud.notebooks.v1.Runtime runtimes = 1; */ - public Builder addRuntimes( - int index, com.google.cloud.notebooks.v1.Runtime value) { + public Builder addRuntimes(int index, com.google.cloud.notebooks.v1.Runtime value) { if (runtimesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -781,14 +849,15 @@ public Builder addRuntimes( return this; } /** + * + * *
      * A list of returned Runtimes.
      * 
* * repeated .google.cloud.notebooks.v1.Runtime runtimes = 1; */ - public Builder addRuntimes( - com.google.cloud.notebooks.v1.Runtime.Builder builderForValue) { + public Builder addRuntimes(com.google.cloud.notebooks.v1.Runtime.Builder builderForValue) { if (runtimesBuilder_ == null) { ensureRuntimesIsMutable(); runtimes_.add(builderForValue.build()); @@ -799,6 +868,8 @@ public Builder addRuntimes( return this; } /** + * + * *
      * A list of returned Runtimes.
      * 
@@ -817,6 +888,8 @@ public Builder addRuntimes( return this; } /** + * + * *
      * A list of returned Runtimes.
      * 
@@ -827,8 +900,7 @@ public Builder addAllRuntimes( java.lang.Iterable values) { if (runtimesBuilder_ == null) { ensureRuntimesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, runtimes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, runtimes_); onChanged(); } else { runtimesBuilder_.addAllMessages(values); @@ -836,6 +908,8 @@ public Builder addAllRuntimes( return this; } /** + * + * *
      * A list of returned Runtimes.
      * 
@@ -853,6 +927,8 @@ public Builder clearRuntimes() { return this; } /** + * + * *
      * A list of returned Runtimes.
      * 
@@ -870,39 +946,44 @@ public Builder removeRuntimes(int index) { return this; } /** + * + * *
      * A list of returned Runtimes.
      * 
* * repeated .google.cloud.notebooks.v1.Runtime runtimes = 1; */ - public com.google.cloud.notebooks.v1.Runtime.Builder getRuntimesBuilder( - int index) { + public com.google.cloud.notebooks.v1.Runtime.Builder getRuntimesBuilder(int index) { return getRuntimesFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of returned Runtimes.
      * 
* * repeated .google.cloud.notebooks.v1.Runtime runtimes = 1; */ - public com.google.cloud.notebooks.v1.RuntimeOrBuilder getRuntimesOrBuilder( - int index) { + public com.google.cloud.notebooks.v1.RuntimeOrBuilder getRuntimesOrBuilder(int index) { if (runtimesBuilder_ == null) { - return runtimes_.get(index); } else { + return runtimes_.get(index); + } else { return runtimesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of returned Runtimes.
      * 
* * repeated .google.cloud.notebooks.v1.Runtime runtimes = 1; */ - public java.util.List - getRuntimesOrBuilderList() { + public java.util.List + getRuntimesOrBuilderList() { if (runtimesBuilder_ != null) { return runtimesBuilder_.getMessageOrBuilderList(); } else { @@ -910,6 +991,8 @@ public com.google.cloud.notebooks.v1.RuntimeOrBuilder getRuntimesOrBuilder( } } /** + * + * *
      * A list of returned Runtimes.
      * 
@@ -917,42 +1000,47 @@ public com.google.cloud.notebooks.v1.RuntimeOrBuilder getRuntimesOrBuilder( * repeated .google.cloud.notebooks.v1.Runtime runtimes = 1; */ public com.google.cloud.notebooks.v1.Runtime.Builder addRuntimesBuilder() { - return getRuntimesFieldBuilder().addBuilder( - com.google.cloud.notebooks.v1.Runtime.getDefaultInstance()); + return getRuntimesFieldBuilder() + .addBuilder(com.google.cloud.notebooks.v1.Runtime.getDefaultInstance()); } /** + * + * *
      * A list of returned Runtimes.
      * 
* * repeated .google.cloud.notebooks.v1.Runtime runtimes = 1; */ - public com.google.cloud.notebooks.v1.Runtime.Builder addRuntimesBuilder( - int index) { - return getRuntimesFieldBuilder().addBuilder( - index, com.google.cloud.notebooks.v1.Runtime.getDefaultInstance()); + public com.google.cloud.notebooks.v1.Runtime.Builder addRuntimesBuilder(int index) { + return getRuntimesFieldBuilder() + .addBuilder(index, com.google.cloud.notebooks.v1.Runtime.getDefaultInstance()); } /** + * + * *
      * A list of returned Runtimes.
      * 
* * repeated .google.cloud.notebooks.v1.Runtime runtimes = 1; */ - public java.util.List - getRuntimesBuilderList() { + public java.util.List getRuntimesBuilderList() { return getRuntimesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.Runtime, com.google.cloud.notebooks.v1.Runtime.Builder, com.google.cloud.notebooks.v1.RuntimeOrBuilder> + com.google.cloud.notebooks.v1.Runtime, + com.google.cloud.notebooks.v1.Runtime.Builder, + com.google.cloud.notebooks.v1.RuntimeOrBuilder> getRuntimesFieldBuilder() { if (runtimesBuilder_ == null) { - runtimesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.Runtime, com.google.cloud.notebooks.v1.Runtime.Builder, com.google.cloud.notebooks.v1.RuntimeOrBuilder>( - runtimes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + runtimesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.notebooks.v1.Runtime, + com.google.cloud.notebooks.v1.Runtime.Builder, + com.google.cloud.notebooks.v1.RuntimeOrBuilder>( + runtimes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); runtimes_ = null; } return runtimesBuilder_; @@ -960,19 +1048,21 @@ public com.google.cloud.notebooks.v1.Runtime.Builder addRuntimesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Page token that can be used to continue listing from the last result in the
      * next list call.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -981,21 +1071,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Page token that can be used to continue listing from the last result in the
      * next list call.
      * 
* * string next_page_token = 2; + * * @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 { @@ -1003,70 +1094,81 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Page token that can be used to continue listing from the last result in the
      * next list call.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Page token that can be used to continue listing from the last result in the
      * next list call.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Page token that can be used to continue listing from the last result in the
      * next list call.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached. For example,
      * ['us-west1', 'us-central1'].
@@ -1074,13 +1176,15 @@ private void ensureUnreachableIsMutable() {
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached. For example,
      * ['us-west1', 'us-central1'].
@@ -1088,12 +1192,15 @@ private void ensureUnreachableIsMutable() {
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached. For example,
      * ['us-west1', 'us-central1'].
@@ -1101,6 +1208,7 @@ public int getUnreachableCount() {
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1108,6 +1216,8 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached. For example,
      * ['us-west1', 'us-central1'].
@@ -1115,14 +1225,16 @@ public java.lang.String getUnreachable(int index) {
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached. For example,
      * ['us-west1', 'us-central1'].
@@ -1130,21 +1242,23 @@ public java.lang.String getUnreachable(int index) {
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached. For example,
      * ['us-west1', 'us-central1'].
@@ -1152,20 +1266,22 @@ public Builder setUnreachable(
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached. For example,
      * ['us-west1', 'us-central1'].
@@ -1173,18 +1289,19 @@ public Builder addUnreachable(
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached. For example,
      * ['us-west1', 'us-central1'].
@@ -1192,6 +1309,7 @@ public Builder addAllUnreachable(
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1201,6 +1319,8 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached. For example,
      * ['us-west1', 'us-central1'].
@@ -1208,23 +1328,23 @@ public Builder clearUnreachable() {
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(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); } @@ -1234,12 +1354,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.ListRuntimesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.ListRuntimesResponse) private static final com.google.cloud.notebooks.v1.ListRuntimesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.ListRuntimesResponse(); } @@ -1248,27 +1368,27 @@ public static com.google.cloud.notebooks.v1.ListRuntimesResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRuntimesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRuntimesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -1283,6 +1403,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.ListRuntimesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesResponseOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesResponseOrBuilder.java similarity index 74% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesResponseOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesResponseOrBuilder.java index 8a7314f39167..033190eaf44c 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesResponseOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/managed_service.proto package com.google.cloud.notebooks.v1; -public interface ListRuntimesResponseOrBuilder extends +public interface ListRuntimesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.ListRuntimesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of returned Runtimes.
    * 
* * repeated .google.cloud.notebooks.v1.Runtime runtimes = 1; */ - java.util.List - getRuntimesList(); + java.util.List getRuntimesList(); /** + * + * *
    * A list of returned Runtimes.
    * 
@@ -25,6 +44,8 @@ public interface ListRuntimesResponseOrBuilder extends */ com.google.cloud.notebooks.v1.Runtime getRuntimes(int index); /** + * + * *
    * A list of returned Runtimes.
    * 
@@ -33,47 +54,57 @@ public interface ListRuntimesResponseOrBuilder extends */ int getRuntimesCount(); /** + * + * *
    * A list of returned Runtimes.
    * 
* * repeated .google.cloud.notebooks.v1.Runtime runtimes = 1; */ - java.util.List + java.util.List getRuntimesOrBuilderList(); /** + * + * *
    * A list of returned Runtimes.
    * 
* * repeated .google.cloud.notebooks.v1.Runtime runtimes = 1; */ - com.google.cloud.notebooks.v1.RuntimeOrBuilder getRuntimesOrBuilder( - int index); + com.google.cloud.notebooks.v1.RuntimeOrBuilder getRuntimesOrBuilder(int index); /** + * + * *
    * Page token that can be used to continue listing from the last result in the
    * next list call.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Page token that can be used to continue listing from the last result in the
    * next list call.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached. For example,
    * ['us-west1', 'us-central1'].
@@ -81,11 +112,13 @@ com.google.cloud.notebooks.v1.RuntimeOrBuilder getRuntimesOrBuilder(
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached. For example,
    * ['us-west1', 'us-central1'].
@@ -93,10 +126,13 @@ com.google.cloud.notebooks.v1.RuntimeOrBuilder getRuntimesOrBuilder(
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached. For example,
    * ['us-west1', 'us-central1'].
@@ -104,11 +140,14 @@ com.google.cloud.notebooks.v1.RuntimeOrBuilder getRuntimesOrBuilder(
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached. For example,
    * ['us-west1', 'us-central1'].
@@ -116,9 +155,9 @@ com.google.cloud.notebooks.v1.RuntimeOrBuilder getRuntimesOrBuilder(
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesRequest.java similarity index 67% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesRequest.java index b9ff5e5bd8e0..6e7d50ed988d 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for listing scheduled notebook job.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.ListSchedulesRequest} */ -public final class ListSchedulesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSchedulesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.ListSchedulesRequest) ListSchedulesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSchedulesRequest.newBuilder() to construct. private ListSchedulesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSchedulesRequest() { parent_ = ""; pageToken_ = ""; @@ -28,38 +46,44 @@ private ListSchedulesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSchedulesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListSchedulesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListSchedulesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListSchedulesRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListSchedulesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ListSchedulesRequest.class, com.google.cloud.notebooks.v1.ListSchedulesRequest.Builder.class); + com.google.cloud.notebooks.v1.ListSchedulesRequest.class, + com.google.cloud.notebooks.v1.ListSchedulesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -68,30 +92,32 @@ 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; } } /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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 { @@ -102,11 +128,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Maximum return size of the list call.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -117,12 +146,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A previous returned page token that can be used to continue listing
    * from the last result.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -131,30 +163,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; } } /** + * + * *
    * A previous returned page token that can be used to continue listing
    * from the last result.
    * 
* * string page_token = 3; + * * @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 { @@ -165,11 +197,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * Filter applied to resulting schedules.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -178,29 +213,29 @@ 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; } } /** + * + * *
    * Filter applied to resulting schedules.
    * 
* * string filter = 4; + * * @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 { @@ -211,11 +246,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Field to order results by.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -224,29 +262,29 @@ public java.lang.String getOrderBy() { 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(); orderBy_ = s; return s; } } /** + * + * *
    * Field to order results by.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; 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); orderBy_ = b; return b; } else { @@ -255,6 +293,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,8 +305,7 @@ 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_); } @@ -296,8 +334,7 @@ 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_); @@ -316,23 +353,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.cloud.notebooks.v1.ListSchedulesRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.ListSchedulesRequest other = (com.google.cloud.notebooks.v1.ListSchedulesRequest) 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 (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.notebooks.v1.ListSchedulesRequest other = + (com.google.cloud.notebooks.v1.ListSchedulesRequest) 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 (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -360,129 +393,135 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.ListSchedulesRequest 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.cloud.notebooks.v1.ListSchedulesRequest 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.cloud.notebooks.v1.ListSchedulesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ListSchedulesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.ListSchedulesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ListSchedulesRequest 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.cloud.notebooks.v1.ListSchedulesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ListSchedulesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.ListSchedulesRequest 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.cloud.notebooks.v1.ListSchedulesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ListSchedulesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.ListSchedulesRequest 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.cloud.notebooks.v1.ListSchedulesRequest 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.cloud.notebooks.v1.ListSchedulesRequest 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.cloud.notebooks.v1.ListSchedulesRequest 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; } /** + * + * *
    * Request for listing scheduled notebook job.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.ListSchedulesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.ListSchedulesRequest) com.google.cloud.notebooks.v1.ListSchedulesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListSchedulesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListSchedulesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListSchedulesRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListSchedulesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ListSchedulesRequest.class, com.google.cloud.notebooks.v1.ListSchedulesRequest.Builder.class); + com.google.cloud.notebooks.v1.ListSchedulesRequest.class, + com.google.cloud.notebooks.v1.ListSchedulesRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.ListSchedulesRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -500,9 +539,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListSchedulesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListSchedulesRequest_descriptor; } @java.lang.Override @@ -521,7 +560,8 @@ public com.google.cloud.notebooks.v1.ListSchedulesRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.ListSchedulesRequest buildPartial() { - com.google.cloud.notebooks.v1.ListSchedulesRequest result = new com.google.cloud.notebooks.v1.ListSchedulesRequest(this); + com.google.cloud.notebooks.v1.ListSchedulesRequest result = + new com.google.cloud.notebooks.v1.ListSchedulesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -535,38 +575,39 @@ public com.google.cloud.notebooks.v1.ListSchedulesRequest buildPartial() { 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.cloud.notebooks.v1.ListSchedulesRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.ListSchedulesRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.ListSchedulesRequest) other); } else { super.mergeFrom(other); return this; @@ -574,7 +615,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.ListSchedulesRequest other) { - if (other == com.google.cloud.notebooks.v1.ListSchedulesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.ListSchedulesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -620,37 +662,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: { - filter_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: { - orderBy_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -663,19 +711,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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; @@ -684,21 +736,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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 { @@ -706,69 +761,85 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum return size of the list call.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -776,30 +847,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum return size of the list call.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Maximum return size of the list call.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -807,19 +884,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A previous returned page token that can be used to continue listing
      * from the last result.
      * 
* * string page_token = 3; + * * @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; @@ -828,21 +907,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A previous returned page token that can be used to continue listing
      * from the last result.
      * 
* * string page_token = 3; + * * @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 { @@ -850,57 +930,64 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A previous returned page token that can be used to continue listing
      * from the last result.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A previous returned page token that can be used to continue listing
      * from the last result.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A previous returned page token that can be used to continue listing
      * from the last result.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -908,18 +995,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Filter applied to resulting schedules.
      * 
* * string filter = 4; + * * @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; @@ -928,20 +1017,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter applied to resulting schedules.
      * 
* * string filter = 4; + * * @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 { @@ -949,54 +1039,61 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter applied to resulting schedules.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Filter applied to resulting schedules.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Filter applied to resulting schedules.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1004,18 +1101,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Field to order results by.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; 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(); orderBy_ = s; return s; @@ -1024,20 +1123,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Field to order results by.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; 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); orderBy_ = b; return b; } else { @@ -1045,61 +1145,68 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Field to order results by.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Field to order results by.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Field to order results by.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = 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 +1216,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.ListSchedulesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.ListSchedulesRequest) private static final com.google.cloud.notebooks.v1.ListSchedulesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.ListSchedulesRequest(); } @@ -1123,27 +1230,27 @@ public static com.google.cloud.notebooks.v1.ListSchedulesRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSchedulesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSchedulesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -1158,6 +1265,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.ListSchedulesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesRequestOrBuilder.java index fd3b34c0c393..d3ddb4dc995f 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesRequestOrBuilder.java @@ -1,103 +1,146 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface ListSchedulesRequestOrBuilder extends +public interface ListSchedulesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.ListSchedulesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Maximum return size of the list call.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A previous returned page token that can be used to continue listing
    * from the last result.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A previous returned page token that can be used to continue listing
    * from the last result.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Filter applied to resulting schedules.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Filter applied to resulting schedules.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Field to order results by.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Field to order results by.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesResponse.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesResponse.java similarity index 73% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesResponse.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesResponse.java index fdc5187c8cdb..6963f4e25fa0 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesResponse.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Response for listing scheduled notebook job.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.ListSchedulesResponse} */ -public final class ListSchedulesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListSchedulesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.ListSchedulesResponse) ListSchedulesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListSchedulesResponse.newBuilder() to construct. private ListSchedulesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListSchedulesResponse() { schedules_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,32 +45,35 @@ private ListSchedulesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSchedulesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListSchedulesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListSchedulesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListSchedulesResponse_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListSchedulesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ListSchedulesResponse.class, com.google.cloud.notebooks.v1.ListSchedulesResponse.Builder.class); + com.google.cloud.notebooks.v1.ListSchedulesResponse.class, + com.google.cloud.notebooks.v1.ListSchedulesResponse.Builder.class); } public static final int SCHEDULES_FIELD_NUMBER = 1; private java.util.List schedules_; /** + * + * *
    * A list of returned instances.
    * 
@@ -64,6 +85,8 @@ public java.util.List getSchedulesList() return schedules_; } /** + * + * *
    * A list of returned instances.
    * 
@@ -71,11 +94,13 @@ public java.util.List getSchedulesList() * repeated .google.cloud.notebooks.v1.Schedule schedules = 1; */ @java.lang.Override - public java.util.List + public java.util.List getSchedulesOrBuilderList() { return schedules_; } /** + * + * *
    * A list of returned instances.
    * 
@@ -87,6 +112,8 @@ public int getSchedulesCount() { return schedules_.size(); } /** + * + * *
    * A list of returned instances.
    * 
@@ -98,6 +125,8 @@ public com.google.cloud.notebooks.v1.Schedule getSchedules(int index) { return schedules_.get(index); } /** + * + * *
    * A list of returned instances.
    * 
@@ -105,20 +134,22 @@ public com.google.cloud.notebooks.v1.Schedule getSchedules(int index) { * repeated .google.cloud.notebooks.v1.Schedule schedules = 1; */ @java.lang.Override - public com.google.cloud.notebooks.v1.ScheduleOrBuilder getSchedulesOrBuilder( - int index) { + public com.google.cloud.notebooks.v1.ScheduleOrBuilder getSchedulesOrBuilder(int index) { return schedules_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Page token that can be used to continue listing from the last result in the
    * next list call.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -127,30 +158,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; } } /** + * + * *
    * Page token that can be used to continue listing from the last result in the
    * next list call.
    * 
* * string next_page_token = 2; + * * @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 { @@ -161,6 +192,8 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Schedules that could not be reached. For example:
    *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
@@ -168,13 +201,15 @@ public java.lang.String getNextPageToken() {
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Schedules that could not be reached. For example:
    *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
@@ -182,12 +217,15 @@ public java.lang.String getNextPageToken() {
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Schedules that could not be reached. For example:
    *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
@@ -195,6 +233,7 @@ public int getUnreachableCount() {
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -202,6 +241,8 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Schedules that could not be reached. For example:
    *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
@@ -209,15 +250,16 @@ public java.lang.String getUnreachable(int index) {
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +271,7 @@ 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 < schedules_.size(); i++) { output.writeMessage(1, schedules_.get(i)); } @@ -250,8 +291,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < schedules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, schedules_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, schedules_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -272,19 +312,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.cloud.notebooks.v1.ListSchedulesResponse)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.ListSchedulesResponse other = (com.google.cloud.notebooks.v1.ListSchedulesResponse) obj; + com.google.cloud.notebooks.v1.ListSchedulesResponse other = + (com.google.cloud.notebooks.v1.ListSchedulesResponse) obj; - if (!getSchedulesList() - .equals(other.getSchedulesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getSchedulesList().equals(other.getSchedulesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -312,129 +350,135 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.ListSchedulesResponse 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.cloud.notebooks.v1.ListSchedulesResponse 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.cloud.notebooks.v1.ListSchedulesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ListSchedulesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.ListSchedulesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ListSchedulesResponse 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.cloud.notebooks.v1.ListSchedulesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ListSchedulesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.ListSchedulesResponse 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.cloud.notebooks.v1.ListSchedulesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ListSchedulesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.ListSchedulesResponse 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.cloud.notebooks.v1.ListSchedulesResponse 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.cloud.notebooks.v1.ListSchedulesResponse 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.cloud.notebooks.v1.ListSchedulesResponse 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; } /** + * + * *
    * Response for listing scheduled notebook job.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.ListSchedulesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.ListSchedulesResponse) com.google.cloud.notebooks.v1.ListSchedulesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListSchedulesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListSchedulesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListSchedulesResponse_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListSchedulesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ListSchedulesResponse.class, com.google.cloud.notebooks.v1.ListSchedulesResponse.Builder.class); + com.google.cloud.notebooks.v1.ListSchedulesResponse.class, + com.google.cloud.notebooks.v1.ListSchedulesResponse.Builder.class); } // Construct using com.google.cloud.notebooks.v1.ListSchedulesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -453,9 +497,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ListSchedulesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ListSchedulesResponse_descriptor; } @java.lang.Override @@ -474,7 +518,8 @@ public com.google.cloud.notebooks.v1.ListSchedulesResponse build() { @java.lang.Override public com.google.cloud.notebooks.v1.ListSchedulesResponse buildPartial() { - com.google.cloud.notebooks.v1.ListSchedulesResponse result = new com.google.cloud.notebooks.v1.ListSchedulesResponse(this); + com.google.cloud.notebooks.v1.ListSchedulesResponse result = + new com.google.cloud.notebooks.v1.ListSchedulesResponse(this); int from_bitField0_ = bitField0_; if (schedulesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -499,38 +544,39 @@ public com.google.cloud.notebooks.v1.ListSchedulesResponse buildPartial() { 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.cloud.notebooks.v1.ListSchedulesResponse) { - return mergeFrom((com.google.cloud.notebooks.v1.ListSchedulesResponse)other); + return mergeFrom((com.google.cloud.notebooks.v1.ListSchedulesResponse) other); } else { super.mergeFrom(other); return this; @@ -538,7 +584,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.ListSchedulesResponse other) { - if (other == com.google.cloud.notebooks.v1.ListSchedulesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.ListSchedulesResponse.getDefaultInstance()) + return this; if (schedulesBuilder_ == null) { if (!other.schedules_.isEmpty()) { if (schedules_.isEmpty()) { @@ -557,9 +604,10 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.ListSchedulesResponse oth schedulesBuilder_ = null; schedules_ = other.schedules_; bitField0_ = (bitField0_ & ~0x00000001); - schedulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSchedulesFieldBuilder() : null; + schedulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSchedulesFieldBuilder() + : null; } else { schedulesBuilder_.addAllMessages(other.schedules_); } @@ -605,36 +653,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.notebooks.v1.Schedule m = - input.readMessage( - com.google.cloud.notebooks.v1.Schedule.parser(), - extensionRegistry); - if (schedulesBuilder_ == null) { - ensureSchedulesIsMutable(); - schedules_.add(m); - } else { - schedulesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.notebooks.v1.Schedule m = + input.readMessage( + com.google.cloud.notebooks.v1.Schedule.parser(), extensionRegistry); + if (schedulesBuilder_ == null) { + ensureSchedulesIsMutable(); + schedules_.add(m); + } else { + schedulesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.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) { @@ -644,21 +695,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List schedules_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSchedulesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { schedules_ = new java.util.ArrayList(schedules_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.Schedule, com.google.cloud.notebooks.v1.Schedule.Builder, com.google.cloud.notebooks.v1.ScheduleOrBuilder> schedulesBuilder_; + com.google.cloud.notebooks.v1.Schedule, + com.google.cloud.notebooks.v1.Schedule.Builder, + com.google.cloud.notebooks.v1.ScheduleOrBuilder> + schedulesBuilder_; /** + * + * *
      * A list of returned instances.
      * 
@@ -673,6 +731,8 @@ public java.util.List getSchedulesList() } } /** + * + * *
      * A list of returned instances.
      * 
@@ -687,6 +747,8 @@ public int getSchedulesCount() { } } /** + * + * *
      * A list of returned instances.
      * 
@@ -701,14 +763,15 @@ public com.google.cloud.notebooks.v1.Schedule getSchedules(int index) { } } /** + * + * *
      * A list of returned instances.
      * 
* * repeated .google.cloud.notebooks.v1.Schedule schedules = 1; */ - public Builder setSchedules( - int index, com.google.cloud.notebooks.v1.Schedule value) { + public Builder setSchedules(int index, com.google.cloud.notebooks.v1.Schedule value) { if (schedulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -722,6 +785,8 @@ public Builder setSchedules( return this; } /** + * + * *
      * A list of returned instances.
      * 
@@ -740,6 +805,8 @@ public Builder setSchedules( return this; } /** + * + * *
      * A list of returned instances.
      * 
@@ -760,14 +827,15 @@ public Builder addSchedules(com.google.cloud.notebooks.v1.Schedule value) { return this; } /** + * + * *
      * A list of returned instances.
      * 
* * repeated .google.cloud.notebooks.v1.Schedule schedules = 1; */ - public Builder addSchedules( - int index, com.google.cloud.notebooks.v1.Schedule value) { + public Builder addSchedules(int index, com.google.cloud.notebooks.v1.Schedule value) { if (schedulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -781,14 +849,15 @@ public Builder addSchedules( return this; } /** + * + * *
      * A list of returned instances.
      * 
* * repeated .google.cloud.notebooks.v1.Schedule schedules = 1; */ - public Builder addSchedules( - com.google.cloud.notebooks.v1.Schedule.Builder builderForValue) { + public Builder addSchedules(com.google.cloud.notebooks.v1.Schedule.Builder builderForValue) { if (schedulesBuilder_ == null) { ensureSchedulesIsMutable(); schedules_.add(builderForValue.build()); @@ -799,6 +868,8 @@ public Builder addSchedules( return this; } /** + * + * *
      * A list of returned instances.
      * 
@@ -817,6 +888,8 @@ public Builder addSchedules( return this; } /** + * + * *
      * A list of returned instances.
      * 
@@ -827,8 +900,7 @@ public Builder addAllSchedules( java.lang.Iterable values) { if (schedulesBuilder_ == null) { ensureSchedulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, schedules_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, schedules_); onChanged(); } else { schedulesBuilder_.addAllMessages(values); @@ -836,6 +908,8 @@ public Builder addAllSchedules( return this; } /** + * + * *
      * A list of returned instances.
      * 
@@ -853,6 +927,8 @@ public Builder clearSchedules() { return this; } /** + * + * *
      * A list of returned instances.
      * 
@@ -870,39 +946,44 @@ public Builder removeSchedules(int index) { return this; } /** + * + * *
      * A list of returned instances.
      * 
* * repeated .google.cloud.notebooks.v1.Schedule schedules = 1; */ - public com.google.cloud.notebooks.v1.Schedule.Builder getSchedulesBuilder( - int index) { + public com.google.cloud.notebooks.v1.Schedule.Builder getSchedulesBuilder(int index) { return getSchedulesFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of returned instances.
      * 
* * repeated .google.cloud.notebooks.v1.Schedule schedules = 1; */ - public com.google.cloud.notebooks.v1.ScheduleOrBuilder getSchedulesOrBuilder( - int index) { + public com.google.cloud.notebooks.v1.ScheduleOrBuilder getSchedulesOrBuilder(int index) { if (schedulesBuilder_ == null) { - return schedules_.get(index); } else { + return schedules_.get(index); + } else { return schedulesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of returned instances.
      * 
* * repeated .google.cloud.notebooks.v1.Schedule schedules = 1; */ - public java.util.List - getSchedulesOrBuilderList() { + public java.util.List + getSchedulesOrBuilderList() { if (schedulesBuilder_ != null) { return schedulesBuilder_.getMessageOrBuilderList(); } else { @@ -910,6 +991,8 @@ public com.google.cloud.notebooks.v1.ScheduleOrBuilder getSchedulesOrBuilder( } } /** + * + * *
      * A list of returned instances.
      * 
@@ -917,42 +1000,48 @@ public com.google.cloud.notebooks.v1.ScheduleOrBuilder getSchedulesOrBuilder( * repeated .google.cloud.notebooks.v1.Schedule schedules = 1; */ public com.google.cloud.notebooks.v1.Schedule.Builder addSchedulesBuilder() { - return getSchedulesFieldBuilder().addBuilder( - com.google.cloud.notebooks.v1.Schedule.getDefaultInstance()); + return getSchedulesFieldBuilder() + .addBuilder(com.google.cloud.notebooks.v1.Schedule.getDefaultInstance()); } /** + * + * *
      * A list of returned instances.
      * 
* * repeated .google.cloud.notebooks.v1.Schedule schedules = 1; */ - public com.google.cloud.notebooks.v1.Schedule.Builder addSchedulesBuilder( - int index) { - return getSchedulesFieldBuilder().addBuilder( - index, com.google.cloud.notebooks.v1.Schedule.getDefaultInstance()); + public com.google.cloud.notebooks.v1.Schedule.Builder addSchedulesBuilder(int index) { + return getSchedulesFieldBuilder() + .addBuilder(index, com.google.cloud.notebooks.v1.Schedule.getDefaultInstance()); } /** + * + * *
      * A list of returned instances.
      * 
* * repeated .google.cloud.notebooks.v1.Schedule schedules = 1; */ - public java.util.List - getSchedulesBuilderList() { + public java.util.List + getSchedulesBuilderList() { return getSchedulesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.Schedule, com.google.cloud.notebooks.v1.Schedule.Builder, com.google.cloud.notebooks.v1.ScheduleOrBuilder> + com.google.cloud.notebooks.v1.Schedule, + com.google.cloud.notebooks.v1.Schedule.Builder, + com.google.cloud.notebooks.v1.ScheduleOrBuilder> getSchedulesFieldBuilder() { if (schedulesBuilder_ == null) { - schedulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.Schedule, com.google.cloud.notebooks.v1.Schedule.Builder, com.google.cloud.notebooks.v1.ScheduleOrBuilder>( - schedules_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + schedulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.notebooks.v1.Schedule, + com.google.cloud.notebooks.v1.Schedule.Builder, + com.google.cloud.notebooks.v1.ScheduleOrBuilder>( + schedules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); schedules_ = null; } return schedulesBuilder_; @@ -960,19 +1049,21 @@ public com.google.cloud.notebooks.v1.Schedule.Builder addSchedulesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Page token that can be used to continue listing from the last result in the
      * next list call.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -981,21 +1072,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Page token that can be used to continue listing from the last result in the
      * next list call.
      * 
* * string next_page_token = 2; + * * @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 { @@ -1003,70 +1095,81 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Page token that can be used to continue listing from the last result in the
      * next list call.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Page token that can be used to continue listing from the last result in the
      * next list call.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Page token that can be used to continue listing from the last result in the
      * next list call.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Schedules that could not be reached. For example:
      *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
@@ -1074,13 +1177,15 @@ private void ensureUnreachableIsMutable() {
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Schedules that could not be reached. For example:
      *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
@@ -1088,12 +1193,15 @@ private void ensureUnreachableIsMutable() {
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Schedules that could not be reached. For example:
      *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
@@ -1101,6 +1209,7 @@ public int getUnreachableCount() {
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1108,6 +1217,8 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Schedules that could not be reached. For example:
      *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
@@ -1115,14 +1226,16 @@ public java.lang.String getUnreachable(int index) {
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Schedules that could not be reached. For example:
      *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
@@ -1130,21 +1243,23 @@ public java.lang.String getUnreachable(int index) {
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Schedules that could not be reached. For example:
      *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
@@ -1152,20 +1267,22 @@ public Builder setUnreachable(
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Schedules that could not be reached. For example:
      *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
@@ -1173,18 +1290,19 @@ public Builder addUnreachable(
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Schedules that could not be reached. For example:
      *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
@@ -1192,6 +1310,7 @@ public Builder addAllUnreachable(
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1201,6 +1320,8 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Schedules that could not be reached. For example:
      *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
@@ -1208,23 +1329,23 @@ public Builder clearUnreachable() {
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(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); } @@ -1234,12 +1355,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.ListSchedulesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.ListSchedulesResponse) private static final com.google.cloud.notebooks.v1.ListSchedulesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.ListSchedulesResponse(); } @@ -1248,27 +1369,27 @@ public static com.google.cloud.notebooks.v1.ListSchedulesResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSchedulesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSchedulesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -1283,6 +1404,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.ListSchedulesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesResponseOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesResponseOrBuilder.java similarity index 75% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesResponseOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesResponseOrBuilder.java index ae225378d2c1..2a2a66c2fa5c 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesResponseOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface ListSchedulesResponseOrBuilder extends +public interface ListSchedulesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.ListSchedulesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of returned instances.
    * 
* * repeated .google.cloud.notebooks.v1.Schedule schedules = 1; */ - java.util.List - getSchedulesList(); + java.util.List getSchedulesList(); /** + * + * *
    * A list of returned instances.
    * 
@@ -25,6 +44,8 @@ public interface ListSchedulesResponseOrBuilder extends */ com.google.cloud.notebooks.v1.Schedule getSchedules(int index); /** + * + * *
    * A list of returned instances.
    * 
@@ -33,47 +54,57 @@ public interface ListSchedulesResponseOrBuilder extends */ int getSchedulesCount(); /** + * + * *
    * A list of returned instances.
    * 
* * repeated .google.cloud.notebooks.v1.Schedule schedules = 1; */ - java.util.List + java.util.List getSchedulesOrBuilderList(); /** + * + * *
    * A list of returned instances.
    * 
* * repeated .google.cloud.notebooks.v1.Schedule schedules = 1; */ - com.google.cloud.notebooks.v1.ScheduleOrBuilder getSchedulesOrBuilder( - int index); + com.google.cloud.notebooks.v1.ScheduleOrBuilder getSchedulesOrBuilder(int index); /** + * + * *
    * Page token that can be used to continue listing from the last result in the
    * next list call.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Page token that can be used to continue listing from the last result in the
    * next list call.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Schedules that could not be reached. For example:
    *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
@@ -81,11 +112,13 @@ com.google.cloud.notebooks.v1.ScheduleOrBuilder getSchedulesOrBuilder(
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Schedules that could not be reached. For example:
    *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
@@ -93,10 +126,13 @@ com.google.cloud.notebooks.v1.ScheduleOrBuilder getSchedulesOrBuilder(
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Schedules that could not be reached. For example:
    *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
@@ -104,11 +140,14 @@ com.google.cloud.notebooks.v1.ScheduleOrBuilder getSchedulesOrBuilder(
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Schedules that could not be reached. For example:
    *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
@@ -116,9 +155,9 @@ com.google.cloud.notebooks.v1.ScheduleOrBuilder getSchedulesOrBuilder(
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDisk.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDisk.java similarity index 73% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDisk.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDisk.java index 513f48b0551b..0afbc9bbb48b 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDisk.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDisk.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/runtime.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * A Local attached disk resource.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.LocalDisk} */ -public final class LocalDisk extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LocalDisk extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.LocalDisk) LocalDiskOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LocalDisk.newBuilder() to construct. private LocalDisk(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LocalDisk() { deviceName_ = ""; guestOsFeatures_ = java.util.Collections.emptyList(); @@ -32,34 +50,38 @@ private LocalDisk() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LocalDisk(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_LocalDisk_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_LocalDisk_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_LocalDisk_fieldAccessorTable + return com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_LocalDisk_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.LocalDisk.class, com.google.cloud.notebooks.v1.LocalDisk.Builder.class); + com.google.cloud.notebooks.v1.LocalDisk.class, + com.google.cloud.notebooks.v1.LocalDisk.Builder.class); } - public interface RuntimeGuestOsFeatureOrBuilder extends + public interface RuntimeGuestOsFeatureOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The ID of a supported feature. Read [Enabling guest operating system
      * features](https://cloud.google.com/compute/docs/images/create-delete-deprecate-private-images#guest-os-features)
@@ -74,10 +96,13 @@ public interface RuntimeGuestOsFeatureOrBuilder extends
      * 
* * string type = 1; + * * @return The type. */ java.lang.String getType(); /** + * + * *
      * The ID of a supported feature. Read [Enabling guest operating system
      * features](https://cloud.google.com/compute/docs/images/create-delete-deprecate-private-images#guest-os-features)
@@ -92,12 +117,14 @@ public interface RuntimeGuestOsFeatureOrBuilder extends
      * 
* * string type = 1; + * * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); } /** + * + * *
    * Optional. A list of features to enable on the guest operating system.
    * Applicable only for bootable images.
@@ -109,47 +136,51 @@ public interface RuntimeGuestOsFeatureOrBuilder extends
    *
    * Protobuf type {@code google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature}
    */
-  public static final class RuntimeGuestOsFeature extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class RuntimeGuestOsFeature extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature)
       RuntimeGuestOsFeatureOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use RuntimeGuestOsFeature.newBuilder() to construct.
     private RuntimeGuestOsFeature(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private RuntimeGuestOsFeature() {
       type_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new RuntimeGuestOsFeature();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_LocalDisk_RuntimeGuestOsFeature_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.notebooks.v1.RuntimeProto
+          .internal_static_google_cloud_notebooks_v1_LocalDisk_RuntimeGuestOsFeature_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_LocalDisk_RuntimeGuestOsFeature_fieldAccessorTable
+      return com.google.cloud.notebooks.v1.RuntimeProto
+          .internal_static_google_cloud_notebooks_v1_LocalDisk_RuntimeGuestOsFeature_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.class, com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.Builder.class);
+              com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.class,
+              com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.Builder.class);
     }
 
     public static final int TYPE_FIELD_NUMBER = 1;
     private volatile java.lang.Object type_;
     /**
+     *
+     *
      * 
      * The ID of a supported feature. Read [Enabling guest operating system
      * features](https://cloud.google.com/compute/docs/images/create-delete-deprecate-private-images#guest-os-features)
@@ -164,6 +195,7 @@ protected java.lang.Object newInstance(
      * 
* * string type = 1; + * * @return The type. */ @java.lang.Override @@ -172,14 +204,15 @@ 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; } } /** + * + * *
      * The ID of a supported feature. Read [Enabling guest operating system
      * features](https://cloud.google.com/compute/docs/images/create-delete-deprecate-private-images#guest-os-features)
@@ -194,16 +227,15 @@ public java.lang.String getType() {
      * 
* * string type = 1; + * * @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 { @@ -212,6 +244,7 @@ public java.lang.String getType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -223,8 +256,7 @@ 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(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } @@ -248,15 +280,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.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature other = (com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature) obj; + com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature other = + (com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature) obj; - if (!getType() - .equals(other.getType())) return false; + if (!getType().equals(other.getType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -276,87 +308,94 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature 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.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature 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.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature 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.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature 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.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature 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.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature 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.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature 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.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature 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 @@ -366,6 +405,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Optional. A list of features to enable on the guest operating system.
      * Applicable only for bootable images.
@@ -377,33 +418,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature)
         com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeatureOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_LocalDisk_RuntimeGuestOsFeature_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.notebooks.v1.RuntimeProto
+            .internal_static_google_cloud_notebooks_v1_LocalDisk_RuntimeGuestOsFeature_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_LocalDisk_RuntimeGuestOsFeature_fieldAccessorTable
+        return com.google.cloud.notebooks.v1.RuntimeProto
+            .internal_static_google_cloud_notebooks_v1_LocalDisk_RuntimeGuestOsFeature_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.class, com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.Builder.class);
+                com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.class,
+                com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.Builder.class);
       }
 
       // Construct using com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -413,13 +454,14 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_LocalDisk_RuntimeGuestOsFeature_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.notebooks.v1.RuntimeProto
+            .internal_static_google_cloud_notebooks_v1_LocalDisk_RuntimeGuestOsFeature_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature getDefaultInstanceForType() {
+      public com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature
+          getDefaultInstanceForType() {
         return com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.getDefaultInstance();
       }
 
@@ -434,7 +476,8 @@ public com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature build() {
 
       @java.lang.Override
       public com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature buildPartial() {
-        com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature result = new com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature(this);
+        com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature result =
+            new com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature(this);
         result.type_ = type_;
         onBuilt();
         return result;
@@ -444,46 +487,52 @@ public com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature buildPartia
       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.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature) {
-          return mergeFrom((com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature)other);
+          return mergeFrom((com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature other) {
-        if (other == com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature other) {
+        if (other
+            == com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.getDefaultInstance())
+          return this;
         if (!other.getType().isEmpty()) {
           type_ = other.type_;
           onChanged();
@@ -514,17 +563,19 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                type_ = input.readStringRequireUtf8();
-
-                break;
-              } // case 10
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  type_ = input.readStringRequireUtf8();
+
+                  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) {
@@ -537,6 +588,8 @@ public Builder mergeFrom(
 
       private java.lang.Object type_ = "";
       /**
+       *
+       *
        * 
        * The ID of a supported feature. Read [Enabling guest operating system
        * features](https://cloud.google.com/compute/docs/images/create-delete-deprecate-private-images#guest-os-features)
@@ -551,13 +604,13 @@ public Builder mergeFrom(
        * 
* * string type = 1; + * * @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; @@ -566,6 +619,8 @@ public java.lang.String getType() { } } /** + * + * *
        * The ID of a supported feature. Read [Enabling guest operating system
        * features](https://cloud.google.com/compute/docs/images/create-delete-deprecate-private-images#guest-os-features)
@@ -580,15 +635,14 @@ public java.lang.String getType() {
        * 
* * string type = 1; + * * @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 { @@ -596,6 +650,8 @@ public java.lang.String getType() { } } /** + * + * *
        * The ID of a supported feature. Read [Enabling guest operating system
        * features](https://cloud.google.com/compute/docs/images/create-delete-deprecate-private-images#guest-os-features)
@@ -610,20 +666,22 @@ public java.lang.String getType() {
        * 
* * string type = 1; + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - java.lang.String value) { + public Builder setType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + type_ = value; onChanged(); return this; } /** + * + * *
        * The ID of a supported feature. Read [Enabling guest operating system
        * features](https://cloud.google.com/compute/docs/images/create-delete-deprecate-private-images#guest-os-features)
@@ -638,15 +696,18 @@ public Builder setType(
        * 
* * string type = 1; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** + * + * *
        * The ID of a supported feature. Read [Enabling guest operating system
        * features](https://cloud.google.com/compute/docs/images/create-delete-deprecate-private-images#guest-os-features)
@@ -661,20 +722,21 @@ public Builder clearType() {
        * 
* * string type = 1; + * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -687,41 +749,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature) - private static final com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature DEFAULT_INSTANCE; + private static final com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature(); } - public static com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature getDefaultInstance() { + public static com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RuntimeGuestOsFeature parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RuntimeGuestOsFeature parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -733,21 +798,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature getDefaultInstanceForType() { + public com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int AUTO_DELETE_FIELD_NUMBER = 1; private boolean autoDelete_; /** + * + * *
    * Optional. Output only. Specifies whether the disk will be auto-deleted when the
    * instance is deleted (but not when the disk is detached from the instance).
    * 
* * bool auto_delete = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The autoDelete. */ @java.lang.Override @@ -758,12 +826,15 @@ public boolean getAutoDelete() { public static final int BOOT_FIELD_NUMBER = 2; private boolean boot_; /** + * + * *
    * Optional. Output only. Indicates that this is a boot disk. The virtual machine
    * will use the first partition of the disk for its root filesystem.
    * 
* * bool boot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The boot. */ @java.lang.Override @@ -774,6 +845,8 @@ public boolean getBoot() { public static final int DEVICE_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object deviceName_; /** + * + * *
    * Optional. Output only. Specifies a unique device name
    * of your choice that is reflected into the
@@ -786,6 +859,7 @@ public boolean getBoot() {
    * 
* * string device_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The deviceName. */ @java.lang.Override @@ -794,14 +868,15 @@ public java.lang.String getDeviceName() { 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(); deviceName_ = s; return s; } } /** + * + * *
    * Optional. Output only. Specifies a unique device name
    * of your choice that is reflected into the
@@ -814,16 +889,15 @@ public java.lang.String getDeviceName() {
    * 
* * string device_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for deviceName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDeviceNameBytes() { + public com.google.protobuf.ByteString getDeviceNameBytes() { java.lang.Object ref = deviceName_; 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); deviceName_ = b; return b; } else { @@ -832,78 +906,104 @@ public java.lang.String getDeviceName() { } public static final int GUEST_OS_FEATURES_FIELD_NUMBER = 4; - private java.util.List guestOsFeatures_; + private java.util.List + guestOsFeatures_; /** + * + * *
    * Output only. Indicates a list of features to enable on the guest operating system.
    * Applicable only for bootable images. Read  Enabling guest operating
    * system features to see a list of available options.
    * 
* - * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List getGuestOsFeaturesList() { + public java.util.List + getGuestOsFeaturesList() { return guestOsFeatures_; } /** + * + * *
    * Output only. Indicates a list of features to enable on the guest operating system.
    * Applicable only for bootable images. Read  Enabling guest operating
    * system features to see a list of available options.
    * 
* - * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeatureOrBuilder> getGuestOsFeaturesOrBuilderList() { return guestOsFeatures_; } /** + * + * *
    * Output only. Indicates a list of features to enable on the guest operating system.
    * Applicable only for bootable images. Read  Enabling guest operating
    * system features to see a list of available options.
    * 
* - * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getGuestOsFeaturesCount() { return guestOsFeatures_.size(); } /** + * + * *
    * Output only. Indicates a list of features to enable on the guest operating system.
    * Applicable only for bootable images. Read  Enabling guest operating
    * system features to see a list of available options.
    * 
* - * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature getGuestOsFeatures(int index) { + public com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature getGuestOsFeatures( + int index) { return guestOsFeatures_.get(index); } /** + * + * *
    * Output only. Indicates a list of features to enable on the guest operating system.
    * Applicable only for bootable images. Read  Enabling guest operating
    * system features to see a list of available options.
    * 
* - * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeatureOrBuilder getGuestOsFeaturesOrBuilder( - int index) { + public com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeatureOrBuilder + getGuestOsFeaturesOrBuilder(int index) { return guestOsFeatures_.get(index); } public static final int INDEX_FIELD_NUMBER = 5; private int index_; /** + * + * *
    * Output only. A zero-based index to this disk, where 0 is reserved for the
    * boot disk. If you have many disks attached to an instance, each disk would
@@ -911,6 +1011,7 @@ public com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeatureOrBuilder ge
    * 
* * int32 index = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The index. */ @java.lang.Override @@ -921,6 +1022,8 @@ public int getIndex() { public static final int INITIALIZE_PARAMS_FIELD_NUMBER = 6; private com.google.cloud.notebooks.v1.LocalDiskInitializeParams initializeParams_; /** + * + * *
    * Input only. Specifies the parameters for a new disk that will be created
    * alongside the new instance. Use initialization parameters to create boot
@@ -929,7 +1032,10 @@ public int getIndex() {
    * define one or the other, but not both.
    * 
* - * .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return Whether the initializeParams field is set. */ @java.lang.Override @@ -937,6 +1043,8 @@ public boolean hasInitializeParams() { return initializeParams_ != null; } /** + * + * *
    * Input only. Specifies the parameters for a new disk that will be created
    * alongside the new instance. Use initialization parameters to create boot
@@ -945,14 +1053,21 @@ public boolean hasInitializeParams() {
    * define one or the other, but not both.
    * 
* - * .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The initializeParams. */ @java.lang.Override public com.google.cloud.notebooks.v1.LocalDiskInitializeParams getInitializeParams() { - return initializeParams_ == null ? com.google.cloud.notebooks.v1.LocalDiskInitializeParams.getDefaultInstance() : initializeParams_; + return initializeParams_ == null + ? com.google.cloud.notebooks.v1.LocalDiskInitializeParams.getDefaultInstance() + : initializeParams_; } /** + * + * *
    * Input only. Specifies the parameters for a new disk that will be created
    * alongside the new instance. Use initialization parameters to create boot
@@ -961,16 +1076,21 @@ public com.google.cloud.notebooks.v1.LocalDiskInitializeParams getInitializePara
    * define one or the other, but not both.
    * 
* - * .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.notebooks.v1.LocalDiskInitializeParamsOrBuilder getInitializeParamsOrBuilder() { + public com.google.cloud.notebooks.v1.LocalDiskInitializeParamsOrBuilder + getInitializeParamsOrBuilder() { return getInitializeParams(); } public static final int INTERFACE_FIELD_NUMBER = 7; private volatile java.lang.Object interface_; /** + * + * *
    * Specifies the disk interface to use for attaching this disk, which is
    * either SCSI or NVME. The default is SCSI. Persistent disks must always use
@@ -983,6 +1103,7 @@ public com.google.cloud.notebooks.v1.LocalDiskInitializeParamsOrBuilder getIniti
    * 
* * string interface = 7; + * * @return The interface. */ @java.lang.Override @@ -991,14 +1112,15 @@ public java.lang.String getInterface() { 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(); interface_ = s; return s; } } /** + * + * *
    * Specifies the disk interface to use for attaching this disk, which is
    * either SCSI or NVME. The default is SCSI. Persistent disks must always use
@@ -1011,16 +1133,15 @@ public java.lang.String getInterface() {
    * 
* * string interface = 7; + * * @return The bytes for interface. */ @java.lang.Override - public com.google.protobuf.ByteString - getInterfaceBytes() { + public com.google.protobuf.ByteString getInterfaceBytes() { java.lang.Object ref = interface_; 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); interface_ = b; return b; } else { @@ -1031,11 +1152,14 @@ public java.lang.String getInterface() { public static final int KIND_FIELD_NUMBER = 8; private volatile java.lang.Object kind_; /** + * + * *
    * Output only. Type of the resource. Always compute#attachedDisk for attached disks.
    * 
* * string kind = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The kind. */ @java.lang.Override @@ -1044,29 +1168,29 @@ public java.lang.String getKind() { 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(); kind_ = s; return s; } } /** + * + * *
    * Output only. Type of the resource. Always compute#attachedDisk for attached disks.
    * 
* * string kind = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for kind. */ @java.lang.Override - public com.google.protobuf.ByteString - getKindBytes() { + public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; 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); kind_ = b; return b; } else { @@ -1077,34 +1201,42 @@ public java.lang.String getKind() { public static final int LICENSES_FIELD_NUMBER = 9; private com.google.protobuf.LazyStringList licenses_; /** + * + * *
    * Output only. Any valid publicly visible licenses.
    * 
* * repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return A list containing the licenses. */ - public com.google.protobuf.ProtocolStringList - getLicensesList() { + public com.google.protobuf.ProtocolStringList getLicensesList() { return licenses_; } /** + * + * *
    * Output only. Any valid publicly visible licenses.
    * 
* * repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The count of licenses. */ public int getLicensesCount() { return licenses_.size(); } /** + * + * *
    * Output only. Any valid publicly visible licenses.
    * 
* * repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the element to return. * @return The licenses at the given index. */ @@ -1112,22 +1244,26 @@ public java.lang.String getLicenses(int index) { return licenses_.get(index); } /** + * + * *
    * Output only. Any valid publicly visible licenses.
    * 
* * repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the licenses at the given index. */ - public com.google.protobuf.ByteString - getLicensesBytes(int index) { + public com.google.protobuf.ByteString getLicensesBytes(int index) { return licenses_.getByteString(index); } public static final int MODE_FIELD_NUMBER = 10; private volatile java.lang.Object mode_; /** + * + * *
    * The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If
    * not specified, the default is to attach the disk in READ_WRITE mode.
@@ -1137,6 +1273,7 @@ public java.lang.String getLicenses(int index) {
    * 
* * string mode = 10; + * * @return The mode. */ @java.lang.Override @@ -1145,14 +1282,15 @@ public java.lang.String getMode() { 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(); mode_ = s; return s; } } /** + * + * *
    * The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If
    * not specified, the default is to attach the disk in READ_WRITE mode.
@@ -1162,16 +1300,15 @@ public java.lang.String getMode() {
    * 
* * string mode = 10; + * * @return The bytes for mode. */ @java.lang.Override - public com.google.protobuf.ByteString - getModeBytes() { + public com.google.protobuf.ByteString getModeBytes() { java.lang.Object ref = mode_; 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); mode_ = b; return b; } else { @@ -1182,12 +1319,15 @@ public java.lang.String getMode() { public static final int SOURCE_FIELD_NUMBER = 11; private volatile java.lang.Object source_; /** + * + * *
    * Specifies a valid partial or full URL to an existing Persistent Disk
    * resource.
    * 
* * string source = 11; + * * @return The source. */ @java.lang.Override @@ -1196,30 +1336,30 @@ public java.lang.String getSource() { 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(); source_ = s; return s; } } /** + * + * *
    * Specifies a valid partial or full URL to an existing Persistent Disk
    * resource.
    * 
* * string source = 11; + * * @return The bytes for source. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceBytes() { + public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object 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); source_ = b; return b; } else { @@ -1230,6 +1370,8 @@ public java.lang.String getSource() { public static final int TYPE_FIELD_NUMBER = 12; private volatile java.lang.Object type_; /** + * + * *
    * Specifies the type of the disk, either SCRATCH or PERSISTENT. If not
    * specified, the default is PERSISTENT.
@@ -1239,6 +1381,7 @@ public java.lang.String getSource() {
    * 
* * string type = 12; + * * @return The type. */ @java.lang.Override @@ -1247,14 +1390,15 @@ 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; } } /** + * + * *
    * Specifies the type of the disk, either SCRATCH or PERSISTENT. If not
    * specified, the default is PERSISTENT.
@@ -1264,16 +1408,15 @@ public java.lang.String getType() {
    * 
* * string type = 12; + * * @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 { @@ -1282,6 +1425,7 @@ public java.lang.String getType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1293,8 +1437,7 @@ 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 (autoDelete_ != false) { output.writeBool(1, autoDelete_); } @@ -1341,27 +1484,22 @@ public int getSerializedSize() { size = 0; if (autoDelete_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, autoDelete_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, autoDelete_); } if (boot_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, boot_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, boot_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, deviceName_); } for (int i = 0; i < guestOsFeatures_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, guestOsFeatures_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, guestOsFeatures_.get(i)); } if (index_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, index_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, index_); } if (initializeParams_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getInitializeParams()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getInitializeParams()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(interface_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, interface_); @@ -1394,40 +1532,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.cloud.notebooks.v1.LocalDisk)) { return super.equals(obj); } com.google.cloud.notebooks.v1.LocalDisk other = (com.google.cloud.notebooks.v1.LocalDisk) obj; - if (getAutoDelete() - != other.getAutoDelete()) return false; - if (getBoot() - != other.getBoot()) return false; - if (!getDeviceName() - .equals(other.getDeviceName())) return false; - if (!getGuestOsFeaturesList() - .equals(other.getGuestOsFeaturesList())) return false; - if (getIndex() - != other.getIndex()) return false; + if (getAutoDelete() != other.getAutoDelete()) return false; + if (getBoot() != other.getBoot()) return false; + if (!getDeviceName().equals(other.getDeviceName())) return false; + if (!getGuestOsFeaturesList().equals(other.getGuestOsFeaturesList())) return false; + if (getIndex() != other.getIndex()) return false; if (hasInitializeParams() != other.hasInitializeParams()) return false; if (hasInitializeParams()) { - if (!getInitializeParams() - .equals(other.getInitializeParams())) return false; - } - if (!getInterface() - .equals(other.getInterface())) return false; - if (!getKind() - .equals(other.getKind())) return false; - if (!getLicensesList() - .equals(other.getLicensesList())) return false; - if (!getMode() - .equals(other.getMode())) return false; - if (!getSource() - .equals(other.getSource())) return false; - if (!getType() - .equals(other.getType())) return false; + if (!getInitializeParams().equals(other.getInitializeParams())) return false; + } + if (!getInterface().equals(other.getInterface())) return false; + if (!getKind().equals(other.getKind())) return false; + if (!getLicensesList().equals(other.getLicensesList())) return false; + if (!getMode().equals(other.getMode())) return false; + if (!getSource().equals(other.getSource())) return false; + if (!getType().equals(other.getType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1440,11 +1566,9 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + AUTO_DELETE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAutoDelete()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoDelete()); hash = (37 * hash) + BOOT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getBoot()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBoot()); hash = (37 * hash) + DEVICE_NAME_FIELD_NUMBER; hash = (53 * hash) + getDeviceName().hashCode(); if (getGuestOsFeaturesCount() > 0) { @@ -1476,130 +1600,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.notebooks.v1.LocalDisk parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.notebooks.v1.LocalDisk parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.LocalDisk 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.cloud.notebooks.v1.LocalDisk parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.LocalDisk parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.LocalDisk parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.LocalDisk 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.cloud.notebooks.v1.LocalDisk 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.cloud.notebooks.v1.LocalDisk 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.cloud.notebooks.v1.LocalDisk parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.LocalDisk parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.LocalDisk 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.cloud.notebooks.v1.LocalDisk 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.cloud.notebooks.v1.LocalDisk 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.cloud.notebooks.v1.LocalDisk 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; } /** + * + * *
    * A Local attached disk resource.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.LocalDisk} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.LocalDisk) com.google.cloud.notebooks.v1.LocalDiskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_LocalDisk_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_LocalDisk_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_LocalDisk_fieldAccessorTable + return com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_LocalDisk_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.LocalDisk.class, com.google.cloud.notebooks.v1.LocalDisk.Builder.class); + com.google.cloud.notebooks.v1.LocalDisk.class, + com.google.cloud.notebooks.v1.LocalDisk.Builder.class); } // Construct using com.google.cloud.notebooks.v1.LocalDisk.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1640,9 +1770,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_LocalDisk_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_LocalDisk_descriptor; } @java.lang.Override @@ -1661,7 +1791,8 @@ public com.google.cloud.notebooks.v1.LocalDisk build() { @java.lang.Override public com.google.cloud.notebooks.v1.LocalDisk buildPartial() { - com.google.cloud.notebooks.v1.LocalDisk result = new com.google.cloud.notebooks.v1.LocalDisk(this); + com.google.cloud.notebooks.v1.LocalDisk result = + new com.google.cloud.notebooks.v1.LocalDisk(this); int from_bitField0_ = bitField0_; result.autoDelete_ = autoDelete_; result.boot_ = boot_; @@ -1699,38 +1830,39 @@ public com.google.cloud.notebooks.v1.LocalDisk buildPartial() { 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.cloud.notebooks.v1.LocalDisk) { - return mergeFrom((com.google.cloud.notebooks.v1.LocalDisk)other); + return mergeFrom((com.google.cloud.notebooks.v1.LocalDisk) other); } else { super.mergeFrom(other); return this; @@ -1767,9 +1899,10 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.LocalDisk other) { guestOsFeaturesBuilder_ = null; guestOsFeatures_ = other.guestOsFeatures_; bitField0_ = (bitField0_ & ~0x00000001); - guestOsFeaturesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getGuestOsFeaturesFieldBuilder() : null; + guestOsFeaturesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGuestOsFeaturesFieldBuilder() + : null; } else { guestOsFeaturesBuilder_.addAllMessages(other.guestOsFeatures_); } @@ -1837,83 +1970,95 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - autoDelete_ = input.readBool(); - - break; - } // case 8 - case 16: { - boot_ = input.readBool(); + case 8: + { + autoDelete_ = input.readBool(); - break; - } // case 16 - case 26: { - deviceName_ = input.readStringRequireUtf8(); + break; + } // case 8 + case 16: + { + boot_ = input.readBool(); - break; - } // case 26 - case 34: { - com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature m = - input.readMessage( - com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.parser(), - extensionRegistry); - if (guestOsFeaturesBuilder_ == null) { - ensureGuestOsFeaturesIsMutable(); - guestOsFeatures_.add(m); - } else { - guestOsFeaturesBuilder_.addMessage(m); - } - break; - } // case 34 - case 40: { - index_ = input.readInt32(); + break; + } // case 16 + case 26: + { + deviceName_ = input.readStringRequireUtf8(); - break; - } // case 40 - case 50: { - input.readMessage( - getInitializeParamsFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 26 + case 34: + { + com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature m = + input.readMessage( + com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.parser(), + extensionRegistry); + if (guestOsFeaturesBuilder_ == null) { + ensureGuestOsFeaturesIsMutable(); + guestOsFeatures_.add(m); + } else { + guestOsFeaturesBuilder_.addMessage(m); + } + break; + } // case 34 + case 40: + { + index_ = input.readInt32(); - break; - } // case 50 - case 58: { - interface_ = input.readStringRequireUtf8(); + break; + } // case 40 + case 50: + { + input.readMessage( + getInitializeParamsFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 58 - case 66: { - kind_ = input.readStringRequireUtf8(); + break; + } // case 50 + case 58: + { + interface_ = input.readStringRequireUtf8(); - break; - } // case 66 - case 74: { - java.lang.String s = input.readStringRequireUtf8(); - ensureLicensesIsMutable(); - licenses_.add(s); - break; - } // case 74 - case 82: { - mode_ = input.readStringRequireUtf8(); + break; + } // case 58 + case 66: + { + kind_ = input.readStringRequireUtf8(); - break; - } // case 82 - case 90: { - source_ = input.readStringRequireUtf8(); + break; + } // case 66 + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureLicensesIsMutable(); + licenses_.add(s); + break; + } // case 74 + case 82: + { + mode_ = input.readStringRequireUtf8(); - break; - } // case 90 - case 98: { - type_ = input.readStringRequireUtf8(); + break; + } // case 82 + case 90: + { + source_ = input.readStringRequireUtf8(); - break; - } // case 98 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 90 + case 98: + { + type_ = input.readStringRequireUtf8(); + + 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) { @@ -1923,16 +2068,20 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private boolean autoDelete_ ; + private boolean autoDelete_; /** + * + * *
      * Optional. Output only. Specifies whether the disk will be auto-deleted when the
      * instance is deleted (but not when the disk is detached from the instance).
      * 
* * bool auto_delete = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The autoDelete. */ @java.lang.Override @@ -1940,45 +2089,54 @@ public boolean getAutoDelete() { return autoDelete_; } /** + * + * *
      * Optional. Output only. Specifies whether the disk will be auto-deleted when the
      * instance is deleted (but not when the disk is detached from the instance).
      * 
* * bool auto_delete = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The autoDelete to set. * @return This builder for chaining. */ public Builder setAutoDelete(boolean value) { - + autoDelete_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Output only. Specifies whether the disk will be auto-deleted when the
      * instance is deleted (but not when the disk is detached from the instance).
      * 
* * bool auto_delete = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearAutoDelete() { - + autoDelete_ = false; onChanged(); return this; } - private boolean boot_ ; + private boolean boot_; /** + * + * *
      * Optional. Output only. Indicates that this is a boot disk. The virtual machine
      * will use the first partition of the disk for its root filesystem.
      * 
* * bool boot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The boot. */ @java.lang.Override @@ -1986,32 +2144,38 @@ public boolean getBoot() { return boot_; } /** + * + * *
      * Optional. Output only. Indicates that this is a boot disk. The virtual machine
      * will use the first partition of the disk for its root filesystem.
      * 
* * bool boot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The boot to set. * @return This builder for chaining. */ public Builder setBoot(boolean value) { - + boot_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Output only. Indicates that this is a boot disk. The virtual machine
      * will use the first partition of the disk for its root filesystem.
      * 
* * bool boot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearBoot() { - + boot_ = false; onChanged(); return this; @@ -2019,6 +2183,8 @@ public Builder clearBoot() { private java.lang.Object deviceName_ = ""; /** + * + * *
      * Optional. Output only. Specifies a unique device name
      * of your choice that is reflected into the
@@ -2031,13 +2197,13 @@ public Builder clearBoot() {
      * 
* * string device_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The deviceName. */ public java.lang.String getDeviceName() { java.lang.Object ref = deviceName_; 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(); deviceName_ = s; return s; @@ -2046,6 +2212,8 @@ public java.lang.String getDeviceName() { } } /** + * + * *
      * Optional. Output only. Specifies a unique device name
      * of your choice that is reflected into the
@@ -2058,15 +2226,14 @@ public java.lang.String getDeviceName() {
      * 
* * string device_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for deviceName. */ - public com.google.protobuf.ByteString - getDeviceNameBytes() { + public com.google.protobuf.ByteString getDeviceNameBytes() { java.lang.Object ref = deviceName_; 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); deviceName_ = b; return b; } else { @@ -2074,6 +2241,8 @@ public java.lang.String getDeviceName() { } } /** + * + * *
      * Optional. Output only. Specifies a unique device name
      * of your choice that is reflected into the
@@ -2086,20 +2255,22 @@ public java.lang.String getDeviceName() {
      * 
* * string device_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The deviceName to set. * @return This builder for chaining. */ - public Builder setDeviceName( - java.lang.String value) { + public Builder setDeviceName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + deviceName_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Output only. Specifies a unique device name
      * of your choice that is reflected into the
@@ -2112,15 +2283,18 @@ public Builder setDeviceName(
      * 
* * string device_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDeviceName() { - + deviceName_ = getDefaultInstance().getDeviceName(); onChanged(); return this; } /** + * + * *
      * Optional. Output only. Specifies a unique device name
      * of your choice that is reflected into the
@@ -2133,43 +2307,54 @@ public Builder clearDeviceName() {
      * 
* * string device_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for deviceName to set. * @return This builder for chaining. */ - public Builder setDeviceNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDeviceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deviceName_ = value; onChanged(); return this; } - private java.util.List guestOsFeatures_ = - java.util.Collections.emptyList(); + private java.util.List + guestOsFeatures_ = java.util.Collections.emptyList(); + private void ensureGuestOsFeaturesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - guestOsFeatures_ = new java.util.ArrayList(guestOsFeatures_); + guestOsFeatures_ = + new java.util.ArrayList( + guestOsFeatures_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature, com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.Builder, com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeatureOrBuilder> guestOsFeaturesBuilder_; + com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature, + com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.Builder, + com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeatureOrBuilder> + guestOsFeaturesBuilder_; /** + * + * *
      * Output only. Indicates a list of features to enable on the guest operating system.
      * Applicable only for bootable images. Read  Enabling guest operating
      * system features to see a list of available options.
      * 
* - * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List getGuestOsFeaturesList() { + public java.util.List + getGuestOsFeaturesList() { if (guestOsFeaturesBuilder_ == null) { return java.util.Collections.unmodifiableList(guestOsFeatures_); } else { @@ -2177,13 +2362,17 @@ public java.util.List * Output only. Indicates a list of features to enable on the guest operating system. * Applicable only for bootable images. Read Enabling guest operating * system features to see a list of available options. *
* - * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getGuestOsFeaturesCount() { if (guestOsFeaturesBuilder_ == null) { @@ -2193,15 +2382,20 @@ public int getGuestOsFeaturesCount() { } } /** + * + * *
      * Output only. Indicates a list of features to enable on the guest operating system.
      * Applicable only for bootable images. Read  Enabling guest operating
      * system features to see a list of available options.
      * 
* - * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature getGuestOsFeatures(int index) { + public com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature getGuestOsFeatures( + int index) { if (guestOsFeaturesBuilder_ == null) { return guestOsFeatures_.get(index); } else { @@ -2209,13 +2403,17 @@ public com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature getGuestOsF } } /** + * + * *
      * Output only. Indicates a list of features to enable on the guest operating system.
      * Applicable only for bootable images. Read  Enabling guest operating
      * system features to see a list of available options.
      * 
* - * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setGuestOsFeatures( int index, com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature value) { @@ -2232,16 +2430,21 @@ public Builder setGuestOsFeatures( return this; } /** + * + * *
      * Output only. Indicates a list of features to enable on the guest operating system.
      * Applicable only for bootable images. Read  Enabling guest operating
      * system features to see a list of available options.
      * 
* - * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setGuestOsFeatures( - int index, com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.Builder builderForValue) { + int index, + com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.Builder builderForValue) { if (guestOsFeaturesBuilder_ == null) { ensureGuestOsFeaturesIsMutable(); guestOsFeatures_.set(index, builderForValue.build()); @@ -2252,15 +2455,20 @@ public Builder setGuestOsFeatures( return this; } /** + * + * *
      * Output only. Indicates a list of features to enable on the guest operating system.
      * Applicable only for bootable images. Read  Enabling guest operating
      * system features to see a list of available options.
      * 
* - * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addGuestOsFeatures(com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature value) { + public Builder addGuestOsFeatures( + com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature value) { if (guestOsFeaturesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2274,13 +2482,17 @@ public Builder addGuestOsFeatures(com.google.cloud.notebooks.v1.LocalDisk.Runtim return this; } /** + * + * *
      * Output only. Indicates a list of features to enable on the guest operating system.
      * Applicable only for bootable images. Read  Enabling guest operating
      * system features to see a list of available options.
      * 
* - * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addGuestOsFeatures( int index, com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature value) { @@ -2297,13 +2509,17 @@ public Builder addGuestOsFeatures( return this; } /** + * + * *
      * Output only. Indicates a list of features to enable on the guest operating system.
      * Applicable only for bootable images. Read  Enabling guest operating
      * system features to see a list of available options.
      * 
* - * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addGuestOsFeatures( com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.Builder builderForValue) { @@ -2317,16 +2533,21 @@ public Builder addGuestOsFeatures( return this; } /** + * + * *
      * Output only. Indicates a list of features to enable on the guest operating system.
      * Applicable only for bootable images. Read  Enabling guest operating
      * system features to see a list of available options.
      * 
* - * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addGuestOsFeatures( - int index, com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.Builder builderForValue) { + int index, + com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.Builder builderForValue) { if (guestOsFeaturesBuilder_ == null) { ensureGuestOsFeaturesIsMutable(); guestOsFeatures_.add(index, builderForValue.build()); @@ -2337,20 +2558,24 @@ public Builder addGuestOsFeatures( return this; } /** + * + * *
      * Output only. Indicates a list of features to enable on the guest operating system.
      * Applicable only for bootable images. Read  Enabling guest operating
      * system features to see a list of available options.
      * 
* - * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllGuestOsFeatures( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (guestOsFeaturesBuilder_ == null) { ensureGuestOsFeaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, guestOsFeatures_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, guestOsFeatures_); onChanged(); } else { guestOsFeaturesBuilder_.addAllMessages(values); @@ -2358,13 +2583,17 @@ public Builder addAllGuestOsFeatures( return this; } /** + * + * *
      * Output only. Indicates a list of features to enable on the guest operating system.
      * Applicable only for bootable images. Read  Enabling guest operating
      * system features to see a list of available options.
      * 
* - * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearGuestOsFeatures() { if (guestOsFeaturesBuilder_ == null) { @@ -2377,13 +2606,17 @@ public Builder clearGuestOsFeatures() { return this; } /** + * + * *
      * Output only. Indicates a list of features to enable on the guest operating system.
      * Applicable only for bootable images. Read  Enabling guest operating
      * system features to see a list of available options.
      * 
* - * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeGuestOsFeatures(int index) { if (guestOsFeaturesBuilder_ == null) { @@ -2396,45 +2629,59 @@ public Builder removeGuestOsFeatures(int index) { return this; } /** + * + * *
      * Output only. Indicates a list of features to enable on the guest operating system.
      * Applicable only for bootable images. Read  Enabling guest operating
      * system features to see a list of available options.
      * 
* - * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.Builder getGuestOsFeaturesBuilder( - int index) { + public com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.Builder + getGuestOsFeaturesBuilder(int index) { return getGuestOsFeaturesFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Indicates a list of features to enable on the guest operating system.
      * Applicable only for bootable images. Read  Enabling guest operating
      * system features to see a list of available options.
      * 
* - * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeatureOrBuilder getGuestOsFeaturesOrBuilder( - int index) { + public com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeatureOrBuilder + getGuestOsFeaturesOrBuilder(int index) { if (guestOsFeaturesBuilder_ == null) { - return guestOsFeatures_.get(index); } else { + return guestOsFeatures_.get(index); + } else { return guestOsFeaturesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Indicates a list of features to enable on the guest operating system.
      * Applicable only for bootable images. Read  Enabling guest operating
      * system features to see a list of available options.
      * 
* - * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getGuestOsFeaturesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeatureOrBuilder> + getGuestOsFeaturesOrBuilderList() { if (guestOsFeaturesBuilder_ != null) { return guestOsFeaturesBuilder_.getMessageOrBuilderList(); } else { @@ -2442,51 +2689,73 @@ public com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeatureOrBuilder ge } } /** + * + * *
      * Output only. Indicates a list of features to enable on the guest operating system.
      * Applicable only for bootable images. Read  Enabling guest operating
      * system features to see a list of available options.
      * 
* - * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.Builder addGuestOsFeaturesBuilder() { - return getGuestOsFeaturesFieldBuilder().addBuilder( - com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.getDefaultInstance()); + public com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.Builder + addGuestOsFeaturesBuilder() { + return getGuestOsFeaturesFieldBuilder() + .addBuilder( + com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.getDefaultInstance()); } /** + * + * *
      * Output only. Indicates a list of features to enable on the guest operating system.
      * Applicable only for bootable images. Read  Enabling guest operating
      * system features to see a list of available options.
      * 
* - * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.Builder addGuestOsFeaturesBuilder( - int index) { - return getGuestOsFeaturesFieldBuilder().addBuilder( - index, com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.getDefaultInstance()); + public com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.Builder + addGuestOsFeaturesBuilder(int index) { + return getGuestOsFeaturesFieldBuilder() + .addBuilder( + index, + com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.getDefaultInstance()); } /** + * + * *
      * Output only. Indicates a list of features to enable on the guest operating system.
      * Applicable only for bootable images. Read  Enabling guest operating
      * system features to see a list of available options.
      * 
* - * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getGuestOsFeaturesBuilderList() { + public java.util.List + getGuestOsFeaturesBuilderList() { return getGuestOsFeaturesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature, com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.Builder, com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeatureOrBuilder> + com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature, + com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.Builder, + com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeatureOrBuilder> getGuestOsFeaturesFieldBuilder() { if (guestOsFeaturesBuilder_ == null) { - guestOsFeaturesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature, com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.Builder, com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeatureOrBuilder>( + guestOsFeaturesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature, + com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.Builder, + com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeatureOrBuilder>( guestOsFeatures_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2496,8 +2765,10 @@ public com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.Builder add return guestOsFeaturesBuilder_; } - private int index_ ; + private int index_; /** + * + * *
      * Output only. A zero-based index to this disk, where 0 is reserved for the
      * boot disk. If you have many disks attached to an instance, each disk would
@@ -2505,6 +2776,7 @@ public com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature.Builder add
      * 
* * int32 index = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The index. */ @java.lang.Override @@ -2512,6 +2784,8 @@ public int getIndex() { return index_; } /** + * + * *
      * Output only. A zero-based index to this disk, where 0 is reserved for the
      * boot disk. If you have many disks attached to an instance, each disk would
@@ -2519,16 +2793,19 @@ public int getIndex() {
      * 
* * int32 index = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The index to set. * @return This builder for chaining. */ public Builder setIndex(int value) { - + index_ = value; onChanged(); return this; } /** + * + * *
      * Output only. A zero-based index to this disk, where 0 is reserved for the
      * boot disk. If you have many disks attached to an instance, each disk would
@@ -2536,10 +2813,11 @@ public Builder setIndex(int value) {
      * 
* * int32 index = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearIndex() { - + index_ = 0; onChanged(); return this; @@ -2547,8 +2825,13 @@ public Builder clearIndex() { private com.google.cloud.notebooks.v1.LocalDiskInitializeParams initializeParams_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.LocalDiskInitializeParams, com.google.cloud.notebooks.v1.LocalDiskInitializeParams.Builder, com.google.cloud.notebooks.v1.LocalDiskInitializeParamsOrBuilder> initializeParamsBuilder_; + com.google.cloud.notebooks.v1.LocalDiskInitializeParams, + com.google.cloud.notebooks.v1.LocalDiskInitializeParams.Builder, + com.google.cloud.notebooks.v1.LocalDiskInitializeParamsOrBuilder> + initializeParamsBuilder_; /** + * + * *
      * Input only. Specifies the parameters for a new disk that will be created
      * alongside the new instance. Use initialization parameters to create boot
@@ -2557,13 +2840,18 @@ public Builder clearIndex() {
      * define one or the other, but not both.
      * 
* - * .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return Whether the initializeParams field is set. */ public boolean hasInitializeParams() { return initializeParamsBuilder_ != null || initializeParams_ != null; } /** + * + * *
      * Input only. Specifies the parameters for a new disk that will be created
      * alongside the new instance. Use initialization parameters to create boot
@@ -2572,17 +2860,24 @@ public boolean hasInitializeParams() {
      * define one or the other, but not both.
      * 
* - * .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The initializeParams. */ public com.google.cloud.notebooks.v1.LocalDiskInitializeParams getInitializeParams() { if (initializeParamsBuilder_ == null) { - return initializeParams_ == null ? com.google.cloud.notebooks.v1.LocalDiskInitializeParams.getDefaultInstance() : initializeParams_; + return initializeParams_ == null + ? com.google.cloud.notebooks.v1.LocalDiskInitializeParams.getDefaultInstance() + : initializeParams_; } else { return initializeParamsBuilder_.getMessage(); } } /** + * + * *
      * Input only. Specifies the parameters for a new disk that will be created
      * alongside the new instance. Use initialization parameters to create boot
@@ -2591,9 +2886,12 @@ public com.google.cloud.notebooks.v1.LocalDiskInitializeParams getInitializePara
      * define one or the other, but not both.
      * 
* - * .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public Builder setInitializeParams(com.google.cloud.notebooks.v1.LocalDiskInitializeParams value) { + public Builder setInitializeParams( + com.google.cloud.notebooks.v1.LocalDiskInitializeParams value) { if (initializeParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2607,6 +2905,8 @@ public Builder setInitializeParams(com.google.cloud.notebooks.v1.LocalDiskInitia return this; } /** + * + * *
      * Input only. Specifies the parameters for a new disk that will be created
      * alongside the new instance. Use initialization parameters to create boot
@@ -2615,7 +2915,9 @@ public Builder setInitializeParams(com.google.cloud.notebooks.v1.LocalDiskInitia
      * define one or the other, but not both.
      * 
* - * .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder setInitializeParams( com.google.cloud.notebooks.v1.LocalDiskInitializeParams.Builder builderForValue) { @@ -2629,6 +2931,8 @@ public Builder setInitializeParams( return this; } /** + * + * *
      * Input only. Specifies the parameters for a new disk that will be created
      * alongside the new instance. Use initialization parameters to create boot
@@ -2637,13 +2941,18 @@ public Builder setInitializeParams(
      * define one or the other, but not both.
      * 
* - * .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public Builder mergeInitializeParams(com.google.cloud.notebooks.v1.LocalDiskInitializeParams value) { + public Builder mergeInitializeParams( + com.google.cloud.notebooks.v1.LocalDiskInitializeParams value) { if (initializeParamsBuilder_ == null) { if (initializeParams_ != null) { initializeParams_ = - com.google.cloud.notebooks.v1.LocalDiskInitializeParams.newBuilder(initializeParams_).mergeFrom(value).buildPartial(); + com.google.cloud.notebooks.v1.LocalDiskInitializeParams.newBuilder(initializeParams_) + .mergeFrom(value) + .buildPartial(); } else { initializeParams_ = value; } @@ -2655,6 +2964,8 @@ public Builder mergeInitializeParams(com.google.cloud.notebooks.v1.LocalDiskInit return this; } /** + * + * *
      * Input only. Specifies the parameters for a new disk that will be created
      * alongside the new instance. Use initialization parameters to create boot
@@ -2663,7 +2974,9 @@ public Builder mergeInitializeParams(com.google.cloud.notebooks.v1.LocalDiskInit
      * define one or the other, but not both.
      * 
* - * .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ public Builder clearInitializeParams() { if (initializeParamsBuilder_ == null) { @@ -2677,6 +2990,8 @@ public Builder clearInitializeParams() { return this; } /** + * + * *
      * Input only. Specifies the parameters for a new disk that will be created
      * alongside the new instance. Use initialization parameters to create boot
@@ -2685,14 +3000,19 @@ public Builder clearInitializeParams() {
      * define one or the other, but not both.
      * 
* - * .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public com.google.cloud.notebooks.v1.LocalDiskInitializeParams.Builder getInitializeParamsBuilder() { - + public com.google.cloud.notebooks.v1.LocalDiskInitializeParams.Builder + getInitializeParamsBuilder() { + onChanged(); return getInitializeParamsFieldBuilder().getBuilder(); } /** + * + * *
      * Input only. Specifies the parameters for a new disk that will be created
      * alongside the new instance. Use initialization parameters to create boot
@@ -2701,17 +3021,23 @@ public com.google.cloud.notebooks.v1.LocalDiskInitializeParams.Builder getInitia
      * define one or the other, but not both.
      * 
* - * .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ - public com.google.cloud.notebooks.v1.LocalDiskInitializeParamsOrBuilder getInitializeParamsOrBuilder() { + public com.google.cloud.notebooks.v1.LocalDiskInitializeParamsOrBuilder + getInitializeParamsOrBuilder() { if (initializeParamsBuilder_ != null) { return initializeParamsBuilder_.getMessageOrBuilder(); } else { - return initializeParams_ == null ? - com.google.cloud.notebooks.v1.LocalDiskInitializeParams.getDefaultInstance() : initializeParams_; + return initializeParams_ == null + ? com.google.cloud.notebooks.v1.LocalDiskInitializeParams.getDefaultInstance() + : initializeParams_; } } /** + * + * *
      * Input only. Specifies the parameters for a new disk that will be created
      * alongside the new instance. Use initialization parameters to create boot
@@ -2720,17 +3046,22 @@ public com.google.cloud.notebooks.v1.LocalDiskInitializeParamsOrBuilder getIniti
      * define one or the other, but not both.
      * 
* - * .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.LocalDiskInitializeParams, com.google.cloud.notebooks.v1.LocalDiskInitializeParams.Builder, com.google.cloud.notebooks.v1.LocalDiskInitializeParamsOrBuilder> + com.google.cloud.notebooks.v1.LocalDiskInitializeParams, + com.google.cloud.notebooks.v1.LocalDiskInitializeParams.Builder, + com.google.cloud.notebooks.v1.LocalDiskInitializeParamsOrBuilder> getInitializeParamsFieldBuilder() { if (initializeParamsBuilder_ == null) { - initializeParamsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.LocalDiskInitializeParams, com.google.cloud.notebooks.v1.LocalDiskInitializeParams.Builder, com.google.cloud.notebooks.v1.LocalDiskInitializeParamsOrBuilder>( - getInitializeParams(), - getParentForChildren(), - isClean()); + initializeParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.LocalDiskInitializeParams, + com.google.cloud.notebooks.v1.LocalDiskInitializeParams.Builder, + com.google.cloud.notebooks.v1.LocalDiskInitializeParamsOrBuilder>( + getInitializeParams(), getParentForChildren(), isClean()); initializeParams_ = null; } return initializeParamsBuilder_; @@ -2738,6 +3069,8 @@ public com.google.cloud.notebooks.v1.LocalDiskInitializeParamsOrBuilder getIniti private java.lang.Object interface_ = ""; /** + * + * *
      * Specifies the disk interface to use for attaching this disk, which is
      * either SCSI or NVME. The default is SCSI. Persistent disks must always use
@@ -2750,13 +3083,13 @@ public com.google.cloud.notebooks.v1.LocalDiskInitializeParamsOrBuilder getIniti
      * 
* * string interface = 7; + * * @return The interface. */ public java.lang.String getInterface() { java.lang.Object ref = interface_; 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(); interface_ = s; return s; @@ -2765,6 +3098,8 @@ public java.lang.String getInterface() { } } /** + * + * *
      * Specifies the disk interface to use for attaching this disk, which is
      * either SCSI or NVME. The default is SCSI. Persistent disks must always use
@@ -2777,15 +3112,14 @@ public java.lang.String getInterface() {
      * 
* * string interface = 7; + * * @return The bytes for interface. */ - public com.google.protobuf.ByteString - getInterfaceBytes() { + public com.google.protobuf.ByteString getInterfaceBytes() { java.lang.Object ref = interface_; 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); interface_ = b; return b; } else { @@ -2793,6 +3127,8 @@ public java.lang.String getInterface() { } } /** + * + * *
      * Specifies the disk interface to use for attaching this disk, which is
      * either SCSI or NVME. The default is SCSI. Persistent disks must always use
@@ -2805,20 +3141,22 @@ public java.lang.String getInterface() {
      * 
* * string interface = 7; + * * @param value The interface to set. * @return This builder for chaining. */ - public Builder setInterface( - java.lang.String value) { + public Builder setInterface(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + interface_ = value; onChanged(); return this; } /** + * + * *
      * Specifies the disk interface to use for attaching this disk, which is
      * either SCSI or NVME. The default is SCSI. Persistent disks must always use
@@ -2831,15 +3169,18 @@ public Builder setInterface(
      * 
* * string interface = 7; + * * @return This builder for chaining. */ public Builder clearInterface() { - + interface_ = getDefaultInstance().getInterface(); onChanged(); return this; } /** + * + * *
      * Specifies the disk interface to use for attaching this disk, which is
      * either SCSI or NVME. The default is SCSI. Persistent disks must always use
@@ -2852,16 +3193,16 @@ public Builder clearInterface() {
      * 
* * string interface = 7; + * * @param value The bytes for interface to set. * @return This builder for chaining. */ - public Builder setInterfaceBytes( - com.google.protobuf.ByteString value) { + public Builder setInterfaceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + interface_ = value; onChanged(); return this; @@ -2869,18 +3210,20 @@ public Builder setInterfaceBytes( private java.lang.Object kind_ = ""; /** + * + * *
      * Output only. Type of the resource. Always compute#attachedDisk for attached disks.
      * 
* * string kind = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The kind. */ public java.lang.String getKind() { java.lang.Object ref = kind_; 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(); kind_ = s; return s; @@ -2889,20 +3232,21 @@ public java.lang.String getKind() { } } /** + * + * *
      * Output only. Type of the resource. Always compute#attachedDisk for attached disks.
      * 
* * string kind = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for kind. */ - public com.google.protobuf.ByteString - getKindBytes() { + public com.google.protobuf.ByteString getKindBytes() { java.lang.Object ref = kind_; 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); kind_ = b; return b; } else { @@ -2910,95 +3254,112 @@ public java.lang.String getKind() { } } /** + * + * *
      * Output only. Type of the resource. Always compute#attachedDisk for attached disks.
      * 
* * string kind = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The kind to set. * @return This builder for chaining. */ - public Builder setKind( - java.lang.String value) { + public Builder setKind(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kind_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Type of the resource. Always compute#attachedDisk for attached disks.
      * 
* * string kind = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearKind() { - + kind_ = getDefaultInstance().getKind(); onChanged(); return this; } /** + * + * *
      * Output only. Type of the resource. Always compute#attachedDisk for attached disks.
      * 
* * string kind = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for kind to set. * @return This builder for chaining. */ - public Builder setKindBytes( - com.google.protobuf.ByteString value) { + public Builder setKindBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kind_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList licenses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList licenses_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLicensesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { licenses_ = new com.google.protobuf.LazyStringArrayList(licenses_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Output only. Any valid publicly visible licenses.
      * 
* * repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return A list containing the licenses. */ - public com.google.protobuf.ProtocolStringList - getLicensesList() { + public com.google.protobuf.ProtocolStringList getLicensesList() { return licenses_.getUnmodifiableView(); } /** + * + * *
      * Output only. Any valid publicly visible licenses.
      * 
* * repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The count of licenses. */ public int getLicensesCount() { return licenses_.size(); } /** + * + * *
      * Output only. Any valid publicly visible licenses.
      * 
* * repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the element to return. * @return The licenses at the given index. */ @@ -3006,80 +3367,90 @@ public java.lang.String getLicenses(int index) { return licenses_.get(index); } /** + * + * *
      * Output only. Any valid publicly visible licenses.
      * 
* * repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the licenses at the given index. */ - public com.google.protobuf.ByteString - getLicensesBytes(int index) { + public com.google.protobuf.ByteString getLicensesBytes(int index) { return licenses_.getByteString(index); } /** + * + * *
      * Output only. Any valid publicly visible licenses.
      * 
* * repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index to set the value at. * @param value The licenses to set. * @return This builder for chaining. */ - public Builder setLicenses( - int index, java.lang.String value) { + public Builder setLicenses(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLicensesIsMutable(); + throw new NullPointerException(); + } + ensureLicensesIsMutable(); licenses_.set(index, value); onChanged(); return this; } /** + * + * *
      * Output only. Any valid publicly visible licenses.
      * 
* * repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The licenses to add. * @return This builder for chaining. */ - public Builder addLicenses( - java.lang.String value) { + public Builder addLicenses(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLicensesIsMutable(); + throw new NullPointerException(); + } + ensureLicensesIsMutable(); licenses_.add(value); onChanged(); return this; } /** + * + * *
      * Output only. Any valid publicly visible licenses.
      * 
* * repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param values The licenses to add. * @return This builder for chaining. */ - public Builder addAllLicenses( - java.lang.Iterable values) { + public Builder addAllLicenses(java.lang.Iterable values) { ensureLicensesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, licenses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, licenses_); onChanged(); return this; } /** + * + * *
      * Output only. Any valid publicly visible licenses.
      * 
* * repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLicenses() { @@ -3089,20 +3460,22 @@ public Builder clearLicenses() { return this; } /** + * + * *
      * Output only. Any valid publicly visible licenses.
      * 
* * repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes of the licenses to add. * @return This builder for chaining. */ - public Builder addLicensesBytes( - com.google.protobuf.ByteString value) { + public Builder addLicensesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLicensesIsMutable(); licenses_.add(value); onChanged(); @@ -3111,6 +3484,8 @@ public Builder addLicensesBytes( private java.lang.Object mode_ = ""; /** + * + * *
      * The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If
      * not specified, the default is to attach the disk in READ_WRITE mode.
@@ -3120,13 +3495,13 @@ public Builder addLicensesBytes(
      * 
* * string mode = 10; + * * @return The mode. */ public java.lang.String getMode() { java.lang.Object ref = mode_; 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(); mode_ = s; return s; @@ -3135,6 +3510,8 @@ public java.lang.String getMode() { } } /** + * + * *
      * The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If
      * not specified, the default is to attach the disk in READ_WRITE mode.
@@ -3144,15 +3521,14 @@ public java.lang.String getMode() {
      * 
* * string mode = 10; + * * @return The bytes for mode. */ - public com.google.protobuf.ByteString - getModeBytes() { + public com.google.protobuf.ByteString getModeBytes() { java.lang.Object ref = mode_; 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); mode_ = b; return b; } else { @@ -3160,6 +3536,8 @@ public java.lang.String getMode() { } } /** + * + * *
      * The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If
      * not specified, the default is to attach the disk in READ_WRITE mode.
@@ -3169,20 +3547,22 @@ public java.lang.String getMode() {
      * 
* * string mode = 10; + * * @param value The mode to set. * @return This builder for chaining. */ - public Builder setMode( - java.lang.String value) { + public Builder setMode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + mode_ = value; onChanged(); return this; } /** + * + * *
      * The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If
      * not specified, the default is to attach the disk in READ_WRITE mode.
@@ -3192,15 +3572,18 @@ public Builder setMode(
      * 
* * string mode = 10; + * * @return This builder for chaining. */ public Builder clearMode() { - + mode_ = getDefaultInstance().getMode(); onChanged(); return this; } /** + * + * *
      * The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If
      * not specified, the default is to attach the disk in READ_WRITE mode.
@@ -3210,16 +3593,16 @@ public Builder clearMode() {
      * 
* * string mode = 10; + * * @param value The bytes for mode to set. * @return This builder for chaining. */ - public Builder setModeBytes( - com.google.protobuf.ByteString value) { + public Builder setModeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mode_ = value; onChanged(); return this; @@ -3227,19 +3610,21 @@ public Builder setModeBytes( private java.lang.Object source_ = ""; /** + * + * *
      * Specifies a valid partial or full URL to an existing Persistent Disk
      * resource.
      * 
* * string source = 11; + * * @return The source. */ public java.lang.String getSource() { java.lang.Object 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(); source_ = s; return s; @@ -3248,21 +3633,22 @@ public java.lang.String getSource() { } } /** + * + * *
      * Specifies a valid partial or full URL to an existing Persistent Disk
      * resource.
      * 
* * string source = 11; + * * @return The bytes for source. */ - public com.google.protobuf.ByteString - getSourceBytes() { + public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object 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); source_ = b; return b; } else { @@ -3270,57 +3656,64 @@ public java.lang.String getSource() { } } /** + * + * *
      * Specifies a valid partial or full URL to an existing Persistent Disk
      * resource.
      * 
* * string source = 11; + * * @param value The source to set. * @return This builder for chaining. */ - public Builder setSource( - java.lang.String value) { + public Builder setSource(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + source_ = value; onChanged(); return this; } /** + * + * *
      * Specifies a valid partial or full URL to an existing Persistent Disk
      * resource.
      * 
* * string source = 11; + * * @return This builder for chaining. */ public Builder clearSource() { - + source_ = getDefaultInstance().getSource(); onChanged(); return this; } /** + * + * *
      * Specifies a valid partial or full URL to an existing Persistent Disk
      * resource.
      * 
* * string source = 11; + * * @param value The bytes for source to set. * @return This builder for chaining. */ - public Builder setSourceBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + source_ = value; onChanged(); return this; @@ -3328,6 +3721,8 @@ public Builder setSourceBytes( private java.lang.Object type_ = ""; /** + * + * *
      * Specifies the type of the disk, either SCRATCH or PERSISTENT. If not
      * specified, the default is PERSISTENT.
@@ -3337,13 +3732,13 @@ public Builder setSourceBytes(
      * 
* * string type = 12; + * * @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; @@ -3352,6 +3747,8 @@ public java.lang.String getType() { } } /** + * + * *
      * Specifies the type of the disk, either SCRATCH or PERSISTENT. If not
      * specified, the default is PERSISTENT.
@@ -3361,15 +3758,14 @@ public java.lang.String getType() {
      * 
* * string type = 12; + * * @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 { @@ -3377,6 +3773,8 @@ public java.lang.String getType() { } } /** + * + * *
      * Specifies the type of the disk, either SCRATCH or PERSISTENT. If not
      * specified, the default is PERSISTENT.
@@ -3386,20 +3784,22 @@ public java.lang.String getType() {
      * 
* * string type = 12; + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType( - java.lang.String value) { + public Builder setType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + type_ = value; onChanged(); return this; } /** + * + * *
      * Specifies the type of the disk, either SCRATCH or PERSISTENT. If not
      * specified, the default is PERSISTENT.
@@ -3409,15 +3809,18 @@ public Builder setType(
      * 
* * string type = 12; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = getDefaultInstance().getType(); onChanged(); return this; } /** + * + * *
      * Specifies the type of the disk, either SCRATCH or PERSISTENT. If not
      * specified, the default is PERSISTENT.
@@ -3427,23 +3830,23 @@ public Builder clearType() {
      * 
* * string type = 12; + * * @param value The bytes for type to set. * @return This builder for chaining. */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = 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); } @@ -3453,12 +3856,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.LocalDisk) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.LocalDisk) private static final com.google.cloud.notebooks.v1.LocalDisk DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.LocalDisk(); } @@ -3467,27 +3870,27 @@ public static com.google.cloud.notebooks.v1.LocalDisk getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LocalDisk parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocalDisk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -3502,6 +3905,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.LocalDisk getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDiskInitializeParams.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDiskInitializeParams.java similarity index 66% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDiskInitializeParams.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDiskInitializeParams.java index bcfbdacd219f..aab1baf810a9 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDiskInitializeParams.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDiskInitializeParams.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/runtime.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Input only. Specifies the parameters for a new disk that will be created
  * alongside the new instance. Use initialization parameters to create boot
@@ -14,15 +31,16 @@
  *
  * Protobuf type {@code google.cloud.notebooks.v1.LocalDiskInitializeParams}
  */
-public final class LocalDiskInitializeParams extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LocalDiskInitializeParams extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.LocalDiskInitializeParams)
     LocalDiskInitializeParamsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LocalDiskInitializeParams.newBuilder() to construct.
   private LocalDiskInitializeParams(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LocalDiskInitializeParams() {
     description_ = "";
     diskName_ = "";
@@ -31,51 +49,54 @@ private LocalDiskInitializeParams() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LocalDiskInitializeParams();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.notebooks.v1.RuntimeProto
+        .internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_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.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_fieldAccessorTable
+    return com.google.cloud.notebooks.v1.RuntimeProto
+        .internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.notebooks.v1.LocalDiskInitializeParams.class, com.google.cloud.notebooks.v1.LocalDiskInitializeParams.Builder.class);
+            com.google.cloud.notebooks.v1.LocalDiskInitializeParams.class,
+            com.google.cloud.notebooks.v1.LocalDiskInitializeParams.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Possible disk types.
    * 
* * Protobuf enum {@code google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType} */ - public enum DiskType - implements com.google.protobuf.ProtocolMessageEnum { + public enum DiskType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Disk type not set.
      * 
@@ -84,6 +105,8 @@ public enum DiskType */ DISK_TYPE_UNSPECIFIED(0), /** + * + * *
      * Standard persistent disk type.
      * 
@@ -92,6 +115,8 @@ public enum DiskType */ PD_STANDARD(1), /** + * + * *
      * SSD persistent disk type.
      * 
@@ -100,6 +125,8 @@ public enum DiskType */ PD_SSD(2), /** + * + * *
      * Balanced persistent disk type.
      * 
@@ -108,6 +135,8 @@ public enum DiskType */ PD_BALANCED(3), /** + * + * *
      * Extreme persistent disk type.
      * 
@@ -119,6 +148,8 @@ public enum DiskType ; /** + * + * *
      * Disk type not set.
      * 
@@ -127,6 +158,8 @@ public enum DiskType */ public static final int DISK_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Standard persistent disk type.
      * 
@@ -135,6 +168,8 @@ public enum DiskType */ public static final int PD_STANDARD_VALUE = 1; /** + * + * *
      * SSD persistent disk type.
      * 
@@ -143,6 +178,8 @@ public enum DiskType */ public static final int PD_SSD_VALUE = 2; /** + * + * *
      * Balanced persistent disk type.
      * 
@@ -151,6 +188,8 @@ public enum DiskType */ public static final int PD_BALANCED_VALUE = 3; /** + * + * *
      * Extreme persistent disk type.
      * 
@@ -159,7 +198,6 @@ public enum DiskType */ public static final int PD_EXTREME_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -184,51 +222,55 @@ public static DiskType valueOf(int value) { */ public static DiskType forNumber(int value) { switch (value) { - case 0: return DISK_TYPE_UNSPECIFIED; - case 1: return PD_STANDARD; - case 2: return PD_SSD; - case 3: return PD_BALANCED; - case 4: return PD_EXTREME; - default: return null; + case 0: + return DISK_TYPE_UNSPECIFIED; + case 1: + return PD_STANDARD; + case 2: + return PD_SSD; + case 3: + return PD_BALANCED; + case 4: + return PD_EXTREME; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - DiskType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DiskType findValueByNumber(int number) { - return DiskType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DiskType findValueByNumber(int number) { + return DiskType.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.cloud.notebooks.v1.LocalDiskInitializeParams.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.notebooks.v1.LocalDiskInitializeParams.getDescriptor() + .getEnumTypes() + .get(0); } private static final DiskType[] VALUES = values(); - public static DiskType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static DiskType 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; @@ -248,11 +290,14 @@ private DiskType(int value) { public static final int DESCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object description_; /** + * + * *
    * Optional. Provide this property when creating the disk.
    * 
* * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ @java.lang.Override @@ -261,29 +306,29 @@ public java.lang.String getDescription() { 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(); description_ = s; return s; } } /** + * + * *
    * Optional. Provide this property when creating the disk.
    * 
* * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -294,6 +339,8 @@ public java.lang.String getDescription() { public static final int DISK_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object diskName_; /** + * + * *
    * Optional. Specifies the disk name. If not specified, the default is to use the name
    * of the instance. If the disk with the instance name exists already in the
@@ -301,6 +348,7 @@ public java.lang.String getDescription() {
    * 
* * string disk_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The diskName. */ @java.lang.Override @@ -309,14 +357,15 @@ public java.lang.String getDiskName() { 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(); diskName_ = s; return s; } } /** + * + * *
    * Optional. Specifies the disk name. If not specified, the default is to use the name
    * of the instance. If the disk with the instance name exists already in the
@@ -324,16 +373,15 @@ public java.lang.String getDiskName() {
    * 
* * string disk_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for diskName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDiskNameBytes() { + public com.google.protobuf.ByteString getDiskNameBytes() { java.lang.Object ref = diskName_; 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); diskName_ = b; return b; } else { @@ -344,6 +392,8 @@ public java.lang.String getDiskName() { public static final int DISK_SIZE_GB_FIELD_NUMBER = 3; private long diskSizeGb_; /** + * + * *
    * Optional. Specifies the size of the disk in base-2 GB. If not specified, the disk
    * will be the same size as the image (usually 10GB). If specified, the size
@@ -351,6 +401,7 @@ public java.lang.String getDiskName() {
    * 
* * int64 disk_size_gb = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The diskSizeGb. */ @java.lang.Override @@ -361,51 +412,65 @@ public long getDiskSizeGb() { public static final int DISK_TYPE_FIELD_NUMBER = 4; private int diskType_; /** + * + * *
    * Input only. The type of the boot disk attached to this instance, defaults to
    * standard persistent disk (`PD_STANDARD`).
    * 
* - * .google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType disk_type = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType disk_type = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The enum numeric value on the wire for diskType. */ - @java.lang.Override public int getDiskTypeValue() { + @java.lang.Override + public int getDiskTypeValue() { return diskType_; } /** + * + * *
    * Input only. The type of the boot disk attached to this instance, defaults to
    * standard persistent disk (`PD_STANDARD`).
    * 
* - * .google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType disk_type = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType disk_type = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The diskType. */ - @java.lang.Override public com.google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType getDiskType() { + @java.lang.Override + public com.google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType getDiskType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType result = com.google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType.valueOf(diskType_); - return result == null ? com.google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType result = + com.google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType.valueOf(diskType_); + return result == null + ? com.google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType.UNRECOGNIZED + : result; } 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 - .newDefaultInstance( - com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -414,6 +479,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Optional. Labels to apply to this disk. These can be later modified by the
    * disks.setLabels method. This field is only applicable for persistent disks.
@@ -421,22 +488,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
    */
-
   @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 getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. Labels to apply to this disk. These can be later modified by the
    * disks.setLabels method. This field is only applicable for persistent disks.
@@ -445,11 +512,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. Labels to apply to this disk. These can be later modified by the
    * disks.setLabels method. This field is only applicable for persistent disks.
@@ -458,16 +526,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. Labels to apply to this disk. These can be later modified by the
    * disks.setLabels method. This field is only applicable for persistent disks.
@@ -476,12 +544,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -489,6 +556,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -500,8 +568,7 @@ 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(description_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_);
     }
@@ -511,15 +578,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (diskSizeGb_ != 0L) {
       output.writeInt64(3, diskSizeGb_);
     }
-    if (diskType_ != com.google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType.DISK_TYPE_UNSPECIFIED.getNumber()) {
+    if (diskType_
+        != com.google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType.DISK_TYPE_UNSPECIFIED
+            .getNumber()) {
       output.writeEnum(4, diskType_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        5);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5);
     getUnknownFields().writeTo(output);
   }
 
@@ -536,22 +601,22 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, diskName_);
     }
     if (diskSizeGb_ != 0L) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeInt64Size(3, diskSizeGb_);
-    }
-    if (diskType_ != com.google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType.DISK_TYPE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(4, diskType_);
-    }
-    for (java.util.Map.Entry entry
-         : internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(5, labels__);
+      size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, diskSizeGb_);
+    }
+    if (diskType_
+        != com.google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType.DISK_TYPE_UNSPECIFIED
+            .getNumber()) {
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, diskType_);
+    }
+    for (java.util.Map.Entry entry :
+        internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry labels__ =
+          LabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -561,22 +626,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.cloud.notebooks.v1.LocalDiskInitializeParams)) {
       return super.equals(obj);
     }
-    com.google.cloud.notebooks.v1.LocalDiskInitializeParams other = (com.google.cloud.notebooks.v1.LocalDiskInitializeParams) obj;
+    com.google.cloud.notebooks.v1.LocalDiskInitializeParams other =
+        (com.google.cloud.notebooks.v1.LocalDiskInitializeParams) obj;
 
-    if (!getDescription()
-        .equals(other.getDescription())) return false;
-    if (!getDiskName()
-        .equals(other.getDiskName())) return false;
-    if (getDiskSizeGb()
-        != other.getDiskSizeGb()) return false;
+    if (!getDescription().equals(other.getDescription())) return false;
+    if (!getDiskName().equals(other.getDiskName())) return false;
+    if (getDiskSizeGb() != other.getDiskSizeGb()) return false;
     if (diskType_ != other.diskType_) 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;
   }
@@ -593,8 +655,7 @@ public int hashCode() {
     hash = (37 * hash) + DISK_NAME_FIELD_NUMBER;
     hash = (53 * hash) + getDiskName().hashCode();
     hash = (37 * hash) + DISK_SIZE_GB_FIELD_NUMBER;
-    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
-        getDiskSizeGb());
+    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDiskSizeGb());
     hash = (37 * hash) + DISK_TYPE_FIELD_NUMBER;
     hash = (53 * hash) + diskType_;
     if (!internalGetLabels().getMap().isEmpty()) {
@@ -607,96 +668,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.notebooks.v1.LocalDiskInitializeParams 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.cloud.notebooks.v1.LocalDiskInitializeParams 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.cloud.notebooks.v1.LocalDiskInitializeParams parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.notebooks.v1.LocalDiskInitializeParams parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.notebooks.v1.LocalDiskInitializeParams parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.notebooks.v1.LocalDiskInitializeParams 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.cloud.notebooks.v1.LocalDiskInitializeParams parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.notebooks.v1.LocalDiskInitializeParams parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.notebooks.v1.LocalDiskInitializeParams 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.cloud.notebooks.v1.LocalDiskInitializeParams parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.notebooks.v1.LocalDiskInitializeParams parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.notebooks.v1.LocalDiskInitializeParams 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.cloud.notebooks.v1.LocalDiskInitializeParams 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.cloud.notebooks.v1.LocalDiskInitializeParams 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.cloud.notebooks.v1.LocalDiskInitializeParams prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.notebooks.v1.LocalDiskInitializeParams 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;
   }
   /**
+   *
+   *
    * 
    * Input only. Specifies the parameters for a new disk that will be created
    * alongside the new instance. Use initialization parameters to create boot
@@ -707,55 +776,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.notebooks.v1.LocalDiskInitializeParams}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.LocalDiskInitializeParams)
       com.google.cloud.notebooks.v1.LocalDiskInitializeParamsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.notebooks.v1.RuntimeProto
+          .internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_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.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_fieldAccessorTable
+      return com.google.cloud.notebooks.v1.RuntimeProto
+          .internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.notebooks.v1.LocalDiskInitializeParams.class, com.google.cloud.notebooks.v1.LocalDiskInitializeParams.Builder.class);
+              com.google.cloud.notebooks.v1.LocalDiskInitializeParams.class,
+              com.google.cloud.notebooks.v1.LocalDiskInitializeParams.Builder.class);
     }
 
     // Construct using com.google.cloud.notebooks.v1.LocalDiskInitializeParams.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -772,9 +838,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.notebooks.v1.RuntimeProto
+          .internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_descriptor;
     }
 
     @java.lang.Override
@@ -793,7 +859,8 @@ public com.google.cloud.notebooks.v1.LocalDiskInitializeParams build() {
 
     @java.lang.Override
     public com.google.cloud.notebooks.v1.LocalDiskInitializeParams buildPartial() {
-      com.google.cloud.notebooks.v1.LocalDiskInitializeParams result = new com.google.cloud.notebooks.v1.LocalDiskInitializeParams(this);
+      com.google.cloud.notebooks.v1.LocalDiskInitializeParams result =
+          new com.google.cloud.notebooks.v1.LocalDiskInitializeParams(this);
       int from_bitField0_ = bitField0_;
       result.description_ = description_;
       result.diskName_ = diskName_;
@@ -809,38 +876,39 @@ public com.google.cloud.notebooks.v1.LocalDiskInitializeParams buildPartial() {
     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.cloud.notebooks.v1.LocalDiskInitializeParams) {
-        return mergeFrom((com.google.cloud.notebooks.v1.LocalDiskInitializeParams)other);
+        return mergeFrom((com.google.cloud.notebooks.v1.LocalDiskInitializeParams) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -848,7 +916,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.notebooks.v1.LocalDiskInitializeParams other) {
-      if (other == com.google.cloud.notebooks.v1.LocalDiskInitializeParams.getDefaultInstance()) return this;
+      if (other == com.google.cloud.notebooks.v1.LocalDiskInitializeParams.getDefaultInstance())
+        return this;
       if (!other.getDescription().isEmpty()) {
         description_ = other.description_;
         onChanged();
@@ -863,8 +932,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.LocalDiskInitializeParams
       if (other.diskType_ != 0) {
         setDiskTypeValue(other.getDiskTypeValue());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -891,40 +959,48 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              description_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            case 18: {
-              diskName_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 18
-            case 24: {
-              diskSizeGb_ = input.readInt64();
-
-              break;
-            } // case 24
-            case 32: {
-              diskType_ = input.readEnum();
-
-              break;
-            } // case 32
-            case 42: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              break;
-            } // case 42
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                description_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            case 18:
+              {
+                diskName_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 18
+            case 24:
+              {
+                diskSizeGb_ = input.readInt64();
+
+                break;
+              } // case 24
+            case 32:
+              {
+                diskType_ = input.readEnum();
+
+                break;
+              } // case 32
+            case 42:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                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) {
@@ -934,22 +1010,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object description_ = "";
     /**
+     *
+     *
      * 
      * Optional. Provide this property when creating the disk.
      * 
* * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -958,20 +1037,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. Provide this property when creating the disk.
      * 
* * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -979,54 +1059,61 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. Provide this property when creating the disk.
      * 
* * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Provide this property when creating the disk.
      * 
* * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Optional. Provide this property when creating the disk.
      * 
* * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1034,6 +1121,8 @@ public Builder setDescriptionBytes( private java.lang.Object diskName_ = ""; /** + * + * *
      * Optional. Specifies the disk name. If not specified, the default is to use the name
      * of the instance. If the disk with the instance name exists already in the
@@ -1041,13 +1130,13 @@ public Builder setDescriptionBytes(
      * 
* * string disk_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The diskName. */ public java.lang.String getDiskName() { java.lang.Object ref = diskName_; 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(); diskName_ = s; return s; @@ -1056,6 +1145,8 @@ public java.lang.String getDiskName() { } } /** + * + * *
      * Optional. Specifies the disk name. If not specified, the default is to use the name
      * of the instance. If the disk with the instance name exists already in the
@@ -1063,15 +1154,14 @@ public java.lang.String getDiskName() {
      * 
* * string disk_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for diskName. */ - public com.google.protobuf.ByteString - getDiskNameBytes() { + public com.google.protobuf.ByteString getDiskNameBytes() { java.lang.Object ref = diskName_; 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); diskName_ = b; return b; } else { @@ -1079,6 +1169,8 @@ public java.lang.String getDiskName() { } } /** + * + * *
      * Optional. Specifies the disk name. If not specified, the default is to use the name
      * of the instance. If the disk with the instance name exists already in the
@@ -1086,20 +1178,22 @@ public java.lang.String getDiskName() {
      * 
* * string disk_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The diskName to set. * @return This builder for chaining. */ - public Builder setDiskName( - java.lang.String value) { + public Builder setDiskName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + diskName_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Specifies the disk name. If not specified, the default is to use the name
      * of the instance. If the disk with the instance name exists already in the
@@ -1107,15 +1201,18 @@ public Builder setDiskName(
      * 
* * string disk_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDiskName() { - + diskName_ = getDefaultInstance().getDiskName(); onChanged(); return this; } /** + * + * *
      * Optional. Specifies the disk name. If not specified, the default is to use the name
      * of the instance. If the disk with the instance name exists already in the
@@ -1123,23 +1220,25 @@ public Builder clearDiskName() {
      * 
* * string disk_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for diskName to set. * @return This builder for chaining. */ - public Builder setDiskNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDiskNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + diskName_ = value; onChanged(); return this; } - private long diskSizeGb_ ; + private long diskSizeGb_; /** + * + * *
      * Optional. Specifies the size of the disk in base-2 GB. If not specified, the disk
      * will be the same size as the image (usually 10GB). If specified, the size
@@ -1147,6 +1246,7 @@ public Builder setDiskNameBytes(
      * 
* * int64 disk_size_gb = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The diskSizeGb. */ @java.lang.Override @@ -1154,6 +1254,8 @@ public long getDiskSizeGb() { return diskSizeGb_; } /** + * + * *
      * Optional. Specifies the size of the disk in base-2 GB. If not specified, the disk
      * will be the same size as the image (usually 10GB). If specified, the size
@@ -1161,16 +1263,19 @@ public long getDiskSizeGb() {
      * 
* * int64 disk_size_gb = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The diskSizeGb to set. * @return This builder for chaining. */ public Builder setDiskSizeGb(long value) { - + diskSizeGb_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Specifies the size of the disk in base-2 GB. If not specified, the disk
      * will be the same size as the image (usually 10GB). If specified, the size
@@ -1178,10 +1283,11 @@ public Builder setDiskSizeGb(long value) {
      * 
* * int64 disk_size_gb = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDiskSizeGb() { - + diskSizeGb_ = 0L; onChanged(); return this; @@ -1189,99 +1295,128 @@ public Builder clearDiskSizeGb() { private int diskType_ = 0; /** + * + * *
      * Input only. The type of the boot disk attached to this instance, defaults to
      * standard persistent disk (`PD_STANDARD`).
      * 
* - * .google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType disk_type = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType disk_type = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The enum numeric value on the wire for diskType. */ - @java.lang.Override public int getDiskTypeValue() { + @java.lang.Override + public int getDiskTypeValue() { return diskType_; } /** + * + * *
      * Input only. The type of the boot disk attached to this instance, defaults to
      * standard persistent disk (`PD_STANDARD`).
      * 
* - * .google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType disk_type = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType disk_type = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for diskType to set. * @return This builder for chaining. */ public Builder setDiskTypeValue(int value) { - + diskType_ = value; onChanged(); return this; } /** + * + * *
      * Input only. The type of the boot disk attached to this instance, defaults to
      * standard persistent disk (`PD_STANDARD`).
      * 
* - * .google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType disk_type = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType disk_type = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The diskType. */ @java.lang.Override public com.google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType getDiskType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType result = com.google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType.valueOf(diskType_); - return result == null ? com.google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType result = + com.google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType.valueOf(diskType_); + return result == null + ? com.google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType.UNRECOGNIZED + : result; } /** + * + * *
      * Input only. The type of the boot disk attached to this instance, defaults to
      * standard persistent disk (`PD_STANDARD`).
      * 
* - * .google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType disk_type = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType disk_type = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The diskType to set. * @return This builder for chaining. */ - public Builder setDiskType(com.google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType value) { + public Builder setDiskType( + com.google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType value) { if (value == null) { throw new NullPointerException(); } - + diskType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Input only. The type of the boot disk attached to this instance, defaults to
      * standard persistent disk (`PD_STANDARD`).
      * 
* - * .google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType disk_type = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType disk_type = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearDiskType() { - + diskType_ = 0; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField 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 - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -1293,6 +1428,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. Labels to apply to this disk. These can be later modified by the
      * disks.setLabels method. This field is only applicable for persistent disks.
@@ -1300,22 +1437,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      */
-
     @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 getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. Labels to apply to this disk. These can be later modified by the
      * disks.setLabels method. This field is only applicable for persistent disks.
@@ -1324,11 +1461,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. Labels to apply to this disk. These can be later modified by the
      * disks.setLabels method. This field is only applicable for persistent disks.
@@ -1337,16 +1475,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. Labels to apply to this disk. These can be later modified by the
      * disks.setLabels method. This field is only applicable for persistent disks.
@@ -1355,12 +1494,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1368,11 +1506,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. Labels to apply to this disk. These can be later modified by the
      * disks.setLabels method. This field is only applicable for persistent disks.
@@ -1380,23 +1519,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      */
-
-    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
-    getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. Labels to apply to this disk. These can be later modified by the
      * disks.setLabels method. This field is only applicable for persistent disks.
@@ -1404,19 +1541,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    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");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. Labels to apply to this disk. These can be later modified by the
      * disks.setLabels method. This field is only applicable for persistent disks.
@@ -1424,16 +1562,13 @@ public Builder putLabels(
      *
      * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      */
-
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       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);
     }
 
@@ -1443,12 +1578,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.LocalDiskInitializeParams)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.LocalDiskInitializeParams)
   private static final com.google.cloud.notebooks.v1.LocalDiskInitializeParams DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.LocalDiskInitializeParams();
   }
@@ -1457,27 +1592,27 @@ public static com.google.cloud.notebooks.v1.LocalDiskInitializeParams getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public LocalDiskInitializeParams parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        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 PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public LocalDiskInitializeParams parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            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 parser() {
     return PARSER;
@@ -1492,6 +1627,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.notebooks.v1.LocalDiskInitializeParams getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDiskInitializeParamsOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDiskInitializeParamsOrBuilder.java
similarity index 72%
rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDiskInitializeParamsOrBuilder.java
rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDiskInitializeParamsOrBuilder.java
index f346b65e05fc..72d7a58f984c 100644
--- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDiskInitializeParamsOrBuilder.java
+++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDiskInitializeParamsOrBuilder.java
@@ -1,33 +1,56 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/notebooks/v1/runtime.proto
 
 package com.google.cloud.notebooks.v1;
 
-public interface LocalDiskInitializeParamsOrBuilder extends
+public interface LocalDiskInitializeParamsOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.LocalDiskInitializeParams)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Optional. Provide this property when creating the disk.
    * 
* * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Optional. Provide this property when creating the disk.
    * 
* * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Optional. Specifies the disk name. If not specified, the default is to use the name
    * of the instance. If the disk with the instance name exists already in the
@@ -35,10 +58,13 @@ public interface LocalDiskInitializeParamsOrBuilder extends
    * 
* * string disk_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The diskName. */ java.lang.String getDiskName(); /** + * + * *
    * Optional. Specifies the disk name. If not specified, the default is to use the name
    * of the instance. If the disk with the instance name exists already in the
@@ -46,12 +72,14 @@ public interface LocalDiskInitializeParamsOrBuilder extends
    * 
* * string disk_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for diskName. */ - com.google.protobuf.ByteString - getDiskNameBytes(); + com.google.protobuf.ByteString getDiskNameBytes(); /** + * + * *
    * Optional. Specifies the size of the disk in base-2 GB. If not specified, the disk
    * will be the same size as the image (usually 10GB). If specified, the size
@@ -59,32 +87,45 @@ public interface LocalDiskInitializeParamsOrBuilder extends
    * 
* * int64 disk_size_gb = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The diskSizeGb. */ long getDiskSizeGb(); /** + * + * *
    * Input only. The type of the boot disk attached to this instance, defaults to
    * standard persistent disk (`PD_STANDARD`).
    * 
* - * .google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType disk_type = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType disk_type = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The enum numeric value on the wire for diskType. */ int getDiskTypeValue(); /** + * + * *
    * Input only. The type of the boot disk attached to this instance, defaults to
    * standard persistent disk (`PD_STANDARD`).
    * 
* - * .google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType disk_type = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType disk_type = 4 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The diskType. */ com.google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType getDiskType(); /** + * + * *
    * Optional. Labels to apply to this disk. These can be later modified by the
    * disks.setLabels method. This field is only applicable for persistent disks.
@@ -94,6 +135,8 @@ public interface LocalDiskInitializeParamsOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. Labels to apply to this disk. These can be later modified by the
    * disks.setLabels method. This field is only applicable for persistent disks.
@@ -101,15 +144,13 @@ public interface LocalDiskInitializeParamsOrBuilder extends
    *
    * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
    */
-  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
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional. Labels to apply to this disk. These can be later modified by the
    * disks.setLabels method. This field is only applicable for persistent disks.
@@ -117,9 +158,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. Labels to apply to this disk. These can be later modified by the
    * disks.setLabels method. This field is only applicable for persistent disks.
@@ -129,11 +171,13 @@ boolean containsLabels(
    */
 
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. Labels to apply to this disk. These can be later modified by the
    * disks.setLabels method. This field is only applicable for persistent disks.
@@ -141,7 +185,5 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDiskOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDiskOrBuilder.java
similarity index 78%
rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDiskOrBuilder.java
rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDiskOrBuilder.java
index d4a7b6da076d..2e0b53b0e508 100644
--- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDiskOrBuilder.java
+++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDiskOrBuilder.java
@@ -1,35 +1,59 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/notebooks/v1/runtime.proto
 
 package com.google.cloud.notebooks.v1;
 
-public interface LocalDiskOrBuilder extends
+public interface LocalDiskOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.LocalDisk)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Optional. Output only. Specifies whether the disk will be auto-deleted when the
    * instance is deleted (but not when the disk is detached from the instance).
    * 
* * bool auto_delete = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The autoDelete. */ boolean getAutoDelete(); /** + * + * *
    * Optional. Output only. Indicates that this is a boot disk. The virtual machine
    * will use the first partition of the disk for its root filesystem.
    * 
* * bool boot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The boot. */ boolean getBoot(); /** + * + * *
    * Optional. Output only. Specifies a unique device name
    * of your choice that is reflected into the
@@ -42,10 +66,13 @@ public interface LocalDiskOrBuilder extends
    * 
* * string device_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The deviceName. */ java.lang.String getDeviceName(); /** + * + * *
    * Optional. Output only. Specifies a unique device name
    * of your choice that is reflected into the
@@ -58,66 +85,88 @@ public interface LocalDiskOrBuilder extends
    * 
* * string device_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for deviceName. */ - com.google.protobuf.ByteString - getDeviceNameBytes(); + com.google.protobuf.ByteString getDeviceNameBytes(); /** + * + * *
    * Output only. Indicates a list of features to enable on the guest operating system.
    * Applicable only for bootable images. Read  Enabling guest operating
    * system features to see a list of available options.
    * 
* - * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getGuestOsFeaturesList(); /** + * + * *
    * Output only. Indicates a list of features to enable on the guest operating system.
    * Applicable only for bootable images. Read  Enabling guest operating
    * system features to see a list of available options.
    * 
* - * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature getGuestOsFeatures(int index); /** + * + * *
    * Output only. Indicates a list of features to enable on the guest operating system.
    * Applicable only for bootable images. Read  Enabling guest operating
    * system features to see a list of available options.
    * 
* - * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getGuestOsFeaturesCount(); /** + * + * *
    * Output only. Indicates a list of features to enable on the guest operating system.
    * Applicable only for bootable images. Read  Enabling guest operating
    * system features to see a list of available options.
    * 
* - * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getGuestOsFeaturesOrBuilderList(); /** + * + * *
    * Output only. Indicates a list of features to enable on the guest operating system.
    * Applicable only for bootable images. Read  Enabling guest operating
    * system features to see a list of available options.
    * 
* - * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeature guest_os_features = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeatureOrBuilder getGuestOsFeaturesOrBuilder( - int index); + com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeatureOrBuilder + getGuestOsFeaturesOrBuilder(int index); /** + * + * *
    * Output only. A zero-based index to this disk, where 0 is reserved for the
    * boot disk. If you have many disks attached to an instance, each disk would
@@ -125,11 +174,14 @@ com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeatureOrBuilder getGuestO
    * 
* * int32 index = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The index. */ int getIndex(); /** + * + * *
    * Input only. Specifies the parameters for a new disk that will be created
    * alongside the new instance. Use initialization parameters to create boot
@@ -138,11 +190,16 @@ com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeatureOrBuilder getGuestO
    * define one or the other, but not both.
    * 
* - * .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return Whether the initializeParams field is set. */ boolean hasInitializeParams(); /** + * + * *
    * Input only. Specifies the parameters for a new disk that will be created
    * alongside the new instance. Use initialization parameters to create boot
@@ -151,11 +208,16 @@ com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeatureOrBuilder getGuestO
    * define one or the other, but not both.
    * 
* - * .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The initializeParams. */ com.google.cloud.notebooks.v1.LocalDiskInitializeParams getInitializeParams(); /** + * + * *
    * Input only. Specifies the parameters for a new disk that will be created
    * alongside the new instance. Use initialization parameters to create boot
@@ -164,11 +226,15 @@ com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeatureOrBuilder getGuestO
    * define one or the other, but not both.
    * 
* - * .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1.LocalDiskInitializeParams initialize_params = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * */ com.google.cloud.notebooks.v1.LocalDiskInitializeParamsOrBuilder getInitializeParamsOrBuilder(); /** + * + * *
    * Specifies the disk interface to use for attaching this disk, which is
    * either SCSI or NVME. The default is SCSI. Persistent disks must always use
@@ -181,10 +247,13 @@ com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeatureOrBuilder getGuestO
    * 
* * string interface = 7; + * * @return The interface. */ java.lang.String getInterface(); /** + * + * *
    * Specifies the disk interface to use for attaching this disk, which is
    * either SCSI or NVME. The default is SCSI. Persistent disks must always use
@@ -197,73 +266,90 @@ com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeatureOrBuilder getGuestO
    * 
* * string interface = 7; + * * @return The bytes for interface. */ - com.google.protobuf.ByteString - getInterfaceBytes(); + com.google.protobuf.ByteString getInterfaceBytes(); /** + * + * *
    * Output only. Type of the resource. Always compute#attachedDisk for attached disks.
    * 
* * string kind = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The kind. */ java.lang.String getKind(); /** + * + * *
    * Output only. Type of the resource. Always compute#attachedDisk for attached disks.
    * 
* * string kind = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for kind. */ - com.google.protobuf.ByteString - getKindBytes(); + com.google.protobuf.ByteString getKindBytes(); /** + * + * *
    * Output only. Any valid publicly visible licenses.
    * 
* * repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return A list containing the licenses. */ - java.util.List - getLicensesList(); + java.util.List getLicensesList(); /** + * + * *
    * Output only. Any valid publicly visible licenses.
    * 
* * repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The count of licenses. */ int getLicensesCount(); /** + * + * *
    * Output only. Any valid publicly visible licenses.
    * 
* * repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the element to return. * @return The licenses at the given index. */ java.lang.String getLicenses(int index); /** + * + * *
    * Output only. Any valid publicly visible licenses.
    * 
* * repeated string licenses = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the licenses at the given index. */ - com.google.protobuf.ByteString - getLicensesBytes(int index); + com.google.protobuf.ByteString getLicensesBytes(int index); /** + * + * *
    * The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If
    * not specified, the default is to attach the disk in READ_WRITE mode.
@@ -273,10 +359,13 @@ com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeatureOrBuilder getGuestO
    * 
* * string mode = 10; + * * @return The mode. */ java.lang.String getMode(); /** + * + * *
    * The mode in which to attach this disk, either READ_WRITE or READ_ONLY. If
    * not specified, the default is to attach the disk in READ_WRITE mode.
@@ -286,34 +375,41 @@ com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeatureOrBuilder getGuestO
    * 
* * string mode = 10; + * * @return The bytes for mode. */ - com.google.protobuf.ByteString - getModeBytes(); + com.google.protobuf.ByteString getModeBytes(); /** + * + * *
    * Specifies a valid partial or full URL to an existing Persistent Disk
    * resource.
    * 
* * string source = 11; + * * @return The source. */ java.lang.String getSource(); /** + * + * *
    * Specifies a valid partial or full URL to an existing Persistent Disk
    * resource.
    * 
* * string source = 11; + * * @return The bytes for source. */ - com.google.protobuf.ByteString - getSourceBytes(); + com.google.protobuf.ByteString getSourceBytes(); /** + * + * *
    * Specifies the type of the disk, either SCRATCH or PERSISTENT. If not
    * specified, the default is PERSISTENT.
@@ -323,10 +419,13 @@ com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeatureOrBuilder getGuestO
    * 
* * string type = 12; + * * @return The type. */ java.lang.String getType(); /** + * + * *
    * Specifies the type of the disk, either SCRATCH or PERSISTENT. If not
    * specified, the default is PERSISTENT.
@@ -336,8 +435,8 @@ com.google.cloud.notebooks.v1.LocalDisk.RuntimeGuestOsFeatureOrBuilder getGuestO
    * 
* * string type = 12; + * * @return The bytes for type. */ - com.google.protobuf.ByteString - getTypeBytes(); + com.google.protobuf.ByteString getTypeBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocationName.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocationName.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocationName.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocationName.java diff --git a/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebooksProto.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebooksProto.java new file mode 100644 index 000000000000..74ebd729901c --- /dev/null +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebooksProto.java @@ -0,0 +1,388 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/notebooks/v1/managed_service.proto + +package com.google.cloud.notebooks.v1; + +public final class ManagedNotebooksProto { + private ManagedNotebooksProto() {} + + 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_cloud_notebooks_v1_ListRuntimesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_ListRuntimesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_ListRuntimesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_ListRuntimesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_GetRuntimeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_GetRuntimeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_CreateRuntimeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_CreateRuntimeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_DeleteRuntimeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_DeleteRuntimeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_StartRuntimeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_StartRuntimeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_StopRuntimeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_StopRuntimeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_SwitchRuntimeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_SwitchRuntimeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_ResetRuntimeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_ResetRuntimeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_UpgradeRuntimeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_UpgradeRuntimeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_ReportRuntimeEventRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_ReportRuntimeEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_UpdateRuntimeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_UpdateRuntimeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_DiagnoseRuntimeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_DiagnoseRuntimeRequest_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/cloud/notebooks/v1/managed_serv" + + "ice.proto\022\031google.cloud.notebooks.v1\032\034go" + + "ogle/api/annotations.proto\032\027google/api/c" + + "lient.proto\032\037google/api/field_behavior.p" + + "roto\032\031google/api/resource.proto\0321google/" + + "cloud/notebooks/v1/diagnostic_config.pro" + + "to\032%google/cloud/notebooks/v1/event.prot" + + "o\032\'google/cloud/notebooks/v1/runtime.pro" + + "to\032#google/longrunning/operations.proto\032" + + " google/protobuf/field_mask.proto\032\037googl" + + "e/protobuf/timestamp.proto\"v\n\023ListRuntim" + + "esRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 noteb" + + "ooks.googleapis.com/Runtime\022\021\n\tpage_size" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"z\n\024ListRuntim" + + "esResponse\0224\n\010runtimes\030\001 \003(\0132\".google.cl" + + "oud.notebooks.v1.Runtime\022\027\n\017next_page_to" + + "ken\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"K\n\021GetRun" + + "timeRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n noteb" + + "ooks.googleapis.com/Runtime\"\267\001\n\024CreateRu" + + "ntimeRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\n no" + + "tebooks.googleapis.com/Runtime\022\027\n\nruntim" + + "e_id\030\002 \001(\tB\003\340A\002\0228\n\007runtime\030\003 \001(\0132\".googl" + + "e.cloud.notebooks.v1.RuntimeB\003\340A\002\022\022\n\nreq" + + "uest_id\030\004 \001(\t\"b\n\024DeleteRuntimeRequest\0226\n" + + "\004name\030\001 \001(\tB(\340A\002\372A\"\n notebooks.googleapi" + + "s.com/Runtime\022\022\n\nrequest_id\030\002 \001(\t\"<\n\023Sta" + + "rtRuntimeRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\022\n\nr" + + "equest_id\030\002 \001(\t\";\n\022StopRuntimeRequest\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\022\022\n\nrequest_id\030\002 \001(\t\"\244\001\n" + + "\024SwitchRuntimeRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002" + + "\022\024\n\014machine_type\030\002 \001(\t\022O\n\022accelerator_co" + + "nfig\030\003 \001(\01323.google.cloud.notebooks.v1.R" + + "untimeAcceleratorConfig\022\022\n\nrequest_id\030\004 " + + "\001(\t\"<\n\023ResetRuntimeRequest\022\021\n\004name\030\001 \001(\t" + + "B\003\340A\002\022\022\n\nrequest_id\030\002 \001(\t\">\n\025UpgradeRunt" + + "imeRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\022\n\nrequest" + + "_id\030\002 \001(\t\"\235\001\n\031ReportRuntimeEventRequest\022" + + "6\n\004name\030\001 \001(\tB(\340A\002\372A\"\n notebooks.googlea" + + "pis.com/Runtime\022\022\n\005vm_id\030\002 \001(\tB\003\340A\002\0224\n\005e" + + "vent\030\003 \001(\0132 .google.cloud.notebooks.v1.E" + + "ventB\003\340A\002\"\232\001\n\024UpdateRuntimeRequest\0228\n\007ru" + + "ntime\030\001 \001(\0132\".google.cloud.notebooks.v1." + + "RuntimeB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.goog" + + "le.protobuf.FieldMaskB\003\340A\002\022\022\n\nrequest_id" + + "\030\003 \001(\t\"p\n\"RefreshRuntimeTokenInternalReq" + + "uest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n notebooks.go" + + "ogleapis.com/Runtime\022\022\n\005vm_id\030\002 \001(\tB\003\340A\002" + + "\"q\n#RefreshRuntimeTokenInternalResponse\022" + + "\024\n\014access_token\030\001 \001(\t\0224\n\013expire_time\030\002 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003\"\235\001\n\026" + + "DiagnoseRuntimeRequest\0226\n\004name\030\001 \001(\tB(\340A" + + "\002\372A\"\n notebooks.googleapis.com/Runtime\022K" + + "\n\021diagnostic_config\030\002 \001(\0132+.google.cloud" + + ".notebooks.v1.DiagnosticConfigB\003\340A\0022\322\025\n\026" + + "ManagedNotebookService\022\256\001\n\014ListRuntimes\022" + + "..google.cloud.notebooks.v1.ListRuntimes" + + "Request\032/.google.cloud.notebooks.v1.List" + + "RuntimesResponse\"=\202\323\344\223\002.\022,/v1/{parent=pr" + + "ojects/*/locations/*}/runtimes\332A\006parent\022" + + "\233\001\n\nGetRuntime\022,.google.cloud.notebooks." + + "v1.GetRuntimeRequest\032\".google.cloud.note" + + "books.v1.Runtime\";\202\323\344\223\002.\022,/v1/{name=proj" + + "ects/*/locations/*/runtimes/*}\332A\004name\022\331\001" + + "\n\rCreateRuntime\022/.google.cloud.notebooks" + + ".v1.CreateRuntimeRequest\032\035.google.longru" + + "nning.Operation\"x\202\323\344\223\0027\",/v1/{parent=pro" + + "jects/*/locations/*}/runtimes:\007runtime\332A" + + "\031parent,runtime_id,runtime\312A\034\n\007Runtime\022\021" + + "OperationMetadata\022\333\001\n\rUpdateRuntime\022/.go" + + "ogle.cloud.notebooks.v1.UpdateRuntimeReq" + + "uest\032\035.google.longrunning.Operation\"z\202\323\344" + + "\223\002?24/v1/{runtime.name=projects/*/locati" + + "ons/*/runtimes/*}:\007runtime\332A\023runtime,upd" + + "ate_mask\312A\034\n\007Runtime\022\021OperationMetadata\022" + + "\311\001\n\rDeleteRuntime\022/.google.cloud.noteboo" + + "ks.v1.DeleteRuntimeRequest\032\035.google.long" + + "running.Operation\"h\202\323\344\223\002.*,/v1/{name=pro" + + "jects/*/locations/*/runtimes/*}\332A\004name\312A" + + "*\n\025google.protobuf.Empty\022\021OperationMetad" + + "ata\022\302\001\n\014StartRuntime\022..google.cloud.note" + + "books.v1.StartRuntimeRequest\032\035.google.lo" + + "ngrunning.Operation\"c\202\323\344\223\0027\"2/v1/{name=p" + + "rojects/*/locations/*/runtimes/*}:start:" + + "\001*\332A\004name\312A\034\n\007Runtime\022\021OperationMetadata" + + "\022\277\001\n\013StopRuntime\022-.google.cloud.notebook" + + "s.v1.StopRuntimeRequest\032\035.google.longrun" + + "ning.Operation\"b\202\323\344\223\0026\"1/v1/{name=projec" + + "ts/*/locations/*/runtimes/*}:stop:\001*\332A\004n" + + "ame\312A\034\n\007Runtime\022\021OperationMetadata\022\305\001\n\rS" + + "witchRuntime\022/.google.cloud.notebooks.v1" + + ".SwitchRuntimeRequest\032\035.google.longrunni" + + "ng.Operation\"d\202\323\344\223\0028\"3/v1/{name=projects" + + "/*/locations/*/runtimes/*}:switch:\001*\332A\004n" + + "ame\312A\034\n\007Runtime\022\021OperationMetadata\022\302\001\n\014R" + + "esetRuntime\022..google.cloud.notebooks.v1." + + "ResetRuntimeRequest\032\035.google.longrunning" + + ".Operation\"c\202\323\344\223\0027\"2/v1/{name=projects/*" + + "/locations/*/runtimes/*}:reset:\001*\332A\004name" + + "\312A\034\n\007Runtime\022\021OperationMetadata\022\310\001\n\016Upgr" + + "adeRuntime\0220.google.cloud.notebooks.v1.U" + + "pgradeRuntimeRequest\032\035.google.longrunnin" + + "g.Operation\"e\202\323\344\223\0029\"4/v1/{name=projects/" + + "*/locations/*/runtimes/*}:upgrade:\001*\332A\004n" + + "ame\312A\034\n\007Runtime\022\021OperationMetadata\022\324\001\n\022R" + + "eportRuntimeEvent\0224.google.cloud.noteboo" + + "ks.v1.ReportRuntimeEventRequest\032\035.google" + + ".longrunning.Operation\"i\202\323\344\223\002=\"8/v1/{nam" + + "e=projects/*/locations/*/runtimes/*}:rep" + + "ortEvent:\001*\332A\004name\312A\034\n\007Runtime\022\021Operatio" + + "nMetadata\022\376\001\n\033RefreshRuntimeTokenInterna" + + "l\022=.google.cloud.notebooks.v1.RefreshRun" + + "timeTokenInternalRequest\032>.google.cloud." + + "notebooks.v1.RefreshRuntimeTokenInternal" + + "Response\"`\202\323\344\223\002M\"H/v1/{name=projects/*/l" + + "ocations/*/runtimes/*}:refreshRuntimeTok" + + "enInternal:\001*\332A\nname,vm_id\022\335\001\n\017DiagnoseR" + + "untime\0221.google.cloud.notebooks.v1.Diagn" + + "oseRuntimeRequest\032\035.google.longrunning.O" + + "peration\"x\202\323\344\223\002:\"5/v1/{name=projects/*/l" + + "ocations/*/runtimes/*}:diagnose:\001*\332A\026nam" + + "e,diagnostic_config\312A\034\n\007Runtime\022\021Operati" + + "onMetadata\032L\312A\030notebooks.googleapis.com\322" + + "A.https://www.googleapis.com/auth/cloud-" + + "platformB\323\001\n\035com.google.cloud.notebooks." + + "v1B\025ManagedNotebooksProtoP\001ZBgoogle.gola" + + "ng.org/genproto/googleapis/cloud/noteboo" + + "ks/v1;notebooks\252\002\031Google.Cloud.Notebooks" + + ".V1\312\002\031Google\\Cloud\\Notebooks\\V1\352\002\034Google" + + "::Cloud::Notebooks::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.cloud.notebooks.v1.DiagnosticConfigProto.getDescriptor(), + com.google.cloud.notebooks.v1.EventProto.getDescriptor(), + com.google.cloud.notebooks.v1.RuntimeProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_notebooks_v1_ListRuntimesRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_notebooks_v1_ListRuntimesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_ListRuntimesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_notebooks_v1_ListRuntimesResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_notebooks_v1_ListRuntimesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_ListRuntimesResponse_descriptor, + new java.lang.String[] { + "Runtimes", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_notebooks_v1_GetRuntimeRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_notebooks_v1_GetRuntimeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_GetRuntimeRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_notebooks_v1_CreateRuntimeRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_notebooks_v1_CreateRuntimeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_CreateRuntimeRequest_descriptor, + new java.lang.String[] { + "Parent", "RuntimeId", "Runtime", "RequestId", + }); + internal_static_google_cloud_notebooks_v1_DeleteRuntimeRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_notebooks_v1_DeleteRuntimeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_DeleteRuntimeRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_notebooks_v1_StartRuntimeRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_notebooks_v1_StartRuntimeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_StartRuntimeRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_notebooks_v1_StopRuntimeRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_notebooks_v1_StopRuntimeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_StopRuntimeRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_notebooks_v1_SwitchRuntimeRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_notebooks_v1_SwitchRuntimeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_SwitchRuntimeRequest_descriptor, + new java.lang.String[] { + "Name", "MachineType", "AcceleratorConfig", "RequestId", + }); + internal_static_google_cloud_notebooks_v1_ResetRuntimeRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_notebooks_v1_ResetRuntimeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_ResetRuntimeRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_notebooks_v1_UpgradeRuntimeRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_notebooks_v1_UpgradeRuntimeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_UpgradeRuntimeRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_notebooks_v1_ReportRuntimeEventRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_notebooks_v1_ReportRuntimeEventRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_ReportRuntimeEventRequest_descriptor, + new java.lang.String[] { + "Name", "VmId", "Event", + }); + internal_static_google_cloud_notebooks_v1_UpdateRuntimeRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_notebooks_v1_UpdateRuntimeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_UpdateRuntimeRequest_descriptor, + new java.lang.String[] { + "Runtime", "UpdateMask", "RequestId", + }); + internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalRequest_descriptor, + new java.lang.String[] { + "Name", "VmId", + }); + internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalResponse_descriptor, + new java.lang.String[] { + "AccessToken", "ExpireTime", + }); + internal_static_google_cloud_notebooks_v1_DiagnoseRuntimeRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_notebooks_v1_DiagnoseRuntimeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_DiagnoseRuntimeRequest_descriptor, + new java.lang.String[] { + "Name", "DiagnosticConfig", + }); + 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.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.cloud.notebooks.v1.DiagnosticConfigProto.getDescriptor(); + com.google.cloud.notebooks.v1.EventProto.getDescriptor(); + com.google.cloud.notebooks.v1.RuntimeProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/NotebooksProto.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/NotebooksProto.java new file mode 100644 index 000000000000..56a786049a0a --- /dev/null +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/NotebooksProto.java @@ -0,0 +1,991 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/notebooks/v1/service.proto + +package com.google.cloud.notebooks.v1; + +public final class NotebooksProto { + private NotebooksProto() {} + + 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_cloud_notebooks_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_ListInstancesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_ListInstancesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_ListInstancesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_ListInstancesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_GetInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_GetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_CreateInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_CreateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_RegisterInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_RegisterInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_SetInstanceAcceleratorRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_SetInstanceAcceleratorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_SetInstanceMachineTypeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_SetInstanceMachineTypeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_UpdateInstanceConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_UpdateInstanceConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_ItemsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_ItemsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_ItemsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_ItemsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_UpdateShieldedInstanceConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_UpdateShieldedInstanceConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_DeleteInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_DeleteInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_StartInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_StartInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_StopInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_StopInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_ResetInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_ResetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_MetadataEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_MetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_GetInstanceHealthRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_GetInstanceHealthRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_HealthInfoEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_HealthInfoEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_UpgradeInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_UpgradeInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_RollbackInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_RollbackInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_UpgradeInstanceInternalRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_UpgradeInstanceInternalRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_ListEnvironmentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_ListEnvironmentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_DiagnoseInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_DiagnoseInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_ListEnvironmentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_ListEnvironmentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_GetEnvironmentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_GetEnvironmentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_CreateEnvironmentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_CreateEnvironmentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_DeleteEnvironmentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_DeleteEnvironmentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_ListSchedulesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_ListSchedulesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_ListSchedulesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_ListSchedulesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_GetScheduleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_GetScheduleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_DeleteScheduleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_DeleteScheduleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_CreateScheduleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_CreateScheduleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_TriggerScheduleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_TriggerScheduleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_ListExecutionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_ListExecutionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_ListExecutionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_ListExecutionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_GetExecutionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_GetExecutionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_DeleteExecutionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_DeleteExecutionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_CreateExecutionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_CreateExecutionRequest_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/cloud/notebooks/v1/service.prot" + + "o\022\031google.cloud.notebooks.v1\032\034google/api" + + "/annotations.proto\032\027google/api/client.pr" + + "oto\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\0321google/cloud/no" + + "tebooks/v1/diagnostic_config.proto\032+goog" + + "le/cloud/notebooks/v1/environment.proto\032" + + ")google/cloud/notebooks/v1/execution.pro" + + "to\032(google/cloud/notebooks/v1/instance.p" + + "roto\032/google/cloud/notebooks/v1/instance" + + "_config.proto\032(google/cloud/notebooks/v1" + + "/schedule.proto\032#google/longrunning/oper" + + "ations.proto\032\037google/protobuf/timestamp." + + "proto\"\357\001\n\021OperationMetadata\022/\n\013create_ti" + + "me\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n\010" + + "end_time\030\002 \001(\0132\032.google.protobuf.Timesta" + + "mp\022\016\n\006target\030\003 \001(\t\022\014\n\004verb\030\004 \001(\t\022\026\n\016stat" + + "us_message\030\005 \001(\t\022\036\n\026requested_cancellati" + + "on\030\006 \001(\010\022\023\n\013api_version\030\007 \001(\t\022\020\n\010endpoin" + + "t\030\010 \001(\t\"R\n\024ListInstancesRequest\022\023\n\006paren" + + "t\030\001 \001(\tB\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" + + "token\030\003 \001(\t\"}\n\025ListInstancesResponse\0226\n\t" + + "instances\030\001 \003(\0132#.google.cloud.notebooks" + + ".v1.Instance\022\027\n\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"\'\n\022GetInstanceRequest" + + "\022\021\n\004name\030\001 \001(\tB\003\340A\002\"\202\001\n\025CreateInstanceRe" + + "quest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\030\n\013instance_i" + + "d\030\002 \001(\tB\003\340A\002\022:\n\010instance\030\003 \001(\0132#.google." + + "cloud.notebooks.v1.InstanceB\003\340A\002\"H\n\027Regi" + + "sterInstanceRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002" + + "\022\030\n\013instance_id\030\002 \001(\tB\003\340A\002\"\223\001\n\035SetInstan" + + "ceAcceleratorRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022" + + "F\n\004type\030\002 \001(\01623.google.cloud.notebooks.v" + + "1.Instance.AcceleratorTypeB\003\340A\002\022\027\n\ncore_" + + "count\030\003 \001(\003B\003\340A\002\"M\n\035SetInstanceMachineTy" + + "peRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\031\n\014machine_" + + "type\030\002 \001(\tB\003\340A\002\"k\n\033UpdateInstanceConfigR" + + "equest\022\021\n\004name\030\001 \001(\tB\003\340A\002\0229\n\006config\030\002 \001(" + + "\0132).google.cloud.notebooks.v1.InstanceCo" + + "nfig\"\255\001\n\030SetInstanceLabelsRequest\022\021\n\004nam" + + "e\030\001 \001(\tB\003\340A\002\022O\n\006labels\030\002 \003(\0132?.google.cl" + + "oud.notebooks.v1.SetInstanceLabelsReques" + + "t.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\276\001\n\"UpdateInstanceM" + + "etadataItemsRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022W" + + "\n\005items\030\002 \003(\0132H.google.cloud.notebooks.v" + + "1.UpdateInstanceMetadataItemsRequest.Ite" + + "msEntry\032,\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001\"\255\001\n#UpdateInstanceMetadata" + + "ItemsResponse\022X\n\005items\030\001 \003(\0132I.google.cl" + + "oud.notebooks.v1.UpdateInstanceMetadataI" + + "temsResponse.ItemsEntry\032,\n\nItemsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\226\001\n#Update" + + "ShieldedInstanceConfigRequest\022\021\n\004name\030\001 " + + "\001(\tB\003\340A\002\022\\\n\030shielded_instance_config\030\002 \001" + + "(\0132:.google.cloud.notebooks.v1.Instance." + + "ShieldedInstanceConfig\"*\n\025DeleteInstance" + + "Request\022\021\n\004name\030\001 \001(\tB\003\340A\002\")\n\024StartInsta" + + "nceRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\"(\n\023StopIns" + + "tanceRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\")\n\024Reset" + + "InstanceRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\"\311\001\n\031R" + + "eportInstanceInfoRequest\022\021\n\004name\030\001 \001(\tB\003" + + "\340A\002\022\022\n\005vm_id\030\002 \001(\tB\003\340A\002\022T\n\010metadata\030\003 \003(" + + "\0132B.google.cloud.notebooks.v1.ReportInst" + + "anceInfoRequest.MetadataEntry\032/\n\rMetadat" + + "aEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"y" + + "\n\034IsInstanceUpgradeableRequest\022\036\n\021notebo" + + "ok_instance\030\001 \001(\tB\003\340A\002\0229\n\004type\030\002 \001(\0162&.g" + + "oogle.cloud.notebooks.v1.UpgradeTypeB\003\340A" + + "\001\"z\n\035IsInstanceUpgradeableResponse\022\023\n\013up" + + "gradeable\030\001 \001(\010\022\027\n\017upgrade_version\030\002 \001(\t" + + "\022\024\n\014upgrade_info\030\003 \001(\t\022\025\n\rupgrade_image\030" + + "\004 \001(\t\"S\n\030GetInstanceHealthRequest\0227\n\004nam" + + "e\030\001 \001(\tB)\340A\002\372A#\n!notebooks.googleapis.co" + + "m/Instance\"\204\003\n\031GetInstanceHealthResponse" + + "\022[\n\014health_state\030\001 \001(\0162@.google.cloud.no" + + "tebooks.v1.GetInstanceHealthResponse.Hea" + + "lthStateB\003\340A\003\022^\n\013health_info\030\002 \003(\0132D.goo" + + "gle.cloud.notebooks.v1.GetInstanceHealth" + + "Response.HealthInfoEntryB\003\340A\003\0321\n\017HealthI" + + "nfoEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "\"w\n\013HealthState\022\034\n\030HEALTH_STATE_UNSPECIF" + + "IED\020\000\022\013\n\007HEALTHY\020\001\022\r\n\tUNHEALTHY\020\002\022\027\n\023AGE" + + "NT_NOT_INSTALLED\020\003\022\025\n\021AGENT_NOT_RUNNING\020" + + "\004\"f\n\026UpgradeInstanceRequest\022\021\n\004name\030\001 \001(" + + "\tB\003\340A\002\0229\n\004type\030\002 \001(\0162&.google.cloud.note" + + "books.v1.UpgradeTypeB\003\340A\001\"J\n\027RollbackIns" + + "tanceRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\034\n\017targe" + + "t_snapshot\030\002 \001(\tB\003\340A\002\"\202\001\n\036UpgradeInstanc" + + "eInternalRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\022\n\005v" + + "m_id\030\002 \001(\tB\003\340A\002\0229\n\004type\030\003 \001(\0162&.google.c" + + "loud.notebooks.v1.UpgradeTypeB\003\340A\001\"U\n\027Li" + + "stEnvironmentsRequest\022\023\n\006parent\030\001 \001(\tB\003\340" + + "A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + + "\t\"\237\001\n\027DiagnoseInstanceRequest\0227\n\004name\030\001 " + + "\001(\tB)\340A\002\372A#\n!notebooks.googleapis.com/In" + + "stance\022K\n\021diagnostic_config\030\002 \001(\0132+.goog" + + "le.cloud.notebooks.v1.DiagnosticConfigB\003" + + "\340A\002\"\206\001\n\030ListEnvironmentsResponse\022<\n\014envi" + + "ronments\030\001 \003(\0132&.google.cloud.notebooks." + + "v1.Environment\022\027\n\017next_page_token\030\002 \001(\t\022" + + "\023\n\013unreachable\030\003 \003(\t\"*\n\025GetEnvironmentRe" + + "quest\022\021\n\004name\030\001 \001(\tB\003\340A\002\"\216\001\n\030CreateEnvir" + + "onmentRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\033\n\016en" + + "vironment_id\030\002 \001(\tB\003\340A\002\022@\n\013environment\030\003" + + " \001(\0132&.google.cloud.notebooks.v1.Environ" + + "mentB\003\340A\002\"-\n\030DeleteEnvironmentRequest\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\"\232\001\n\024ListSchedulesReques" + + "t\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!notebooks.goo" + + "gleapis.com/Schedule\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\022\020\n\010o" + + "rder_by\030\005 \001(\t\"}\n\025ListSchedulesResponse\0226" + + "\n\tschedules\030\001 \003(\0132#.google.cloud.noteboo" + + "ks.v1.Schedule\022\027\n\017next_page_token\030\002 \001(\t\022" + + "\023\n\013unreachable\030\003 \003(\t\"M\n\022GetScheduleReque" + + "st\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!notebooks.goog" + + "leapis.com/Schedule\"P\n\025DeleteScheduleReq" + + "uest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!notebooks.go" + + "ogleapis.com/Schedule\"\250\001\n\025CreateSchedule" + + "Request\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!noteboo" + + "ks.googleapis.com/Schedule\022\030\n\013schedule_i" + + "d\030\002 \001(\tB\003\340A\002\022:\n\010schedule\030\003 \001(\0132#.google." + + "cloud.notebooks.v1.ScheduleB\003\340A\002\"Q\n\026Trig" + + "gerScheduleRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#" + + "\n!notebooks.googleapis.com/Schedule\"\234\001\n\025" + + "ListExecutionsRequest\022:\n\006parent\030\001 \001(\tB*\340" + + "A\002\372A$\n\"notebooks.googleapis.com/Executio" + + "n\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\022\020\n\010order_by\030\005 \001(\t\"\200\001\n\026L" + + "istExecutionsResponse\0228\n\nexecutions\030\001 \003(" + + "\0132$.google.cloud.notebooks.v1.Execution\022" + + "\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachable\030" + + "\003 \003(\t\"O\n\023GetExecutionRequest\0228\n\004name\030\001 \001" + + "(\tB*\340A\002\372A$\n\"notebooks.googleapis.com/Exe" + + "cution\"R\n\026DeleteExecutionRequest\0228\n\004name" + + "\030\001 \001(\tB*\340A\002\372A$\n\"notebooks.googleapis.com" + + "/Execution\"\255\001\n\026CreateExecutionRequest\022:\n" + + "\006parent\030\001 \001(\tB*\340A\002\372A$\n\"notebooks.googlea" + + "pis.com/Execution\022\031\n\014execution_id\030\002 \001(\tB" + + "\003\340A\002\022<\n\texecution\030\003 \001(\0132$.google.cloud.n" + + "otebooks.v1.ExecutionB\003\340A\002*u\n\013UpgradeTyp" + + "e\022\034\n\030UPGRADE_TYPE_UNSPECIFIED\020\000\022\025\n\021UPGRA" + + "DE_FRAMEWORK\020\001\022\016\n\nUPGRADE_OS\020\002\022\020\n\014UPGRAD" + + "E_CUDA\020\003\022\017\n\013UPGRADE_ALL\020\0042\2727\n\017NotebookSe" + + "rvice\022\262\001\n\rListInstances\022/.google.cloud.n" + + "otebooks.v1.ListInstancesRequest\0320.googl" + + "e.cloud.notebooks.v1.ListInstancesRespon" + + "se\">\202\323\344\223\002/\022-/v1/{parent=projects/*/locat" + + "ions/*}/instances\332A\006parent\022\237\001\n\013GetInstan" + + "ce\022-.google.cloud.notebooks.v1.GetInstan" + + "ceRequest\032#.google.cloud.notebooks.v1.In" + + "stance\"<\202\323\344\223\002/\022-/v1/{name=projects/*/loc" + + "ations/*/instances/*}\332A\004name\022\340\001\n\016CreateI" + + "nstance\0220.google.cloud.notebooks.v1.Crea" + + "teInstanceRequest\032\035.google.longrunning.O" + + "peration\"}\202\323\344\223\0029\"-/v1/{parent=projects/*" + + "/locations/*}/instances:\010instance\332A\033pare" + + "nt,instance,instance_id\312A\035\n\010Instance\022\021Op" + + "erationMetadata\022\310\001\n\020RegisterInstance\0222.g" + + "oogle.cloud.notebooks.v1.RegisterInstanc" + + "eRequest\032\035.google.longrunning.Operation\"" + + "a\202\323\344\223\002;\"6/v1/{parent=projects/*/location" + + "s/*}/instances:register:\001*\312A\035\n\010Instance\022" + + "\021OperationMetadata\022\332\001\n\026SetInstanceAccele" + + "rator\0228.google.cloud.notebooks.v1.SetIns" + + "tanceAcceleratorRequest\032\035.google.longrun" + + "ning.Operation\"g\202\323\344\223\002A2.google.cl" + + "oud.notebooks.v1.UpdateShieldedInstanceC" + + "onfigRequest\032\035.google.longrunning.Operat" + + "ion\"u\202\323\344\223\002O2J/v1/{name=projects/*/locati" + + "ons/*/instances/*}:updateShieldedInstanc" + + "eConfig:\001*\312A\035\n\010Instance\022\021OperationMetada" + + "ta\022\313\001\n\021SetInstanceLabels\0223.google.cloud." + + "notebooks.v1.SetInstanceLabelsRequest\032\035." + + "google.longrunning.Operation\"b\202\323\344\223\002<27/v" + + "1/{name=projects/*/locations/*/instances" + + "/*}:setLabels:\001*\312A\035\n\010Instance\022\021Operation" + + "Metadata\022\352\001\n\033UpdateInstanceMetadataItems" + + "\022=.google.cloud.notebooks.v1.UpdateInsta" + + "nceMetadataItemsRequest\032>.google.cloud.n" + + "otebooks.v1.UpdateInstanceMetadataItemsR" + + "esponse\"L\202\323\344\223\002F2A/v1/{name=projects/*/lo" + + "cations/*/instances/*}:updateMetadataIte" + + "ms:\001*\022\314\001\n\016DeleteInstance\0220.google.cloud." + + "notebooks.v1.DeleteInstanceRequest\032\035.goo" + + "gle.longrunning.Operation\"i\202\323\344\223\002/*-/v1/{" + + "name=projects/*/locations/*/instances/*}" + + "\332A\004name\312A*\n\025google.protobuf.Empty\022\021Opera" + + "tionMetadata\022\277\001\n\rStartInstance\022/.google." + + "cloud.notebooks.v1.StartInstanceRequest\032" + + "\035.google.longrunning.Operation\"^\202\323\344\223\0028\"3" + + "/v1/{name=projects/*/locations/*/instanc" + + "es/*}:start:\001*\312A\035\n\010Instance\022\021OperationMe" + + "tadata\022\274\001\n\014StopInstance\022..google.cloud.n" + + "otebooks.v1.StopInstanceRequest\032\035.google" + + ".longrunning.Operation\"]\202\323\344\223\0027\"2/v1/{nam" + + "e=projects/*/locations/*/instances/*}:st" + + "op:\001*\312A\035\n\010Instance\022\021OperationMetadata\022\277\001" + + "\n\rResetInstance\022/.google.cloud.notebooks" + + ".v1.ResetInstanceRequest\032\035.google.longru" + + "nning.Operation\"^\202\323\344\223\0028\"3/v1/{name=proje" + + "cts/*/locations/*/instances/*}:reset:\001*\312" + + "A\035\n\010Instance\022\021OperationMetadata\022\312\001\n\022Repo" + + "rtInstanceInfo\0224.google.cloud.notebooks." + + "v1.ReportInstanceInfoRequest\032\035.google.lo" + + "ngrunning.Operation\"_\202\323\344\223\0029\"4/v1/{name=p" + + "rojects/*/locations/*/instances/*}:repor" + + "t:\001*\312A\035\n\010Instance\022\021OperationMetadata\022\334\001\n" + + "\025IsInstanceUpgradeable\0227.google.cloud.no" + + "tebooks.v1.IsInstanceUpgradeableRequest\032" + + "8.google.cloud.notebooks.v1.IsInstanceUp" + + "gradeableResponse\"P\202\323\344\223\002J\022H/v1/{notebook" + + "_instance=projects/*/locations/*/instanc" + + "es/*}:isUpgradeable\022\316\001\n\021GetInstanceHealt" + + "h\0223.google.cloud.notebooks.v1.GetInstanc" + + "eHealthRequest\0324.google.cloud.notebooks." + + "v1.GetInstanceHealthResponse\"N\202\323\344\223\002A\022?/v" + + "1/{name=projects/*/locations/*/instances" + + "/*}:getInstanceHealth\332A\004name\022\305\001\n\017Upgrade" + + "Instance\0221.google.cloud.notebooks.v1.Upg" + + "radeInstanceRequest\032\035.google.longrunning" + + ".Operation\"`\202\323\344\223\002:\"5/v1/{name=projects/*" + + "/locations/*/instances/*}:upgrade:\001*\312A\035\n" + + "\010Instance\022\021OperationMetadata\022\310\001\n\020Rollbac" + + "kInstance\0222.google.cloud.notebooks.v1.Ro" + + "llbackInstanceRequest\032\035.google.longrunni" + + "ng.Operation\"a\202\323\344\223\002;\"6/v1/{name=projects" + + "/*/locations/*/instances/*}:rollback:\001*\312" + + "A\035\n\010Instance\022\021OperationMetadata\022\341\001\n\020Diag" + + "noseInstance\0222.google.cloud.notebooks.v1" + + ".DiagnoseInstanceRequest\032\035.google.longru" + + "nning.Operation\"z\202\323\344\223\002;\"6/v1/{name=proje" + + "cts/*/locations/*/instances/*}:diagnose:" + + "\001*\332A\026name,diagnostic_config\312A\035\n\010Instance" + + "\022\021OperationMetadata\022\335\001\n\027UpgradeInstanceI" + + "nternal\0229.google.cloud.notebooks.v1.Upgr" + + "adeInstanceInternalRequest\032\035.google.long" + + "running.Operation\"h\202\323\344\223\002B\"=/v1/{name=pro" + + "jects/*/locations/*/instances/*}:upgrade" + + "Internal:\001*\312A\035\n\010Instance\022\021OperationMetad" + + "ata\022\276\001\n\020ListEnvironments\0222.google.cloud." + + "notebooks.v1.ListEnvironmentsRequest\0323.g" + + "oogle.cloud.notebooks.v1.ListEnvironment" + + "sResponse\"A\202\323\344\223\0022\0220/v1/{parent=projects/" + + "*/locations/*}/environments\332A\006parent\022\253\001\n" + + "\016GetEnvironment\0220.google.cloud.notebooks" + + ".v1.GetEnvironmentRequest\032&.google.cloud" + + ".notebooks.v1.Environment\"?\202\323\344\223\0022\0220/v1/{" + + "name=projects/*/locations/*/environments" + + "/*}\332A\004name\022\366\001\n\021CreateEnvironment\0223.googl" + + "e.cloud.notebooks.v1.CreateEnvironmentRe" + + "quest\032\035.google.longrunning.Operation\"\214\001\202" + + "\323\344\223\002?\"0/v1/{parent=projects/*/locations/" + + "*}/environments:\013environment\332A!parent,en" + + "vironment,environment_id\312A \n\013Environment" + + "\022\021OperationMetadata\022\325\001\n\021DeleteEnvironmen" + + "t\0223.google.cloud.notebooks.v1.DeleteEnvi" + + "ronmentRequest\032\035.google.longrunning.Oper" + + "ation\"l\202\323\344\223\0022*0/v1/{name=projects/*/loca" + + "tions/*/environments/*}\332A\004name\312A*\n\025googl" + + "e.protobuf.Empty\022\021OperationMetadata\022\262\001\n\r" + + "ListSchedules\022/.google.cloud.notebooks.v" + + "1.ListSchedulesRequest\0320.google.cloud.no" + + "tebooks.v1.ListSchedulesResponse\">\202\323\344\223\002/" + + "\022-/v1/{parent=projects/*/locations/*}/sc" + + "hedules\332A\006parent\022\237\001\n\013GetSchedule\022-.googl" + + "e.cloud.notebooks.v1.GetScheduleRequest\032" + + "#.google.cloud.notebooks.v1.Schedule\"<\202\323" + + "\344\223\002/\022-/v1/{name=projects/*/locations/*/s" + + "chedules/*}\332A\004name\022\314\001\n\016DeleteSchedule\0220." + + "google.cloud.notebooks.v1.DeleteSchedule" + + "Request\032\035.google.longrunning.Operation\"i" + + "\202\323\344\223\002/*-/v1/{name=projects/*/locations/*" + + "/schedules/*}\332A\004name\312A*\n\025google.protobuf" + + ".Empty\022\021OperationMetadata\022\340\001\n\016CreateSche" + + "dule\0220.google.cloud.notebooks.v1.CreateS" + + "cheduleRequest\032\035.google.longrunning.Oper" + + "ation\"}\202\323\344\223\0029\"-/v1/{parent=projects/*/lo" + + "cations/*}/schedules:\010schedule\332A\033parent," + + "schedule,schedule_id\312A\035\n\010Schedule\022\021Opera" + + "tionMetadata\022\305\001\n\017TriggerSchedule\0221.googl" + + "e.cloud.notebooks.v1.TriggerScheduleRequ" + + "est\032\035.google.longrunning.Operation\"`\202\323\344\223" + + "\002:\"5/v1/{name=projects/*/locations/*/sch" + + "edules/*}:trigger:\001*\312A\035\n\010Schedule\022\021Opera" + + "tionMetadata\022\266\001\n\016ListExecutions\0220.google" + + ".cloud.notebooks.v1.ListExecutionsReques" + + "t\0321.google.cloud.notebooks.v1.ListExecut" + + "ionsResponse\"?\202\323\344\223\0020\022./v1/{parent=projec" + + "ts/*/locations/*}/executions\332A\006parent\022\243\001" + + "\n\014GetExecution\022..google.cloud.notebooks." + + "v1.GetExecutionRequest\032$.google.cloud.no" + + "tebooks.v1.Execution\"=\202\323\344\223\0020\022./v1/{name=" + + "projects/*/locations/*/executions/*}\332A\004n" + + "ame\022\317\001\n\017DeleteExecution\0221.google.cloud.n" + + "otebooks.v1.DeleteExecutionRequest\032\035.goo" + + "gle.longrunning.Operation\"j\202\323\344\223\0020*./v1/{" + + "name=projects/*/locations/*/executions/*" + + "}\332A\004name\312A*\n\025google.protobuf.Empty\022\021Oper" + + "ationMetadata\022\350\001\n\017CreateExecution\0221.goog" + + "le.cloud.notebooks.v1.CreateExecutionReq" + + "uest\032\035.google.longrunning.Operation\"\202\001\202\323" + + "\344\223\002;\"./v1/{parent=projects/*/locations/*" + + "}/executions:\texecution\332A\035parent,executi" + + "on,execution_id\312A\036\n\tExecution\022\021Operation" + + "Metadata\032L\312A\030notebooks.googleapis.com\322A." + + "https://www.googleapis.com/auth/cloud-pl" + + "atformB\314\001\n\035com.google.cloud.notebooks.v1" + + "B\016NotebooksProtoP\001ZBgoogle.golang.org/ge" + + "nproto/googleapis/cloud/notebooks/v1;not" + + "ebooks\252\002\031Google.Cloud.Notebooks.V1\312\002\031Goo" + + "gle\\Cloud\\Notebooks\\V1\352\002\034Google::Cloud::" + + "Notebooks::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.cloud.notebooks.v1.DiagnosticConfigProto.getDescriptor(), + com.google.cloud.notebooks.v1.EnvironmentProto.getDescriptor(), + com.google.cloud.notebooks.v1.ExecutionProto.getDescriptor(), + com.google.cloud.notebooks.v1.InstanceProto.getDescriptor(), + com.google.cloud.notebooks.v1.InstanceConfigProto.getDescriptor(), + com.google.cloud.notebooks.v1.ScheduleProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_notebooks_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_notebooks_v1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusMessage", + "RequestedCancellation", + "ApiVersion", + "Endpoint", + }); + internal_static_google_cloud_notebooks_v1_ListInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_notebooks_v1_ListInstancesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_ListInstancesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_notebooks_v1_ListInstancesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_notebooks_v1_ListInstancesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_ListInstancesResponse_descriptor, + new java.lang.String[] { + "Instances", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_notebooks_v1_GetInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_notebooks_v1_GetInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_GetInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_notebooks_v1_CreateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_notebooks_v1_CreateInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_CreateInstanceRequest_descriptor, + new java.lang.String[] { + "Parent", "InstanceId", "Instance", + }); + internal_static_google_cloud_notebooks_v1_RegisterInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_notebooks_v1_RegisterInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_RegisterInstanceRequest_descriptor, + new java.lang.String[] { + "Parent", "InstanceId", + }); + internal_static_google_cloud_notebooks_v1_SetInstanceAcceleratorRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_notebooks_v1_SetInstanceAcceleratorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_SetInstanceAcceleratorRequest_descriptor, + new java.lang.String[] { + "Name", "Type", "CoreCount", + }); + internal_static_google_cloud_notebooks_v1_SetInstanceMachineTypeRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_notebooks_v1_SetInstanceMachineTypeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_SetInstanceMachineTypeRequest_descriptor, + new java.lang.String[] { + "Name", "MachineType", + }); + internal_static_google_cloud_notebooks_v1_UpdateInstanceConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_notebooks_v1_UpdateInstanceConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_UpdateInstanceConfigRequest_descriptor, + new java.lang.String[] { + "Name", "Config", + }); + internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_descriptor, + new java.lang.String[] { + "Name", "Labels", + }); + internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_LabelsEntry_descriptor = + internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_descriptor, + new java.lang.String[] { + "Name", "Items", + }); + internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_ItemsEntry_descriptor = + internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_ItemsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_ItemsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_descriptor, + new java.lang.String[] { + "Items", + }); + internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_ItemsEntry_descriptor = + internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_ItemsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_ItemsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_notebooks_v1_UpdateShieldedInstanceConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_notebooks_v1_UpdateShieldedInstanceConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_UpdateShieldedInstanceConfigRequest_descriptor, + new java.lang.String[] { + "Name", "ShieldedInstanceConfig", + }); + internal_static_google_cloud_notebooks_v1_DeleteInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_notebooks_v1_DeleteInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_DeleteInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_notebooks_v1_StartInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_notebooks_v1_StartInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_StartInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_notebooks_v1_StopInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_notebooks_v1_StopInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_StopInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_notebooks_v1_ResetInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_notebooks_v1_ResetInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_ResetInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_descriptor, + new java.lang.String[] { + "Name", "VmId", "Metadata", + }); + internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_MetadataEntry_descriptor = + internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_MetadataEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_MetadataEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableRequest_descriptor, + new java.lang.String[] { + "NotebookInstance", "Type", + }); + internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableResponse_descriptor, + new java.lang.String[] { + "Upgradeable", "UpgradeVersion", "UpgradeInfo", "UpgradeImage", + }); + internal_static_google_cloud_notebooks_v1_GetInstanceHealthRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_notebooks_v1_GetInstanceHealthRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_GetInstanceHealthRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_descriptor, + new java.lang.String[] { + "HealthState", "HealthInfo", + }); + internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_HealthInfoEntry_descriptor = + internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_HealthInfoEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_HealthInfoEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_notebooks_v1_UpgradeInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_notebooks_v1_UpgradeInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_UpgradeInstanceRequest_descriptor, + new java.lang.String[] { + "Name", "Type", + }); + internal_static_google_cloud_notebooks_v1_RollbackInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_notebooks_v1_RollbackInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_RollbackInstanceRequest_descriptor, + new java.lang.String[] { + "Name", "TargetSnapshot", + }); + internal_static_google_cloud_notebooks_v1_UpgradeInstanceInternalRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_notebooks_v1_UpgradeInstanceInternalRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_UpgradeInstanceInternalRequest_descriptor, + new java.lang.String[] { + "Name", "VmId", "Type", + }); + internal_static_google_cloud_notebooks_v1_ListEnvironmentsRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_notebooks_v1_ListEnvironmentsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_ListEnvironmentsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_notebooks_v1_DiagnoseInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_notebooks_v1_DiagnoseInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_DiagnoseInstanceRequest_descriptor, + new java.lang.String[] { + "Name", "DiagnosticConfig", + }); + internal_static_google_cloud_notebooks_v1_ListEnvironmentsResponse_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_notebooks_v1_ListEnvironmentsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_ListEnvironmentsResponse_descriptor, + new java.lang.String[] { + "Environments", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_notebooks_v1_GetEnvironmentRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_notebooks_v1_GetEnvironmentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_GetEnvironmentRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_notebooks_v1_CreateEnvironmentRequest_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_notebooks_v1_CreateEnvironmentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_CreateEnvironmentRequest_descriptor, + new java.lang.String[] { + "Parent", "EnvironmentId", "Environment", + }); + internal_static_google_cloud_notebooks_v1_DeleteEnvironmentRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_notebooks_v1_DeleteEnvironmentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_DeleteEnvironmentRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_notebooks_v1_ListSchedulesRequest_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_notebooks_v1_ListSchedulesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_ListSchedulesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_notebooks_v1_ListSchedulesResponse_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_notebooks_v1_ListSchedulesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_ListSchedulesResponse_descriptor, + new java.lang.String[] { + "Schedules", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_notebooks_v1_GetScheduleRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_notebooks_v1_GetScheduleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_GetScheduleRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_notebooks_v1_DeleteScheduleRequest_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_notebooks_v1_DeleteScheduleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_DeleteScheduleRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_notebooks_v1_CreateScheduleRequest_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_notebooks_v1_CreateScheduleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_CreateScheduleRequest_descriptor, + new java.lang.String[] { + "Parent", "ScheduleId", "Schedule", + }); + internal_static_google_cloud_notebooks_v1_TriggerScheduleRequest_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_notebooks_v1_TriggerScheduleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_TriggerScheduleRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_notebooks_v1_ListExecutionsRequest_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_cloud_notebooks_v1_ListExecutionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_ListExecutionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_notebooks_v1_ListExecutionsResponse_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_cloud_notebooks_v1_ListExecutionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_ListExecutionsResponse_descriptor, + new java.lang.String[] { + "Executions", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_notebooks_v1_GetExecutionRequest_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_cloud_notebooks_v1_GetExecutionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_GetExecutionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_notebooks_v1_DeleteExecutionRequest_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_cloud_notebooks_v1_DeleteExecutionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_DeleteExecutionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_notebooks_v1_CreateExecutionRequest_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_cloud_notebooks_v1_CreateExecutionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_CreateExecutionRequest_descriptor, + new java.lang.String[] { + "Parent", "ExecutionId", "Execution", + }); + 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.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.cloud.notebooks.v1.DiagnosticConfigProto.getDescriptor(); + com.google.cloud.notebooks.v1.EnvironmentProto.getDescriptor(); + com.google.cloud.notebooks.v1.ExecutionProto.getDescriptor(); + com.google.cloud.notebooks.v1.InstanceProto.getDescriptor(); + com.google.cloud.notebooks.v1.InstanceConfigProto.getDescriptor(); + com.google.cloud.notebooks.v1.ScheduleProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/OperationMetadata.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/OperationMetadata.java similarity index 72% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/OperationMetadata.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/OperationMetadata.java index 5ffd220f6d80..360591edae55 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/OperationMetadata.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -29,37 +47,41 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.OperationMetadata.class, com.google.cloud.notebooks.v1.OperationMetadata.Builder.class); + com.google.cloud.notebooks.v1.OperationMetadata.class, + com.google.cloud.notebooks.v1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -67,11 +89,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ @java.lang.Override @@ -79,6 +104,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The time the operation was created.
    * 
@@ -93,11 +120,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -105,11 +135,14 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -117,6 +150,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The time the operation finished running.
    * 
@@ -131,11 +166,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** + * + * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3; + * * @return The target. */ @java.lang.Override @@ -144,29 +182,29 @@ public java.lang.String getTarget() { 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(); target_ = s; return s; } } /** + * + * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -177,11 +215,14 @@ public java.lang.String getTarget() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** + * + * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; + * * @return The verb. */ @java.lang.Override @@ -190,29 +231,29 @@ public java.lang.String getVerb() { 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(); verb_ = s; return s; } } /** + * + * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -223,11 +264,14 @@ public java.lang.String getVerb() { public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; private volatile java.lang.Object statusMessage_; /** + * + * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5; + * * @return The statusMessage. */ @java.lang.Override @@ -236,29 +280,29 @@ public java.lang.String getStatusMessage() { 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(); statusMessage_ = s; return s; } } /** + * + * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5; + * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -269,6 +313,8 @@ public java.lang.String getStatusMessage() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_; /** + * + * *
    * Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -277,6 +323,7 @@ public java.lang.String getStatusMessage() {
    * 
* * bool requested_cancellation = 6; + * * @return The requestedCancellation. */ @java.lang.Override @@ -287,11 +334,14 @@ public boolean getRequestedCancellation() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** + * + * *
    * API version used to start the operation.
    * 
* * string api_version = 7; + * * @return The apiVersion. */ @java.lang.Override @@ -300,29 +350,29 @@ public java.lang.String getApiVersion() { 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(); apiVersion_ = s; return s; } } /** + * + * *
    * API version used to start the operation.
    * 
* * string api_version = 7; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -333,11 +383,14 @@ public java.lang.String getApiVersion() { public static final int ENDPOINT_FIELD_NUMBER = 8; private volatile java.lang.Object endpoint_; /** + * + * *
    * API endpoint name of this operation.
    * 
* * string endpoint = 8; + * * @return The endpoint. */ @java.lang.Override @@ -346,29 +399,29 @@ public java.lang.String getEndpoint() { 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(); endpoint_ = s; return s; } } /** + * + * *
    * API endpoint name of this operation.
    * 
* * string endpoint = 8; + * * @return The bytes for endpoint. */ @java.lang.Override - public com.google.protobuf.ByteString - getEndpointBytes() { + public com.google.protobuf.ByteString getEndpointBytes() { java.lang.Object ref = endpoint_; 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); endpoint_ = b; return b; } else { @@ -377,6 +430,7 @@ public java.lang.String getEndpoint() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -388,8 +442,7 @@ 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 (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -424,12 +477,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -441,8 +492,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -458,35 +508,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.cloud.notebooks.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.OperationMetadata other = (com.google.cloud.notebooks.v1.OperationMetadata) obj; + com.google.cloud.notebooks.v1.OperationMetadata other = + (com.google.cloud.notebooks.v1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getStatusMessage() - .equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() - != other.getRequestedCancellation()) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; - if (!getEndpoint() - .equals(other.getEndpoint())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() != other.getRequestedCancellation()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getEndpoint().equals(other.getEndpoint())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -513,8 +556,7 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; @@ -524,130 +566,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.notebooks.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.notebooks.v1.OperationMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.OperationMetadata 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.cloud.notebooks.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.OperationMetadata 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.cloud.notebooks.v1.OperationMetadata 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.cloud.notebooks.v1.OperationMetadata 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.cloud.notebooks.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.OperationMetadata 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.cloud.notebooks.v1.OperationMetadata 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.cloud.notebooks.v1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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.cloud.notebooks.v1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + 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; } /** + * + * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.OperationMetadata) com.google.cloud.notebooks.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.OperationMetadata.class, com.google.cloud.notebooks.v1.OperationMetadata.Builder.class); + com.google.cloud.notebooks.v1.OperationMetadata.class, + com.google.cloud.notebooks.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.notebooks.v1.OperationMetadata.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -679,9 +727,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -700,7 +748,8 @@ public com.google.cloud.notebooks.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.notebooks.v1.OperationMetadata buildPartial() { - com.google.cloud.notebooks.v1.OperationMetadata result = new com.google.cloud.notebooks.v1.OperationMetadata(this); + com.google.cloud.notebooks.v1.OperationMetadata result = + new com.google.cloud.notebooks.v1.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -725,38 +774,39 @@ public com.google.cloud.notebooks.v1.OperationMetadata buildPartial() { 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.cloud.notebooks.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.notebooks.v1.OperationMetadata)other); + return mergeFrom((com.google.cloud.notebooks.v1.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -764,7 +814,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.OperationMetadata other) { - if (other == com.google.cloud.notebooks.v1.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -820,56 +871,61 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - case 26: { - target_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - verb_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - statusMessage_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 48: { - requestedCancellation_ = input.readBool(); - - break; - } // case 48 - case 58: { - apiVersion_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: { - endpoint_ = input.readStringRequireUtf8(); - - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + statusMessage_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 48: + { + requestedCancellation_ = input.readBool(); + + break; + } // case 48 + case 58: + { + apiVersion_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + endpoint_ = input.readStringRequireUtf8(); + + 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) { @@ -882,34 +938,47 @@ public Builder mergeFrom( 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_; /** + * + * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; + * * @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(); } } /** + * + * *
      * The time the operation was created.
      * 
@@ -930,14 +999,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -948,6 +1018,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -958,7 +1030,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -970,6 +1042,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -988,6 +1062,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -995,11 +1071,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 1; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time the operation was created.
      * 
@@ -1010,11 +1088,14 @@ 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_; } } /** + * + * *
      * The time the operation was created.
      * 
@@ -1022,14 +1103,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ 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_; @@ -1037,24 +1121,33 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; /** + * + * *
      * The time the operation finished running.
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * The time the operation finished running.
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1065,6 +1158,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time the operation finished running.
      * 
@@ -1085,14 +1180,15 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation finished running.
      * 
* * .google.protobuf.Timestamp end_time = 2; */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1103,6 +1199,8 @@ public Builder setEndTime( return this; } /** + * + * *
      * The time the operation finished running.
      * 
@@ -1113,7 +1211,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1125,6 +1223,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation finished running.
      * 
@@ -1143,6 +1243,8 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * The time the operation finished running.
      * 
@@ -1150,11 +1252,13 @@ public Builder clearEndTime() { * .google.protobuf.Timestamp end_time = 2; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time the operation finished running.
      * 
@@ -1165,11 +1269,12 @@ 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_; } } /** + * + * *
      * The time the operation finished running.
      * 
@@ -1177,14 +1282,17 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 2; */ 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_; @@ -1192,18 +1300,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1212,20 +1322,21 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1233,54 +1344,61 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { + public Builder setTarget(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; + * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1288,18 +1406,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1308,20 +1428,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1329,54 +1450,61 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { + public Builder setVerb(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { + public Builder setVerbBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1384,18 +1512,20 @@ public Builder setVerbBytes( private java.lang.Object statusMessage_ = ""; /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5; + * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1404,20 +1534,21 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5; + * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1425,61 +1556,70 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5; + * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage( - java.lang.String value) { + public Builder setStatusMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusMessage_ = value; onChanged(); return this; } /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5; + * * @return This builder for chaining. */ public Builder clearStatusMessage() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5; + * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; onChanged(); return this; } - private boolean requestedCancellation_ ; + private boolean requestedCancellation_; /** + * + * *
      * Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1488,6 +1628,7 @@ public Builder setStatusMessageBytes(
      * 
* * bool requested_cancellation = 6; + * * @return The requestedCancellation. */ @java.lang.Override @@ -1495,6 +1636,8 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** + * + * *
      * Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1503,16 +1646,19 @@ public boolean getRequestedCancellation() {
      * 
* * bool requested_cancellation = 6; + * * @param value The requestedCancellation to set. * @return This builder for chaining. */ public Builder setRequestedCancellation(boolean value) { - + requestedCancellation_ = value; onChanged(); return this; } /** + * + * *
      * Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1521,10 +1667,11 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6; + * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { - + requestedCancellation_ = false; onChanged(); return this; @@ -1532,18 +1679,20 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * API version used to start the operation.
      * 
* * string api_version = 7; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1552,20 +1701,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * API version used to start the operation.
      * 
* * string api_version = 7; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1573,54 +1723,61 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * API version used to start the operation.
      * 
* * string api_version = 7; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { + public Builder setApiVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** + * + * *
      * API version used to start the operation.
      * 
* * string api_version = 7; + * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** + * + * *
      * API version used to start the operation.
      * 
* * string api_version = 7; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; @@ -1628,18 +1785,20 @@ public Builder setApiVersionBytes( private java.lang.Object endpoint_ = ""; /** + * + * *
      * API endpoint name of this operation.
      * 
* * string endpoint = 8; + * * @return The endpoint. */ public java.lang.String getEndpoint() { java.lang.Object ref = endpoint_; 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(); endpoint_ = s; return s; @@ -1648,20 +1807,21 @@ public java.lang.String getEndpoint() { } } /** + * + * *
      * API endpoint name of this operation.
      * 
* * string endpoint = 8; + * * @return The bytes for endpoint. */ - public com.google.protobuf.ByteString - getEndpointBytes() { + public com.google.protobuf.ByteString getEndpointBytes() { java.lang.Object ref = endpoint_; 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); endpoint_ = b; return b; } else { @@ -1669,61 +1829,68 @@ public java.lang.String getEndpoint() { } } /** + * + * *
      * API endpoint name of this operation.
      * 
* * string endpoint = 8; + * * @param value The endpoint to set. * @return This builder for chaining. */ - public Builder setEndpoint( - java.lang.String value) { + public Builder setEndpoint(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + endpoint_ = value; onChanged(); return this; } /** + * + * *
      * API endpoint name of this operation.
      * 
* * string endpoint = 8; + * * @return This builder for chaining. */ public Builder clearEndpoint() { - + endpoint_ = getDefaultInstance().getEndpoint(); onChanged(); return this; } /** + * + * *
      * API endpoint name of this operation.
      * 
* * string endpoint = 8; + * * @param value The bytes for endpoint to set. * @return This builder for chaining. */ - public Builder setEndpointBytes( - com.google.protobuf.ByteString value) { + public Builder setEndpointBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + endpoint_ = 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); } @@ -1733,12 +1900,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.OperationMetadata) private static final com.google.cloud.notebooks.v1.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.OperationMetadata(); } @@ -1747,27 +1914,27 @@ public static com.google.cloud.notebooks.v1.OperationMetadata getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -1782,6 +1949,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/OperationMetadataOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/OperationMetadataOrBuilder.java similarity index 76% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/OperationMetadataOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/OperationMetadataOrBuilder.java index 58c4f21de078..0c28eaff9d76 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/OperationMetadataOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/OperationMetadataOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The time the operation was created.
    * 
@@ -35,24 +59,32 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The time the operation finished running.
    * 
@@ -62,66 +94,83 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5; + * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** + * + * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5; + * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString - getStatusMessageBytes(); + com.google.protobuf.ByteString getStatusMessageBytes(); /** + * + * *
    * Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -130,47 +179,58 @@ public interface OperationMetadataOrBuilder extends
    * 
* * bool requested_cancellation = 6; + * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** + * + * *
    * API version used to start the operation.
    * 
* * string api_version = 7; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * API version used to start the operation.
    * 
* * string api_version = 7; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); /** + * + * *
    * API endpoint name of this operation.
    * 
* * string endpoint = 8; + * * @return The endpoint. */ java.lang.String getEndpoint(); /** + * + * *
    * API endpoint name of this operation.
    * 
* * string endpoint = 8; + * * @return The bytes for endpoint. */ - com.google.protobuf.ByteString - getEndpointBytes(); + com.google.protobuf.ByteString getEndpointBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RefreshRuntimeTokenInternalRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RefreshRuntimeTokenInternalRequest.java similarity index 63% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RefreshRuntimeTokenInternalRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RefreshRuntimeTokenInternalRequest.java index ac5c53d32a46..de0678e3e019 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RefreshRuntimeTokenInternalRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RefreshRuntimeTokenInternalRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/managed_service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for getting a new access token.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest} */ -public final class RefreshRuntimeTokenInternalRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RefreshRuntimeTokenInternalRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest) RefreshRuntimeTokenInternalRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RefreshRuntimeTokenInternalRequest.newBuilder() to construct. - private RefreshRuntimeTokenInternalRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RefreshRuntimeTokenInternalRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RefreshRuntimeTokenInternalRequest() { name_ = ""; vmId_ = ""; @@ -26,38 +45,44 @@ private RefreshRuntimeTokenInternalRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RefreshRuntimeTokenInternalRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest.class, com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest.Builder.class); + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest.class, + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,30 +91,32 @@ 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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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 { @@ -100,12 +127,15 @@ public java.lang.String getName() { public static final int VM_ID_FIELD_NUMBER = 2; private volatile java.lang.Object vmId_; /** + * + * *
    * Required. The VM hardware token for authenticating the VM.
    * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
    * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vmId. */ @java.lang.Override @@ -114,30 +144,30 @@ public java.lang.String getVmId() { 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(); vmId_ = s; return s; } } /** + * + * *
    * Required. The VM hardware token for authenticating the VM.
    * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
    * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vmId. */ @java.lang.Override - public com.google.protobuf.ByteString - getVmIdBytes() { + public com.google.protobuf.ByteString getVmIdBytes() { java.lang.Object ref = vmId_; 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); vmId_ = b; return b; } else { @@ -146,6 +176,7 @@ public java.lang.String getVmId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -157,8 +188,7 @@ 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_); } @@ -188,17 +218,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.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest other = (com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest) obj; + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest other = + (com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getVmId() - .equals(other.getVmId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getVmId().equals(other.getVmId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -220,129 +249,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest 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.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest 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.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest 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.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest 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.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest 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.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest 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.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest 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.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest 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; } /** + * + * *
    * Request for getting a new access token.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest) com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest.class, com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest.Builder.class); + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest.class, + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -354,13 +390,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalRequest_descriptor; } @java.lang.Override - public com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest getDefaultInstanceForType() { + public com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest + getDefaultInstanceForType() { return com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest.getDefaultInstance(); } @@ -375,7 +412,8 @@ public com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest build() @java.lang.Override public com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest buildPartial() { - com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest result = new com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest(this); + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest result = + new com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest(this); result.name_ = name_; result.vmId_ = vmId_; onBuilt(); @@ -386,46 +424,50 @@ public com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest buildPar 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.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest other) { - if (other == com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest other) { + if (other + == com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -460,22 +502,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - vmId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + vmId_ = input.readStringRequireUtf8(); + + 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) { @@ -488,19 +533,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -509,21 +558,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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 { @@ -531,57 +583,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -589,19 +654,21 @@ public Builder setNameBytes( private java.lang.Object vmId_ = ""; /** + * + * *
      * Required. The VM hardware token for authenticating the VM.
      * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
      * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vmId. */ public java.lang.String getVmId() { java.lang.Object ref = vmId_; 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(); vmId_ = s; return s; @@ -610,21 +677,22 @@ public java.lang.String getVmId() { } } /** + * + * *
      * Required. The VM hardware token for authenticating the VM.
      * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
      * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vmId. */ - public com.google.protobuf.ByteString - getVmIdBytes() { + public com.google.protobuf.ByteString getVmIdBytes() { java.lang.Object ref = vmId_; 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); vmId_ = b; return b; } else { @@ -632,64 +700,71 @@ public java.lang.String getVmId() { } } /** + * + * *
      * Required. The VM hardware token for authenticating the VM.
      * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
      * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The vmId to set. * @return This builder for chaining. */ - public Builder setVmId( - java.lang.String value) { + public Builder setVmId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vmId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The VM hardware token for authenticating the VM.
      * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
      * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearVmId() { - + vmId_ = getDefaultInstance().getVmId(); onChanged(); return this; } /** + * + * *
      * Required. The VM hardware token for authenticating the VM.
      * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
      * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for vmId to set. * @return This builder for chaining. */ - public Builder setVmIdBytes( - com.google.protobuf.ByteString value) { + public Builder setVmIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vmId_ = 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); } @@ -699,41 +774,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest) - private static final com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest DEFAULT_INSTANCE; + private static final com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest(); } - public static com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest getDefaultInstance() { + public static com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RefreshRuntimeTokenInternalRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RefreshRuntimeTokenInternalRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -745,9 +822,8 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest getDefaultInstanceForType() { + public com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RefreshRuntimeTokenInternalRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RefreshRuntimeTokenInternalRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RefreshRuntimeTokenInternalRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RefreshRuntimeTokenInternalRequestOrBuilder.java index c61bf646c059..35bb6d68675c 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RefreshRuntimeTokenInternalRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RefreshRuntimeTokenInternalRequestOrBuilder.java @@ -1,53 +1,83 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/managed_service.proto package com.google.cloud.notebooks.v1; -public interface RefreshRuntimeTokenInternalRequestOrBuilder extends +public interface RefreshRuntimeTokenInternalRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The VM hardware token for authenticating the VM.
    * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
    * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vmId. */ java.lang.String getVmId(); /** + * + * *
    * Required. The VM hardware token for authenticating the VM.
    * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
    * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vmId. */ - com.google.protobuf.ByteString - getVmIdBytes(); + com.google.protobuf.ByteString getVmIdBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RefreshRuntimeTokenInternalResponse.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RefreshRuntimeTokenInternalResponse.java similarity index 61% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RefreshRuntimeTokenInternalResponse.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RefreshRuntimeTokenInternalResponse.java index 6a0a95d77c78..df4d19da3cf3 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RefreshRuntimeTokenInternalResponse.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RefreshRuntimeTokenInternalResponse.java @@ -1,61 +1,85 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/managed_service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Response with a new access token.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse} */ -public final class RefreshRuntimeTokenInternalResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RefreshRuntimeTokenInternalResponse + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse) RefreshRuntimeTokenInternalResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RefreshRuntimeTokenInternalResponse.newBuilder() to construct. - private RefreshRuntimeTokenInternalResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private RefreshRuntimeTokenInternalResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RefreshRuntimeTokenInternalResponse() { accessToken_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RefreshRuntimeTokenInternalResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalResponse_fieldAccessorTable + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse.class, com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse.Builder.class); + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse.class, + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse.Builder.class); } public static final int ACCESS_TOKEN_FIELD_NUMBER = 1; private volatile java.lang.Object accessToken_; /** + * + * *
    * The OAuth 2.0 access token.
    * 
* * string access_token = 1; + * * @return The accessToken. */ @java.lang.Override @@ -64,29 +88,29 @@ public java.lang.String getAccessToken() { 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(); accessToken_ = s; return s; } } /** + * + * *
    * The OAuth 2.0 access token.
    * 
* * string access_token = 1; + * * @return The bytes for accessToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getAccessTokenBytes() { + public com.google.protobuf.ByteString getAccessTokenBytes() { java.lang.Object ref = accessToken_; 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); accessToken_ = b; return b; } else { @@ -97,11 +121,15 @@ public java.lang.String getAccessToken() { public static final int EXPIRE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp expireTime_; /** + * + * *
    * Output only. Token expiration time.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ @java.lang.Override @@ -109,11 +137,15 @@ public boolean hasExpireTime() { return expireTime_ != null; } /** + * + * *
    * Output only. Token expiration time.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ @java.lang.Override @@ -121,11 +153,14 @@ public com.google.protobuf.Timestamp getExpireTime() { return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; } /** + * + * *
    * Output only. Token expiration time.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { @@ -133,6 +168,7 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -144,8 +180,7 @@ 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(accessToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accessToken_); } @@ -165,8 +200,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, accessToken_); } if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExpireTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpireTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -176,19 +210,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.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse other = (com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse) obj; + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse other = + (com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse) obj; - if (!getAccessToken() - .equals(other.getAccessToken())) return false; + if (!getAccessToken().equals(other.getAccessToken())) 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; @@ -213,129 +246,138 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse 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.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse 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.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse 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.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse 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.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse 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.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse 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.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse 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; } /** + * + * *
    * Response with a new access token.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse) com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalResponse_fieldAccessorTable + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse.class, com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse.Builder.class); + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse.class, + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse.Builder.class); } - // Construct using com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -351,13 +393,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalResponse_descriptor; } @java.lang.Override - public com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse getDefaultInstanceForType() { + public com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse + getDefaultInstanceForType() { return com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse.getDefaultInstance(); } @@ -372,7 +415,8 @@ public com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse build() @java.lang.Override public com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse buildPartial() { - com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse result = new com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse(this); + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse result = + new com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse(this); result.accessToken_ = accessToken_; if (expireTimeBuilder_ == null) { result.expireTime_ = expireTime_; @@ -387,46 +431,50 @@ public com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse buildPa 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.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse) { - return mergeFrom((com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse)other); + return mergeFrom((com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse other) { - if (other == com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse other) { + if (other + == com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse.getDefaultInstance()) + return this; if (!other.getAccessToken().isEmpty()) { accessToken_ = other.accessToken_; onChanged(); @@ -460,24 +508,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - accessToken_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - input.readMessage( - getExpireTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + accessToken_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + + 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) { @@ -490,18 +539,20 @@ public Builder mergeFrom( private java.lang.Object accessToken_ = ""; /** + * + * *
      * The OAuth 2.0 access token.
      * 
* * string access_token = 1; + * * @return The accessToken. */ public java.lang.String getAccessToken() { java.lang.Object ref = accessToken_; 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(); accessToken_ = s; return s; @@ -510,20 +561,21 @@ public java.lang.String getAccessToken() { } } /** + * + * *
      * The OAuth 2.0 access token.
      * 
* * string access_token = 1; + * * @return The bytes for accessToken. */ - public com.google.protobuf.ByteString - getAccessTokenBytes() { + public com.google.protobuf.ByteString getAccessTokenBytes() { java.lang.Object ref = accessToken_; 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); accessToken_ = b; return b; } else { @@ -531,54 +583,61 @@ public java.lang.String getAccessToken() { } } /** + * + * *
      * The OAuth 2.0 access token.
      * 
* * string access_token = 1; + * * @param value The accessToken to set. * @return This builder for chaining. */ - public Builder setAccessToken( - java.lang.String value) { + public Builder setAccessToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + accessToken_ = value; onChanged(); return this; } /** + * + * *
      * The OAuth 2.0 access token.
      * 
* * string access_token = 1; + * * @return This builder for chaining. */ public Builder clearAccessToken() { - + accessToken_ = getDefaultInstance().getAccessToken(); onChanged(); return this; } /** + * + * *
      * The OAuth 2.0 access token.
      * 
* * string access_token = 1; + * * @param value The bytes for accessToken to set. * @return This builder for chaining. */ - public Builder setAccessTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setAccessTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + accessToken_ = value; onChanged(); return this; @@ -586,39 +645,58 @@ public Builder setAccessTokenBytes( 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_; /** + * + * *
      * Output only. Token expiration time.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { return expireTimeBuilder_ != null || expireTime_ != null; } /** + * + * *
      * Output only. Token expiration time.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ public com.google.protobuf.Timestamp getExpireTime() { if (expireTimeBuilder_ == null) { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } else { return expireTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Token expiration time.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { @@ -634,14 +712,17 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Token expiration time.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setExpireTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (expireTimeBuilder_ == null) { expireTime_ = builderForValue.build(); onChanged(); @@ -652,17 +733,21 @@ public Builder setExpireTime( return this; } /** + * + * *
      * Output only. Token expiration time.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { if (expireTime_ != null) { expireTime_ = - com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); } else { expireTime_ = value; } @@ -674,11 +759,15 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Token expiration time.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearExpireTime() { if (expireTimeBuilder_ == null) { @@ -692,55 +781,71 @@ public Builder clearExpireTime() { return this; } /** + * + * *
      * Output only. Token expiration time.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { - + onChanged(); return getExpireTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Token expiration time.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { if (expireTimeBuilder_ != null) { return expireTimeBuilder_.getMessageOrBuilder(); } else { - return expireTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; } } /** + * + * *
      * Output only. Token expiration time.
      * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + 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); } @@ -750,41 +855,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse) - private static final com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse DEFAULT_INSTANCE; + private static final com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse(); } - public static com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse getDefaultInstance() { + public static com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RefreshRuntimeTokenInternalResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RefreshRuntimeTokenInternalResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -796,9 +903,8 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse getDefaultInstanceForType() { + public com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RefreshRuntimeTokenInternalResponseOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RefreshRuntimeTokenInternalResponseOrBuilder.java similarity index 58% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RefreshRuntimeTokenInternalResponseOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RefreshRuntimeTokenInternalResponseOrBuilder.java index fb229e09fa15..c984ceb50ec8 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RefreshRuntimeTokenInternalResponseOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RefreshRuntimeTokenInternalResponseOrBuilder.java @@ -1,56 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/managed_service.proto package com.google.cloud.notebooks.v1; -public interface RefreshRuntimeTokenInternalResponseOrBuilder extends +public interface RefreshRuntimeTokenInternalResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The OAuth 2.0 access token.
    * 
* * string access_token = 1; + * * @return The accessToken. */ java.lang.String getAccessToken(); /** + * + * *
    * The OAuth 2.0 access token.
    * 
* * string access_token = 1; + * * @return The bytes for accessToken. */ - com.google.protobuf.ByteString - getAccessTokenBytes(); + com.google.protobuf.ByteString getAccessTokenBytes(); /** + * + * *
    * Output only. Token expiration time.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the expireTime field is set. */ boolean hasExpireTime(); /** + * + * *
    * Output only. Token expiration time.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The expireTime. */ com.google.protobuf.Timestamp getExpireTime(); /** + * + * *
    * Output only. Token expiration time.
    * 
* - * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RegisterInstanceRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RegisterInstanceRequest.java similarity index 69% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RegisterInstanceRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RegisterInstanceRequest.java index 44d80614a916..b5b66402d2c0 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RegisterInstanceRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RegisterInstanceRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for registering a notebook instance.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.RegisterInstanceRequest} */ -public final class RegisterInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RegisterInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.RegisterInstanceRequest) RegisterInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RegisterInstanceRequest.newBuilder() to construct. private RegisterInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RegisterInstanceRequest() { parent_ = ""; instanceId_ = ""; @@ -26,38 +44,42 @@ private RegisterInstanceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RegisterInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_RegisterInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_RegisterInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_RegisterInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_RegisterInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.RegisterInstanceRequest.class, com.google.cloud.notebooks.v1.RegisterInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1.RegisterInstanceRequest.class, + com.google.cloud.notebooks.v1.RegisterInstanceRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -66,30 +88,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; } } /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -100,6 +122,8 @@ public java.lang.String getParent() { public static final int INSTANCE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object instanceId_; /** + * + * *
    * Required. User defined unique ID of this instance. The `instance_id` must
    * be 1 to 63 characters long and contain only lowercase letters,
@@ -108,6 +132,7 @@ public java.lang.String getParent() {
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The instanceId. */ @java.lang.Override @@ -116,14 +141,15 @@ 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; } } /** + * + * *
    * Required. User defined unique ID of this instance. The `instance_id` must
    * be 1 to 63 characters long and contain only lowercase letters,
@@ -132,16 +158,15 @@ public java.lang.String getInstanceId() {
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -150,6 +175,7 @@ public java.lang.String getInstanceId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,8 +187,7 @@ 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_); } @@ -192,17 +217,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.cloud.notebooks.v1.RegisterInstanceRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.RegisterInstanceRequest other = (com.google.cloud.notebooks.v1.RegisterInstanceRequest) obj; + com.google.cloud.notebooks.v1.RegisterInstanceRequest other = + (com.google.cloud.notebooks.v1.RegisterInstanceRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -224,129 +248,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.RegisterInstanceRequest 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.cloud.notebooks.v1.RegisterInstanceRequest 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.cloud.notebooks.v1.RegisterInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.RegisterInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.RegisterInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.RegisterInstanceRequest 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.cloud.notebooks.v1.RegisterInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.RegisterInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.RegisterInstanceRequest 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.cloud.notebooks.v1.RegisterInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.RegisterInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.RegisterInstanceRequest 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.cloud.notebooks.v1.RegisterInstanceRequest 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.cloud.notebooks.v1.RegisterInstanceRequest 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.cloud.notebooks.v1.RegisterInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1.RegisterInstanceRequest 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; } /** + * + * *
    * Request for registering a notebook instance.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.RegisterInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.RegisterInstanceRequest) com.google.cloud.notebooks.v1.RegisterInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_RegisterInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_RegisterInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_RegisterInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_RegisterInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.RegisterInstanceRequest.class, com.google.cloud.notebooks.v1.RegisterInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1.RegisterInstanceRequest.class, + com.google.cloud.notebooks.v1.RegisterInstanceRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.RegisterInstanceRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -358,9 +389,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_RegisterInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_RegisterInstanceRequest_descriptor; } @java.lang.Override @@ -379,7 +410,8 @@ public com.google.cloud.notebooks.v1.RegisterInstanceRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.RegisterInstanceRequest buildPartial() { - com.google.cloud.notebooks.v1.RegisterInstanceRequest result = new com.google.cloud.notebooks.v1.RegisterInstanceRequest(this); + com.google.cloud.notebooks.v1.RegisterInstanceRequest result = + new com.google.cloud.notebooks.v1.RegisterInstanceRequest(this); result.parent_ = parent_; result.instanceId_ = instanceId_; onBuilt(); @@ -390,38 +422,39 @@ public com.google.cloud.notebooks.v1.RegisterInstanceRequest buildPartial() { 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.cloud.notebooks.v1.RegisterInstanceRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.RegisterInstanceRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.RegisterInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -429,7 +462,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.RegisterInstanceRequest other) { - if (other == com.google.cloud.notebooks.v1.RegisterInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.RegisterInstanceRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -464,22 +498,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - instanceId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + instanceId_ = input.readStringRequireUtf8(); + + 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) { @@ -492,19 +529,21 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -513,21 +552,22 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -535,57 +575,64 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -593,6 +640,8 @@ public Builder setParentBytes( private java.lang.Object instanceId_ = ""; /** + * + * *
      * Required. User defined unique ID of this instance. The `instance_id` must
      * be 1 to 63 characters long and contain only lowercase letters,
@@ -601,13 +650,13 @@ public Builder setParentBytes(
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -616,6 +665,8 @@ public java.lang.String getInstanceId() { } } /** + * + * *
      * Required. User defined unique ID of this instance. The `instance_id` must
      * be 1 to 63 characters long and contain only lowercase letters,
@@ -624,15 +675,14 @@ public java.lang.String getInstanceId() {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -640,6 +690,8 @@ public java.lang.String getInstanceId() { } } /** + * + * *
      * Required. User defined unique ID of this instance. The `instance_id` must
      * be 1 to 63 characters long and contain only lowercase letters,
@@ -648,20 +700,22 @@ public java.lang.String getInstanceId() {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId( - java.lang.String value) { + public Builder setInstanceId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instanceId_ = value; onChanged(); return this; } /** + * + * *
      * Required. User defined unique ID of this instance. The `instance_id` must
      * be 1 to 63 characters long and contain only lowercase letters,
@@ -670,15 +724,18 @@ public Builder setInstanceId(
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearInstanceId() { - + instanceId_ = getDefaultInstance().getInstanceId(); onChanged(); return this; } /** + * + * *
      * Required. User defined unique ID of this instance. The `instance_id` must
      * be 1 to 63 characters long and contain only lowercase letters,
@@ -687,23 +744,23 @@ public Builder clearInstanceId() {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceIdBytes( - com.google.protobuf.ByteString value) { + public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceId_ = 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); } @@ -713,12 +770,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.RegisterInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.RegisterInstanceRequest) private static final com.google.cloud.notebooks.v1.RegisterInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.RegisterInstanceRequest(); } @@ -727,27 +784,27 @@ public static com.google.cloud.notebooks.v1.RegisterInstanceRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RegisterInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RegisterInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -762,6 +819,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.RegisterInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RegisterInstanceRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RegisterInstanceRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RegisterInstanceRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RegisterInstanceRequestOrBuilder.java index d9b998f3e520..01b5260f67e0 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RegisterInstanceRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RegisterInstanceRequestOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface RegisterInstanceRequestOrBuilder extends +public interface RegisterInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.RegisterInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. User defined unique ID of this instance. The `instance_id` must
    * be 1 to 63 characters long and contain only lowercase letters,
@@ -38,10 +61,13 @@ public interface RegisterInstanceRequestOrBuilder extends
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The instanceId. */ java.lang.String getInstanceId(); /** + * + * *
    * Required. User defined unique ID of this instance. The `instance_id` must
    * be 1 to 63 characters long and contain only lowercase letters,
@@ -50,8 +76,8 @@ public interface RegisterInstanceRequestOrBuilder extends
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString - getInstanceIdBytes(); + com.google.protobuf.ByteString getInstanceIdBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportInstanceInfoRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportInstanceInfoRequest.java similarity index 63% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportInstanceInfoRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportInstanceInfoRequest.java index 1411400bc112..917cf29653d4 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportInstanceInfoRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportInstanceInfoRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for notebook instances to report information to Notebooks API.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.ReportInstanceInfoRequest} */ -public final class ReportInstanceInfoRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ReportInstanceInfoRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.ReportInstanceInfoRequest) ReportInstanceInfoRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReportInstanceInfoRequest.newBuilder() to construct. private ReportInstanceInfoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ReportInstanceInfoRequest() { name_ = ""; vmId_ = ""; @@ -26,50 +44,53 @@ private ReportInstanceInfoRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReportInstanceInfoRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_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 3: return internalGetMetadata(); 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.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ReportInstanceInfoRequest.class, com.google.cloud.notebooks.v1.ReportInstanceInfoRequest.Builder.class); + com.google.cloud.notebooks.v1.ReportInstanceInfoRequest.class, + com.google.cloud.notebooks.v1.ReportInstanceInfoRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -78,30 +99,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -112,12 +133,15 @@ public java.lang.String getName() { public static final int VM_ID_FIELD_NUMBER = 2; private volatile java.lang.Object vmId_; /** + * + * *
    * Required. The VM hardware token for authenticating the VM.
    * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
    * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vmId. */ @java.lang.Override @@ -126,30 +150,30 @@ public java.lang.String getVmId() { 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(); vmId_ = s; return s; } } /** + * + * *
    * Required. The VM hardware token for authenticating the VM.
    * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
    * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vmId. */ @java.lang.Override - public com.google.protobuf.ByteString - getVmIdBytes() { + public com.google.protobuf.ByteString getVmIdBytes() { java.lang.Object ref = vmId_; 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); vmId_ = b; return b; } else { @@ -158,24 +182,23 @@ public java.lang.String getVmId() { } public static final int METADATA_FIELD_NUMBER = 3; + private static final class MetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_MetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> metadata_; - private com.google.protobuf.MapField - internalGetMetadata() { + + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } @@ -184,6 +207,8 @@ public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** + * + * *
    * The metadata reported to Notebooks API. This will be merged to the instance
    * metadata store
@@ -191,22 +216,22 @@ public int getMetadataCount() {
    *
    * map<string, string> metadata = 3;
    */
-
   @java.lang.Override
-  public boolean containsMetadata(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsMetadata(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetMetadata().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getMetadataMap()} instead.
-   */
+  /** Use {@link #getMetadataMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getMetadata() {
     return getMetadataMap();
   }
   /**
+   *
+   *
    * 
    * The metadata reported to Notebooks API. This will be merged to the instance
    * metadata store
@@ -215,11 +240,12 @@ public java.util.Map getMetadata() {
    * map<string, string> metadata = 3;
    */
   @java.lang.Override
-
   public java.util.Map getMetadataMap() {
     return internalGetMetadata().getMap();
   }
   /**
+   *
+   *
    * 
    * The metadata reported to Notebooks API. This will be merged to the instance
    * metadata store
@@ -228,16 +254,17 @@ public java.util.Map getMetadataMap() {
    * map<string, string> metadata = 3;
    */
   @java.lang.Override
-
   public java.lang.String getMetadataOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetMetadata().getMap();
+      java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetMetadata().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * The metadata reported to Notebooks API. This will be merged to the instance
    * metadata store
@@ -246,12 +273,11 @@ public java.lang.String getMetadataOrDefault(
    * map<string, string> metadata = 3;
    */
   @java.lang.Override
-
-  public java.lang.String getMetadataOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetMetadata().getMap();
+  public java.lang.String getMetadataOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetMetadata().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -259,6 +285,7 @@ public java.lang.String getMetadataOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -270,20 +297,15 @@ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmId_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, vmId_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetMetadata(),
-        MetadataDefaultEntryHolder.defaultEntry,
-        3);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 3);
     getUnknownFields().writeTo(output);
   }
 
@@ -299,15 +321,15 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmId_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vmId_);
     }
-    for (java.util.Map.Entry entry
-         : internalGetMetadata().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(3, metadata__);
+    for (java.util.Map.Entry entry :
+        internalGetMetadata().getMap().entrySet()) {
+      com.google.protobuf.MapEntry metadata__ =
+          MetadataDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, metadata__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -317,19 +339,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.cloud.notebooks.v1.ReportInstanceInfoRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.notebooks.v1.ReportInstanceInfoRequest other = (com.google.cloud.notebooks.v1.ReportInstanceInfoRequest) obj;
+    com.google.cloud.notebooks.v1.ReportInstanceInfoRequest other =
+        (com.google.cloud.notebooks.v1.ReportInstanceInfoRequest) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (!getVmId()
-        .equals(other.getVmId())) return false;
-    if (!internalGetMetadata().equals(
-        other.internalGetMetadata())) return false;
+    if (!getName().equals(other.getName())) return false;
+    if (!getVmId().equals(other.getVmId())) return false;
+    if (!internalGetMetadata().equals(other.internalGetMetadata())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -355,151 +375,156 @@ public int hashCode() {
   }
 
   public static com.google.cloud.notebooks.v1.ReportInstanceInfoRequest 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.cloud.notebooks.v1.ReportInstanceInfoRequest 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.cloud.notebooks.v1.ReportInstanceInfoRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.notebooks.v1.ReportInstanceInfoRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.notebooks.v1.ReportInstanceInfoRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.notebooks.v1.ReportInstanceInfoRequest 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.cloud.notebooks.v1.ReportInstanceInfoRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.notebooks.v1.ReportInstanceInfoRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.notebooks.v1.ReportInstanceInfoRequest 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.cloud.notebooks.v1.ReportInstanceInfoRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.notebooks.v1.ReportInstanceInfoRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.notebooks.v1.ReportInstanceInfoRequest 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.cloud.notebooks.v1.ReportInstanceInfoRequest 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.cloud.notebooks.v1.ReportInstanceInfoRequest 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.cloud.notebooks.v1.ReportInstanceInfoRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.notebooks.v1.ReportInstanceInfoRequest 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;
   }
   /**
+   *
+   *
    * 
    * Request for notebook instances to report information to Notebooks API.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.ReportInstanceInfoRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.ReportInstanceInfoRequest) com.google.cloud.notebooks.v1.ReportInstanceInfoRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetMetadata(); 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 3: return internalGetMutableMetadata(); 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.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ReportInstanceInfoRequest.class, com.google.cloud.notebooks.v1.ReportInstanceInfoRequest.Builder.class); + com.google.cloud.notebooks.v1.ReportInstanceInfoRequest.class, + com.google.cloud.notebooks.v1.ReportInstanceInfoRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.ReportInstanceInfoRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -512,9 +537,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_descriptor; } @java.lang.Override @@ -533,7 +558,8 @@ public com.google.cloud.notebooks.v1.ReportInstanceInfoRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.ReportInstanceInfoRequest buildPartial() { - com.google.cloud.notebooks.v1.ReportInstanceInfoRequest result = new com.google.cloud.notebooks.v1.ReportInstanceInfoRequest(this); + com.google.cloud.notebooks.v1.ReportInstanceInfoRequest result = + new com.google.cloud.notebooks.v1.ReportInstanceInfoRequest(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.vmId_ = vmId_; @@ -547,38 +573,39 @@ public com.google.cloud.notebooks.v1.ReportInstanceInfoRequest buildPartial() { 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.cloud.notebooks.v1.ReportInstanceInfoRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.ReportInstanceInfoRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.ReportInstanceInfoRequest) other); } else { super.mergeFrom(other); return this; @@ -586,7 +613,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.ReportInstanceInfoRequest other) { - if (other == com.google.cloud.notebooks.v1.ReportInstanceInfoRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.ReportInstanceInfoRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -595,8 +623,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.ReportInstanceInfoRequest vmId_ = other.vmId_; onChanged(); } - internalGetMutableMetadata().mergeFrom( - other.internalGetMetadata()); + internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -623,30 +650,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - vmId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - com.google.protobuf.MapEntry - metadata__ = input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableMetadata().getMutableMap().put( - metadata__.getKey(), metadata__.getValue()); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + vmId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + com.google.protobuf.MapEntry metadata__ = + input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableMetadata() + .getMutableMap() + .put(metadata__.getKey(), metadata__.getValue()); + 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) { @@ -656,23 +689,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -681,21 +717,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -703,57 +740,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -761,19 +805,21 @@ public Builder setNameBytes( private java.lang.Object vmId_ = ""; /** + * + * *
      * Required. The VM hardware token for authenticating the VM.
      * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
      * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vmId. */ public java.lang.String getVmId() { java.lang.Object ref = vmId_; 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(); vmId_ = s; return s; @@ -782,21 +828,22 @@ public java.lang.String getVmId() { } } /** + * + * *
      * Required. The VM hardware token for authenticating the VM.
      * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
      * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vmId. */ - public com.google.protobuf.ByteString - getVmIdBytes() { + public com.google.protobuf.ByteString getVmIdBytes() { java.lang.Object ref = vmId_; 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); vmId_ = b; return b; } else { @@ -804,78 +851,85 @@ public java.lang.String getVmId() { } } /** + * + * *
      * Required. The VM hardware token for authenticating the VM.
      * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
      * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The vmId to set. * @return This builder for chaining. */ - public Builder setVmId( - java.lang.String value) { + public Builder setVmId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vmId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The VM hardware token for authenticating the VM.
      * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
      * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearVmId() { - + vmId_ = getDefaultInstance().getVmId(); onChanged(); return this; } /** + * + * *
      * Required. The VM hardware token for authenticating the VM.
      * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
      * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for vmId to set. * @return This builder for chaining. */ - public Builder setVmIdBytes( - com.google.protobuf.ByteString value) { + public Builder setVmIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vmId_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> metadata_; - private com.google.protobuf.MapField - internalGetMetadata() { + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } + private com.google.protobuf.MapField - internalGetMutableMetadata() { - onChanged();; + internalGetMutableMetadata() { + onChanged(); + ; if (metadata_ == null) { - metadata_ = com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); + metadata_ = + com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry); } if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); @@ -887,6 +941,8 @@ public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** + * + * *
      * The metadata reported to Notebooks API. This will be merged to the instance
      * metadata store
@@ -894,22 +950,22 @@ public int getMetadataCount() {
      *
      * map<string, string> metadata = 3;
      */
-
     @java.lang.Override
-    public boolean containsMetadata(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsMetadata(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetMetadata().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getMetadataMap()} instead.
-     */
+    /** Use {@link #getMetadataMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getMetadata() {
       return getMetadataMap();
     }
     /**
+     *
+     *
      * 
      * The metadata reported to Notebooks API. This will be merged to the instance
      * metadata store
@@ -918,11 +974,12 @@ public java.util.Map getMetadata() {
      * map<string, string> metadata = 3;
      */
     @java.lang.Override
-
     public java.util.Map getMetadataMap() {
       return internalGetMetadata().getMap();
     }
     /**
+     *
+     *
      * 
      * The metadata reported to Notebooks API. This will be merged to the instance
      * metadata store
@@ -931,16 +988,17 @@ public java.util.Map getMetadataMap() {
      * map<string, string> metadata = 3;
      */
     @java.lang.Override
-
     public java.lang.String getMetadataOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetMetadata().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetMetadata().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * The metadata reported to Notebooks API. This will be merged to the instance
      * metadata store
@@ -949,12 +1007,11 @@ public java.lang.String getMetadataOrDefault(
      * map<string, string> metadata = 3;
      */
     @java.lang.Override
-
-    public java.lang.String getMetadataOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetMetadata().getMap();
+    public java.lang.String getMetadataOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetMetadata().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -962,11 +1019,12 @@ public java.lang.String getMetadataOrThrow(
     }
 
     public Builder clearMetadata() {
-      internalGetMutableMetadata().getMutableMap()
-          .clear();
+      internalGetMutableMetadata().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * The metadata reported to Notebooks API. This will be merged to the instance
      * metadata store
@@ -974,23 +1032,21 @@ public Builder clearMetadata() {
      *
      * map<string, string> metadata = 3;
      */
-
-    public Builder removeMetadata(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableMetadata().getMutableMap()
-          .remove(key);
+    public Builder removeMetadata(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableMetadata().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableMetadata() {
+    public java.util.Map getMutableMetadata() {
       return internalGetMutableMetadata().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * The metadata reported to Notebooks API. This will be merged to the instance
      * metadata store
@@ -998,19 +1054,20 @@ public Builder removeMetadata(
      *
      * map<string, string> metadata = 3;
      */
-    public Builder putMetadata(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putMetadata(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       if (value == null) {
-  throw new NullPointerException("map value");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableMetadata().getMutableMap()
-          .put(key, value);
+      internalGetMutableMetadata().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * The metadata reported to Notebooks API. This will be merged to the instance
      * metadata store
@@ -1018,16 +1075,13 @@ public Builder putMetadata(
      *
      * map<string, string> metadata = 3;
      */
-
-    public Builder putAllMetadata(
-        java.util.Map values) {
-      internalGetMutableMetadata().getMutableMap()
-          .putAll(values);
+    public Builder putAllMetadata(java.util.Map values) {
+      internalGetMutableMetadata().getMutableMap().putAll(values);
       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);
     }
 
@@ -1037,12 +1091,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.ReportInstanceInfoRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.ReportInstanceInfoRequest)
   private static final com.google.cloud.notebooks.v1.ReportInstanceInfoRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.ReportInstanceInfoRequest();
   }
@@ -1051,27 +1105,27 @@ public static com.google.cloud.notebooks.v1.ReportInstanceInfoRequest getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ReportInstanceInfoRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        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 PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ReportInstanceInfoRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            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 parser() {
     return PARSER;
@@ -1086,6 +1140,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.notebooks.v1.ReportInstanceInfoRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportInstanceInfoRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportInstanceInfoRequestOrBuilder.java
similarity index 67%
rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportInstanceInfoRequestOrBuilder.java
rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportInstanceInfoRequestOrBuilder.java
index c3fbd83e9d87..5acd6ee5e43b 100644
--- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportInstanceInfoRequestOrBuilder.java
+++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportInstanceInfoRequestOrBuilder.java
@@ -1,57 +1,85 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/notebooks/v1/service.proto
 
 package com.google.cloud.notebooks.v1;
 
-public interface ReportInstanceInfoRequestOrBuilder extends
+public interface ReportInstanceInfoRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.ReportInstanceInfoRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The VM hardware token for authenticating the VM.
    * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
    * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vmId. */ java.lang.String getVmId(); /** + * + * *
    * Required. The VM hardware token for authenticating the VM.
    * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
    * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vmId. */ - com.google.protobuf.ByteString - getVmIdBytes(); + com.google.protobuf.ByteString getVmIdBytes(); /** + * + * *
    * The metadata reported to Notebooks API. This will be merged to the instance
    * metadata store
@@ -61,6 +89,8 @@ public interface ReportInstanceInfoRequestOrBuilder extends
    */
   int getMetadataCount();
   /**
+   *
+   *
    * 
    * The metadata reported to Notebooks API. This will be merged to the instance
    * metadata store
@@ -68,15 +98,13 @@ public interface ReportInstanceInfoRequestOrBuilder extends
    *
    * map<string, string> metadata = 3;
    */
-  boolean containsMetadata(
-      java.lang.String key);
-  /**
-   * Use {@link #getMetadataMap()} instead.
-   */
+  boolean containsMetadata(java.lang.String key);
+  /** Use {@link #getMetadataMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getMetadata();
+  java.util.Map getMetadata();
   /**
+   *
+   *
    * 
    * The metadata reported to Notebooks API. This will be merged to the instance
    * metadata store
@@ -84,9 +112,10 @@ boolean containsMetadata(
    *
    * map<string, string> metadata = 3;
    */
-  java.util.Map
-  getMetadataMap();
+  java.util.Map getMetadataMap();
   /**
+   *
+   *
    * 
    * The metadata reported to Notebooks API. This will be merged to the instance
    * metadata store
@@ -96,11 +125,13 @@ boolean containsMetadata(
    */
 
   /* nullable */
-java.lang.String getMetadataOrDefault(
+  java.lang.String getMetadataOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * The metadata reported to Notebooks API. This will be merged to the instance
    * metadata store
@@ -108,7 +139,5 @@ java.lang.String getMetadataOrDefault(
    *
    * map<string, string> metadata = 3;
    */
-
-  java.lang.String getMetadataOrThrow(
-      java.lang.String key);
+  java.lang.String getMetadataOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportRuntimeEventRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportRuntimeEventRequest.java
similarity index 66%
rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportRuntimeEventRequest.java
rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportRuntimeEventRequest.java
index 2970d835bc1d..71e2b6a18853 100644
--- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportRuntimeEventRequest.java
+++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportRuntimeEventRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/notebooks/v1/managed_service.proto
 
 package com.google.cloud.notebooks.v1;
 
 /**
+ *
+ *
  * 
  * Request for reporting a Managed Notebook Event.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.ReportRuntimeEventRequest} */ -public final class ReportRuntimeEventRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ReportRuntimeEventRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.ReportRuntimeEventRequest) ReportRuntimeEventRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReportRuntimeEventRequest.newBuilder() to construct. private ReportRuntimeEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ReportRuntimeEventRequest() { name_ = ""; vmId_ = ""; @@ -26,38 +44,44 @@ private ReportRuntimeEventRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReportRuntimeEventRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_ReportRuntimeEventRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_ReportRuntimeEventRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_ReportRuntimeEventRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_ReportRuntimeEventRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ReportRuntimeEventRequest.class, com.google.cloud.notebooks.v1.ReportRuntimeEventRequest.Builder.class); + com.google.cloud.notebooks.v1.ReportRuntimeEventRequest.class, + com.google.cloud.notebooks.v1.ReportRuntimeEventRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,30 +90,32 @@ 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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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 { @@ -100,12 +126,15 @@ public java.lang.String getName() { public static final int VM_ID_FIELD_NUMBER = 2; private volatile java.lang.Object vmId_; /** + * + * *
    * Required. The VM hardware token for authenticating the VM.
    * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
    * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vmId. */ @java.lang.Override @@ -114,30 +143,30 @@ public java.lang.String getVmId() { 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(); vmId_ = s; return s; } } /** + * + * *
    * Required. The VM hardware token for authenticating the VM.
    * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
    * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vmId. */ @java.lang.Override - public com.google.protobuf.ByteString - getVmIdBytes() { + public com.google.protobuf.ByteString getVmIdBytes() { java.lang.Object ref = vmId_; 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); vmId_ = b; return b; } else { @@ -148,11 +177,15 @@ public java.lang.String getVmId() { public static final int EVENT_FIELD_NUMBER = 3; private com.google.cloud.notebooks.v1.Event event_; /** + * + * *
    * Required. The Event to be reported.
    * 
* - * .google.cloud.notebooks.v1.Event event = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.notebooks.v1.Event event = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the event field is set. */ @java.lang.Override @@ -160,11 +193,15 @@ public boolean hasEvent() { return event_ != null; } /** + * + * *
    * Required. The Event to be reported.
    * 
* - * .google.cloud.notebooks.v1.Event event = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.notebooks.v1.Event event = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The event. */ @java.lang.Override @@ -172,11 +209,14 @@ public com.google.cloud.notebooks.v1.Event getEvent() { return event_ == null ? com.google.cloud.notebooks.v1.Event.getDefaultInstance() : event_; } /** + * + * *
    * Required. The Event to be reported.
    * 
* - * .google.cloud.notebooks.v1.Event event = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.notebooks.v1.Event event = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.notebooks.v1.EventOrBuilder getEventOrBuilder() { @@ -184,6 +224,7 @@ public com.google.cloud.notebooks.v1.EventOrBuilder getEventOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -195,8 +236,7 @@ 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_); } @@ -222,8 +262,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vmId_); } if (event_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getEvent()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEvent()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -233,21 +272,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.cloud.notebooks.v1.ReportRuntimeEventRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.ReportRuntimeEventRequest other = (com.google.cloud.notebooks.v1.ReportRuntimeEventRequest) obj; + com.google.cloud.notebooks.v1.ReportRuntimeEventRequest other = + (com.google.cloud.notebooks.v1.ReportRuntimeEventRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getVmId() - .equals(other.getVmId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getVmId().equals(other.getVmId())) return false; if (hasEvent() != other.hasEvent()) return false; if (hasEvent()) { - if (!getEvent() - .equals(other.getEvent())) return false; + if (!getEvent().equals(other.getEvent())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -274,129 +311,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.ReportRuntimeEventRequest 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.cloud.notebooks.v1.ReportRuntimeEventRequest 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.cloud.notebooks.v1.ReportRuntimeEventRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ReportRuntimeEventRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.ReportRuntimeEventRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ReportRuntimeEventRequest 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.cloud.notebooks.v1.ReportRuntimeEventRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ReportRuntimeEventRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.ReportRuntimeEventRequest 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.cloud.notebooks.v1.ReportRuntimeEventRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ReportRuntimeEventRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.ReportRuntimeEventRequest 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.cloud.notebooks.v1.ReportRuntimeEventRequest 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.cloud.notebooks.v1.ReportRuntimeEventRequest 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.cloud.notebooks.v1.ReportRuntimeEventRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1.ReportRuntimeEventRequest 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; } /** + * + * *
    * Request for reporting a Managed Notebook Event.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.ReportRuntimeEventRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.ReportRuntimeEventRequest) com.google.cloud.notebooks.v1.ReportRuntimeEventRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_ReportRuntimeEventRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_ReportRuntimeEventRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_ReportRuntimeEventRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_ReportRuntimeEventRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ReportRuntimeEventRequest.class, com.google.cloud.notebooks.v1.ReportRuntimeEventRequest.Builder.class); + com.google.cloud.notebooks.v1.ReportRuntimeEventRequest.class, + com.google.cloud.notebooks.v1.ReportRuntimeEventRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.ReportRuntimeEventRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -414,9 +458,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_ReportRuntimeEventRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_ReportRuntimeEventRequest_descriptor; } @java.lang.Override @@ -435,7 +479,8 @@ public com.google.cloud.notebooks.v1.ReportRuntimeEventRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.ReportRuntimeEventRequest buildPartial() { - com.google.cloud.notebooks.v1.ReportRuntimeEventRequest result = new com.google.cloud.notebooks.v1.ReportRuntimeEventRequest(this); + com.google.cloud.notebooks.v1.ReportRuntimeEventRequest result = + new com.google.cloud.notebooks.v1.ReportRuntimeEventRequest(this); result.name_ = name_; result.vmId_ = vmId_; if (eventBuilder_ == null) { @@ -451,38 +496,39 @@ public com.google.cloud.notebooks.v1.ReportRuntimeEventRequest buildPartial() { 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.cloud.notebooks.v1.ReportRuntimeEventRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.ReportRuntimeEventRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.ReportRuntimeEventRequest) other); } else { super.mergeFrom(other); return this; @@ -490,7 +536,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.ReportRuntimeEventRequest other) { - if (other == com.google.cloud.notebooks.v1.ReportRuntimeEventRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.ReportRuntimeEventRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -528,29 +575,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); + case 10: + { + name_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - vmId_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + vmId_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - input.readMessage( - getEventFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 18 + case 26: + { + input.readMessage(getEventFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -563,19 +612,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -584,21 +637,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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 { @@ -606,57 +662,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -664,19 +733,21 @@ public Builder setNameBytes( private java.lang.Object vmId_ = ""; /** + * + * *
      * Required. The VM hardware token for authenticating the VM.
      * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
      * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vmId. */ public java.lang.String getVmId() { java.lang.Object ref = vmId_; 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(); vmId_ = s; return s; @@ -685,21 +756,22 @@ public java.lang.String getVmId() { } } /** + * + * *
      * Required. The VM hardware token for authenticating the VM.
      * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
      * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vmId. */ - public com.google.protobuf.ByteString - getVmIdBytes() { + public com.google.protobuf.ByteString getVmIdBytes() { java.lang.Object ref = vmId_; 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); vmId_ = b; return b; } else { @@ -707,57 +779,64 @@ public java.lang.String getVmId() { } } /** + * + * *
      * Required. The VM hardware token for authenticating the VM.
      * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
      * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The vmId to set. * @return This builder for chaining. */ - public Builder setVmId( - java.lang.String value) { + public Builder setVmId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vmId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The VM hardware token for authenticating the VM.
      * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
      * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearVmId() { - + vmId_ = getDefaultInstance().getVmId(); onChanged(); return this; } /** + * + * *
      * Required. The VM hardware token for authenticating the VM.
      * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
      * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for vmId to set. * @return This builder for chaining. */ - public Builder setVmIdBytes( - com.google.protobuf.ByteString value) { + public Builder setVmIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vmId_ = value; onChanged(); return this; @@ -765,24 +844,35 @@ public Builder setVmIdBytes( private com.google.cloud.notebooks.v1.Event event_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.Event, com.google.cloud.notebooks.v1.Event.Builder, com.google.cloud.notebooks.v1.EventOrBuilder> eventBuilder_; + com.google.cloud.notebooks.v1.Event, + com.google.cloud.notebooks.v1.Event.Builder, + com.google.cloud.notebooks.v1.EventOrBuilder> + eventBuilder_; /** + * + * *
      * Required. The Event to be reported.
      * 
* - * .google.cloud.notebooks.v1.Event event = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.notebooks.v1.Event event = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the event field is set. */ public boolean hasEvent() { return eventBuilder_ != null || event_ != null; } /** + * + * *
      * Required. The Event to be reported.
      * 
* - * .google.cloud.notebooks.v1.Event event = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.notebooks.v1.Event event = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The event. */ public com.google.cloud.notebooks.v1.Event getEvent() { @@ -793,11 +883,14 @@ public com.google.cloud.notebooks.v1.Event getEvent() { } } /** + * + * *
      * Required. The Event to be reported.
      * 
* - * .google.cloud.notebooks.v1.Event event = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.notebooks.v1.Event event = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setEvent(com.google.cloud.notebooks.v1.Event value) { if (eventBuilder_ == null) { @@ -813,14 +906,16 @@ public Builder setEvent(com.google.cloud.notebooks.v1.Event value) { return this; } /** + * + * *
      * Required. The Event to be reported.
      * 
* - * .google.cloud.notebooks.v1.Event event = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.notebooks.v1.Event event = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setEvent( - com.google.cloud.notebooks.v1.Event.Builder builderForValue) { + public Builder setEvent(com.google.cloud.notebooks.v1.Event.Builder builderForValue) { if (eventBuilder_ == null) { event_ = builderForValue.build(); onChanged(); @@ -831,17 +926,22 @@ public Builder setEvent( return this; } /** + * + * *
      * Required. The Event to be reported.
      * 
* - * .google.cloud.notebooks.v1.Event event = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.notebooks.v1.Event event = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeEvent(com.google.cloud.notebooks.v1.Event value) { if (eventBuilder_ == null) { if (event_ != null) { event_ = - com.google.cloud.notebooks.v1.Event.newBuilder(event_).mergeFrom(value).buildPartial(); + com.google.cloud.notebooks.v1.Event.newBuilder(event_) + .mergeFrom(value) + .buildPartial(); } else { event_ = value; } @@ -853,11 +953,14 @@ public Builder mergeEvent(com.google.cloud.notebooks.v1.Event value) { return this; } /** + * + * *
      * Required. The Event to be reported.
      * 
* - * .google.cloud.notebooks.v1.Event event = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.notebooks.v1.Event event = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearEvent() { if (eventBuilder_ == null) { @@ -871,55 +974,66 @@ public Builder clearEvent() { return this; } /** + * + * *
      * Required. The Event to be reported.
      * 
* - * .google.cloud.notebooks.v1.Event event = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.notebooks.v1.Event event = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.notebooks.v1.Event.Builder getEventBuilder() { - + onChanged(); return getEventFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Event to be reported.
      * 
* - * .google.cloud.notebooks.v1.Event event = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.notebooks.v1.Event event = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.notebooks.v1.EventOrBuilder getEventOrBuilder() { if (eventBuilder_ != null) { return eventBuilder_.getMessageOrBuilder(); } else { - return event_ == null ? - com.google.cloud.notebooks.v1.Event.getDefaultInstance() : event_; + return event_ == null ? com.google.cloud.notebooks.v1.Event.getDefaultInstance() : event_; } } /** + * + * *
      * Required. The Event to be reported.
      * 
* - * .google.cloud.notebooks.v1.Event event = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.notebooks.v1.Event event = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.Event, com.google.cloud.notebooks.v1.Event.Builder, com.google.cloud.notebooks.v1.EventOrBuilder> + com.google.cloud.notebooks.v1.Event, + com.google.cloud.notebooks.v1.Event.Builder, + com.google.cloud.notebooks.v1.EventOrBuilder> getEventFieldBuilder() { if (eventBuilder_ == null) { - eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.Event, com.google.cloud.notebooks.v1.Event.Builder, com.google.cloud.notebooks.v1.EventOrBuilder>( - getEvent(), - getParentForChildren(), - isClean()); + eventBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.Event, + com.google.cloud.notebooks.v1.Event.Builder, + com.google.cloud.notebooks.v1.EventOrBuilder>( + getEvent(), getParentForChildren(), isClean()); event_ = null; } return eventBuilder_; } + @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); } @@ -929,12 +1043,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.ReportRuntimeEventRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.ReportRuntimeEventRequest) private static final com.google.cloud.notebooks.v1.ReportRuntimeEventRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.ReportRuntimeEventRequest(); } @@ -943,27 +1057,27 @@ public static com.google.cloud.notebooks.v1.ReportRuntimeEventRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReportRuntimeEventRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReportRuntimeEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -978,6 +1092,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.notebooks.v1.ReportRuntimeEventRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportRuntimeEventRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportRuntimeEventRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportRuntimeEventRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportRuntimeEventRequestOrBuilder.java index 346bac1e07b1..a547091212d7 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportRuntimeEventRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportRuntimeEventRequestOrBuilder.java @@ -1,80 +1,121 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/managed_service.proto package com.google.cloud.notebooks.v1; -public interface ReportRuntimeEventRequestOrBuilder extends +public interface ReportRuntimeEventRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.ReportRuntimeEventRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The VM hardware token for authenticating the VM.
    * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
    * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vmId. */ java.lang.String getVmId(); /** + * + * *
    * Required. The VM hardware token for authenticating the VM.
    * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
    * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vmId. */ - com.google.protobuf.ByteString - getVmIdBytes(); + com.google.protobuf.ByteString getVmIdBytes(); /** + * + * *
    * Required. The Event to be reported.
    * 
* - * .google.cloud.notebooks.v1.Event event = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.notebooks.v1.Event event = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the event field is set. */ boolean hasEvent(); /** + * + * *
    * Required. The Event to be reported.
    * 
* - * .google.cloud.notebooks.v1.Event event = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.notebooks.v1.Event event = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The event. */ com.google.cloud.notebooks.v1.Event getEvent(); /** + * + * *
    * Required. The Event to be reported.
    * 
* - * .google.cloud.notebooks.v1.Event event = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.notebooks.v1.Event event = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.notebooks.v1.EventOrBuilder getEventOrBuilder(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReservationAffinity.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReservationAffinity.java similarity index 68% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReservationAffinity.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReservationAffinity.java index 7f340b39ac5a..f3f52e7103ab 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReservationAffinity.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReservationAffinity.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/instance.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Reservation Affinity for consuming Zonal reservation.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.ReservationAffinity} */ -public final class ReservationAffinity extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ReservationAffinity extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.ReservationAffinity) ReservationAffinityOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReservationAffinity.newBuilder() to construct. private ReservationAffinity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ReservationAffinity() { consumeReservationType_ = 0; key_ = ""; @@ -27,39 +45,43 @@ private ReservationAffinity() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReservationAffinity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_ReservationAffinity_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.InstanceProto + .internal_static_google_cloud_notebooks_v1_ReservationAffinity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_ReservationAffinity_fieldAccessorTable + return com.google.cloud.notebooks.v1.InstanceProto + .internal_static_google_cloud_notebooks_v1_ReservationAffinity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ReservationAffinity.class, com.google.cloud.notebooks.v1.ReservationAffinity.Builder.class); + com.google.cloud.notebooks.v1.ReservationAffinity.class, + com.google.cloud.notebooks.v1.ReservationAffinity.Builder.class); } /** + * + * *
    * Indicates whether to consume capacity from an reservation or not.
    * 
* * Protobuf enum {@code google.cloud.notebooks.v1.ReservationAffinity.Type} */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { + public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default type.
      * 
@@ -68,6 +90,8 @@ public enum Type */ TYPE_UNSPECIFIED(0), /** + * + * *
      * Do not consume from any allocated capacity.
      * 
@@ -76,6 +100,8 @@ public enum Type */ NO_RESERVATION(1), /** + * + * *
      * Consume any reservation available.
      * 
@@ -84,6 +110,8 @@ public enum Type */ ANY_RESERVATION(2), /** + * + * *
      * Must consume from a specific reservation. Must specify key value fields
      * for specifying the reservations.
@@ -96,6 +124,8 @@ public enum Type
     ;
 
     /**
+     *
+     *
      * 
      * Default type.
      * 
@@ -104,6 +134,8 @@ public enum Type */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Do not consume from any allocated capacity.
      * 
@@ -112,6 +144,8 @@ public enum Type */ public static final int NO_RESERVATION_VALUE = 1; /** + * + * *
      * Consume any reservation available.
      * 
@@ -120,6 +154,8 @@ public enum Type */ public static final int ANY_RESERVATION_VALUE = 2; /** + * + * *
      * Must consume from a specific reservation. Must specify key value fields
      * for specifying the reservations.
@@ -129,7 +165,6 @@ public enum Type
      */
     public static final int SPECIFIC_RESERVATION_VALUE = 3;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -154,50 +189,53 @@ public static Type valueOf(int value) {
      */
     public static Type forNumber(int value) {
       switch (value) {
-        case 0: return TYPE_UNSPECIFIED;
-        case 1: return NO_RESERVATION;
-        case 2: return ANY_RESERVATION;
-        case 3: return SPECIFIC_RESERVATION;
-        default: return null;
+        case 0:
+          return TYPE_UNSPECIFIED;
+        case 1:
+          return NO_RESERVATION;
+        case 2:
+          return ANY_RESERVATION;
+        case 3:
+          return SPECIFIC_RESERVATION;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        Type> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            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 internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          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.cloud.notebooks.v1.ReservationAffinity.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.notebooks.v1.ReservationAffinity.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;
@@ -217,38 +255,56 @@ private Type(int value) {
   public static final int CONSUME_RESERVATION_TYPE_FIELD_NUMBER = 1;
   private int consumeReservationType_;
   /**
+   *
+   *
    * 
    * Optional. Type of reservation to consume
    * 
* - * .google.cloud.notebooks.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for consumeReservationType. */ - @java.lang.Override public int getConsumeReservationTypeValue() { + @java.lang.Override + public int getConsumeReservationTypeValue() { return consumeReservationType_; } /** + * + * *
    * Optional. Type of reservation to consume
    * 
* - * .google.cloud.notebooks.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The consumeReservationType. */ - @java.lang.Override public com.google.cloud.notebooks.v1.ReservationAffinity.Type getConsumeReservationType() { + @java.lang.Override + public com.google.cloud.notebooks.v1.ReservationAffinity.Type getConsumeReservationType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.ReservationAffinity.Type result = com.google.cloud.notebooks.v1.ReservationAffinity.Type.valueOf(consumeReservationType_); - return result == null ? com.google.cloud.notebooks.v1.ReservationAffinity.Type.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1.ReservationAffinity.Type result = + com.google.cloud.notebooks.v1.ReservationAffinity.Type.valueOf(consumeReservationType_); + return result == null + ? com.google.cloud.notebooks.v1.ReservationAffinity.Type.UNRECOGNIZED + : result; } public static final int KEY_FIELD_NUMBER = 2; private volatile java.lang.Object key_; /** + * + * *
    * Optional. Corresponds to the label key of reservation resource.
    * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The key. */ @java.lang.Override @@ -257,29 +313,29 @@ public java.lang.String getKey() { 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(); key_ = s; return s; } } /** + * + * *
    * Optional. Corresponds to the label key of reservation resource.
    * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; 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); key_ = b; return b; } else { @@ -290,34 +346,42 @@ public java.lang.String getKey() { public static final int VALUES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList values_; /** + * + * *
    * Optional. Corresponds to the label values of reservation resource.
    * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the values. */ - public com.google.protobuf.ProtocolStringList - getValuesList() { + public com.google.protobuf.ProtocolStringList getValuesList() { return values_; } /** + * + * *
    * Optional. Corresponds to the label values of reservation resource.
    * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** + * + * *
    * Optional. Corresponds to the label values of reservation resource.
    * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The values at the given index. */ @@ -325,20 +389,23 @@ public java.lang.String getValues(int index) { return values_.get(index); } /** + * + * *
    * Optional. Corresponds to the label values of reservation resource.
    * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { + public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -350,9 +417,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (consumeReservationType_ != com.google.cloud.notebooks.v1.ReservationAffinity.Type.TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (consumeReservationType_ + != com.google.cloud.notebooks.v1.ReservationAffinity.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, consumeReservationType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { @@ -370,9 +437,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (consumeReservationType_ != com.google.cloud.notebooks.v1.ReservationAffinity.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, consumeReservationType_); + if (consumeReservationType_ + != com.google.cloud.notebooks.v1.ReservationAffinity.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, consumeReservationType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); @@ -393,18 +460,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.cloud.notebooks.v1.ReservationAffinity)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.ReservationAffinity other = (com.google.cloud.notebooks.v1.ReservationAffinity) obj; + com.google.cloud.notebooks.v1.ReservationAffinity other = + (com.google.cloud.notebooks.v1.ReservationAffinity) obj; if (consumeReservationType_ != other.consumeReservationType_) return false; - if (!getKey() - .equals(other.getKey())) return false; - if (!getValuesList() - .equals(other.getValuesList())) return false; + if (!getKey().equals(other.getKey())) return false; + if (!getValuesList().equals(other.getValuesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -430,129 +496,135 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.ReservationAffinity 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.cloud.notebooks.v1.ReservationAffinity 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.cloud.notebooks.v1.ReservationAffinity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ReservationAffinity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.ReservationAffinity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ReservationAffinity 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.cloud.notebooks.v1.ReservationAffinity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ReservationAffinity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.ReservationAffinity 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.cloud.notebooks.v1.ReservationAffinity parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ReservationAffinity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.ReservationAffinity 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.cloud.notebooks.v1.ReservationAffinity 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.cloud.notebooks.v1.ReservationAffinity 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.cloud.notebooks.v1.ReservationAffinity 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; } /** + * + * *
    * Reservation Affinity for consuming Zonal reservation.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.ReservationAffinity} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.ReservationAffinity) com.google.cloud.notebooks.v1.ReservationAffinityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_ReservationAffinity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.InstanceProto + .internal_static_google_cloud_notebooks_v1_ReservationAffinity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_ReservationAffinity_fieldAccessorTable + return com.google.cloud.notebooks.v1.InstanceProto + .internal_static_google_cloud_notebooks_v1_ReservationAffinity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ReservationAffinity.class, com.google.cloud.notebooks.v1.ReservationAffinity.Builder.class); + com.google.cloud.notebooks.v1.ReservationAffinity.class, + com.google.cloud.notebooks.v1.ReservationAffinity.Builder.class); } // Construct using com.google.cloud.notebooks.v1.ReservationAffinity.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -566,9 +638,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.InstanceProto.internal_static_google_cloud_notebooks_v1_ReservationAffinity_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.InstanceProto + .internal_static_google_cloud_notebooks_v1_ReservationAffinity_descriptor; } @java.lang.Override @@ -587,7 +659,8 @@ public com.google.cloud.notebooks.v1.ReservationAffinity build() { @java.lang.Override public com.google.cloud.notebooks.v1.ReservationAffinity buildPartial() { - com.google.cloud.notebooks.v1.ReservationAffinity result = new com.google.cloud.notebooks.v1.ReservationAffinity(this); + com.google.cloud.notebooks.v1.ReservationAffinity result = + new com.google.cloud.notebooks.v1.ReservationAffinity(this); int from_bitField0_ = bitField0_; result.consumeReservationType_ = consumeReservationType_; result.key_ = key_; @@ -604,38 +677,39 @@ public com.google.cloud.notebooks.v1.ReservationAffinity buildPartial() { 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.cloud.notebooks.v1.ReservationAffinity) { - return mergeFrom((com.google.cloud.notebooks.v1.ReservationAffinity)other); + return mergeFrom((com.google.cloud.notebooks.v1.ReservationAffinity) other); } else { super.mergeFrom(other); return this; @@ -643,7 +717,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.ReservationAffinity other) { - if (other == com.google.cloud.notebooks.v1.ReservationAffinity.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.ReservationAffinity.getDefaultInstance()) + return this; if (other.consumeReservationType_ != 0) { setConsumeReservationTypeValue(other.getConsumeReservationTypeValue()); } @@ -687,28 +762,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - consumeReservationType_ = input.readEnum(); + case 8: + { + consumeReservationType_ = input.readEnum(); - break; - } // case 8 - case 18: { - key_ = input.readStringRequireUtf8(); + break; + } // case 8 + case 18: + { + key_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureValuesIsMutable(); - values_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.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) { @@ -718,77 +797,108 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int consumeReservationType_ = 0; /** + * + * *
      * Optional. Type of reservation to consume
      * 
* - * .google.cloud.notebooks.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for consumeReservationType. */ - @java.lang.Override public int getConsumeReservationTypeValue() { + @java.lang.Override + public int getConsumeReservationTypeValue() { return consumeReservationType_; } /** + * + * *
      * Optional. Type of reservation to consume
      * 
* - * .google.cloud.notebooks.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for consumeReservationType to set. * @return This builder for chaining. */ public Builder setConsumeReservationTypeValue(int value) { - + consumeReservationType_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Type of reservation to consume
      * 
* - * .google.cloud.notebooks.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The consumeReservationType. */ @java.lang.Override public com.google.cloud.notebooks.v1.ReservationAffinity.Type getConsumeReservationType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.ReservationAffinity.Type result = com.google.cloud.notebooks.v1.ReservationAffinity.Type.valueOf(consumeReservationType_); - return result == null ? com.google.cloud.notebooks.v1.ReservationAffinity.Type.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1.ReservationAffinity.Type result = + com.google.cloud.notebooks.v1.ReservationAffinity.Type.valueOf(consumeReservationType_); + return result == null + ? com.google.cloud.notebooks.v1.ReservationAffinity.Type.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. Type of reservation to consume
      * 
* - * .google.cloud.notebooks.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The consumeReservationType to set. * @return This builder for chaining. */ - public Builder setConsumeReservationType(com.google.cloud.notebooks.v1.ReservationAffinity.Type value) { + public Builder setConsumeReservationType( + com.google.cloud.notebooks.v1.ReservationAffinity.Type value) { if (value == null) { throw new NullPointerException(); } - + consumeReservationType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. Type of reservation to consume
      * 
* - * .google.cloud.notebooks.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearConsumeReservationType() { - + consumeReservationType_ = 0; onChanged(); return this; @@ -796,18 +906,20 @@ public Builder clearConsumeReservationType() { private java.lang.Object key_ = ""; /** + * + * *
      * Optional. Corresponds to the label key of reservation resource.
      * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; 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(); key_ = s; return s; @@ -816,20 +928,21 @@ public java.lang.String getKey() { } } /** + * + * *
      * Optional. Corresponds to the label key of reservation resource.
      * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for key. */ - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; 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); key_ = b; return b; } else { @@ -837,95 +950,112 @@ public java.lang.String getKey() { } } /** + * + * *
      * Optional. Corresponds to the label key of reservation resource.
      * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey( - java.lang.String value) { + public Builder setKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + key_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Corresponds to the label key of reservation resource.
      * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearKey() { - + key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** + * + * *
      * Optional. Corresponds to the label key of reservation resource.
      * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { + public Builder setKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList values_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { values_ = new com.google.protobuf.LazyStringArrayList(values_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the values. */ - public com.google.protobuf.ProtocolStringList - getValuesList() { + public com.google.protobuf.ProtocolStringList getValuesList() { return values_.getUnmodifiableView(); } /** + * + * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** + * + * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The values at the given index. */ @@ -933,80 +1063,90 @@ public java.lang.String getValues(int index) { return values_.get(index); } /** + * + * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { + public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } /** + * + * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The values to set. * @return This builder for chaining. */ - public Builder setValues( - int index, java.lang.String value) { + public Builder setValues(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); + throw new NullPointerException(); + } + ensureValuesIsMutable(); values_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The values to add. * @return This builder for chaining. */ - public Builder addValues( - java.lang.String value) { + public Builder addValues(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); + throw new NullPointerException(); + } + ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The values to add. * @return This builder for chaining. */ - public Builder addAllValues( - java.lang.Iterable values) { + public Builder addAllValues(java.lang.Iterable values) { ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, values_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); onChanged(); return this; } /** + * + * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValues() { @@ -1016,28 +1156,30 @@ public Builder clearValues() { return this; } /** + * + * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the values to add. * @return This builder for chaining. */ - public Builder addValuesBytes( - com.google.protobuf.ByteString value) { + public Builder addValuesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureValuesIsMutable(); values_.add(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); } @@ -1047,12 +1189,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.ReservationAffinity) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.ReservationAffinity) private static final com.google.cloud.notebooks.v1.ReservationAffinity DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.ReservationAffinity(); } @@ -1061,27 +1203,27 @@ public static com.google.cloud.notebooks.v1.ReservationAffinity getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReservationAffinity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReservationAffinity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -1096,6 +1238,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.ReservationAffinity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReservationAffinityOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReservationAffinityOrBuilder.java similarity index 65% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReservationAffinityOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReservationAffinityOrBuilder.java index 9b017fce2fee..2a35608e8f2f 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReservationAffinityOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReservationAffinityOrBuilder.java @@ -1,89 +1,130 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/instance.proto package com.google.cloud.notebooks.v1; -public interface ReservationAffinityOrBuilder extends +public interface ReservationAffinityOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.ReservationAffinity) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Type of reservation to consume
    * 
* - * .google.cloud.notebooks.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for consumeReservationType. */ int getConsumeReservationTypeValue(); /** + * + * *
    * Optional. Type of reservation to consume
    * 
* - * .google.cloud.notebooks.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The consumeReservationType. */ com.google.cloud.notebooks.v1.ReservationAffinity.Type getConsumeReservationType(); /** + * + * *
    * Optional. Corresponds to the label key of reservation resource.
    * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The key. */ java.lang.String getKey(); /** + * + * *
    * Optional. Corresponds to the label key of reservation resource.
    * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for key. */ - com.google.protobuf.ByteString - getKeyBytes(); + com.google.protobuf.ByteString getKeyBytes(); /** + * + * *
    * Optional. Corresponds to the label values of reservation resource.
    * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the values. */ - java.util.List - getValuesList(); + java.util.List getValuesList(); /** + * + * *
    * Optional. Corresponds to the label values of reservation resource.
    * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of values. */ int getValuesCount(); /** + * + * *
    * Optional. Corresponds to the label values of reservation resource.
    * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The values at the given index. */ java.lang.String getValues(int index); /** + * + * *
    * Optional. Corresponds to the label values of reservation resource.
    * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - com.google.protobuf.ByteString - getValuesBytes(int index); + com.google.protobuf.ByteString getValuesBytes(int index); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetInstanceRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetInstanceRequest.java similarity index 65% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetInstanceRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetInstanceRequest.java index 236d4817e18f..7acd60d5fc95 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetInstanceRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetInstanceRequest.java @@ -1,62 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for resetting a notebook instance
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.ResetInstanceRequest} */ -public final class ResetInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ResetInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.ResetInstanceRequest) ResetInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResetInstanceRequest.newBuilder() to construct. private ResetInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ResetInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ResetInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ResetInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ResetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ResetInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ResetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ResetInstanceRequest.class, com.google.cloud.notebooks.v1.ResetInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1.ResetInstanceRequest.class, + com.google.cloud.notebooks.v1.ResetInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -65,30 +87,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -97,6 +119,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +131,7 @@ 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_); } @@ -133,15 +155,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.cloud.notebooks.v1.ResetInstanceRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.ResetInstanceRequest other = (com.google.cloud.notebooks.v1.ResetInstanceRequest) obj; + com.google.cloud.notebooks.v1.ResetInstanceRequest other = + (com.google.cloud.notebooks.v1.ResetInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,129 +183,135 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.ResetInstanceRequest 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.cloud.notebooks.v1.ResetInstanceRequest 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.cloud.notebooks.v1.ResetInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ResetInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.ResetInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ResetInstanceRequest 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.cloud.notebooks.v1.ResetInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ResetInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.ResetInstanceRequest 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.cloud.notebooks.v1.ResetInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ResetInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.ResetInstanceRequest 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.cloud.notebooks.v1.ResetInstanceRequest 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.cloud.notebooks.v1.ResetInstanceRequest 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.cloud.notebooks.v1.ResetInstanceRequest 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; } /** + * + * *
    * Request for resetting a notebook instance
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.ResetInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.ResetInstanceRequest) com.google.cloud.notebooks.v1.ResetInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ResetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ResetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ResetInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ResetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ResetInstanceRequest.class, com.google.cloud.notebooks.v1.ResetInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1.ResetInstanceRequest.class, + com.google.cloud.notebooks.v1.ResetInstanceRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.ResetInstanceRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +321,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_ResetInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_ResetInstanceRequest_descriptor; } @java.lang.Override @@ -314,7 +342,8 @@ public com.google.cloud.notebooks.v1.ResetInstanceRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.ResetInstanceRequest buildPartial() { - com.google.cloud.notebooks.v1.ResetInstanceRequest result = new com.google.cloud.notebooks.v1.ResetInstanceRequest(this); + com.google.cloud.notebooks.v1.ResetInstanceRequest result = + new com.google.cloud.notebooks.v1.ResetInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +353,39 @@ public com.google.cloud.notebooks.v1.ResetInstanceRequest buildPartial() { 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.cloud.notebooks.v1.ResetInstanceRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.ResetInstanceRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.ResetInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -363,7 +393,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.ResetInstanceRequest other) { - if (other == com.google.cloud.notebooks.v1.ResetInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.ResetInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -394,17 +425,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -417,19 +450,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -438,21 +473,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -460,64 +496,71 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -527,12 +570,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.ResetInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.ResetInstanceRequest) private static final com.google.cloud.notebooks.v1.ResetInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.ResetInstanceRequest(); } @@ -541,27 +584,27 @@ public static com.google.cloud.notebooks.v1.ResetInstanceRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResetInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResetInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -576,6 +619,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.ResetInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetInstanceRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetInstanceRequestOrBuilder.java similarity index 52% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetInstanceRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetInstanceRequestOrBuilder.java index 09d3d63611d3..a77db1c5402d 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetInstanceRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetInstanceRequestOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface ResetInstanceRequestOrBuilder extends +public interface ResetInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.ResetInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetRuntimeRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetRuntimeRequest.java similarity index 67% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetRuntimeRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetRuntimeRequest.java index 40f4e2730610..e64566b6f2d8 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetRuntimeRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetRuntimeRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/managed_service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for resetting a Managed Notebook Runtime.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.ResetRuntimeRequest} */ -public final class ResetRuntimeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ResetRuntimeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.ResetRuntimeRequest) ResetRuntimeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResetRuntimeRequest.newBuilder() to construct. private ResetRuntimeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ResetRuntimeRequest() { name_ = ""; requestId_ = ""; @@ -26,38 +44,42 @@ private ResetRuntimeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ResetRuntimeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_ResetRuntimeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_ResetRuntimeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_ResetRuntimeRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_ResetRuntimeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ResetRuntimeRequest.class, com.google.cloud.notebooks.v1.ResetRuntimeRequest.Builder.class); + com.google.cloud.notebooks.v1.ResetRuntimeRequest.class, + com.google.cloud.notebooks.v1.ResetRuntimeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -66,30 +88,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -100,11 +122,14 @@ public java.lang.String getName() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 2; + * * @return The requestId. */ @java.lang.Override @@ -113,29 +138,29 @@ public java.lang.String getRequestId() { 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(); requestId_ = s; return s; } } /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 2; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; 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); requestId_ = b; return b; } else { @@ -144,6 +169,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +181,7 @@ 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_); } @@ -186,17 +211,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.cloud.notebooks.v1.ResetRuntimeRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.ResetRuntimeRequest other = (com.google.cloud.notebooks.v1.ResetRuntimeRequest) obj; + com.google.cloud.notebooks.v1.ResetRuntimeRequest other = + (com.google.cloud.notebooks.v1.ResetRuntimeRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -218,129 +242,135 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.ResetRuntimeRequest 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.cloud.notebooks.v1.ResetRuntimeRequest 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.cloud.notebooks.v1.ResetRuntimeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ResetRuntimeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.ResetRuntimeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.ResetRuntimeRequest 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.cloud.notebooks.v1.ResetRuntimeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ResetRuntimeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.ResetRuntimeRequest 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.cloud.notebooks.v1.ResetRuntimeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.ResetRuntimeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.ResetRuntimeRequest 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.cloud.notebooks.v1.ResetRuntimeRequest 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.cloud.notebooks.v1.ResetRuntimeRequest 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.cloud.notebooks.v1.ResetRuntimeRequest 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; } /** + * + * *
    * Request for resetting a Managed Notebook Runtime.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.ResetRuntimeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.ResetRuntimeRequest) com.google.cloud.notebooks.v1.ResetRuntimeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_ResetRuntimeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_ResetRuntimeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_ResetRuntimeRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_ResetRuntimeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.ResetRuntimeRequest.class, com.google.cloud.notebooks.v1.ResetRuntimeRequest.Builder.class); + com.google.cloud.notebooks.v1.ResetRuntimeRequest.class, + com.google.cloud.notebooks.v1.ResetRuntimeRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.ResetRuntimeRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -352,9 +382,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_ResetRuntimeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_ResetRuntimeRequest_descriptor; } @java.lang.Override @@ -373,7 +403,8 @@ public com.google.cloud.notebooks.v1.ResetRuntimeRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.ResetRuntimeRequest buildPartial() { - com.google.cloud.notebooks.v1.ResetRuntimeRequest result = new com.google.cloud.notebooks.v1.ResetRuntimeRequest(this); + com.google.cloud.notebooks.v1.ResetRuntimeRequest result = + new com.google.cloud.notebooks.v1.ResetRuntimeRequest(this); result.name_ = name_; result.requestId_ = requestId_; onBuilt(); @@ -384,38 +415,39 @@ public com.google.cloud.notebooks.v1.ResetRuntimeRequest buildPartial() { 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.cloud.notebooks.v1.ResetRuntimeRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.ResetRuntimeRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.ResetRuntimeRequest) other); } else { super.mergeFrom(other); return this; @@ -423,7 +455,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.ResetRuntimeRequest other) { - if (other == com.google.cloud.notebooks.v1.ResetRuntimeRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.ResetRuntimeRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -458,22 +491,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - requestId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + + 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) { @@ -486,19 +522,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -507,21 +545,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -529,57 +568,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -587,18 +633,20 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 2; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; 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(); requestId_ = s; return s; @@ -607,20 +655,21 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 2; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; 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); requestId_ = b; return b; } else { @@ -628,61 +677,68 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 2; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 2; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 2; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -692,12 +748,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.ResetRuntimeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.ResetRuntimeRequest) private static final com.google.cloud.notebooks.v1.ResetRuntimeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.ResetRuntimeRequest(); } @@ -706,27 +762,27 @@ public static com.google.cloud.notebooks.v1.ResetRuntimeRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResetRuntimeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResetRuntimeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -741,6 +797,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.ResetRuntimeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetRuntimeRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetRuntimeRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetRuntimeRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetRuntimeRequestOrBuilder.java index 2051ef541e27..3c72fd1920c1 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetRuntimeRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetRuntimeRequestOrBuilder.java @@ -1,51 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/managed_service.proto package com.google.cloud.notebooks.v1; -public interface ResetRuntimeRequestOrBuilder extends +public interface ResetRuntimeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.ResetRuntimeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 2; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 2; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RollbackInstanceRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RollbackInstanceRequest.java similarity index 68% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RollbackInstanceRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RollbackInstanceRequest.java index 2a6e3b85cdbc..6e0a66253206 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RollbackInstanceRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RollbackInstanceRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for rollbacking a notebook instance
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.RollbackInstanceRequest} */ -public final class RollbackInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RollbackInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.RollbackInstanceRequest) RollbackInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RollbackInstanceRequest.newBuilder() to construct. private RollbackInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RollbackInstanceRequest() { name_ = ""; targetSnapshot_ = ""; @@ -26,38 +44,42 @@ private RollbackInstanceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RollbackInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_RollbackInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_RollbackInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_RollbackInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_RollbackInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.RollbackInstanceRequest.class, com.google.cloud.notebooks.v1.RollbackInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1.RollbackInstanceRequest.class, + com.google.cloud.notebooks.v1.RollbackInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -66,30 +88,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -100,12 +122,15 @@ public java.lang.String getName() { public static final int TARGET_SNAPSHOT_FIELD_NUMBER = 2; private volatile java.lang.Object targetSnapshot_; /** + * + * *
    * Required. The snapshot for rollback.
    * Example: "projects/test-project/global/snapshots/krwlzipynril".
    * 
* * string target_snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetSnapshot. */ @java.lang.Override @@ -114,30 +139,30 @@ public java.lang.String getTargetSnapshot() { 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(); targetSnapshot_ = s; return s; } } /** + * + * *
    * Required. The snapshot for rollback.
    * Example: "projects/test-project/global/snapshots/krwlzipynril".
    * 
* * string target_snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetSnapshot. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetSnapshotBytes() { + public com.google.protobuf.ByteString getTargetSnapshotBytes() { java.lang.Object ref = targetSnapshot_; 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); targetSnapshot_ = b; return b; } else { @@ -146,6 +171,7 @@ public java.lang.String getTargetSnapshot() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -157,8 +183,7 @@ 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_); } @@ -188,17 +213,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.cloud.notebooks.v1.RollbackInstanceRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.RollbackInstanceRequest other = (com.google.cloud.notebooks.v1.RollbackInstanceRequest) obj; + com.google.cloud.notebooks.v1.RollbackInstanceRequest other = + (com.google.cloud.notebooks.v1.RollbackInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getTargetSnapshot() - .equals(other.getTargetSnapshot())) return false; + if (!getName().equals(other.getName())) return false; + if (!getTargetSnapshot().equals(other.getTargetSnapshot())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -220,129 +244,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.RollbackInstanceRequest 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.cloud.notebooks.v1.RollbackInstanceRequest 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.cloud.notebooks.v1.RollbackInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.RollbackInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.RollbackInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.RollbackInstanceRequest 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.cloud.notebooks.v1.RollbackInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.RollbackInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.RollbackInstanceRequest 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.cloud.notebooks.v1.RollbackInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.RollbackInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.RollbackInstanceRequest 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.cloud.notebooks.v1.RollbackInstanceRequest 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.cloud.notebooks.v1.RollbackInstanceRequest 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.cloud.notebooks.v1.RollbackInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1.RollbackInstanceRequest 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; } /** + * + * *
    * Request for rollbacking a notebook instance
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.RollbackInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.RollbackInstanceRequest) com.google.cloud.notebooks.v1.RollbackInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_RollbackInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_RollbackInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_RollbackInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_RollbackInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.RollbackInstanceRequest.class, com.google.cloud.notebooks.v1.RollbackInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1.RollbackInstanceRequest.class, + com.google.cloud.notebooks.v1.RollbackInstanceRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.RollbackInstanceRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -354,9 +385,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_RollbackInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_RollbackInstanceRequest_descriptor; } @java.lang.Override @@ -375,7 +406,8 @@ public com.google.cloud.notebooks.v1.RollbackInstanceRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.RollbackInstanceRequest buildPartial() { - com.google.cloud.notebooks.v1.RollbackInstanceRequest result = new com.google.cloud.notebooks.v1.RollbackInstanceRequest(this); + com.google.cloud.notebooks.v1.RollbackInstanceRequest result = + new com.google.cloud.notebooks.v1.RollbackInstanceRequest(this); result.name_ = name_; result.targetSnapshot_ = targetSnapshot_; onBuilt(); @@ -386,38 +418,39 @@ public com.google.cloud.notebooks.v1.RollbackInstanceRequest buildPartial() { 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.cloud.notebooks.v1.RollbackInstanceRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.RollbackInstanceRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.RollbackInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -425,7 +458,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.RollbackInstanceRequest other) { - if (other == com.google.cloud.notebooks.v1.RollbackInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.RollbackInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -460,22 +494,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - targetSnapshot_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + targetSnapshot_ = input.readStringRequireUtf8(); + + 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) { @@ -488,19 +525,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -509,21 +548,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -531,57 +571,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -589,19 +636,21 @@ public Builder setNameBytes( private java.lang.Object targetSnapshot_ = ""; /** + * + * *
      * Required. The snapshot for rollback.
      * Example: "projects/test-project/global/snapshots/krwlzipynril".
      * 
* * string target_snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetSnapshot. */ public java.lang.String getTargetSnapshot() { java.lang.Object ref = targetSnapshot_; 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(); targetSnapshot_ = s; return s; @@ -610,21 +659,22 @@ public java.lang.String getTargetSnapshot() { } } /** + * + * *
      * Required. The snapshot for rollback.
      * Example: "projects/test-project/global/snapshots/krwlzipynril".
      * 
* * string target_snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetSnapshot. */ - public com.google.protobuf.ByteString - getTargetSnapshotBytes() { + public com.google.protobuf.ByteString getTargetSnapshotBytes() { java.lang.Object ref = targetSnapshot_; 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); targetSnapshot_ = b; return b; } else { @@ -632,64 +682,71 @@ public java.lang.String getTargetSnapshot() { } } /** + * + * *
      * Required. The snapshot for rollback.
      * Example: "projects/test-project/global/snapshots/krwlzipynril".
      * 
* * string target_snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The targetSnapshot to set. * @return This builder for chaining. */ - public Builder setTargetSnapshot( - java.lang.String value) { + public Builder setTargetSnapshot(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetSnapshot_ = value; onChanged(); return this; } /** + * + * *
      * Required. The snapshot for rollback.
      * Example: "projects/test-project/global/snapshots/krwlzipynril".
      * 
* * string target_snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearTargetSnapshot() { - + targetSnapshot_ = getDefaultInstance().getTargetSnapshot(); onChanged(); return this; } /** + * + * *
      * Required. The snapshot for rollback.
      * Example: "projects/test-project/global/snapshots/krwlzipynril".
      * 
* * string target_snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for targetSnapshot to set. * @return This builder for chaining. */ - public Builder setTargetSnapshotBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetSnapshotBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetSnapshot_ = 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); } @@ -699,12 +756,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.RollbackInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.RollbackInstanceRequest) private static final com.google.cloud.notebooks.v1.RollbackInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.RollbackInstanceRequest(); } @@ -713,27 +770,27 @@ public static com.google.cloud.notebooks.v1.RollbackInstanceRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RollbackInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RollbackInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -748,6 +805,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.RollbackInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RollbackInstanceRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RollbackInstanceRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RollbackInstanceRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RollbackInstanceRequestOrBuilder.java index ecc5921b26e5..b015b944c08e 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RollbackInstanceRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RollbackInstanceRequestOrBuilder.java @@ -1,53 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface RollbackInstanceRequestOrBuilder extends +public interface RollbackInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.RollbackInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The snapshot for rollback.
    * Example: "projects/test-project/global/snapshots/krwlzipynril".
    * 
* * string target_snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The targetSnapshot. */ java.lang.String getTargetSnapshot(); /** + * + * *
    * Required. The snapshot for rollback.
    * Example: "projects/test-project/global/snapshots/krwlzipynril".
    * 
* * string target_snapshot = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for targetSnapshot. */ - com.google.protobuf.ByteString - getTargetSnapshotBytes(); + com.google.protobuf.ByteString getTargetSnapshotBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Runtime.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Runtime.java similarity index 69% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Runtime.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Runtime.java index 6eb7d9ec294d..7efa3d31ae43 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Runtime.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Runtime.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/runtime.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * The definition of a Runtime for a managed notebook instance.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.Runtime} */ -public final class Runtime extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Runtime extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.Runtime) RuntimeOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Runtime.newBuilder() to construct. private Runtime(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Runtime() { name_ = ""; state_ = 0; @@ -27,39 +45,43 @@ private Runtime() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Runtime(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_Runtime_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_Runtime_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_Runtime_fieldAccessorTable + return com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_Runtime_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.Runtime.class, com.google.cloud.notebooks.v1.Runtime.Builder.class); + com.google.cloud.notebooks.v1.Runtime.class, + com.google.cloud.notebooks.v1.Runtime.Builder.class); } /** + * + * *
    * The definition of the states of this runtime.
    * 
* * Protobuf enum {@code google.cloud.notebooks.v1.Runtime.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * State is not specified.
      * 
@@ -68,6 +90,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The compute layer is starting the runtime. It is not ready for use.
      * 
@@ -76,6 +100,8 @@ public enum State */ STARTING(1), /** + * + * *
      * The compute layer is installing required frameworks and registering the
      * runtime with notebook proxy. It cannot be used.
@@ -85,6 +111,8 @@ public enum State
      */
     PROVISIONING(2),
     /**
+     *
+     *
      * 
      * The runtime is currently running. It is ready for use.
      * 
@@ -93,6 +121,8 @@ public enum State */ ACTIVE(3), /** + * + * *
      * The control logic is stopping the runtime. It cannot be used.
      * 
@@ -101,6 +131,8 @@ public enum State */ STOPPING(4), /** + * + * *
      * The runtime is stopped. It cannot be used.
      * 
@@ -109,6 +141,8 @@ public enum State */ STOPPED(5), /** + * + * *
      * The runtime is being deleted. It cannot be used.
      * 
@@ -117,6 +151,8 @@ public enum State */ DELETING(6), /** + * + * *
      * The runtime is upgrading. It cannot be used.
      * 
@@ -125,6 +161,8 @@ public enum State */ UPGRADING(7), /** + * + * *
      * The runtime is being created and set up. It is not ready for use.
      * 
@@ -136,6 +174,8 @@ public enum State ; /** + * + * *
      * State is not specified.
      * 
@@ -144,6 +184,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The compute layer is starting the runtime. It is not ready for use.
      * 
@@ -152,6 +194,8 @@ public enum State */ public static final int STARTING_VALUE = 1; /** + * + * *
      * The compute layer is installing required frameworks and registering the
      * runtime with notebook proxy. It cannot be used.
@@ -161,6 +205,8 @@ public enum State
      */
     public static final int PROVISIONING_VALUE = 2;
     /**
+     *
+     *
      * 
      * The runtime is currently running. It is ready for use.
      * 
@@ -169,6 +215,8 @@ public enum State */ public static final int ACTIVE_VALUE = 3; /** + * + * *
      * The control logic is stopping the runtime. It cannot be used.
      * 
@@ -177,6 +225,8 @@ public enum State */ public static final int STOPPING_VALUE = 4; /** + * + * *
      * The runtime is stopped. It cannot be used.
      * 
@@ -185,6 +235,8 @@ public enum State */ public static final int STOPPED_VALUE = 5; /** + * + * *
      * The runtime is being deleted. It cannot be used.
      * 
@@ -193,6 +245,8 @@ public enum State */ public static final int DELETING_VALUE = 6; /** + * + * *
      * The runtime is upgrading. It cannot be used.
      * 
@@ -201,6 +255,8 @@ public enum State */ public static final int UPGRADING_VALUE = 7; /** + * + * *
      * The runtime is being created and set up. It is not ready for use.
      * 
@@ -209,7 +265,6 @@ public enum State */ public static final int INITIALIZING_VALUE = 8; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -234,55 +289,61 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return STARTING; - case 2: return PROVISIONING; - case 3: return ACTIVE; - case 4: return STOPPING; - case 5: return STOPPED; - case 6: return DELETING; - case 7: return UPGRADING; - case 8: return INITIALIZING; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + case 0: + return STATE_UNSPECIFIED; + case 1: + return STARTING; + case 2: + return PROVISIONING; + case 3: + return ACTIVE; + case 4: + return STOPPING; + case 5: + return STOPPED; + case 6: + return DELETING; + case 7: + return UPGRADING; + case 8: + return INITIALIZING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.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.cloud.notebooks.v1.Runtime.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; @@ -300,15 +361,18 @@ private State(int value) { } /** + * + * *
    * The runtime substate.
    * 
* * Protobuf enum {@code google.cloud.notebooks.v1.Runtime.HealthState} */ - public enum HealthState - implements com.google.protobuf.ProtocolMessageEnum { + public enum HealthState implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The runtime substate is unknown.
      * 
@@ -317,6 +381,8 @@ public enum HealthState */ HEALTH_STATE_UNSPECIFIED(0), /** + * + * *
      * The runtime is known to be in an healthy state
      * (for example, critical daemons are running)
@@ -327,6 +393,8 @@ public enum HealthState
      */
     HEALTHY(1),
     /**
+     *
+     *
      * 
      * The runtime is known to be in an unhealthy state
      * (for example, critical daemons are not running)
@@ -337,6 +405,8 @@ public enum HealthState
      */
     UNHEALTHY(2),
     /**
+     *
+     *
      * 
      * The runtime has not installed health monitoring agent.
      * Applies to ACTIVE state.
@@ -346,6 +416,8 @@ public enum HealthState
      */
     AGENT_NOT_INSTALLED(3),
     /**
+     *
+     *
      * 
      * The runtime health monitoring agent is not running.
      * Applies to ACTIVE state.
@@ -358,6 +430,8 @@ public enum HealthState
     ;
 
     /**
+     *
+     *
      * 
      * The runtime substate is unknown.
      * 
@@ -366,6 +440,8 @@ public enum HealthState */ public static final int HEALTH_STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The runtime is known to be in an healthy state
      * (for example, critical daemons are running)
@@ -376,6 +452,8 @@ public enum HealthState
      */
     public static final int HEALTHY_VALUE = 1;
     /**
+     *
+     *
      * 
      * The runtime is known to be in an unhealthy state
      * (for example, critical daemons are not running)
@@ -386,6 +464,8 @@ public enum HealthState
      */
     public static final int UNHEALTHY_VALUE = 2;
     /**
+     *
+     *
      * 
      * The runtime has not installed health monitoring agent.
      * Applies to ACTIVE state.
@@ -395,6 +475,8 @@ public enum HealthState
      */
     public static final int AGENT_NOT_INSTALLED_VALUE = 3;
     /**
+     *
+     *
      * 
      * The runtime health monitoring agent is not running.
      * Applies to ACTIVE state.
@@ -404,7 +486,6 @@ public enum HealthState
      */
     public static final int AGENT_NOT_RUNNING_VALUE = 4;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -429,51 +510,53 @@ public static HealthState valueOf(int value) {
      */
     public static HealthState forNumber(int value) {
       switch (value) {
-        case 0: return HEALTH_STATE_UNSPECIFIED;
-        case 1: return HEALTHY;
-        case 2: return UNHEALTHY;
-        case 3: return AGENT_NOT_INSTALLED;
-        case 4: return AGENT_NOT_RUNNING;
-        default: return null;
-      }
-    }
-
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+        case 0:
+          return HEALTH_STATE_UNSPECIFIED;
+        case 1:
+          return HEALTHY;
+        case 2:
+          return UNHEALTHY;
+        case 3:
+          return AGENT_NOT_INSTALLED;
+        case 4:
+          return AGENT_NOT_RUNNING;
+        default:
+          return null;
+      }
+    }
+
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        HealthState> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public HealthState findValueByNumber(int number) {
-              return HealthState.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public HealthState findValueByNumber(int number) {
+            return HealthState.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.cloud.notebooks.v1.Runtime.getDescriptor().getEnumTypes().get(1);
     }
 
     private static final HealthState[] VALUES = values();
 
-    public static HealthState valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static HealthState 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;
@@ -492,12 +575,15 @@ private HealthState(int value) {
 
   private int runtimeTypeCase_ = 0;
   private java.lang.Object runtimeType_;
+
   public enum RuntimeTypeCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     VIRTUAL_MACHINE(2),
     RUNTIMETYPE_NOT_SET(0);
     private final int value;
+
     private RuntimeTypeCase(int value) {
       this.value = value;
     }
@@ -513,25 +599,29 @@ public static RuntimeTypeCase valueOf(int value) {
 
     public static RuntimeTypeCase forNumber(int value) {
       switch (value) {
-        case 2: return VIRTUAL_MACHINE;
-        case 0: return RUNTIMETYPE_NOT_SET;
-        default: return null;
+        case 2:
+          return VIRTUAL_MACHINE;
+        case 0:
+          return RUNTIMETYPE_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public RuntimeTypeCase
-  getRuntimeTypeCase() {
-    return RuntimeTypeCase.forNumber(
-        runtimeTypeCase_);
+  public RuntimeTypeCase getRuntimeTypeCase() {
+    return RuntimeTypeCase.forNumber(runtimeTypeCase_);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Output only. The resource name of the runtime.
    * Format:
@@ -539,6 +629,7 @@ public int getNumber() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -547,14 +638,15 @@ 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; } } /** + * + * *
    * Output only. The resource name of the runtime.
    * Format:
@@ -562,16 +654,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -581,11 +672,14 @@ public java.lang.String getName() { public static final int VIRTUAL_MACHINE_FIELD_NUMBER = 2; /** + * + * *
    * Use a Compute Engine VM image to start the managed notebook instance.
    * 
* * .google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2; + * * @return Whether the virtualMachine field is set. */ @java.lang.Override @@ -593,21 +687,26 @@ public boolean hasVirtualMachine() { return runtimeTypeCase_ == 2; } /** + * + * *
    * Use a Compute Engine VM image to start the managed notebook instance.
    * 
* * .google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2; + * * @return The virtualMachine. */ @java.lang.Override public com.google.cloud.notebooks.v1.VirtualMachine getVirtualMachine() { if (runtimeTypeCase_ == 2) { - return (com.google.cloud.notebooks.v1.VirtualMachine) runtimeType_; + return (com.google.cloud.notebooks.v1.VirtualMachine) runtimeType_; } return com.google.cloud.notebooks.v1.VirtualMachine.getDefaultInstance(); } /** + * + * *
    * Use a Compute Engine VM image to start the managed notebook instance.
    * 
@@ -617,7 +716,7 @@ public com.google.cloud.notebooks.v1.VirtualMachine getVirtualMachine() { @java.lang.Override public com.google.cloud.notebooks.v1.VirtualMachineOrBuilder getVirtualMachineOrBuilder() { if (runtimeTypeCase_ == 2) { - return (com.google.cloud.notebooks.v1.VirtualMachine) runtimeType_; + return (com.google.cloud.notebooks.v1.VirtualMachine) runtimeType_; } return com.google.cloud.notebooks.v1.VirtualMachine.getDefaultInstance(); } @@ -625,65 +724,94 @@ public com.google.cloud.notebooks.v1.VirtualMachineOrBuilder getVirtualMachineOr public static final int STATE_FIELD_NUMBER = 3; private int state_; /** + * + * *
    * Output only. Runtime state.
    * 
* - * .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. Runtime state.
    * 
* - * .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.notebooks.v1.Runtime.State getState() { + @java.lang.Override + public com.google.cloud.notebooks.v1.Runtime.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.Runtime.State result = com.google.cloud.notebooks.v1.Runtime.State.valueOf(state_); + com.google.cloud.notebooks.v1.Runtime.State result = + com.google.cloud.notebooks.v1.Runtime.State.valueOf(state_); return result == null ? com.google.cloud.notebooks.v1.Runtime.State.UNRECOGNIZED : result; } public static final int HEALTH_STATE_FIELD_NUMBER = 4; private int healthState_; /** + * + * *
    * Output only. Runtime health_state.
    * 
* - * .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for healthState. */ - @java.lang.Override public int getHealthStateValue() { + @java.lang.Override + public int getHealthStateValue() { return healthState_; } /** + * + * *
    * Output only. Runtime health_state.
    * 
* - * .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The healthState. */ - @java.lang.Override public com.google.cloud.notebooks.v1.Runtime.HealthState getHealthState() { + @java.lang.Override + public com.google.cloud.notebooks.v1.Runtime.HealthState getHealthState() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.Runtime.HealthState result = com.google.cloud.notebooks.v1.Runtime.HealthState.valueOf(healthState_); + com.google.cloud.notebooks.v1.Runtime.HealthState result = + com.google.cloud.notebooks.v1.Runtime.HealthState.valueOf(healthState_); return result == null ? com.google.cloud.notebooks.v1.Runtime.HealthState.UNRECOGNIZED : result; } public static final int ACCESS_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.notebooks.v1.RuntimeAccessConfig accessConfig_; /** + * + * *
    * The config settings for accessing runtime.
    * 
* * .google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5; + * * @return Whether the accessConfig field is set. */ @java.lang.Override @@ -691,18 +819,25 @@ public boolean hasAccessConfig() { return accessConfig_ != null; } /** + * + * *
    * The config settings for accessing runtime.
    * 
* * .google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5; + * * @return The accessConfig. */ @java.lang.Override public com.google.cloud.notebooks.v1.RuntimeAccessConfig getAccessConfig() { - return accessConfig_ == null ? com.google.cloud.notebooks.v1.RuntimeAccessConfig.getDefaultInstance() : accessConfig_; + return accessConfig_ == null + ? com.google.cloud.notebooks.v1.RuntimeAccessConfig.getDefaultInstance() + : accessConfig_; } /** + * + * *
    * The config settings for accessing runtime.
    * 
@@ -717,11 +852,14 @@ public com.google.cloud.notebooks.v1.RuntimeAccessConfigOrBuilder getAccessConfi public static final int SOFTWARE_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.notebooks.v1.RuntimeSoftwareConfig softwareConfig_; /** + * + * *
    * The config settings for software inside the runtime.
    * 
* * .google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6; + * * @return Whether the softwareConfig field is set. */ @java.lang.Override @@ -729,18 +867,25 @@ public boolean hasSoftwareConfig() { return softwareConfig_ != null; } /** + * + * *
    * The config settings for software inside the runtime.
    * 
* * .google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6; + * * @return The softwareConfig. */ @java.lang.Override public com.google.cloud.notebooks.v1.RuntimeSoftwareConfig getSoftwareConfig() { - return softwareConfig_ == null ? com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.getDefaultInstance() : softwareConfig_; + return softwareConfig_ == null + ? com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.getDefaultInstance() + : softwareConfig_; } /** + * + * *
    * The config settings for software inside the runtime.
    * 
@@ -755,12 +900,17 @@ public com.google.cloud.notebooks.v1.RuntimeSoftwareConfigOrBuilder getSoftwareC public static final int METRICS_FIELD_NUMBER = 7; private com.google.cloud.notebooks.v1.RuntimeMetrics metrics_; /** + * + * *
    * Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
    * stats.
    * 
* - * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the metrics field is set. */ @java.lang.Override @@ -768,25 +918,36 @@ public boolean hasMetrics() { return metrics_ != null; } /** + * + * *
    * Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
    * stats.
    * 
* - * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The metrics. */ @java.lang.Override public com.google.cloud.notebooks.v1.RuntimeMetrics getMetrics() { - return metrics_ == null ? com.google.cloud.notebooks.v1.RuntimeMetrics.getDefaultInstance() : metrics_; + return metrics_ == null + ? com.google.cloud.notebooks.v1.RuntimeMetrics.getDefaultInstance() + : metrics_; } /** + * + * *
    * Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
    * stats.
    * 
* - * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.notebooks.v1.RuntimeMetricsOrBuilder getMetricsOrBuilder() { @@ -796,11 +957,15 @@ public com.google.cloud.notebooks.v1.RuntimeMetricsOrBuilder getMetricsOrBuilder public static final int CREATE_TIME_FIELD_NUMBER = 20; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Runtime creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -808,11 +973,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Runtime creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -820,11 +989,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Runtime creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -834,11 +1006,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 21; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. Runtime update time.
    * 
* - * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -846,11 +1022,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Runtime update time.
    * 
* - * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -858,11 +1038,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. Runtime update time.
    * 
* - * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -870,6 +1053,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -881,8 +1065,7 @@ 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_); } @@ -892,7 +1075,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (state_ != com.google.cloud.notebooks.v1.Runtime.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, state_); } - if (healthState_ != com.google.cloud.notebooks.v1.Runtime.HealthState.HEALTH_STATE_UNSPECIFIED.getNumber()) { + if (healthState_ + != com.google.cloud.notebooks.v1.Runtime.HealthState.HEALTH_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(4, healthState_); } if (accessConfig_ != null) { @@ -923,36 +1107,31 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (runtimeTypeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.notebooks.v1.VirtualMachine) runtimeType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.notebooks.v1.VirtualMachine) runtimeType_); } if (state_ != com.google.cloud.notebooks.v1.Runtime.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); } - if (healthState_ != com.google.cloud.notebooks.v1.Runtime.HealthState.HEALTH_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, healthState_); + if (healthState_ + != com.google.cloud.notebooks.v1.Runtime.HealthState.HEALTH_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, healthState_); } if (accessConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getAccessConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAccessConfig()); } if (softwareConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getSoftwareConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSoftwareConfig()); } if (metrics_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getMetrics()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getMetrics()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getUpdateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -962,47 +1141,40 @@ 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.cloud.notebooks.v1.Runtime)) { return super.equals(obj); } com.google.cloud.notebooks.v1.Runtime other = (com.google.cloud.notebooks.v1.Runtime) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (state_ != other.state_) return false; if (healthState_ != other.healthState_) return false; if (hasAccessConfig() != other.hasAccessConfig()) return false; if (hasAccessConfig()) { - if (!getAccessConfig() - .equals(other.getAccessConfig())) return false; + if (!getAccessConfig().equals(other.getAccessConfig())) return false; } if (hasSoftwareConfig() != other.hasSoftwareConfig()) return false; if (hasSoftwareConfig()) { - if (!getSoftwareConfig() - .equals(other.getSoftwareConfig())) return false; + if (!getSoftwareConfig().equals(other.getSoftwareConfig())) return false; } if (hasMetrics() != other.hasMetrics()) return false; if (hasMetrics()) { - if (!getMetrics() - .equals(other.getMetrics())) return false; + if (!getMetrics().equals(other.getMetrics())) 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 (!getRuntimeTypeCase().equals(other.getRuntimeTypeCase())) return false; switch (runtimeTypeCase_) { case 2: - if (!getVirtualMachine() - .equals(other.getVirtualMachine())) return false; + if (!getVirtualMachine().equals(other.getVirtualMachine())) return false; break; case 0: default: @@ -1057,130 +1229,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.notebooks.v1.Runtime parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.notebooks.v1.Runtime parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.Runtime 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.cloud.notebooks.v1.Runtime parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.notebooks.v1.Runtime parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.Runtime parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.Runtime parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.Runtime 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.cloud.notebooks.v1.Runtime 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.cloud.notebooks.v1.Runtime 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.cloud.notebooks.v1.Runtime 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.cloud.notebooks.v1.Runtime 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.cloud.notebooks.v1.Runtime 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.cloud.notebooks.v1.Runtime 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.cloud.notebooks.v1.Runtime 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; } /** + * + * *
    * The definition of a Runtime for a managed notebook instance.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.Runtime} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.Runtime) com.google.cloud.notebooks.v1.RuntimeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_Runtime_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_Runtime_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_Runtime_fieldAccessorTable + return com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_Runtime_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.Runtime.class, com.google.cloud.notebooks.v1.Runtime.Builder.class); + com.google.cloud.notebooks.v1.Runtime.class, + com.google.cloud.notebooks.v1.Runtime.Builder.class); } // Construct using com.google.cloud.notebooks.v1.Runtime.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1229,9 +1406,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_Runtime_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_Runtime_descriptor; } @java.lang.Override @@ -1250,7 +1427,8 @@ public com.google.cloud.notebooks.v1.Runtime build() { @java.lang.Override public com.google.cloud.notebooks.v1.Runtime buildPartial() { - com.google.cloud.notebooks.v1.Runtime result = new com.google.cloud.notebooks.v1.Runtime(this); + com.google.cloud.notebooks.v1.Runtime result = + new com.google.cloud.notebooks.v1.Runtime(this); result.name_ = name_; if (runtimeTypeCase_ == 2) { if (virtualMachineBuilder_ == null) { @@ -1295,38 +1473,39 @@ public com.google.cloud.notebooks.v1.Runtime buildPartial() { 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.cloud.notebooks.v1.Runtime) { - return mergeFrom((com.google.cloud.notebooks.v1.Runtime)other); + return mergeFrom((com.google.cloud.notebooks.v1.Runtime) other); } else { super.mergeFrom(other); return this; @@ -1361,13 +1540,15 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.Runtime other) { mergeUpdateTime(other.getUpdateTime()); } switch (other.getRuntimeTypeCase()) { - case VIRTUAL_MACHINE: { - mergeVirtualMachine(other.getVirtualMachine()); - break; - } - case RUNTIMETYPE_NOT_SET: { - break; - } + case VIRTUAL_MACHINE: + { + mergeVirtualMachine(other.getVirtualMachine()); + break; + } + case RUNTIMETYPE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1395,69 +1576,67 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - input.readMessage( - getVirtualMachineFieldBuilder().getBuilder(), - extensionRegistry); - runtimeTypeCase_ = 2; - break; - } // case 18 - case 24: { - state_ = input.readEnum(); - - break; - } // case 24 - case 32: { - healthState_ = input.readEnum(); - - break; - } // case 32 - case 42: { - input.readMessage( - getAccessConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 42 - case 50: { - input.readMessage( - getSoftwareConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 50 - case 58: { - input.readMessage( - getMetricsFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 58 - case 162: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 162 - case 170: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 170 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getVirtualMachineFieldBuilder().getBuilder(), extensionRegistry); + runtimeTypeCase_ = 2; + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + + break; + } // case 24 + case 32: + { + healthState_ = input.readEnum(); + + break; + } // case 32 + case 42: + { + input.readMessage(getAccessConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 50: + { + input.readMessage(getSoftwareConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 58: + { + input.readMessage(getMetricsFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 58 + case 162: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 162 + case 170: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 170 + 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) { @@ -1467,12 +1646,12 @@ public Builder mergeFrom( } // finally return this; } + private int runtimeTypeCase_ = 0; private java.lang.Object runtimeType_; - public RuntimeTypeCase - getRuntimeTypeCase() { - return RuntimeTypeCase.forNumber( - runtimeTypeCase_); + + public RuntimeTypeCase getRuntimeTypeCase() { + return RuntimeTypeCase.forNumber(runtimeTypeCase_); } public Builder clearRuntimeType() { @@ -1482,9 +1661,10 @@ public Builder clearRuntimeType() { return this; } - private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name of the runtime.
      * Format:
@@ -1492,13 +1672,13 @@ public Builder clearRuntimeType() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -1507,6 +1687,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the runtime.
      * Format:
@@ -1514,15 +1696,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1530,6 +1711,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the runtime.
      * Format:
@@ -1537,20 +1720,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the runtime.
      * Format:
@@ -1558,15 +1743,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the runtime.
      * Format:
@@ -1574,29 +1762,35 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.VirtualMachine, com.google.cloud.notebooks.v1.VirtualMachine.Builder, com.google.cloud.notebooks.v1.VirtualMachineOrBuilder> virtualMachineBuilder_; + com.google.cloud.notebooks.v1.VirtualMachine, + com.google.cloud.notebooks.v1.VirtualMachine.Builder, + com.google.cloud.notebooks.v1.VirtualMachineOrBuilder> + virtualMachineBuilder_; /** + * + * *
      * Use a Compute Engine VM image to start the managed notebook instance.
      * 
* * .google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2; + * * @return Whether the virtualMachine field is set. */ @java.lang.Override @@ -1604,11 +1798,14 @@ public boolean hasVirtualMachine() { return runtimeTypeCase_ == 2; } /** + * + * *
      * Use a Compute Engine VM image to start the managed notebook instance.
      * 
* * .google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2; + * * @return The virtualMachine. */ @java.lang.Override @@ -1626,6 +1823,8 @@ public com.google.cloud.notebooks.v1.VirtualMachine getVirtualMachine() { } } /** + * + * *
      * Use a Compute Engine VM image to start the managed notebook instance.
      * 
@@ -1646,6 +1845,8 @@ public Builder setVirtualMachine(com.google.cloud.notebooks.v1.VirtualMachine va return this; } /** + * + * *
      * Use a Compute Engine VM image to start the managed notebook instance.
      * 
@@ -1664,6 +1865,8 @@ public Builder setVirtualMachine( return this; } /** + * + * *
      * Use a Compute Engine VM image to start the managed notebook instance.
      * 
@@ -1672,10 +1875,13 @@ public Builder setVirtualMachine( */ public Builder mergeVirtualMachine(com.google.cloud.notebooks.v1.VirtualMachine value) { if (virtualMachineBuilder_ == null) { - if (runtimeTypeCase_ == 2 && - runtimeType_ != com.google.cloud.notebooks.v1.VirtualMachine.getDefaultInstance()) { - runtimeType_ = com.google.cloud.notebooks.v1.VirtualMachine.newBuilder((com.google.cloud.notebooks.v1.VirtualMachine) runtimeType_) - .mergeFrom(value).buildPartial(); + if (runtimeTypeCase_ == 2 + && runtimeType_ != com.google.cloud.notebooks.v1.VirtualMachine.getDefaultInstance()) { + runtimeType_ = + com.google.cloud.notebooks.v1.VirtualMachine.newBuilder( + (com.google.cloud.notebooks.v1.VirtualMachine) runtimeType_) + .mergeFrom(value) + .buildPartial(); } else { runtimeType_ = value; } @@ -1691,6 +1897,8 @@ public Builder mergeVirtualMachine(com.google.cloud.notebooks.v1.VirtualMachine return this; } /** + * + * *
      * Use a Compute Engine VM image to start the managed notebook instance.
      * 
@@ -1714,6 +1922,8 @@ public Builder clearVirtualMachine() { return this; } /** + * + * *
      * Use a Compute Engine VM image to start the managed notebook instance.
      * 
@@ -1724,6 +1934,8 @@ public com.google.cloud.notebooks.v1.VirtualMachine.Builder getVirtualMachineBui return getVirtualMachineFieldBuilder().getBuilder(); } /** + * + * *
      * Use a Compute Engine VM image to start the managed notebook instance.
      * 
@@ -1742,6 +1954,8 @@ public com.google.cloud.notebooks.v1.VirtualMachineOrBuilder getVirtualMachineOr } } /** + * + * *
      * Use a Compute Engine VM image to start the managed notebook instance.
      * 
@@ -1749,71 +1963,99 @@ public com.google.cloud.notebooks.v1.VirtualMachineOrBuilder getVirtualMachineOr * .google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.VirtualMachine, com.google.cloud.notebooks.v1.VirtualMachine.Builder, com.google.cloud.notebooks.v1.VirtualMachineOrBuilder> + com.google.cloud.notebooks.v1.VirtualMachine, + com.google.cloud.notebooks.v1.VirtualMachine.Builder, + com.google.cloud.notebooks.v1.VirtualMachineOrBuilder> getVirtualMachineFieldBuilder() { if (virtualMachineBuilder_ == null) { if (!(runtimeTypeCase_ == 2)) { runtimeType_ = com.google.cloud.notebooks.v1.VirtualMachine.getDefaultInstance(); } - virtualMachineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.VirtualMachine, com.google.cloud.notebooks.v1.VirtualMachine.Builder, com.google.cloud.notebooks.v1.VirtualMachineOrBuilder>( + virtualMachineBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.VirtualMachine, + com.google.cloud.notebooks.v1.VirtualMachine.Builder, + com.google.cloud.notebooks.v1.VirtualMachineOrBuilder>( (com.google.cloud.notebooks.v1.VirtualMachine) runtimeType_, getParentForChildren(), isClean()); runtimeType_ = null; } runtimeTypeCase_ = 2; - onChanged();; + onChanged(); + ; return virtualMachineBuilder_; } private int state_ = 0; /** + * + * *
      * Output only. Runtime state.
      * 
* - * .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. Runtime state.
      * 
* - * .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Runtime state.
      * 
* - * .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.notebooks.v1.Runtime.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.Runtime.State result = com.google.cloud.notebooks.v1.Runtime.State.valueOf(state_); + com.google.cloud.notebooks.v1.Runtime.State result = + com.google.cloud.notebooks.v1.Runtime.State.valueOf(state_); return result == null ? com.google.cloud.notebooks.v1.Runtime.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. Runtime state.
      * 
* - * .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -1821,21 +2063,26 @@ public Builder setState(com.google.cloud.notebooks.v1.Runtime.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. Runtime state.
      * 
* - * .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1843,51 +2090,75 @@ public Builder clearState() { private int healthState_ = 0; /** + * + * *
      * Output only. Runtime health_state.
      * 
* - * .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for healthState. */ - @java.lang.Override public int getHealthStateValue() { + @java.lang.Override + public int getHealthStateValue() { return healthState_; } /** + * + * *
      * Output only. Runtime health_state.
      * 
* - * .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for healthState to set. * @return This builder for chaining. */ public Builder setHealthStateValue(int value) { - + healthState_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Runtime health_state.
      * 
* - * .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The healthState. */ @java.lang.Override public com.google.cloud.notebooks.v1.Runtime.HealthState getHealthState() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.Runtime.HealthState result = com.google.cloud.notebooks.v1.Runtime.HealthState.valueOf(healthState_); - return result == null ? com.google.cloud.notebooks.v1.Runtime.HealthState.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1.Runtime.HealthState result = + com.google.cloud.notebooks.v1.Runtime.HealthState.valueOf(healthState_); + return result == null + ? com.google.cloud.notebooks.v1.Runtime.HealthState.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. Runtime health_state.
      * 
* - * .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The healthState to set. * @return This builder for chaining. */ @@ -1895,21 +2166,26 @@ public Builder setHealthState(com.google.cloud.notebooks.v1.Runtime.HealthState if (value == null) { throw new NullPointerException(); } - + healthState_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. Runtime health_state.
      * 
* - * .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearHealthState() { - + healthState_ = 0; onChanged(); return this; @@ -1917,34 +2193,47 @@ public Builder clearHealthState() { private com.google.cloud.notebooks.v1.RuntimeAccessConfig accessConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.RuntimeAccessConfig, com.google.cloud.notebooks.v1.RuntimeAccessConfig.Builder, com.google.cloud.notebooks.v1.RuntimeAccessConfigOrBuilder> accessConfigBuilder_; + com.google.cloud.notebooks.v1.RuntimeAccessConfig, + com.google.cloud.notebooks.v1.RuntimeAccessConfig.Builder, + com.google.cloud.notebooks.v1.RuntimeAccessConfigOrBuilder> + accessConfigBuilder_; /** + * + * *
      * The config settings for accessing runtime.
      * 
* * .google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5; + * * @return Whether the accessConfig field is set. */ public boolean hasAccessConfig() { return accessConfigBuilder_ != null || accessConfig_ != null; } /** + * + * *
      * The config settings for accessing runtime.
      * 
* * .google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5; + * * @return The accessConfig. */ public com.google.cloud.notebooks.v1.RuntimeAccessConfig getAccessConfig() { if (accessConfigBuilder_ == null) { - return accessConfig_ == null ? com.google.cloud.notebooks.v1.RuntimeAccessConfig.getDefaultInstance() : accessConfig_; + return accessConfig_ == null + ? com.google.cloud.notebooks.v1.RuntimeAccessConfig.getDefaultInstance() + : accessConfig_; } else { return accessConfigBuilder_.getMessage(); } } /** + * + * *
      * The config settings for accessing runtime.
      * 
@@ -1965,6 +2254,8 @@ public Builder setAccessConfig(com.google.cloud.notebooks.v1.RuntimeAccessConfig return this; } /** + * + * *
      * The config settings for accessing runtime.
      * 
@@ -1983,6 +2274,8 @@ public Builder setAccessConfig( return this; } /** + * + * *
      * The config settings for accessing runtime.
      * 
@@ -1993,7 +2286,9 @@ public Builder mergeAccessConfig(com.google.cloud.notebooks.v1.RuntimeAccessConf if (accessConfigBuilder_ == null) { if (accessConfig_ != null) { accessConfig_ = - com.google.cloud.notebooks.v1.RuntimeAccessConfig.newBuilder(accessConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.notebooks.v1.RuntimeAccessConfig.newBuilder(accessConfig_) + .mergeFrom(value) + .buildPartial(); } else { accessConfig_ = value; } @@ -2005,6 +2300,8 @@ public Builder mergeAccessConfig(com.google.cloud.notebooks.v1.RuntimeAccessConf return this; } /** + * + * *
      * The config settings for accessing runtime.
      * 
@@ -2023,6 +2320,8 @@ public Builder clearAccessConfig() { return this; } /** + * + * *
      * The config settings for accessing runtime.
      * 
@@ -2030,11 +2329,13 @@ public Builder clearAccessConfig() { * .google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5; */ public com.google.cloud.notebooks.v1.RuntimeAccessConfig.Builder getAccessConfigBuilder() { - + onChanged(); return getAccessConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The config settings for accessing runtime.
      * 
@@ -2045,11 +2346,14 @@ public com.google.cloud.notebooks.v1.RuntimeAccessConfigOrBuilder getAccessConfi if (accessConfigBuilder_ != null) { return accessConfigBuilder_.getMessageOrBuilder(); } else { - return accessConfig_ == null ? - com.google.cloud.notebooks.v1.RuntimeAccessConfig.getDefaultInstance() : accessConfig_; + return accessConfig_ == null + ? com.google.cloud.notebooks.v1.RuntimeAccessConfig.getDefaultInstance() + : accessConfig_; } } /** + * + * *
      * The config settings for accessing runtime.
      * 
@@ -2057,14 +2361,17 @@ public com.google.cloud.notebooks.v1.RuntimeAccessConfigOrBuilder getAccessConfi * .google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.RuntimeAccessConfig, com.google.cloud.notebooks.v1.RuntimeAccessConfig.Builder, com.google.cloud.notebooks.v1.RuntimeAccessConfigOrBuilder> + com.google.cloud.notebooks.v1.RuntimeAccessConfig, + com.google.cloud.notebooks.v1.RuntimeAccessConfig.Builder, + com.google.cloud.notebooks.v1.RuntimeAccessConfigOrBuilder> getAccessConfigFieldBuilder() { if (accessConfigBuilder_ == null) { - accessConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.RuntimeAccessConfig, com.google.cloud.notebooks.v1.RuntimeAccessConfig.Builder, com.google.cloud.notebooks.v1.RuntimeAccessConfigOrBuilder>( - getAccessConfig(), - getParentForChildren(), - isClean()); + accessConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.RuntimeAccessConfig, + com.google.cloud.notebooks.v1.RuntimeAccessConfig.Builder, + com.google.cloud.notebooks.v1.RuntimeAccessConfigOrBuilder>( + getAccessConfig(), getParentForChildren(), isClean()); accessConfig_ = null; } return accessConfigBuilder_; @@ -2072,34 +2379,47 @@ public com.google.cloud.notebooks.v1.RuntimeAccessConfigOrBuilder getAccessConfi private com.google.cloud.notebooks.v1.RuntimeSoftwareConfig softwareConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.RuntimeSoftwareConfig, com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.Builder, com.google.cloud.notebooks.v1.RuntimeSoftwareConfigOrBuilder> softwareConfigBuilder_; + com.google.cloud.notebooks.v1.RuntimeSoftwareConfig, + com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.Builder, + com.google.cloud.notebooks.v1.RuntimeSoftwareConfigOrBuilder> + softwareConfigBuilder_; /** + * + * *
      * The config settings for software inside the runtime.
      * 
* * .google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6; + * * @return Whether the softwareConfig field is set. */ public boolean hasSoftwareConfig() { return softwareConfigBuilder_ != null || softwareConfig_ != null; } /** + * + * *
      * The config settings for software inside the runtime.
      * 
* * .google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6; + * * @return The softwareConfig. */ public com.google.cloud.notebooks.v1.RuntimeSoftwareConfig getSoftwareConfig() { if (softwareConfigBuilder_ == null) { - return softwareConfig_ == null ? com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.getDefaultInstance() : softwareConfig_; + return softwareConfig_ == null + ? com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.getDefaultInstance() + : softwareConfig_; } else { return softwareConfigBuilder_.getMessage(); } } /** + * + * *
      * The config settings for software inside the runtime.
      * 
@@ -2120,6 +2440,8 @@ public Builder setSoftwareConfig(com.google.cloud.notebooks.v1.RuntimeSoftwareCo return this; } /** + * + * *
      * The config settings for software inside the runtime.
      * 
@@ -2138,6 +2460,8 @@ public Builder setSoftwareConfig( return this; } /** + * + * *
      * The config settings for software inside the runtime.
      * 
@@ -2148,7 +2472,9 @@ public Builder mergeSoftwareConfig(com.google.cloud.notebooks.v1.RuntimeSoftware if (softwareConfigBuilder_ == null) { if (softwareConfig_ != null) { softwareConfig_ = - com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.newBuilder(softwareConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.newBuilder(softwareConfig_) + .mergeFrom(value) + .buildPartial(); } else { softwareConfig_ = value; } @@ -2160,6 +2486,8 @@ public Builder mergeSoftwareConfig(com.google.cloud.notebooks.v1.RuntimeSoftware return this; } /** + * + * *
      * The config settings for software inside the runtime.
      * 
@@ -2178,6 +2506,8 @@ public Builder clearSoftwareConfig() { return this; } /** + * + * *
      * The config settings for software inside the runtime.
      * 
@@ -2185,26 +2515,32 @@ public Builder clearSoftwareConfig() { * .google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6; */ public com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.Builder getSoftwareConfigBuilder() { - + onChanged(); return getSoftwareConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The config settings for software inside the runtime.
      * 
* * .google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6; */ - public com.google.cloud.notebooks.v1.RuntimeSoftwareConfigOrBuilder getSoftwareConfigOrBuilder() { + public com.google.cloud.notebooks.v1.RuntimeSoftwareConfigOrBuilder + getSoftwareConfigOrBuilder() { if (softwareConfigBuilder_ != null) { return softwareConfigBuilder_.getMessageOrBuilder(); } else { - return softwareConfig_ == null ? - com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.getDefaultInstance() : softwareConfig_; + return softwareConfig_ == null + ? com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.getDefaultInstance() + : softwareConfig_; } } /** + * + * *
      * The config settings for software inside the runtime.
      * 
@@ -2212,14 +2548,17 @@ public com.google.cloud.notebooks.v1.RuntimeSoftwareConfigOrBuilder getSoftwareC * .google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.RuntimeSoftwareConfig, com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.Builder, com.google.cloud.notebooks.v1.RuntimeSoftwareConfigOrBuilder> + com.google.cloud.notebooks.v1.RuntimeSoftwareConfig, + com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.Builder, + com.google.cloud.notebooks.v1.RuntimeSoftwareConfigOrBuilder> getSoftwareConfigFieldBuilder() { if (softwareConfigBuilder_ == null) { - softwareConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.RuntimeSoftwareConfig, com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.Builder, com.google.cloud.notebooks.v1.RuntimeSoftwareConfigOrBuilder>( - getSoftwareConfig(), - getParentForChildren(), - isClean()); + softwareConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.RuntimeSoftwareConfig, + com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.Builder, + com.google.cloud.notebooks.v1.RuntimeSoftwareConfigOrBuilder>( + getSoftwareConfig(), getParentForChildren(), isClean()); softwareConfig_ = null; } return softwareConfigBuilder_; @@ -2227,42 +2566,61 @@ public com.google.cloud.notebooks.v1.RuntimeSoftwareConfigOrBuilder getSoftwareC private com.google.cloud.notebooks.v1.RuntimeMetrics metrics_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.RuntimeMetrics, com.google.cloud.notebooks.v1.RuntimeMetrics.Builder, com.google.cloud.notebooks.v1.RuntimeMetricsOrBuilder> metricsBuilder_; + com.google.cloud.notebooks.v1.RuntimeMetrics, + com.google.cloud.notebooks.v1.RuntimeMetrics.Builder, + com.google.cloud.notebooks.v1.RuntimeMetricsOrBuilder> + metricsBuilder_; /** + * + * *
      * Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
      * stats.
      * 
* - * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the metrics field is set. */ public boolean hasMetrics() { return metricsBuilder_ != null || metrics_ != null; } /** + * + * *
      * Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
      * stats.
      * 
* - * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The metrics. */ public com.google.cloud.notebooks.v1.RuntimeMetrics getMetrics() { if (metricsBuilder_ == null) { - return metrics_ == null ? com.google.cloud.notebooks.v1.RuntimeMetrics.getDefaultInstance() : metrics_; + return metrics_ == null + ? com.google.cloud.notebooks.v1.RuntimeMetrics.getDefaultInstance() + : metrics_; } else { return metricsBuilder_.getMessage(); } } /** + * + * *
      * Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
      * stats.
      * 
* - * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setMetrics(com.google.cloud.notebooks.v1.RuntimeMetrics value) { if (metricsBuilder_ == null) { @@ -2278,12 +2636,16 @@ public Builder setMetrics(com.google.cloud.notebooks.v1.RuntimeMetrics value) { return this; } /** + * + * *
      * Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
      * stats.
      * 
* - * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setMetrics( com.google.cloud.notebooks.v1.RuntimeMetrics.Builder builderForValue) { @@ -2297,18 +2659,24 @@ public Builder setMetrics( return this; } /** + * + * *
      * Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
      * stats.
      * 
* - * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeMetrics(com.google.cloud.notebooks.v1.RuntimeMetrics value) { if (metricsBuilder_ == null) { if (metrics_ != null) { metrics_ = - com.google.cloud.notebooks.v1.RuntimeMetrics.newBuilder(metrics_).mergeFrom(value).buildPartial(); + com.google.cloud.notebooks.v1.RuntimeMetrics.newBuilder(metrics_) + .mergeFrom(value) + .buildPartial(); } else { metrics_ = value; } @@ -2320,12 +2688,16 @@ public Builder mergeMetrics(com.google.cloud.notebooks.v1.RuntimeMetrics value) return this; } /** + * + * *
      * Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
      * stats.
      * 
* - * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearMetrics() { if (metricsBuilder_ == null) { @@ -2339,51 +2711,67 @@ public Builder clearMetrics() { return this; } /** + * + * *
      * Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
      * stats.
      * 
* - * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.notebooks.v1.RuntimeMetrics.Builder getMetricsBuilder() { - + onChanged(); return getMetricsFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
      * stats.
      * 
* - * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.notebooks.v1.RuntimeMetricsOrBuilder getMetricsOrBuilder() { if (metricsBuilder_ != null) { return metricsBuilder_.getMessageOrBuilder(); } else { - return metrics_ == null ? - com.google.cloud.notebooks.v1.RuntimeMetrics.getDefaultInstance() : metrics_; + return metrics_ == null + ? com.google.cloud.notebooks.v1.RuntimeMetrics.getDefaultInstance() + : metrics_; } } /** + * + * *
      * Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
      * stats.
      * 
* - * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.RuntimeMetrics, com.google.cloud.notebooks.v1.RuntimeMetrics.Builder, com.google.cloud.notebooks.v1.RuntimeMetricsOrBuilder> + com.google.cloud.notebooks.v1.RuntimeMetrics, + com.google.cloud.notebooks.v1.RuntimeMetrics.Builder, + com.google.cloud.notebooks.v1.RuntimeMetricsOrBuilder> getMetricsFieldBuilder() { if (metricsBuilder_ == null) { - metricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.RuntimeMetrics, com.google.cloud.notebooks.v1.RuntimeMetrics.Builder, com.google.cloud.notebooks.v1.RuntimeMetricsOrBuilder>( - getMetrics(), - getParentForChildren(), - isClean()); + metricsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.RuntimeMetrics, + com.google.cloud.notebooks.v1.RuntimeMetrics.Builder, + com.google.cloud.notebooks.v1.RuntimeMetricsOrBuilder>( + getMetrics(), getParentForChildren(), isClean()); metrics_ = null; } return metricsBuilder_; @@ -2391,39 +2779,58 @@ public com.google.cloud.notebooks.v1.RuntimeMetricsOrBuilder getMetricsOrBuilder 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_; /** + * + * *
      * Output only. Runtime creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. Runtime creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Runtime creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2439,14 +2846,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Runtime creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2457,17 +2867,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Runtime creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2479,11 +2893,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Runtime creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2497,48 +2915,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Runtime creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Runtime creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Runtime creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; @@ -2546,39 +2980,58 @@ 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_; /** + * + * *
      * Output only. Runtime update time.
      * 
* - * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. Runtime update time.
      * 
* - * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Runtime update time.
      * 
* - * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2594,14 +3047,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Runtime update time.
      * 
* - * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -2612,17 +3068,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Runtime update time.
      * 
* - * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2634,11 +3094,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Runtime update time.
      * 
* - * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2652,55 +3116,71 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Runtime update time.
      * 
* - * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Runtime update time.
      * 
* - * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. Runtime update time.
      * 
* - * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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); } @@ -2710,12 +3190,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.Runtime) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.Runtime) private static final com.google.cloud.notebooks.v1.Runtime DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.Runtime(); } @@ -2724,27 +3204,27 @@ public static com.google.cloud.notebooks.v1.Runtime getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Runtime parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Runtime parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -2759,6 +3239,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.Runtime getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAcceleratorConfig.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAcceleratorConfig.java similarity index 68% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAcceleratorConfig.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAcceleratorConfig.java index 2b130be49462..336a00753077 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAcceleratorConfig.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAcceleratorConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/runtime.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Definition of the types of hardware accelerators that can be used.
  * Definition of the types of hardware accelerators that can be used.
@@ -20,54 +37,59 @@
  *
  * Protobuf type {@code google.cloud.notebooks.v1.RuntimeAcceleratorConfig}
  */
-public final class RuntimeAcceleratorConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RuntimeAcceleratorConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.RuntimeAcceleratorConfig)
     RuntimeAcceleratorConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RuntimeAcceleratorConfig.newBuilder() to construct.
   private RuntimeAcceleratorConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RuntimeAcceleratorConfig() {
     type_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RuntimeAcceleratorConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_RuntimeAcceleratorConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.notebooks.v1.RuntimeProto
+        .internal_static_google_cloud_notebooks_v1_RuntimeAcceleratorConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_RuntimeAcceleratorConfig_fieldAccessorTable
+    return com.google.cloud.notebooks.v1.RuntimeProto
+        .internal_static_google_cloud_notebooks_v1_RuntimeAcceleratorConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.class, com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.Builder.class);
+            com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.class,
+            com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Type of this accelerator.
    * 
* * Protobuf enum {@code google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType} */ - public enum AcceleratorType - implements com.google.protobuf.ProtocolMessageEnum { + public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Accelerator type is not specified.
      * 
@@ -76,6 +98,8 @@ public enum AcceleratorType */ ACCELERATOR_TYPE_UNSPECIFIED(0), /** + * + * *
      * Accelerator type is Nvidia Tesla K80.
      * 
@@ -85,6 +109,8 @@ public enum AcceleratorType @java.lang.Deprecated NVIDIA_TESLA_K80(1), /** + * + * *
      * Accelerator type is Nvidia Tesla P100.
      * 
@@ -93,6 +119,8 @@ public enum AcceleratorType */ NVIDIA_TESLA_P100(2), /** + * + * *
      * Accelerator type is Nvidia Tesla V100.
      * 
@@ -101,6 +129,8 @@ public enum AcceleratorType */ NVIDIA_TESLA_V100(3), /** + * + * *
      * Accelerator type is Nvidia Tesla P4.
      * 
@@ -109,6 +139,8 @@ public enum AcceleratorType */ NVIDIA_TESLA_P4(4), /** + * + * *
      * Accelerator type is Nvidia Tesla T4.
      * 
@@ -117,6 +149,8 @@ public enum AcceleratorType */ NVIDIA_TESLA_T4(5), /** + * + * *
      * Accelerator type is Nvidia Tesla A100.
      * 
@@ -125,6 +159,8 @@ public enum AcceleratorType */ NVIDIA_TESLA_A100(6), /** + * + * *
      * (Coming soon) Accelerator type is TPU V2.
      * 
@@ -133,6 +169,8 @@ public enum AcceleratorType */ TPU_V2(7), /** + * + * *
      * (Coming soon) Accelerator type is TPU V3.
      * 
@@ -141,6 +179,8 @@ public enum AcceleratorType */ TPU_V3(8), /** + * + * *
      * Accelerator type is NVIDIA Tesla T4 Virtual Workstations.
      * 
@@ -149,6 +189,8 @@ public enum AcceleratorType */ NVIDIA_TESLA_T4_VWS(9), /** + * + * *
      * Accelerator type is NVIDIA Tesla P100 Virtual Workstations.
      * 
@@ -157,6 +199,8 @@ public enum AcceleratorType */ NVIDIA_TESLA_P100_VWS(10), /** + * + * *
      * Accelerator type is NVIDIA Tesla P4 Virtual Workstations.
      * 
@@ -168,6 +212,8 @@ public enum AcceleratorType ; /** + * + * *
      * Accelerator type is not specified.
      * 
@@ -176,6 +222,8 @@ public enum AcceleratorType */ public static final int ACCELERATOR_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Accelerator type is Nvidia Tesla K80.
      * 
@@ -184,6 +232,8 @@ public enum AcceleratorType */ @java.lang.Deprecated public static final int NVIDIA_TESLA_K80_VALUE = 1; /** + * + * *
      * Accelerator type is Nvidia Tesla P100.
      * 
@@ -192,6 +242,8 @@ public enum AcceleratorType */ public static final int NVIDIA_TESLA_P100_VALUE = 2; /** + * + * *
      * Accelerator type is Nvidia Tesla V100.
      * 
@@ -200,6 +252,8 @@ public enum AcceleratorType */ public static final int NVIDIA_TESLA_V100_VALUE = 3; /** + * + * *
      * Accelerator type is Nvidia Tesla P4.
      * 
@@ -208,6 +262,8 @@ public enum AcceleratorType */ public static final int NVIDIA_TESLA_P4_VALUE = 4; /** + * + * *
      * Accelerator type is Nvidia Tesla T4.
      * 
@@ -216,6 +272,8 @@ public enum AcceleratorType */ public static final int NVIDIA_TESLA_T4_VALUE = 5; /** + * + * *
      * Accelerator type is Nvidia Tesla A100.
      * 
@@ -224,6 +282,8 @@ public enum AcceleratorType */ public static final int NVIDIA_TESLA_A100_VALUE = 6; /** + * + * *
      * (Coming soon) Accelerator type is TPU V2.
      * 
@@ -232,6 +292,8 @@ public enum AcceleratorType */ public static final int TPU_V2_VALUE = 7; /** + * + * *
      * (Coming soon) Accelerator type is TPU V3.
      * 
@@ -240,6 +302,8 @@ public enum AcceleratorType */ public static final int TPU_V3_VALUE = 8; /** + * + * *
      * Accelerator type is NVIDIA Tesla T4 Virtual Workstations.
      * 
@@ -248,6 +312,8 @@ public enum AcceleratorType */ public static final int NVIDIA_TESLA_T4_VWS_VALUE = 9; /** + * + * *
      * Accelerator type is NVIDIA Tesla P100 Virtual Workstations.
      * 
@@ -256,6 +322,8 @@ public enum AcceleratorType */ public static final int NVIDIA_TESLA_P100_VWS_VALUE = 10; /** + * + * *
      * Accelerator type is NVIDIA Tesla P4 Virtual Workstations.
      * 
@@ -264,7 +332,6 @@ public enum AcceleratorType */ public static final int NVIDIA_TESLA_P4_VWS_VALUE = 11; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -289,49 +356,63 @@ public static AcceleratorType valueOf(int value) { */ public static AcceleratorType forNumber(int value) { switch (value) { - case 0: return ACCELERATOR_TYPE_UNSPECIFIED; - case 1: return NVIDIA_TESLA_K80; - case 2: return NVIDIA_TESLA_P100; - case 3: return NVIDIA_TESLA_V100; - case 4: return NVIDIA_TESLA_P4; - case 5: return NVIDIA_TESLA_T4; - case 6: return NVIDIA_TESLA_A100; - case 7: return TPU_V2; - case 8: return TPU_V3; - case 9: return NVIDIA_TESLA_T4_VWS; - case 10: return NVIDIA_TESLA_P100_VWS; - case 11: return NVIDIA_TESLA_P4_VWS; - default: return null; + case 0: + return ACCELERATOR_TYPE_UNSPECIFIED; + case 1: + return NVIDIA_TESLA_K80; + case 2: + return NVIDIA_TESLA_P100; + case 3: + return NVIDIA_TESLA_V100; + case 4: + return NVIDIA_TESLA_P4; + case 5: + return NVIDIA_TESLA_T4; + case 6: + return NVIDIA_TESLA_A100; + case 7: + return TPU_V2; + case 8: + return TPU_V3; + case 9: + return NVIDIA_TESLA_T4_VWS; + case 10: + return NVIDIA_TESLA_P100_VWS; + case 11: + return NVIDIA_TESLA_P4_VWS; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - AcceleratorType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AcceleratorType findValueByNumber(int number) { - return AcceleratorType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AcceleratorType findValueByNumber(int number) { + return AcceleratorType.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.cloud.notebooks.v1.RuntimeAcceleratorConfig.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.getDescriptor() + .getEnumTypes() + .get(0); } private static final AcceleratorType[] VALUES = values(); @@ -339,8 +420,7 @@ public AcceleratorType findValueByNumber(int number) { public static AcceleratorType 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; @@ -360,38 +440,52 @@ private AcceleratorType(int value) { public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** + * + * *
    * Accelerator model.
    * 
* * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * Accelerator model.
    * 
* * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType type = 1; + * * @return The type. */ - @java.lang.Override public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType getType() { + @java.lang.Override + public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType getType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType result = com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType.valueOf(type_); - return result == null ? com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType result = + com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType.valueOf(type_); + return result == null + ? com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType.UNRECOGNIZED + : result; } public static final int CORE_COUNT_FIELD_NUMBER = 2; private long coreCount_; /** + * + * *
    * Count of cores of this accelerator.
    * 
* * int64 core_count = 2; + * * @return The coreCount. */ @java.lang.Override @@ -400,6 +494,7 @@ public long getCoreCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -411,9 +506,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType.ACCELERATOR_TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ + != com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType + .ACCELERATOR_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, type_); } if (coreCount_ != 0L) { @@ -428,13 +525,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ != com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType.ACCELERATOR_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); + if (type_ + != com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType + .ACCELERATOR_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); } if (coreCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, coreCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, coreCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -444,16 +542,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.cloud.notebooks.v1.RuntimeAcceleratorConfig)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig other = (com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig) obj; + com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig other = + (com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig) obj; if (type_ != other.type_) return false; - if (getCoreCount() - != other.getCoreCount()) return false; + if (getCoreCount() != other.getCoreCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -468,104 +566,111 @@ public int hashCode() { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + CORE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCoreCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCoreCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig 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.cloud.notebooks.v1.RuntimeAcceleratorConfig 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.cloud.notebooks.v1.RuntimeAcceleratorConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig 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.cloud.notebooks.v1.RuntimeAcceleratorConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig 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.cloud.notebooks.v1.RuntimeAcceleratorConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig 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.cloud.notebooks.v1.RuntimeAcceleratorConfig 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.cloud.notebooks.v1.RuntimeAcceleratorConfig 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.cloud.notebooks.v1.RuntimeAcceleratorConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig 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; } /** + * + * *
    * Definition of the types of hardware accelerators that can be used.
    * Definition of the types of hardware accelerators that can be used.
@@ -582,33 +687,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.notebooks.v1.RuntimeAcceleratorConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.RuntimeAcceleratorConfig)
       com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_RuntimeAcceleratorConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.notebooks.v1.RuntimeProto
+          .internal_static_google_cloud_notebooks_v1_RuntimeAcceleratorConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_RuntimeAcceleratorConfig_fieldAccessorTable
+      return com.google.cloud.notebooks.v1.RuntimeProto
+          .internal_static_google_cloud_notebooks_v1_RuntimeAcceleratorConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.class, com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.Builder.class);
+              com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.class,
+              com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -620,9 +724,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_RuntimeAcceleratorConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.notebooks.v1.RuntimeProto
+          .internal_static_google_cloud_notebooks_v1_RuntimeAcceleratorConfig_descriptor;
     }
 
     @java.lang.Override
@@ -641,7 +745,8 @@ public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig build() {
 
     @java.lang.Override
     public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig buildPartial() {
-      com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig result = new com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig(this);
+      com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig result =
+          new com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig(this);
       result.type_ = type_;
       result.coreCount_ = coreCount_;
       onBuilt();
@@ -652,38 +757,39 @@ public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig buildPartial() {
     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.cloud.notebooks.v1.RuntimeAcceleratorConfig) {
-        return mergeFrom((com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig)other);
+        return mergeFrom((com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -691,7 +797,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig other) {
-      if (other == com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.getDefaultInstance()) return this;
+      if (other == com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.getDefaultInstance())
+        return this;
       if (other.type_ != 0) {
         setTypeValue(other.getTypeValue());
       }
@@ -724,22 +831,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              type_ = input.readEnum();
+            case 8:
+              {
+                type_ = input.readEnum();
 
-              break;
-            } // case 8
-            case 16: {
-              coreCount_ = input.readInt64();
+                break;
+              } // case 8
+            case 16:
+              {
+                coreCount_ = input.readInt64();
 
-              break;
-            } // case 16
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+                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) {
@@ -752,85 +862,108 @@ public Builder mergeFrom(
 
     private int type_ = 0;
     /**
+     *
+     *
      * 
      * Accelerator model.
      * 
* * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Accelerator model.
      * 
* * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType type = 1; + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
      * Accelerator model.
      * 
* * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType type = 1; + * * @return The type. */ @java.lang.Override public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType getType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType result = com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType.valueOf(type_); - return result == null ? com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType result = + com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType.valueOf(type_); + return result == null + ? com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType.UNRECOGNIZED + : result; } /** + * + * *
      * Accelerator model.
      * 
* * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType type = 1; + * * @param value The type to set. * @return This builder for chaining. */ - public Builder setType(com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType value) { + public Builder setType( + com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Accelerator model.
      * 
* * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType type = 1; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private long coreCount_ ; + private long coreCount_; /** + * + * *
      * Count of cores of this accelerator.
      * 
* * int64 core_count = 2; + * * @return The coreCount. */ @java.lang.Override @@ -838,37 +971,43 @@ public long getCoreCount() { return coreCount_; } /** + * + * *
      * Count of cores of this accelerator.
      * 
* * int64 core_count = 2; + * * @param value The coreCount to set. * @return This builder for chaining. */ public Builder setCoreCount(long value) { - + coreCount_ = value; onChanged(); return this; } /** + * + * *
      * Count of cores of this accelerator.
      * 
* * int64 core_count = 2; + * * @return This builder for chaining. */ public Builder clearCoreCount() { - + coreCount_ = 0L; 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); } @@ -878,12 +1017,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.RuntimeAcceleratorConfig) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.RuntimeAcceleratorConfig) private static final com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig(); } @@ -892,27 +1031,27 @@ public static com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RuntimeAcceleratorConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RuntimeAcceleratorConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -927,6 +1066,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAcceleratorConfigOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAcceleratorConfigOrBuilder.java similarity index 58% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAcceleratorConfigOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAcceleratorConfigOrBuilder.java index 32d848645b48..711ae1246590 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAcceleratorConfigOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAcceleratorConfigOrBuilder.java @@ -1,37 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/runtime.proto package com.google.cloud.notebooks.v1; -public interface RuntimeAcceleratorConfigOrBuilder extends +public interface RuntimeAcceleratorConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.RuntimeAcceleratorConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Accelerator model.
    * 
* * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType type = 1; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * Accelerator model.
    * 
* * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType type = 1; + * * @return The type. */ com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.AcceleratorType getType(); /** + * + * *
    * Count of cores of this accelerator.
    * 
* * int64 core_count = 2; + * * @return The coreCount. */ long getCoreCount(); diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAccessConfig.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAccessConfig.java similarity index 68% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAccessConfig.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAccessConfig.java index 1660fd0ecfd7..3570e6df6ee7 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAccessConfig.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAccessConfig.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/runtime.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Specifies the login configuration for Runtime
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.RuntimeAccessConfig} */ -public final class RuntimeAccessConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RuntimeAccessConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.RuntimeAccessConfig) RuntimeAccessConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RuntimeAccessConfig.newBuilder() to construct. private RuntimeAccessConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RuntimeAccessConfig() { accessType_ = 0; runtimeOwner_ = ""; @@ -27,30 +45,33 @@ private RuntimeAccessConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RuntimeAccessConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_RuntimeAccessConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_RuntimeAccessConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_RuntimeAccessConfig_fieldAccessorTable + return com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_RuntimeAccessConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.RuntimeAccessConfig.class, com.google.cloud.notebooks.v1.RuntimeAccessConfig.Builder.class); + com.google.cloud.notebooks.v1.RuntimeAccessConfig.class, + com.google.cloud.notebooks.v1.RuntimeAccessConfig.Builder.class); } /** + * + * *
    * Possible ways to access runtime. Authentication mode.
    * Currently supports: Single User only.
@@ -58,9 +79,10 @@ protected java.lang.Object newInstance(
    *
    * Protobuf enum {@code google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType}
    */
-  public enum RuntimeAccessType
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum RuntimeAccessType implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Unspecified access.
      * 
@@ -69,6 +91,8 @@ public enum RuntimeAccessType */ RUNTIME_ACCESS_TYPE_UNSPECIFIED(0), /** + * + * *
      * Single user login.
      * 
@@ -77,6 +101,8 @@ public enum RuntimeAccessType */ SINGLE_USER(1), /** + * + * *
      * Service Account mode.
      * In Service Account mode, Runtime creator will specify a SA that exists
@@ -91,6 +117,8 @@ public enum RuntimeAccessType
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified access.
      * 
@@ -99,6 +127,8 @@ public enum RuntimeAccessType */ public static final int RUNTIME_ACCESS_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Single user login.
      * 
@@ -107,6 +137,8 @@ public enum RuntimeAccessType */ public static final int SINGLE_USER_VALUE = 1; /** + * + * *
      * Service Account mode.
      * In Service Account mode, Runtime creator will specify a SA that exists
@@ -118,7 +150,6 @@ public enum RuntimeAccessType
      */
     public static final int SERVICE_ACCOUNT_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -143,10 +174,14 @@ public static RuntimeAccessType valueOf(int value) {
      */
     public static RuntimeAccessType forNumber(int value) {
       switch (value) {
-        case 0: return RUNTIME_ACCESS_TYPE_UNSPECIFIED;
-        case 1: return SINGLE_USER;
-        case 2: return SERVICE_ACCOUNT;
-        default: return null;
+        case 0:
+          return RUNTIME_ACCESS_TYPE_UNSPECIFIED;
+        case 1:
+          return SINGLE_USER;
+        case 2:
+          return SERVICE_ACCOUNT;
+        default:
+          return null;
       }
     }
 
@@ -154,29 +189,31 @@ public static RuntimeAccessType forNumber(int value) {
         internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        RuntimeAccessType> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public RuntimeAccessType findValueByNumber(int number) {
-              return RuntimeAccessType.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap
+        internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public RuntimeAccessType findValueByNumber(int number) {
+                return RuntimeAccessType.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.cloud.notebooks.v1.RuntimeAccessConfig.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.notebooks.v1.RuntimeAccessConfig.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final RuntimeAccessType[] VALUES = values();
@@ -184,8 +221,7 @@ public RuntimeAccessType findValueByNumber(int number) {
     public static RuntimeAccessType 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;
@@ -205,39 +241,53 @@ private RuntimeAccessType(int value) {
   public static final int ACCESS_TYPE_FIELD_NUMBER = 1;
   private int accessType_;
   /**
+   *
+   *
    * 
    * The type of access mode this instance.
    * 
* * .google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType access_type = 1; + * * @return The enum numeric value on the wire for accessType. */ - @java.lang.Override public int getAccessTypeValue() { + @java.lang.Override + public int getAccessTypeValue() { return accessType_; } /** + * + * *
    * The type of access mode this instance.
    * 
* * .google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType access_type = 1; + * * @return The accessType. */ - @java.lang.Override public com.google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType getAccessType() { + @java.lang.Override + public com.google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType getAccessType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType result = com.google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType.valueOf(accessType_); - return result == null ? com.google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType result = + com.google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType.valueOf(accessType_); + return result == null + ? com.google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType.UNRECOGNIZED + : result; } public static final int RUNTIME_OWNER_FIELD_NUMBER = 2; private volatile java.lang.Object runtimeOwner_; /** + * + * *
    * The owner of this runtime after creation. Format: `alias@example.com`
    * Currently supports one owner only.
    * 
* * string runtime_owner = 2; + * * @return The runtimeOwner. */ @java.lang.Override @@ -246,30 +296,30 @@ public java.lang.String getRuntimeOwner() { 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(); runtimeOwner_ = s; return s; } } /** + * + * *
    * The owner of this runtime after creation. Format: `alias@example.com`
    * Currently supports one owner only.
    * 
* * string runtime_owner = 2; + * * @return The bytes for runtimeOwner. */ @java.lang.Override - public com.google.protobuf.ByteString - getRuntimeOwnerBytes() { + public com.google.protobuf.ByteString getRuntimeOwnerBytes() { java.lang.Object ref = runtimeOwner_; 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); runtimeOwner_ = b; return b; } else { @@ -280,11 +330,14 @@ public java.lang.String getRuntimeOwner() { public static final int PROXY_URI_FIELD_NUMBER = 3; private volatile java.lang.Object proxyUri_; /** + * + * *
    * Output only. The proxy endpoint that is used to access the runtime.
    * 
* * string proxy_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The proxyUri. */ @java.lang.Override @@ -293,29 +346,29 @@ public java.lang.String getProxyUri() { 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(); proxyUri_ = s; return s; } } /** + * + * *
    * Output only. The proxy endpoint that is used to access the runtime.
    * 
* * string proxy_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for proxyUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getProxyUriBytes() { + public com.google.protobuf.ByteString getProxyUriBytes() { java.lang.Object ref = proxyUri_; 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); proxyUri_ = b; return b; } else { @@ -324,6 +377,7 @@ public java.lang.String getProxyUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -335,9 +389,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (accessType_ != com.google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType.RUNTIME_ACCESS_TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (accessType_ + != com.google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType + .RUNTIME_ACCESS_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, accessType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runtimeOwner_)) { @@ -355,9 +411,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (accessType_ != com.google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType.RUNTIME_ACCESS_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, accessType_); + if (accessType_ + != com.google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType + .RUNTIME_ACCESS_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, accessType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runtimeOwner_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, runtimeOwner_); @@ -373,18 +431,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.cloud.notebooks.v1.RuntimeAccessConfig)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.RuntimeAccessConfig other = (com.google.cloud.notebooks.v1.RuntimeAccessConfig) obj; + com.google.cloud.notebooks.v1.RuntimeAccessConfig other = + (com.google.cloud.notebooks.v1.RuntimeAccessConfig) obj; if (accessType_ != other.accessType_) return false; - if (!getRuntimeOwner() - .equals(other.getRuntimeOwner())) return false; - if (!getProxyUri() - .equals(other.getProxyUri())) return false; + if (!getRuntimeOwner().equals(other.getRuntimeOwner())) return false; + if (!getProxyUri().equals(other.getProxyUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -408,129 +465,135 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.RuntimeAccessConfig 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.cloud.notebooks.v1.RuntimeAccessConfig 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.cloud.notebooks.v1.RuntimeAccessConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.RuntimeAccessConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.RuntimeAccessConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.RuntimeAccessConfig 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.cloud.notebooks.v1.RuntimeAccessConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.RuntimeAccessConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.RuntimeAccessConfig 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.cloud.notebooks.v1.RuntimeAccessConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.RuntimeAccessConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.RuntimeAccessConfig 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.cloud.notebooks.v1.RuntimeAccessConfig 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.cloud.notebooks.v1.RuntimeAccessConfig 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.cloud.notebooks.v1.RuntimeAccessConfig 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; } /** + * + * *
    * Specifies the login configuration for Runtime
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.RuntimeAccessConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.RuntimeAccessConfig) com.google.cloud.notebooks.v1.RuntimeAccessConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_RuntimeAccessConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_RuntimeAccessConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_RuntimeAccessConfig_fieldAccessorTable + return com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_RuntimeAccessConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.RuntimeAccessConfig.class, com.google.cloud.notebooks.v1.RuntimeAccessConfig.Builder.class); + com.google.cloud.notebooks.v1.RuntimeAccessConfig.class, + com.google.cloud.notebooks.v1.RuntimeAccessConfig.Builder.class); } // Construct using com.google.cloud.notebooks.v1.RuntimeAccessConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -544,9 +607,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_RuntimeAccessConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_RuntimeAccessConfig_descriptor; } @java.lang.Override @@ -565,7 +628,8 @@ public com.google.cloud.notebooks.v1.RuntimeAccessConfig build() { @java.lang.Override public com.google.cloud.notebooks.v1.RuntimeAccessConfig buildPartial() { - com.google.cloud.notebooks.v1.RuntimeAccessConfig result = new com.google.cloud.notebooks.v1.RuntimeAccessConfig(this); + com.google.cloud.notebooks.v1.RuntimeAccessConfig result = + new com.google.cloud.notebooks.v1.RuntimeAccessConfig(this); result.accessType_ = accessType_; result.runtimeOwner_ = runtimeOwner_; result.proxyUri_ = proxyUri_; @@ -577,38 +641,39 @@ public com.google.cloud.notebooks.v1.RuntimeAccessConfig buildPartial() { 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.cloud.notebooks.v1.RuntimeAccessConfig) { - return mergeFrom((com.google.cloud.notebooks.v1.RuntimeAccessConfig)other); + return mergeFrom((com.google.cloud.notebooks.v1.RuntimeAccessConfig) other); } else { super.mergeFrom(other); return this; @@ -616,7 +681,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.RuntimeAccessConfig other) { - if (other == com.google.cloud.notebooks.v1.RuntimeAccessConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.RuntimeAccessConfig.getDefaultInstance()) + return this; if (other.accessType_ != 0) { setAccessTypeValue(other.getAccessTypeValue()); } @@ -654,27 +720,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - accessType_ = input.readEnum(); - - break; - } // case 8 - case 18: { - runtimeOwner_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - proxyUri_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + accessType_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + runtimeOwner_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + proxyUri_ = input.readStringRequireUtf8(); + + 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) { @@ -687,73 +757,98 @@ public Builder mergeFrom( private int accessType_ = 0; /** + * + * *
      * The type of access mode this instance.
      * 
* - * .google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType access_type = 1; + * .google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType access_type = 1; + * + * * @return The enum numeric value on the wire for accessType. */ - @java.lang.Override public int getAccessTypeValue() { + @java.lang.Override + public int getAccessTypeValue() { return accessType_; } /** + * + * *
      * The type of access mode this instance.
      * 
* - * .google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType access_type = 1; + * .google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType access_type = 1; + * + * * @param value The enum numeric value on the wire for accessType to set. * @return This builder for chaining. */ public Builder setAccessTypeValue(int value) { - + accessType_ = value; onChanged(); return this; } /** + * + * *
      * The type of access mode this instance.
      * 
* - * .google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType access_type = 1; + * .google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType access_type = 1; + * + * * @return The accessType. */ @java.lang.Override public com.google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType getAccessType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType result = com.google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType.valueOf(accessType_); - return result == null ? com.google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType result = + com.google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType.valueOf(accessType_); + return result == null + ? com.google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType.UNRECOGNIZED + : result; } /** + * + * *
      * The type of access mode this instance.
      * 
* - * .google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType access_type = 1; + * .google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType access_type = 1; + * + * * @param value The accessType to set. * @return This builder for chaining. */ - public Builder setAccessType(com.google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType value) { + public Builder setAccessType( + com.google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType value) { if (value == null) { throw new NullPointerException(); } - + accessType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The type of access mode this instance.
      * 
* - * .google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType access_type = 1; + * .google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType access_type = 1; + * + * * @return This builder for chaining. */ public Builder clearAccessType() { - + accessType_ = 0; onChanged(); return this; @@ -761,19 +856,21 @@ public Builder clearAccessType() { private java.lang.Object runtimeOwner_ = ""; /** + * + * *
      * The owner of this runtime after creation. Format: `alias@example.com`
      * Currently supports one owner only.
      * 
* * string runtime_owner = 2; + * * @return The runtimeOwner. */ public java.lang.String getRuntimeOwner() { java.lang.Object ref = runtimeOwner_; 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(); runtimeOwner_ = s; return s; @@ -782,21 +879,22 @@ public java.lang.String getRuntimeOwner() { } } /** + * + * *
      * The owner of this runtime after creation. Format: `alias@example.com`
      * Currently supports one owner only.
      * 
* * string runtime_owner = 2; + * * @return The bytes for runtimeOwner. */ - public com.google.protobuf.ByteString - getRuntimeOwnerBytes() { + public com.google.protobuf.ByteString getRuntimeOwnerBytes() { java.lang.Object ref = runtimeOwner_; 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); runtimeOwner_ = b; return b; } else { @@ -804,57 +902,64 @@ public java.lang.String getRuntimeOwner() { } } /** + * + * *
      * The owner of this runtime after creation. Format: `alias@example.com`
      * Currently supports one owner only.
      * 
* * string runtime_owner = 2; + * * @param value The runtimeOwner to set. * @return This builder for chaining. */ - public Builder setRuntimeOwner( - java.lang.String value) { + public Builder setRuntimeOwner(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + runtimeOwner_ = value; onChanged(); return this; } /** + * + * *
      * The owner of this runtime after creation. Format: `alias@example.com`
      * Currently supports one owner only.
      * 
* * string runtime_owner = 2; + * * @return This builder for chaining. */ public Builder clearRuntimeOwner() { - + runtimeOwner_ = getDefaultInstance().getRuntimeOwner(); onChanged(); return this; } /** + * + * *
      * The owner of this runtime after creation. Format: `alias@example.com`
      * Currently supports one owner only.
      * 
* * string runtime_owner = 2; + * * @param value The bytes for runtimeOwner to set. * @return This builder for chaining. */ - public Builder setRuntimeOwnerBytes( - com.google.protobuf.ByteString value) { + public Builder setRuntimeOwnerBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + runtimeOwner_ = value; onChanged(); return this; @@ -862,18 +967,20 @@ public Builder setRuntimeOwnerBytes( private java.lang.Object proxyUri_ = ""; /** + * + * *
      * Output only. The proxy endpoint that is used to access the runtime.
      * 
* * string proxy_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The proxyUri. */ public java.lang.String getProxyUri() { java.lang.Object ref = proxyUri_; 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(); proxyUri_ = s; return s; @@ -882,20 +989,21 @@ public java.lang.String getProxyUri() { } } /** + * + * *
      * Output only. The proxy endpoint that is used to access the runtime.
      * 
* * string proxy_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for proxyUri. */ - public com.google.protobuf.ByteString - getProxyUriBytes() { + public com.google.protobuf.ByteString getProxyUriBytes() { java.lang.Object ref = proxyUri_; 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); proxyUri_ = b; return b; } else { @@ -903,61 +1011,68 @@ public java.lang.String getProxyUri() { } } /** + * + * *
      * Output only. The proxy endpoint that is used to access the runtime.
      * 
* * string proxy_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The proxyUri to set. * @return This builder for chaining. */ - public Builder setProxyUri( - java.lang.String value) { + public Builder setProxyUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + proxyUri_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The proxy endpoint that is used to access the runtime.
      * 
* * string proxy_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearProxyUri() { - + proxyUri_ = getDefaultInstance().getProxyUri(); onChanged(); return this; } /** + * + * *
      * Output only. The proxy endpoint that is used to access the runtime.
      * 
* * string proxy_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for proxyUri to set. * @return This builder for chaining. */ - public Builder setProxyUriBytes( - com.google.protobuf.ByteString value) { + public Builder setProxyUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + proxyUri_ = 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); } @@ -967,12 +1082,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.RuntimeAccessConfig) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.RuntimeAccessConfig) private static final com.google.cloud.notebooks.v1.RuntimeAccessConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.RuntimeAccessConfig(); } @@ -981,27 +1096,27 @@ public static com.google.cloud.notebooks.v1.RuntimeAccessConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RuntimeAccessConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RuntimeAccessConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -1016,6 +1131,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.RuntimeAccessConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAccessConfigOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAccessConfigOrBuilder.java similarity index 68% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAccessConfigOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAccessConfigOrBuilder.java index 6203c78bef21..2d49151f5933 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAccessConfigOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAccessConfigOrBuilder.java @@ -1,70 +1,102 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/runtime.proto package com.google.cloud.notebooks.v1; -public interface RuntimeAccessConfigOrBuilder extends +public interface RuntimeAccessConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.RuntimeAccessConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The type of access mode this instance.
    * 
* * .google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType access_type = 1; + * * @return The enum numeric value on the wire for accessType. */ int getAccessTypeValue(); /** + * + * *
    * The type of access mode this instance.
    * 
* * .google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType access_type = 1; + * * @return The accessType. */ com.google.cloud.notebooks.v1.RuntimeAccessConfig.RuntimeAccessType getAccessType(); /** + * + * *
    * The owner of this runtime after creation. Format: `alias@example.com`
    * Currently supports one owner only.
    * 
* * string runtime_owner = 2; + * * @return The runtimeOwner. */ java.lang.String getRuntimeOwner(); /** + * + * *
    * The owner of this runtime after creation. Format: `alias@example.com`
    * Currently supports one owner only.
    * 
* * string runtime_owner = 2; + * * @return The bytes for runtimeOwner. */ - com.google.protobuf.ByteString - getRuntimeOwnerBytes(); + com.google.protobuf.ByteString getRuntimeOwnerBytes(); /** + * + * *
    * Output only. The proxy endpoint that is used to access the runtime.
    * 
* * string proxy_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The proxyUri. */ java.lang.String getProxyUri(); /** + * + * *
    * Output only. The proxy endpoint that is used to access the runtime.
    * 
* * string proxy_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for proxyUri. */ - com.google.protobuf.ByteString - getProxyUriBytes(); + com.google.protobuf.ByteString getProxyUriBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeMetrics.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeMetrics.java similarity index 54% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeMetrics.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeMetrics.java index c7b8eb10b270..5400e7327213 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeMetrics.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeMetrics.java @@ -1,80 +1,98 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/runtime.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Contains runtime daemon metrics, such as OS and kernels and sessions stats.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.RuntimeMetrics} */ -public final class RuntimeMetrics extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RuntimeMetrics extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.RuntimeMetrics) RuntimeMetricsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RuntimeMetrics.newBuilder() to construct. private RuntimeMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RuntimeMetrics() { - } + + private RuntimeMetrics() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RuntimeMetrics(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_RuntimeMetrics_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_RuntimeMetrics_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 1: return internalGetSystemMetrics(); 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.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_RuntimeMetrics_fieldAccessorTable + return com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_RuntimeMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.RuntimeMetrics.class, com.google.cloud.notebooks.v1.RuntimeMetrics.Builder.class); + com.google.cloud.notebooks.v1.RuntimeMetrics.class, + com.google.cloud.notebooks.v1.RuntimeMetrics.Builder.class); } public static final int SYSTEM_METRICS_FIELD_NUMBER = 1; + private static final class SystemMetricsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_RuntimeMetrics_SystemMetricsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> systemMetrics_; + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_RuntimeMetrics_SystemMetricsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField systemMetrics_; + private com.google.protobuf.MapField - internalGetSystemMetrics() { + internalGetSystemMetrics() { if (systemMetrics_ == null) { return com.google.protobuf.MapField.emptyMapField( SystemMetricsDefaultEntryHolder.defaultEntry); @@ -86,70 +104,81 @@ public int getSystemMetricsCount() { return internalGetSystemMetrics().getMap().size(); } /** + * + * *
    * Output only. The system metrics.
    * 
* - * map<string, string> system_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, string> system_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public boolean containsSystemMetrics( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsSystemMetrics(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetSystemMetrics().getMap().containsKey(key); } - /** - * Use {@link #getSystemMetricsMap()} instead. - */ + /** Use {@link #getSystemMetricsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getSystemMetrics() { return getSystemMetricsMap(); } /** + * + * *
    * Output only. The system metrics.
    * 
* - * map<string, string> system_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, string> system_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.Map getSystemMetricsMap() { return internalGetSystemMetrics().getMap(); } /** + * + * *
    * Output only. The system metrics.
    * 
* - * map<string, string> system_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, string> system_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.lang.String getSystemMetricsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetSystemMetrics().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetSystemMetrics().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Output only. The system metrics.
    * 
* - * map<string, string> system_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, string> system_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - - public java.lang.String getSystemMetricsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetSystemMetrics().getMap(); + public java.lang.String getSystemMetricsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetSystemMetrics().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -157,6 +186,7 @@ public java.lang.String getSystemMetricsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,14 +198,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetSystemMetrics(), - SystemMetricsDefaultEntryHolder.defaultEntry, - 1); + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetSystemMetrics(), SystemMetricsDefaultEntryHolder.defaultEntry, 1); getUnknownFields().writeTo(output); } @@ -185,15 +210,15 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry - : internalGetSystemMetrics().getMap().entrySet()) { - com.google.protobuf.MapEntry - systemMetrics__ = SystemMetricsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, systemMetrics__); + for (java.util.Map.Entry entry : + internalGetSystemMetrics().getMap().entrySet()) { + com.google.protobuf.MapEntry systemMetrics__ = + SystemMetricsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, systemMetrics__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -203,15 +228,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.cloud.notebooks.v1.RuntimeMetrics)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.RuntimeMetrics other = (com.google.cloud.notebooks.v1.RuntimeMetrics) obj; + com.google.cloud.notebooks.v1.RuntimeMetrics other = + (com.google.cloud.notebooks.v1.RuntimeMetrics) obj; - if (!internalGetSystemMetrics().equals( - other.internalGetSystemMetrics())) return false; + if (!internalGetSystemMetrics().equals(other.internalGetSystemMetrics())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,152 +257,156 @@ public int hashCode() { return hash; } - public static com.google.cloud.notebooks.v1.RuntimeMetrics parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.notebooks.v1.RuntimeMetrics parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.RuntimeMetrics 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.cloud.notebooks.v1.RuntimeMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.RuntimeMetrics parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.RuntimeMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.RuntimeMetrics 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.cloud.notebooks.v1.RuntimeMetrics 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.cloud.notebooks.v1.RuntimeMetrics 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.cloud.notebooks.v1.RuntimeMetrics parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.RuntimeMetrics parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.RuntimeMetrics 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.cloud.notebooks.v1.RuntimeMetrics 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.cloud.notebooks.v1.RuntimeMetrics 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.cloud.notebooks.v1.RuntimeMetrics 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; } /** + * + * *
    * Contains runtime daemon metrics, such as OS and kernels and sessions stats.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.RuntimeMetrics} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.RuntimeMetrics) com.google.cloud.notebooks.v1.RuntimeMetricsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_RuntimeMetrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_RuntimeMetrics_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetSystemMetrics(); 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 1: return internalGetMutableSystemMetrics(); 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.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_RuntimeMetrics_fieldAccessorTable + return com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_RuntimeMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.RuntimeMetrics.class, com.google.cloud.notebooks.v1.RuntimeMetrics.Builder.class); + com.google.cloud.notebooks.v1.RuntimeMetrics.class, + com.google.cloud.notebooks.v1.RuntimeMetrics.Builder.class); } // Construct using com.google.cloud.notebooks.v1.RuntimeMetrics.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -386,9 +415,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_RuntimeMetrics_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_RuntimeMetrics_descriptor; } @java.lang.Override @@ -407,7 +436,8 @@ public com.google.cloud.notebooks.v1.RuntimeMetrics build() { @java.lang.Override public com.google.cloud.notebooks.v1.RuntimeMetrics buildPartial() { - com.google.cloud.notebooks.v1.RuntimeMetrics result = new com.google.cloud.notebooks.v1.RuntimeMetrics(this); + com.google.cloud.notebooks.v1.RuntimeMetrics result = + new com.google.cloud.notebooks.v1.RuntimeMetrics(this); int from_bitField0_ = bitField0_; result.systemMetrics_ = internalGetSystemMetrics(); result.systemMetrics_.makeImmutable(); @@ -419,38 +449,39 @@ public com.google.cloud.notebooks.v1.RuntimeMetrics buildPartial() { 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.cloud.notebooks.v1.RuntimeMetrics) { - return mergeFrom((com.google.cloud.notebooks.v1.RuntimeMetrics)other); + return mergeFrom((com.google.cloud.notebooks.v1.RuntimeMetrics) other); } else { super.mergeFrom(other); return this; @@ -459,8 +490,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.notebooks.v1.RuntimeMetrics other) { if (other == com.google.cloud.notebooks.v1.RuntimeMetrics.getDefaultInstance()) return this; - internalGetMutableSystemMetrics().mergeFrom( - other.internalGetSystemMetrics()); + internalGetMutableSystemMetrics().mergeFrom(other.internalGetSystemMetrics()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -487,20 +517,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.protobuf.MapEntry - systemMetrics__ = input.readMessage( - SystemMetricsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableSystemMetrics().getMutableMap().put( - systemMetrics__.getKey(), systemMetrics__.getValue()); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.protobuf.MapEntry systemMetrics__ = + input.readMessage( + SystemMetricsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableSystemMetrics() + .getMutableMap() + .put(systemMetrics__.getKey(), systemMetrics__.getValue()); + 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) { @@ -510,24 +544,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> systemMetrics_; + private com.google.protobuf.MapField systemMetrics_; + private com.google.protobuf.MapField - internalGetSystemMetrics() { + internalGetSystemMetrics() { if (systemMetrics_ == null) { return com.google.protobuf.MapField.emptyMapField( SystemMetricsDefaultEntryHolder.defaultEntry); } return systemMetrics_; } + private com.google.protobuf.MapField - internalGetMutableSystemMetrics() { - onChanged();; + internalGetMutableSystemMetrics() { + onChanged(); + ; if (systemMetrics_ == null) { - systemMetrics_ = com.google.protobuf.MapField.newMapField( - SystemMetricsDefaultEntryHolder.defaultEntry); + systemMetrics_ = + com.google.protobuf.MapField.newMapField(SystemMetricsDefaultEntryHolder.defaultEntry); } if (!systemMetrics_.isMutable()) { systemMetrics_ = systemMetrics_.copy(); @@ -539,70 +576,81 @@ public int getSystemMetricsCount() { return internalGetSystemMetrics().getMap().size(); } /** + * + * *
      * Output only. The system metrics.
      * 
* - * map<string, string> system_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, string> system_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public boolean containsSystemMetrics( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsSystemMetrics(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetSystemMetrics().getMap().containsKey(key); } - /** - * Use {@link #getSystemMetricsMap()} instead. - */ + /** Use {@link #getSystemMetricsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getSystemMetrics() { return getSystemMetricsMap(); } /** + * + * *
      * Output only. The system metrics.
      * 
* - * map<string, string> system_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, string> system_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.Map getSystemMetricsMap() { return internalGetSystemMetrics().getMap(); } /** + * + * *
      * Output only. The system metrics.
      * 
* - * map<string, string> system_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, string> system_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.lang.String getSystemMetricsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetSystemMetrics().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetSystemMetrics().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Output only. The system metrics.
      * 
* - * map<string, string> system_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, string> system_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - - public java.lang.String getSystemMetricsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetSystemMetrics().getMap(); + public java.lang.String getSystemMetricsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetSystemMetrics().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -610,69 +658,72 @@ public java.lang.String getSystemMetricsOrThrow( } public Builder clearSystemMetrics() { - internalGetMutableSystemMetrics().getMutableMap() - .clear(); + internalGetMutableSystemMetrics().getMutableMap().clear(); return this; } /** + * + * *
      * Output only. The system metrics.
      * 
* - * map<string, string> system_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, string> system_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - - public Builder removeSystemMetrics( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableSystemMetrics().getMutableMap() - .remove(key); + public Builder removeSystemMetrics(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableSystemMetrics().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableSystemMetrics() { + public java.util.Map getMutableSystemMetrics() { return internalGetMutableSystemMetrics().getMutableMap(); } /** + * + * *
      * Output only. The system metrics.
      * 
* - * map<string, string> system_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, string> system_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder putSystemMetrics( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putSystemMetrics(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableSystemMetrics().getMutableMap() - .put(key, value); + internalGetMutableSystemMetrics().getMutableMap().put(key, value); return this; } /** + * + * *
      * Output only. The system metrics.
      * 
* - * map<string, string> system_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, string> system_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - - public Builder putAllSystemMetrics( - java.util.Map values) { - internalGetMutableSystemMetrics().getMutableMap() - .putAll(values); + public Builder putAllSystemMetrics(java.util.Map values) { + internalGetMutableSystemMetrics().getMutableMap().putAll(values); 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); } @@ -682,12 +733,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.RuntimeMetrics) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.RuntimeMetrics) private static final com.google.cloud.notebooks.v1.RuntimeMetrics DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.RuntimeMetrics(); } @@ -696,27 +747,27 @@ public static com.google.cloud.notebooks.v1.RuntimeMetrics getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RuntimeMetrics parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RuntimeMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -731,6 +782,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.RuntimeMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeMetricsOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeMetricsOrBuilder.java new file mode 100644 index 000000000000..268c5ae86b88 --- /dev/null +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeMetricsOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/notebooks/v1/runtime.proto + +package com.google.cloud.notebooks.v1; + +public interface RuntimeMetricsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.RuntimeMetrics) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The system metrics.
+   * 
+ * + * + * map<string, string> system_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getSystemMetricsCount(); + /** + * + * + *
+   * Output only. The system metrics.
+   * 
+ * + * + * map<string, string> system_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsSystemMetrics(java.lang.String key); + /** Use {@link #getSystemMetricsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getSystemMetrics(); + /** + * + * + *
+   * Output only. The system metrics.
+   * 
+ * + * + * map<string, string> system_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map getSystemMetricsMap(); + /** + * + * + *
+   * Output only. The system metrics.
+   * 
+ * + * + * map<string, string> system_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + + /* nullable */ + java.lang.String getSystemMetricsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Output only. The system metrics.
+   * 
+ * + * + * map<string, string> system_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.lang.String getSystemMetricsOrThrow(java.lang.String key); +} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeName.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeName.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeName.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeName.java diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeOrBuilder.java similarity index 73% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeOrBuilder.java index 78d7b37a5cae..3bf77eef10a6 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/runtime.proto package com.google.cloud.notebooks.v1; -public interface RuntimeOrBuilder extends +public interface RuntimeOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.Runtime) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of the runtime.
    * Format:
@@ -15,10 +33,13 @@ public interface RuntimeOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name of the runtime.
    * Format:
@@ -26,30 +47,38 @@ public interface RuntimeOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Use a Compute Engine VM image to start the managed notebook instance.
    * 
* * .google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2; + * * @return Whether the virtualMachine field is set. */ boolean hasVirtualMachine(); /** + * + * *
    * Use a Compute Engine VM image to start the managed notebook instance.
    * 
* * .google.cloud.notebooks.v1.VirtualMachine virtual_machine = 2; + * * @return The virtualMachine. */ com.google.cloud.notebooks.v1.VirtualMachine getVirtualMachine(); /** + * + * *
    * Use a Compute Engine VM image to start the managed notebook instance.
    * 
@@ -59,62 +88,90 @@ public interface RuntimeOrBuilder extends com.google.cloud.notebooks.v1.VirtualMachineOrBuilder getVirtualMachineOrBuilder(); /** + * + * *
    * Output only. Runtime state.
    * 
* - * .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. Runtime state.
    * 
* - * .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Runtime.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.notebooks.v1.Runtime.State getState(); /** + * + * *
    * Output only. Runtime health_state.
    * 
* - * .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for healthState. */ int getHealthStateValue(); /** + * + * *
    * Output only. Runtime health_state.
    * 
* - * .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.Runtime.HealthState health_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The healthState. */ com.google.cloud.notebooks.v1.Runtime.HealthState getHealthState(); /** + * + * *
    * The config settings for accessing runtime.
    * 
* * .google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5; + * * @return Whether the accessConfig field is set. */ boolean hasAccessConfig(); /** + * + * *
    * The config settings for accessing runtime.
    * 
* * .google.cloud.notebooks.v1.RuntimeAccessConfig access_config = 5; + * * @return The accessConfig. */ com.google.cloud.notebooks.v1.RuntimeAccessConfig getAccessConfig(); /** + * + * *
    * The config settings for accessing runtime.
    * 
@@ -124,24 +181,32 @@ public interface RuntimeOrBuilder extends com.google.cloud.notebooks.v1.RuntimeAccessConfigOrBuilder getAccessConfigOrBuilder(); /** + * + * *
    * The config settings for software inside the runtime.
    * 
* * .google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6; + * * @return Whether the softwareConfig field is set. */ boolean hasSoftwareConfig(); /** + * + * *
    * The config settings for software inside the runtime.
    * 
* * .google.cloud.notebooks.v1.RuntimeSoftwareConfig software_config = 6; + * * @return The softwareConfig. */ com.google.cloud.notebooks.v1.RuntimeSoftwareConfig getSoftwareConfig(); /** + * + * *
    * The config settings for software inside the runtime.
    * 
@@ -151,86 +216,122 @@ public interface RuntimeOrBuilder extends com.google.cloud.notebooks.v1.RuntimeSoftwareConfigOrBuilder getSoftwareConfigOrBuilder(); /** + * + * *
    * Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
    * stats.
    * 
* - * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the metrics field is set. */ boolean hasMetrics(); /** + * + * *
    * Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
    * stats.
    * 
* - * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The metrics. */ com.google.cloud.notebooks.v1.RuntimeMetrics getMetrics(); /** + * + * *
    * Output only. Contains Runtime daemon metrics such as Service status and JupyterLab
    * stats.
    * 
* - * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1.RuntimeMetrics metrics = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.notebooks.v1.RuntimeMetricsOrBuilder getMetricsOrBuilder(); /** + * + * *
    * Output only. Runtime creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Runtime creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Runtime creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Runtime update time.
    * 
* - * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. Runtime update time.
    * 
* - * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. Runtime update time.
    * 
* - * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); diff --git a/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeProto.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeProto.java new file mode 100644 index 000000000000..454face71309 --- /dev/null +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeProto.java @@ -0,0 +1,473 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/notebooks/v1/runtime.proto + +package com.google.cloud.notebooks.v1; + +public final class RuntimeProto { + private RuntimeProto() {} + + 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_cloud_notebooks_v1_Runtime_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_Runtime_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_RuntimeAcceleratorConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_RuntimeAcceleratorConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_EncryptionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_EncryptionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_LocalDisk_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_LocalDisk_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_LocalDisk_RuntimeGuestOsFeature_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_LocalDisk_RuntimeGuestOsFeature_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_RuntimeAccessConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_RuntimeAccessConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_RuntimeSoftwareConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_RuntimeSoftwareConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_RuntimeMetrics_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_RuntimeMetrics_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_RuntimeMetrics_SystemMetricsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_RuntimeMetrics_SystemMetricsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_RuntimeShieldedInstanceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_RuntimeShieldedInstanceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_VirtualMachine_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_VirtualMachine_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_BootImage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_BootImage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_GuestAttributesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_GuestAttributesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_MetadataEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_MetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_LabelsEntry_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/cloud/notebooks/v1/runtime.prot" + + "o\022\031google.cloud.notebooks.v1\032\037google/api" + + "/field_behavior.proto\032\031google/api/resour" + + "ce.proto\032+google/cloud/notebooks/v1/envi" + + "ronment.proto\032\037google/protobuf/timestamp" + + ".proto\"\255\007\n\007Runtime\022\021\n\004name\030\001 \001(\tB\003\340A\003\022D\n" + + "\017virtual_machine\030\002 \001(\0132).google.cloud.no" + + "tebooks.v1.VirtualMachineH\000\022<\n\005state\030\003 \001" + + "(\0162(.google.cloud.notebooks.v1.Runtime.S" + + "tateB\003\340A\003\022I\n\014health_state\030\004 \001(\0162..google" + + ".cloud.notebooks.v1.Runtime.HealthStateB" + + "\003\340A\003\022E\n\raccess_config\030\005 \001(\0132..google.clo" + + "ud.notebooks.v1.RuntimeAccessConfig\022I\n\017s" + + "oftware_config\030\006 \001(\01320.google.cloud.note" + + "books.v1.RuntimeSoftwareConfig\022?\n\007metric" + + "s\030\007 \001(\0132).google.cloud.notebooks.v1.Runt" + + "imeMetricsB\003\340A\003\0224\n\013create_time\030\024 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\0224\n\013update_" + + "time\030\025 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003\"\224\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010" + + "STARTING\020\001\022\020\n\014PROVISIONING\020\002\022\n\n\006ACTIVE\020\003" + + "\022\014\n\010STOPPING\020\004\022\013\n\007STOPPED\020\005\022\014\n\010DELETING\020" + + "\006\022\r\n\tUPGRADING\020\007\022\020\n\014INITIALIZING\020\010\"w\n\013He" + + "althState\022\034\n\030HEALTH_STATE_UNSPECIFIED\020\000\022" + + "\013\n\007HEALTHY\020\001\022\r\n\tUNHEALTHY\020\002\022\027\n\023AGENT_NOT" + + "_INSTALLED\020\003\022\025\n\021AGENT_NOT_RUNNING\020\004:a\352A^" + + "\n notebooks.googleapis.com/Runtime\022:proj" + + "ects/{project}/locations/{location}/runt" + + "imes/{runtime}B\016\n\014runtime_type\"\245\003\n\030Runti" + + "meAcceleratorConfig\022Q\n\004type\030\001 \001(\0162C.goog" + + "le.cloud.notebooks.v1.RuntimeAccelerator" + + "Config.AcceleratorType\022\022\n\ncore_count\030\002 \001" + + "(\003\"\241\002\n\017AcceleratorType\022 \n\034ACCELERATOR_TY" + + "PE_UNSPECIFIED\020\000\022\030\n\020NVIDIA_TESLA_K80\020\001\032\002" + + "\010\001\022\025\n\021NVIDIA_TESLA_P100\020\002\022\025\n\021NVIDIA_TESL" + + "A_V100\020\003\022\023\n\017NVIDIA_TESLA_P4\020\004\022\023\n\017NVIDIA_" + + "TESLA_T4\020\005\022\025\n\021NVIDIA_TESLA_A100\020\006\022\n\n\006TPU" + + "_V2\020\007\022\n\n\006TPU_V3\020\010\022\027\n\023NVIDIA_TESLA_T4_VWS" + + "\020\t\022\031\n\025NVIDIA_TESLA_P100_VWS\020\n\022\027\n\023NVIDIA_" + + "TESLA_P4_VWS\020\013\"#\n\020EncryptionConfig\022\017\n\007km" + + "s_key\030\001 \001(\t\"\250\003\n\tLocalDisk\022\030\n\013auto_delete" + + "\030\001 \001(\010B\003\340A\003\022\021\n\004boot\030\002 \001(\010B\003\340A\003\022\030\n\013device" + + "_name\030\003 \001(\tB\003\340A\003\022Z\n\021guest_os_features\030\004 " + + "\003(\0132:.google.cloud.notebooks.v1.LocalDis" + + "k.RuntimeGuestOsFeatureB\003\340A\003\022\022\n\005index\030\005 " + + "\001(\005B\003\340A\003\022T\n\021initialize_params\030\006 \001(\01324.go" + + "ogle.cloud.notebooks.v1.LocalDiskInitial" + + "izeParamsB\003\340A\004\022\021\n\tinterface\030\007 \001(\t\022\021\n\004kin" + + "d\030\010 \001(\tB\003\340A\003\022\025\n\010licenses\030\t \003(\tB\003\340A\003\022\014\n\004m" + + "ode\030\n \001(\t\022\016\n\006source\030\013 \001(\t\022\014\n\004type\030\014 \001(\t\032" + + "%\n\025RuntimeGuestOsFeature\022\014\n\004type\030\001 \001(\t\"\252" + + "\003\n\031LocalDiskInitializeParams\022\030\n\013descript" + + "ion\030\001 \001(\tB\003\340A\001\022\026\n\tdisk_name\030\002 \001(\tB\003\340A\001\022\031" + + "\n\014disk_size_gb\030\003 \001(\003B\003\340A\001\022U\n\tdisk_type\030\004" + + " \001(\0162=.google.cloud.notebooks.v1.LocalDi" + + "skInitializeParams.DiskTypeB\003\340A\004\022U\n\006labe" + + "ls\030\005 \003(\0132@.google.cloud.notebooks.v1.Loc" + + "alDiskInitializeParams.LabelsEntryB\003\340A\001\032" + + "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + + "(\t:\0028\001\"c\n\010DiskType\022\031\n\025DISK_TYPE_UNSPECIF" + + "IED\020\000\022\017\n\013PD_STANDARD\020\001\022\n\n\006PD_SSD\020\002\022\017\n\013PD" + + "_BALANCED\020\003\022\016\n\nPD_EXTREME\020\004\"\373\001\n\023RuntimeA" + + "ccessConfig\022U\n\013access_type\030\001 \001(\0162@.googl" + + "e.cloud.notebooks.v1.RuntimeAccessConfig" + + ".RuntimeAccessType\022\025\n\rruntime_owner\030\002 \001(" + + "\t\022\026\n\tproxy_uri\030\003 \001(\tB\003\340A\003\"^\n\021RuntimeAcce" + + "ssType\022#\n\037RUNTIME_ACCESS_TYPE_UNSPECIFIE" + + "D\020\000\022\017\n\013SINGLE_USER\020\001\022\023\n\017SERVICE_ACCOUNT\020" + + "\002\"\344\005\n\025RuntimeSoftwareConfig\022!\n\031notebook_" + + "upgrade_schedule\030\001 \001(\t\022%\n\030enable_health_" + + "monitoring\030\002 \001(\010H\000\210\001\001\022\032\n\ridle_shutdown\030\003" + + " \001(\010H\001\210\001\001\022\035\n\025idle_shutdown_timeout\030\004 \001(\005" + + "\022\032\n\022install_gpu_driver\030\005 \001(\010\022\036\n\026custom_g" + + "pu_driver_path\030\006 \001(\t\022\033\n\023post_startup_scr" + + "ipt\030\007 \001(\t\022?\n\007kernels\030\010 \003(\0132).google.clou" + + "d.notebooks.v1.ContainerImageB\003\340A\001\022\035\n\013up" + + "gradeable\030\t \001(\010B\003\340A\003H\002\210\001\001\022p\n\034post_startu" + + "p_script_behavior\030\n \001(\0162J.google.cloud.n" + + "otebooks.v1.RuntimeSoftwareConfig.PostSt" + + "artupScriptBehavior\022\035\n\020disable_terminal\030" + + "\013 \001(\010H\003\210\001\001\022\031\n\007version\030\014 \001(\tB\003\340A\003H\004\210\001\001\"\200\001" + + "\n\031PostStartupScriptBehavior\022,\n(POST_STAR" + + "TUP_SCRIPT_BEHAVIOR_UNSPECIFIED\020\000\022\023\n\017RUN" + + "_EVERY_START\020\001\022 \n\034DOWNLOAD_AND_RUN_EVERY" + + "_START\020\002B\033\n\031_enable_health_monitoringB\020\n" + + "\016_idle_shutdownB\016\n\014_upgradeableB\023\n\021_disa" + + "ble_terminalB\n\n\010_version\"\241\001\n\016RuntimeMetr" + + "ics\022Y\n\016system_metrics\030\001 \003(\0132<.google.clo" + + "ud.notebooks.v1.RuntimeMetrics.SystemMet" + + "ricsEntryB\003\340A\003\0324\n\022SystemMetricsEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"u\n\035RuntimeS" + + "hieldedInstanceConfig\022\032\n\022enable_secure_b" + + "oot\030\001 \001(\010\022\023\n\013enable_vtpm\030\002 \001(\010\022#\n\033enable" + + "_integrity_monitoring\030\003 \001(\010\"\227\001\n\016VirtualM" + + "achine\022\032\n\rinstance_name\030\001 \001(\tB\003\340A\003\022\030\n\013in" + + "stance_id\030\002 \001(\tB\003\340A\003\022O\n\026virtual_machine_" + + "config\030\003 \001(\0132/.google.cloud.notebooks.v1" + + ".VirtualMachineConfig\"\343\t\n\024VirtualMachine" + + "Config\022\021\n\004zone\030\001 \001(\tB\003\340A\003\022\031\n\014machine_typ" + + "e\030\002 \001(\tB\003\340A\002\022H\n\020container_images\030\003 \003(\0132)" + + ".google.cloud.notebooks.v1.ContainerImag" + + "eB\003\340A\001\022<\n\tdata_disk\030\004 \001(\0132$.google.cloud" + + ".notebooks.v1.LocalDiskB\003\340A\002\022K\n\021encrypti" + + "on_config\030\005 \001(\0132+.google.cloud.notebooks" + + ".v1.EncryptionConfigB\003\340A\001\022_\n\030shielded_in" + + "stance_config\030\006 \001(\01328.google.cloud.noteb" + + "ooks.v1.RuntimeShieldedInstanceConfigB\003\340" + + "A\001\022T\n\022accelerator_config\030\007 \001(\01323.google." + + "cloud.notebooks.v1.RuntimeAcceleratorCon" + + "figB\003\340A\001\022\024\n\007network\030\010 \001(\tB\003\340A\001\022\023\n\006subnet" + + "\030\t \001(\tB\003\340A\001\022\035\n\020internal_ip_only\030\n \001(\010B\003\340" + + "A\001\022\021\n\004tags\030\r \003(\tB\003\340A\001\022c\n\020guest_attribute" + + "s\030\016 \003(\0132D.google.cloud.notebooks.v1.Virt" + + "ualMachineConfig.GuestAttributesEntryB\003\340" + + "A\003\022T\n\010metadata\030\017 \003(\0132=.google.cloud.note" + + "books.v1.VirtualMachineConfig.MetadataEn" + + "tryB\003\340A\001\022P\n\006labels\030\020 \003(\0132;.google.cloud." + + "notebooks.v1.VirtualMachineConfig.Labels" + + "EntryB\003\340A\001\022N\n\010nic_type\030\021 \001(\01627.google.cl" + + "oud.notebooks.v1.VirtualMachineConfig.Ni" + + "cTypeB\003\340A\001\022\036\n\021reserved_ip_range\030\022 \001(\tB\003\340" + + "A\001\022R\n\nboot_image\030\023 \001(\01329.google.cloud.no" + + "tebooks.v1.VirtualMachineConfig.BootImag" + + "eB\003\340A\001\032\013\n\tBootImage\0326\n\024GuestAttributesEn" + + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032/\n\rM" + + "etadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001\">\n\007NicType\022\030\n\024UNSPECIFIED_NI" + + "C_TYPE\020\000\022\016\n\nVIRTIO_NET\020\001\022\t\n\005GVNIC\020\002B\312\001\n\035" + + "com.google.cloud.notebooks.v1B\014RuntimePr" + + "otoP\001ZBgoogle.golang.org/genproto/google" + + "apis/cloud/notebooks/v1;notebooks\252\002\031Goog" + + "le.Cloud.Notebooks.V1\312\002\031Google\\Cloud\\Not" + + "ebooks\\V1\352\002\034Google::Cloud::Notebooks::V1" + + "b\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.cloud.notebooks.v1.EnvironmentProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_notebooks_v1_Runtime_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_notebooks_v1_Runtime_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_Runtime_descriptor, + new java.lang.String[] { + "Name", + "VirtualMachine", + "State", + "HealthState", + "AccessConfig", + "SoftwareConfig", + "Metrics", + "CreateTime", + "UpdateTime", + "RuntimeType", + }); + internal_static_google_cloud_notebooks_v1_RuntimeAcceleratorConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_notebooks_v1_RuntimeAcceleratorConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_RuntimeAcceleratorConfig_descriptor, + new java.lang.String[] { + "Type", "CoreCount", + }); + internal_static_google_cloud_notebooks_v1_EncryptionConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_notebooks_v1_EncryptionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_EncryptionConfig_descriptor, + new java.lang.String[] { + "KmsKey", + }); + internal_static_google_cloud_notebooks_v1_LocalDisk_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_notebooks_v1_LocalDisk_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_LocalDisk_descriptor, + new java.lang.String[] { + "AutoDelete", + "Boot", + "DeviceName", + "GuestOsFeatures", + "Index", + "InitializeParams", + "Interface", + "Kind", + "Licenses", + "Mode", + "Source", + "Type", + }); + internal_static_google_cloud_notebooks_v1_LocalDisk_RuntimeGuestOsFeature_descriptor = + internal_static_google_cloud_notebooks_v1_LocalDisk_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_notebooks_v1_LocalDisk_RuntimeGuestOsFeature_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_LocalDisk_RuntimeGuestOsFeature_descriptor, + new java.lang.String[] { + "Type", + }); + internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_descriptor, + new java.lang.String[] { + "Description", "DiskName", "DiskSizeGb", "DiskType", "Labels", + }); + internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_LabelsEntry_descriptor = + internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_notebooks_v1_RuntimeAccessConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_notebooks_v1_RuntimeAccessConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_RuntimeAccessConfig_descriptor, + new java.lang.String[] { + "AccessType", "RuntimeOwner", "ProxyUri", + }); + internal_static_google_cloud_notebooks_v1_RuntimeSoftwareConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_notebooks_v1_RuntimeSoftwareConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_RuntimeSoftwareConfig_descriptor, + new java.lang.String[] { + "NotebookUpgradeSchedule", + "EnableHealthMonitoring", + "IdleShutdown", + "IdleShutdownTimeout", + "InstallGpuDriver", + "CustomGpuDriverPath", + "PostStartupScript", + "Kernels", + "Upgradeable", + "PostStartupScriptBehavior", + "DisableTerminal", + "Version", + "EnableHealthMonitoring", + "IdleShutdown", + "Upgradeable", + "DisableTerminal", + "Version", + }); + internal_static_google_cloud_notebooks_v1_RuntimeMetrics_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_notebooks_v1_RuntimeMetrics_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_RuntimeMetrics_descriptor, + new java.lang.String[] { + "SystemMetrics", + }); + internal_static_google_cloud_notebooks_v1_RuntimeMetrics_SystemMetricsEntry_descriptor = + internal_static_google_cloud_notebooks_v1_RuntimeMetrics_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_notebooks_v1_RuntimeMetrics_SystemMetricsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_RuntimeMetrics_SystemMetricsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_notebooks_v1_RuntimeShieldedInstanceConfig_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_notebooks_v1_RuntimeShieldedInstanceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_RuntimeShieldedInstanceConfig_descriptor, + new java.lang.String[] { + "EnableSecureBoot", "EnableVtpm", "EnableIntegrityMonitoring", + }); + internal_static_google_cloud_notebooks_v1_VirtualMachine_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_notebooks_v1_VirtualMachine_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_VirtualMachine_descriptor, + new java.lang.String[] { + "InstanceName", "InstanceId", "VirtualMachineConfig", + }); + internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_descriptor, + new java.lang.String[] { + "Zone", + "MachineType", + "ContainerImages", + "DataDisk", + "EncryptionConfig", + "ShieldedInstanceConfig", + "AcceleratorConfig", + "Network", + "Subnet", + "InternalIpOnly", + "Tags", + "GuestAttributes", + "Metadata", + "Labels", + "NicType", + "ReservedIpRange", + "BootImage", + }); + internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_BootImage_descriptor = + internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_BootImage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_BootImage_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_GuestAttributesEntry_descriptor = + internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_GuestAttributesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_GuestAttributesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_MetadataEntry_descriptor = + internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_MetadataEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_MetadataEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_LabelsEntry_descriptor = + internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_descriptor + .getNestedTypes() + .get(3); + internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.notebooks.v1.EnvironmentProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeShieldedInstanceConfig.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeShieldedInstanceConfig.java similarity index 70% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeShieldedInstanceConfig.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeShieldedInstanceConfig.java index b9252372deff..b8f2077cfa15 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeShieldedInstanceConfig.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeShieldedInstanceConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/runtime.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * A set of Shielded Instance options.
  * Check [Images using supported Shielded VM
@@ -13,46 +30,49 @@
  *
  * Protobuf type {@code google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig}
  */
-public final class RuntimeShieldedInstanceConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RuntimeShieldedInstanceConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig)
     RuntimeShieldedInstanceConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RuntimeShieldedInstanceConfig.newBuilder() to construct.
   private RuntimeShieldedInstanceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private RuntimeShieldedInstanceConfig() {
-  }
+
+  private RuntimeShieldedInstanceConfig() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RuntimeShieldedInstanceConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_RuntimeShieldedInstanceConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.notebooks.v1.RuntimeProto
+        .internal_static_google_cloud_notebooks_v1_RuntimeShieldedInstanceConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_RuntimeShieldedInstanceConfig_fieldAccessorTable
+    return com.google.cloud.notebooks.v1.RuntimeProto
+        .internal_static_google_cloud_notebooks_v1_RuntimeShieldedInstanceConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.class, com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.Builder.class);
+            com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.class,
+            com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.Builder.class);
   }
 
   public static final int ENABLE_SECURE_BOOT_FIELD_NUMBER = 1;
   private boolean enableSecureBoot_;
   /**
+   *
+   *
    * 
    * Defines whether the instance has Secure Boot enabled.
    * Secure Boot helps ensure that the system only runs authentic software by
@@ -61,6 +81,7 @@ protected java.lang.Object newInstance(
    * 
* * bool enable_secure_boot = 1; + * * @return The enableSecureBoot. */ @java.lang.Override @@ -71,11 +92,14 @@ public boolean getEnableSecureBoot() { public static final int ENABLE_VTPM_FIELD_NUMBER = 2; private boolean enableVtpm_; /** + * + * *
    * Defines whether the instance has the vTPM enabled. Enabled by default.
    * 
* * bool enable_vtpm = 2; + * * @return The enableVtpm. */ @java.lang.Override @@ -86,6 +110,8 @@ public boolean getEnableVtpm() { public static final int ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER = 3; private boolean enableIntegrityMonitoring_; /** + * + * *
    * Defines whether the instance has integrity monitoring enabled.
    * Enables monitoring and attestation of the boot integrity of the instance.
@@ -95,6 +121,7 @@ public boolean getEnableVtpm() {
    * 
* * bool enable_integrity_monitoring = 3; + * * @return The enableIntegrityMonitoring. */ @java.lang.Override @@ -103,6 +130,7 @@ public boolean getEnableIntegrityMonitoring() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -114,8 +142,7 @@ 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 (enableSecureBoot_ != false) { output.writeBool(1, enableSecureBoot_); } @@ -135,16 +162,13 @@ public int getSerializedSize() { size = 0; if (enableSecureBoot_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enableSecureBoot_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableSecureBoot_); } if (enableVtpm_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, enableVtpm_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableVtpm_); } if (enableIntegrityMonitoring_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, enableIntegrityMonitoring_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableIntegrityMonitoring_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -154,19 +178,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.cloud.notebooks.v1.RuntimeShieldedInstanceConfig)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig other = (com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig) obj; + com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig other = + (com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig) obj; - if (getEnableSecureBoot() - != other.getEnableSecureBoot()) return false; - if (getEnableVtpm() - != other.getEnableVtpm()) return false; - if (getEnableIntegrityMonitoring() - != other.getEnableIntegrityMonitoring()) return false; + if (getEnableSecureBoot() != other.getEnableSecureBoot()) return false; + if (getEnableVtpm() != other.getEnableVtpm()) return false; + if (getEnableIntegrityMonitoring() != other.getEnableIntegrityMonitoring()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -179,110 +201,115 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_SECURE_BOOT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableSecureBoot()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSecureBoot()); hash = (37 * hash) + ENABLE_VTPM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableVtpm()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableVtpm()); hash = (37 * hash) + ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableIntegrityMonitoring()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableIntegrityMonitoring()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig 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.cloud.notebooks.v1.RuntimeShieldedInstanceConfig 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.cloud.notebooks.v1.RuntimeShieldedInstanceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig 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.cloud.notebooks.v1.RuntimeShieldedInstanceConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig 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.cloud.notebooks.v1.RuntimeShieldedInstanceConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig 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.cloud.notebooks.v1.RuntimeShieldedInstanceConfig 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.cloud.notebooks.v1.RuntimeShieldedInstanceConfig 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.cloud.notebooks.v1.RuntimeShieldedInstanceConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig 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; } /** + * + * *
    * A set of Shielded Instance options.
    * Check [Images using supported Shielded VM
@@ -292,33 +319,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig)
       com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_RuntimeShieldedInstanceConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.notebooks.v1.RuntimeProto
+          .internal_static_google_cloud_notebooks_v1_RuntimeShieldedInstanceConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_RuntimeShieldedInstanceConfig_fieldAccessorTable
+      return com.google.cloud.notebooks.v1.RuntimeProto
+          .internal_static_google_cloud_notebooks_v1_RuntimeShieldedInstanceConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.class, com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.Builder.class);
+              com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.class,
+              com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -332,9 +358,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_RuntimeShieldedInstanceConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.notebooks.v1.RuntimeProto
+          .internal_static_google_cloud_notebooks_v1_RuntimeShieldedInstanceConfig_descriptor;
     }
 
     @java.lang.Override
@@ -353,7 +379,8 @@ public com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig build() {
 
     @java.lang.Override
     public com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig buildPartial() {
-      com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig result = new com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig(this);
+      com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig result =
+          new com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig(this);
       result.enableSecureBoot_ = enableSecureBoot_;
       result.enableVtpm_ = enableVtpm_;
       result.enableIntegrityMonitoring_ = enableIntegrityMonitoring_;
@@ -365,38 +392,39 @@ public com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig buildPartial(
     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.cloud.notebooks.v1.RuntimeShieldedInstanceConfig) {
-        return mergeFrom((com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig)other);
+        return mergeFrom((com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -404,7 +432,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig other) {
-      if (other == com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.getDefaultInstance()) return this;
+      if (other == com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.getDefaultInstance())
+        return this;
       if (other.getEnableSecureBoot() != false) {
         setEnableSecureBoot(other.getEnableSecureBoot());
       }
@@ -440,27 +469,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 8: {
-              enableSecureBoot_ = input.readBool();
-
-              break;
-            } // case 8
-            case 16: {
-              enableVtpm_ = input.readBool();
-
-              break;
-            } // case 16
-            case 24: {
-              enableIntegrityMonitoring_ = input.readBool();
-
-              break;
-            } // case 24
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 8:
+              {
+                enableSecureBoot_ = input.readBool();
+
+                break;
+              } // case 8
+            case 16:
+              {
+                enableVtpm_ = input.readBool();
+
+                break;
+              } // case 16
+            case 24:
+              {
+                enableIntegrityMonitoring_ = input.readBool();
+
+                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) {
@@ -471,8 +504,10 @@ public Builder mergeFrom(
       return this;
     }
 
-    private boolean enableSecureBoot_ ;
+    private boolean enableSecureBoot_;
     /**
+     *
+     *
      * 
      * Defines whether the instance has Secure Boot enabled.
      * Secure Boot helps ensure that the system only runs authentic software by
@@ -481,6 +516,7 @@ public Builder mergeFrom(
      * 
* * bool enable_secure_boot = 1; + * * @return The enableSecureBoot. */ @java.lang.Override @@ -488,6 +524,8 @@ public boolean getEnableSecureBoot() { return enableSecureBoot_; } /** + * + * *
      * Defines whether the instance has Secure Boot enabled.
      * Secure Boot helps ensure that the system only runs authentic software by
@@ -496,16 +534,19 @@ public boolean getEnableSecureBoot() {
      * 
* * bool enable_secure_boot = 1; + * * @param value The enableSecureBoot to set. * @return This builder for chaining. */ public Builder setEnableSecureBoot(boolean value) { - + enableSecureBoot_ = value; onChanged(); return this; } /** + * + * *
      * Defines whether the instance has Secure Boot enabled.
      * Secure Boot helps ensure that the system only runs authentic software by
@@ -514,22 +555,26 @@ public Builder setEnableSecureBoot(boolean value) {
      * 
* * bool enable_secure_boot = 1; + * * @return This builder for chaining. */ public Builder clearEnableSecureBoot() { - + enableSecureBoot_ = false; onChanged(); return this; } - private boolean enableVtpm_ ; + private boolean enableVtpm_; /** + * + * *
      * Defines whether the instance has the vTPM enabled. Enabled by default.
      * 
* * bool enable_vtpm = 2; + * * @return The enableVtpm. */ @java.lang.Override @@ -537,37 +582,45 @@ public boolean getEnableVtpm() { return enableVtpm_; } /** + * + * *
      * Defines whether the instance has the vTPM enabled. Enabled by default.
      * 
* * bool enable_vtpm = 2; + * * @param value The enableVtpm to set. * @return This builder for chaining. */ public Builder setEnableVtpm(boolean value) { - + enableVtpm_ = value; onChanged(); return this; } /** + * + * *
      * Defines whether the instance has the vTPM enabled. Enabled by default.
      * 
* * bool enable_vtpm = 2; + * * @return This builder for chaining. */ public Builder clearEnableVtpm() { - + enableVtpm_ = false; onChanged(); return this; } - private boolean enableIntegrityMonitoring_ ; + private boolean enableIntegrityMonitoring_; /** + * + * *
      * Defines whether the instance has integrity monitoring enabled.
      * Enables monitoring and attestation of the boot integrity of the instance.
@@ -577,6 +630,7 @@ public Builder clearEnableVtpm() {
      * 
* * bool enable_integrity_monitoring = 3; + * * @return The enableIntegrityMonitoring. */ @java.lang.Override @@ -584,6 +638,8 @@ public boolean getEnableIntegrityMonitoring() { return enableIntegrityMonitoring_; } /** + * + * *
      * Defines whether the instance has integrity monitoring enabled.
      * Enables monitoring and attestation of the boot integrity of the instance.
@@ -593,16 +649,19 @@ public boolean getEnableIntegrityMonitoring() {
      * 
* * bool enable_integrity_monitoring = 3; + * * @param value The enableIntegrityMonitoring to set. * @return This builder for chaining. */ public Builder setEnableIntegrityMonitoring(boolean value) { - + enableIntegrityMonitoring_ = value; onChanged(); return this; } /** + * + * *
      * Defines whether the instance has integrity monitoring enabled.
      * Enables monitoring and attestation of the boot integrity of the instance.
@@ -612,17 +671,18 @@ public Builder setEnableIntegrityMonitoring(boolean value) {
      * 
* * bool enable_integrity_monitoring = 3; + * * @return This builder for chaining. */ public Builder clearEnableIntegrityMonitoring() { - + enableIntegrityMonitoring_ = false; 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); } @@ -632,12 +692,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig) private static final com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig(); } @@ -646,27 +706,27 @@ public static com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RuntimeShieldedInstanceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RuntimeShieldedInstanceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -681,6 +741,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeShieldedInstanceConfigOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeShieldedInstanceConfigOrBuilder.java similarity index 67% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeShieldedInstanceConfigOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeShieldedInstanceConfigOrBuilder.java index 974f75c5697e..2c0062824c82 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeShieldedInstanceConfigOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeShieldedInstanceConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/runtime.proto package com.google.cloud.notebooks.v1; -public interface RuntimeShieldedInstanceConfigOrBuilder extends +public interface RuntimeShieldedInstanceConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Defines whether the instance has Secure Boot enabled.
    * Secure Boot helps ensure that the system only runs authentic software by
@@ -16,21 +34,27 @@ public interface RuntimeShieldedInstanceConfigOrBuilder extends
    * 
* * bool enable_secure_boot = 1; + * * @return The enableSecureBoot. */ boolean getEnableSecureBoot(); /** + * + * *
    * Defines whether the instance has the vTPM enabled. Enabled by default.
    * 
* * bool enable_vtpm = 2; + * * @return The enableVtpm. */ boolean getEnableVtpm(); /** + * + * *
    * Defines whether the instance has integrity monitoring enabled.
    * Enables monitoring and attestation of the boot integrity of the instance.
@@ -40,6 +64,7 @@ public interface RuntimeShieldedInstanceConfigOrBuilder extends
    * 
* * bool enable_integrity_monitoring = 3; + * * @return The enableIntegrityMonitoring. */ boolean getEnableIntegrityMonitoring(); diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeSoftwareConfig.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeSoftwareConfig.java similarity index 72% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeSoftwareConfig.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeSoftwareConfig.java index 977abd2c9656..39662812242e 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeSoftwareConfig.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeSoftwareConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/runtime.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Specifies the selection and configuration of software inside the runtime.
  * The properties to set on runtime.
@@ -15,15 +32,16 @@
  *
  * Protobuf type {@code google.cloud.notebooks.v1.RuntimeSoftwareConfig}
  */
-public final class RuntimeSoftwareConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RuntimeSoftwareConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.RuntimeSoftwareConfig)
     RuntimeSoftwareConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RuntimeSoftwareConfig.newBuilder() to construct.
   private RuntimeSoftwareConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RuntimeSoftwareConfig() {
     notebookUpgradeSchedule_ = "";
     customGpuDriverPath_ = "";
@@ -35,39 +53,43 @@ private RuntimeSoftwareConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RuntimeSoftwareConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_RuntimeSoftwareConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.notebooks.v1.RuntimeProto
+        .internal_static_google_cloud_notebooks_v1_RuntimeSoftwareConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_RuntimeSoftwareConfig_fieldAccessorTable
+    return com.google.cloud.notebooks.v1.RuntimeProto
+        .internal_static_google_cloud_notebooks_v1_RuntimeSoftwareConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.class, com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.Builder.class);
+            com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.class,
+            com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Behavior for the post startup script.
    * 
* * Protobuf enum {@code google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior} */ - public enum PostStartupScriptBehavior - implements com.google.protobuf.ProtocolMessageEnum { + public enum PostStartupScriptBehavior implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified post startup script behavior. Will run only once at creation.
      * 
@@ -76,6 +98,8 @@ public enum PostStartupScriptBehavior */ POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED(0), /** + * + * *
      * Runs the post startup script provided during creation at every start.
      * 
@@ -84,6 +108,8 @@ public enum PostStartupScriptBehavior */ RUN_EVERY_START(1), /** + * + * *
      * Downloads and runs the provided post startup script at every start.
      * 
@@ -95,6 +121,8 @@ public enum PostStartupScriptBehavior ; /** + * + * *
      * Unspecified post startup script behavior. Will run only once at creation.
      * 
@@ -103,6 +131,8 @@ public enum PostStartupScriptBehavior */ public static final int POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Runs the post startup script provided during creation at every start.
      * 
@@ -111,6 +141,8 @@ public enum PostStartupScriptBehavior */ public static final int RUN_EVERY_START_VALUE = 1; /** + * + * *
      * Downloads and runs the provided post startup script at every start.
      * 
@@ -119,7 +151,6 @@ public enum PostStartupScriptBehavior */ public static final int DOWNLOAD_AND_RUN_EVERY_START_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -144,10 +175,14 @@ public static PostStartupScriptBehavior valueOf(int value) { */ public static PostStartupScriptBehavior forNumber(int value) { switch (value) { - case 0: return POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED; - case 1: return RUN_EVERY_START; - case 2: return DOWNLOAD_AND_RUN_EVERY_START; - default: return null; + case 0: + return POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED; + case 1: + return RUN_EVERY_START; + case 2: + return DOWNLOAD_AND_RUN_EVERY_START; + default: + return null; } } @@ -155,29 +190,31 @@ public static PostStartupScriptBehavior forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - PostStartupScriptBehavior> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public PostStartupScriptBehavior findValueByNumber(int number) { - return PostStartupScriptBehavior.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PostStartupScriptBehavior findValueByNumber(int number) { + return PostStartupScriptBehavior.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.cloud.notebooks.v1.RuntimeSoftwareConfig.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.getDescriptor() + .getEnumTypes() + .get(0); } private static final PostStartupScriptBehavior[] VALUES = values(); @@ -185,8 +222,7 @@ public PostStartupScriptBehavior findValueByNumber(int number) { public static PostStartupScriptBehavior 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; @@ -207,12 +243,15 @@ private PostStartupScriptBehavior(int value) { public static final int NOTEBOOK_UPGRADE_SCHEDULE_FIELD_NUMBER = 1; private volatile java.lang.Object notebookUpgradeSchedule_; /** + * + * *
    * Cron expression in UTC timezone, used to schedule instance auto upgrade.
    * Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
    * 
* * string notebook_upgrade_schedule = 1; + * * @return The notebookUpgradeSchedule. */ @java.lang.Override @@ -221,30 +260,30 @@ public java.lang.String getNotebookUpgradeSchedule() { 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(); notebookUpgradeSchedule_ = s; return s; } } /** + * + * *
    * Cron expression in UTC timezone, used to schedule instance auto upgrade.
    * Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
    * 
* * string notebook_upgrade_schedule = 1; + * * @return The bytes for notebookUpgradeSchedule. */ @java.lang.Override - public com.google.protobuf.ByteString - getNotebookUpgradeScheduleBytes() { + public com.google.protobuf.ByteString getNotebookUpgradeScheduleBytes() { java.lang.Object ref = notebookUpgradeSchedule_; 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); notebookUpgradeSchedule_ = b; return b; } else { @@ -255,12 +294,15 @@ public java.lang.String getNotebookUpgradeSchedule() { public static final int ENABLE_HEALTH_MONITORING_FIELD_NUMBER = 2; private boolean enableHealthMonitoring_; /** + * + * *
    * Verifies core internal services are running.
    * Default: True
    * 
* * optional bool enable_health_monitoring = 2; + * * @return Whether the enableHealthMonitoring field is set. */ @java.lang.Override @@ -268,12 +310,15 @@ public boolean hasEnableHealthMonitoring() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Verifies core internal services are running.
    * Default: True
    * 
* * optional bool enable_health_monitoring = 2; + * * @return The enableHealthMonitoring. */ @java.lang.Override @@ -284,12 +329,15 @@ public boolean getEnableHealthMonitoring() { public static final int IDLE_SHUTDOWN_FIELD_NUMBER = 3; private boolean idleShutdown_; /** + * + * *
    * Runtime will automatically shutdown after idle_shutdown_time.
    * Default: True
    * 
* * optional bool idle_shutdown = 3; + * * @return Whether the idleShutdown field is set. */ @java.lang.Override @@ -297,12 +345,15 @@ public boolean hasIdleShutdown() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
    * Runtime will automatically shutdown after idle_shutdown_time.
    * Default: True
    * 
* * optional bool idle_shutdown = 3; + * * @return The idleShutdown. */ @java.lang.Override @@ -313,11 +364,14 @@ public boolean getIdleShutdown() { public static final int IDLE_SHUTDOWN_TIMEOUT_FIELD_NUMBER = 4; private int idleShutdownTimeout_; /** + * + * *
    * Time in minutes to wait before shutting down runtime. Default: 180 minutes
    * 
* * int32 idle_shutdown_timeout = 4; + * * @return The idleShutdownTimeout. */ @java.lang.Override @@ -328,12 +382,15 @@ public int getIdleShutdownTimeout() { public static final int INSTALL_GPU_DRIVER_FIELD_NUMBER = 5; private boolean installGpuDriver_; /** + * + * *
    * Install Nvidia Driver automatically.
    * Default: True
    * 
* * bool install_gpu_driver = 5; + * * @return The installGpuDriver. */ @java.lang.Override @@ -344,12 +401,15 @@ public boolean getInstallGpuDriver() { public static final int CUSTOM_GPU_DRIVER_PATH_FIELD_NUMBER = 6; private volatile java.lang.Object customGpuDriverPath_; /** + * + * *
    * Specify a custom Cloud Storage path where the GPU driver is stored.
    * If not specified, we'll automatically choose from official GPU drivers.
    * 
* * string custom_gpu_driver_path = 6; + * * @return The customGpuDriverPath. */ @java.lang.Override @@ -358,30 +418,30 @@ public java.lang.String getCustomGpuDriverPath() { 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(); customGpuDriverPath_ = s; return s; } } /** + * + * *
    * Specify a custom Cloud Storage path where the GPU driver is stored.
    * If not specified, we'll automatically choose from official GPU drivers.
    * 
* * string custom_gpu_driver_path = 6; + * * @return The bytes for customGpuDriverPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getCustomGpuDriverPathBytes() { + public com.google.protobuf.ByteString getCustomGpuDriverPathBytes() { java.lang.Object ref = customGpuDriverPath_; 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); customGpuDriverPath_ = b; return b; } else { @@ -392,6 +452,8 @@ public java.lang.String getCustomGpuDriverPath() { public static final int POST_STARTUP_SCRIPT_FIELD_NUMBER = 7; private volatile java.lang.Object postStartupScript_; /** + * + * *
    * Path to a Bash script that automatically runs after a notebook instance
    * fully boots up. The path must be a URL or
@@ -399,6 +461,7 @@ public java.lang.String getCustomGpuDriverPath() {
    * 
* * string post_startup_script = 7; + * * @return The postStartupScript. */ @java.lang.Override @@ -407,14 +470,15 @@ public java.lang.String getPostStartupScript() { 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(); postStartupScript_ = s; return s; } } /** + * + * *
    * Path to a Bash script that automatically runs after a notebook instance
    * fully boots up. The path must be a URL or
@@ -422,16 +486,15 @@ public java.lang.String getPostStartupScript() {
    * 
* * string post_startup_script = 7; + * * @return The bytes for postStartupScript. */ @java.lang.Override - public com.google.protobuf.ByteString - getPostStartupScriptBytes() { + public com.google.protobuf.ByteString getPostStartupScriptBytes() { java.lang.Object ref = postStartupScript_; 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); postStartupScript_ = b; return b; } else { @@ -442,71 +505,93 @@ public java.lang.String getPostStartupScript() { public static final int KERNELS_FIELD_NUMBER = 8; private java.util.List kernels_; /** + * + * *
    * Optional. Use a list of container images to use as Kernels in the notebook instance.
    * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getKernelsList() { return kernels_; } /** + * + * *
    * Optional. Use a list of container images to use as Kernels in the notebook instance.
    * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getKernelsOrBuilderList() { return kernels_; } /** + * + * *
    * Optional. Use a list of container images to use as Kernels in the notebook instance.
    * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getKernelsCount() { return kernels_.size(); } /** + * + * *
    * Optional. Use a list of container images to use as Kernels in the notebook instance.
    * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.notebooks.v1.ContainerImage getKernels(int index) { return kernels_.get(index); } /** + * + * *
    * Optional. Use a list of container images to use as Kernels in the notebook instance.
    * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.notebooks.v1.ContainerImageOrBuilder getKernelsOrBuilder( - int index) { + public com.google.cloud.notebooks.v1.ContainerImageOrBuilder getKernelsOrBuilder(int index) { return kernels_.get(index); } public static final int UPGRADEABLE_FIELD_NUMBER = 9; private boolean upgradeable_; /** + * + * *
    * Output only. Bool indicating whether an newer image is available in an image family.
    * 
* * optional bool upgradeable = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the upgradeable field is set. */ @java.lang.Override @@ -514,11 +599,14 @@ public boolean hasUpgradeable() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
    * Output only. Bool indicating whether an newer image is available in an image family.
    * 
* * optional bool upgradeable = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The upgradeable. */ @java.lang.Override @@ -529,39 +617,59 @@ public boolean getUpgradeable() { public static final int POST_STARTUP_SCRIPT_BEHAVIOR_FIELD_NUMBER = 10; private int postStartupScriptBehavior_; /** + * + * *
    * Behavior for the post startup script.
    * 
* - * .google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior post_startup_script_behavior = 10; + * + * .google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior post_startup_script_behavior = 10; + * + * * @return The enum numeric value on the wire for postStartupScriptBehavior. */ - @java.lang.Override public int getPostStartupScriptBehaviorValue() { + @java.lang.Override + public int getPostStartupScriptBehaviorValue() { return postStartupScriptBehavior_; } /** + * + * *
    * Behavior for the post startup script.
    * 
* - * .google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior post_startup_script_behavior = 10; + * + * .google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior post_startup_script_behavior = 10; + * + * * @return The postStartupScriptBehavior. */ - @java.lang.Override public com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior getPostStartupScriptBehavior() { + @java.lang.Override + public com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior + getPostStartupScriptBehavior() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior result = com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior.valueOf(postStartupScriptBehavior_); - return result == null ? com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior result = + com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior.valueOf( + postStartupScriptBehavior_); + return result == null + ? com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior.UNRECOGNIZED + : result; } public static final int DISABLE_TERMINAL_FIELD_NUMBER = 11; private boolean disableTerminal_; /** + * + * *
    * Bool indicating whether JupyterLab terminal will be available or not.
    * Default: False
    * 
* * optional bool disable_terminal = 11; + * * @return Whether the disableTerminal field is set. */ @java.lang.Override @@ -569,12 +677,15 @@ public boolean hasDisableTerminal() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
    * Bool indicating whether JupyterLab terminal will be available or not.
    * Default: False
    * 
* * optional bool disable_terminal = 11; + * * @return The disableTerminal. */ @java.lang.Override @@ -585,11 +696,14 @@ public boolean getDisableTerminal() { public static final int VERSION_FIELD_NUMBER = 12; private volatile java.lang.Object version_; /** + * + * *
    * Output only. version of boot image such as M100, from release label of the image.
    * 
* * optional string version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the version field is set. */ @java.lang.Override @@ -597,11 +711,14 @@ public boolean hasVersion() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
    * Output only. version of boot image such as M100, from release label of the image.
    * 
* * optional string version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The version. */ @java.lang.Override @@ -610,29 +727,29 @@ public java.lang.String getVersion() { 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(); version_ = s; return s; } } /** + * + * *
    * Output only. version of boot image such as M100, from release label of the image.
    * 
* * optional string version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for version. */ @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; 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); version_ = b; return b; } else { @@ -641,6 +758,7 @@ public java.lang.String getVersion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -652,8 +770,7 @@ 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(notebookUpgradeSchedule_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, notebookUpgradeSchedule_); } @@ -681,7 +798,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(9, upgradeable_); } - if (postStartupScriptBehavior_ != com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior.POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED.getNumber()) { + if (postStartupScriptBehavior_ + != com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior + .POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED + .getNumber()) { output.writeEnum(10, postStartupScriptBehavior_); } if (((bitField0_ & 0x00000008) != 0)) { @@ -703,20 +823,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, notebookUpgradeSchedule_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, enableHealthMonitoring_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableHealthMonitoring_); } if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, idleShutdown_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, idleShutdown_); } if (idleShutdownTimeout_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, idleShutdownTimeout_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, idleShutdownTimeout_); } if (installGpuDriver_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, installGpuDriver_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, installGpuDriver_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customGpuDriverPath_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, customGpuDriverPath_); @@ -725,20 +841,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, postStartupScript_); } for (int i = 0; i < kernels_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, kernels_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, kernels_.get(i)); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(9, upgradeable_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, upgradeable_); } - if (postStartupScriptBehavior_ != com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior.POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, postStartupScriptBehavior_); + if (postStartupScriptBehavior_ + != com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior + .POST_STARTUP_SCRIPT_BEHAVIOR_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, postStartupScriptBehavior_); } if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(11, disableTerminal_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, disableTerminal_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, version_); @@ -751,50 +866,40 @@ 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.cloud.notebooks.v1.RuntimeSoftwareConfig)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.RuntimeSoftwareConfig other = (com.google.cloud.notebooks.v1.RuntimeSoftwareConfig) obj; + com.google.cloud.notebooks.v1.RuntimeSoftwareConfig other = + (com.google.cloud.notebooks.v1.RuntimeSoftwareConfig) obj; - if (!getNotebookUpgradeSchedule() - .equals(other.getNotebookUpgradeSchedule())) return false; + if (!getNotebookUpgradeSchedule().equals(other.getNotebookUpgradeSchedule())) return false; if (hasEnableHealthMonitoring() != other.hasEnableHealthMonitoring()) return false; if (hasEnableHealthMonitoring()) { - if (getEnableHealthMonitoring() - != other.getEnableHealthMonitoring()) return false; + if (getEnableHealthMonitoring() != other.getEnableHealthMonitoring()) return false; } if (hasIdleShutdown() != other.hasIdleShutdown()) return false; if (hasIdleShutdown()) { - if (getIdleShutdown() - != other.getIdleShutdown()) return false; - } - if (getIdleShutdownTimeout() - != other.getIdleShutdownTimeout()) return false; - if (getInstallGpuDriver() - != other.getInstallGpuDriver()) return false; - if (!getCustomGpuDriverPath() - .equals(other.getCustomGpuDriverPath())) return false; - if (!getPostStartupScript() - .equals(other.getPostStartupScript())) return false; - if (!getKernelsList() - .equals(other.getKernelsList())) return false; + if (getIdleShutdown() != other.getIdleShutdown()) return false; + } + if (getIdleShutdownTimeout() != other.getIdleShutdownTimeout()) return false; + if (getInstallGpuDriver() != other.getInstallGpuDriver()) return false; + if (!getCustomGpuDriverPath().equals(other.getCustomGpuDriverPath())) return false; + if (!getPostStartupScript().equals(other.getPostStartupScript())) return false; + if (!getKernelsList().equals(other.getKernelsList())) return false; if (hasUpgradeable() != other.hasUpgradeable()) return false; if (hasUpgradeable()) { - if (getUpgradeable() - != other.getUpgradeable()) return false; + if (getUpgradeable() != other.getUpgradeable()) return false; } if (postStartupScriptBehavior_ != other.postStartupScriptBehavior_) return false; if (hasDisableTerminal() != other.hasDisableTerminal()) return false; if (hasDisableTerminal()) { - if (getDisableTerminal() - != other.getDisableTerminal()) return false; + if (getDisableTerminal() != other.getDisableTerminal()) return false; } if (hasVersion() != other.hasVersion()) return false; if (hasVersion()) { - if (!getVersion() - .equals(other.getVersion())) return false; + if (!getVersion().equals(other.getVersion())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -811,19 +916,16 @@ public int hashCode() { hash = (53 * hash) + getNotebookUpgradeSchedule().hashCode(); if (hasEnableHealthMonitoring()) { hash = (37 * hash) + ENABLE_HEALTH_MONITORING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableHealthMonitoring()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableHealthMonitoring()); } if (hasIdleShutdown()) { hash = (37 * hash) + IDLE_SHUTDOWN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIdleShutdown()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIdleShutdown()); } hash = (37 * hash) + IDLE_SHUTDOWN_TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getIdleShutdownTimeout(); hash = (37 * hash) + INSTALL_GPU_DRIVER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInstallGpuDriver()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInstallGpuDriver()); hash = (37 * hash) + CUSTOM_GPU_DRIVER_PATH_FIELD_NUMBER; hash = (53 * hash) + getCustomGpuDriverPath().hashCode(); hash = (37 * hash) + POST_STARTUP_SCRIPT_FIELD_NUMBER; @@ -834,15 +936,13 @@ public int hashCode() { } if (hasUpgradeable()) { hash = (37 * hash) + UPGRADEABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUpgradeable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUpgradeable()); } hash = (37 * hash) + POST_STARTUP_SCRIPT_BEHAVIOR_FIELD_NUMBER; hash = (53 * hash) + postStartupScriptBehavior_; if (hasDisableTerminal()) { hash = (37 * hash) + DISABLE_TERMINAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisableTerminal()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableTerminal()); } if (hasVersion()) { hash = (37 * hash) + VERSION_FIELD_NUMBER; @@ -854,96 +954,103 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.RuntimeSoftwareConfig 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.cloud.notebooks.v1.RuntimeSoftwareConfig 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.cloud.notebooks.v1.RuntimeSoftwareConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.RuntimeSoftwareConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.RuntimeSoftwareConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.RuntimeSoftwareConfig 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.cloud.notebooks.v1.RuntimeSoftwareConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.RuntimeSoftwareConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.RuntimeSoftwareConfig 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.cloud.notebooks.v1.RuntimeSoftwareConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.RuntimeSoftwareConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.RuntimeSoftwareConfig 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.cloud.notebooks.v1.RuntimeSoftwareConfig 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.cloud.notebooks.v1.RuntimeSoftwareConfig 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.cloud.notebooks.v1.RuntimeSoftwareConfig 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; } /** + * + * *
    * Specifies the selection and configuration of software inside the runtime.
    * The properties to set on runtime.
@@ -955,33 +1062,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.notebooks.v1.RuntimeSoftwareConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.RuntimeSoftwareConfig)
       com.google.cloud.notebooks.v1.RuntimeSoftwareConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_RuntimeSoftwareConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.notebooks.v1.RuntimeProto
+          .internal_static_google_cloud_notebooks_v1_RuntimeSoftwareConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_RuntimeSoftwareConfig_fieldAccessorTable
+      return com.google.cloud.notebooks.v1.RuntimeProto
+          .internal_static_google_cloud_notebooks_v1_RuntimeSoftwareConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.class, com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.Builder.class);
+              com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.class,
+              com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1018,9 +1124,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_RuntimeSoftwareConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.notebooks.v1.RuntimeProto
+          .internal_static_google_cloud_notebooks_v1_RuntimeSoftwareConfig_descriptor;
     }
 
     @java.lang.Override
@@ -1039,7 +1145,8 @@ public com.google.cloud.notebooks.v1.RuntimeSoftwareConfig build() {
 
     @java.lang.Override
     public com.google.cloud.notebooks.v1.RuntimeSoftwareConfig buildPartial() {
-      com.google.cloud.notebooks.v1.RuntimeSoftwareConfig result = new com.google.cloud.notebooks.v1.RuntimeSoftwareConfig(this);
+      com.google.cloud.notebooks.v1.RuntimeSoftwareConfig result =
+          new com.google.cloud.notebooks.v1.RuntimeSoftwareConfig(this);
       int from_bitField0_ = bitField0_;
       int to_bitField0_ = 0;
       result.notebookUpgradeSchedule_ = notebookUpgradeSchedule_;
@@ -1086,38 +1193,39 @@ public com.google.cloud.notebooks.v1.RuntimeSoftwareConfig buildPartial() {
     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.cloud.notebooks.v1.RuntimeSoftwareConfig) {
-        return mergeFrom((com.google.cloud.notebooks.v1.RuntimeSoftwareConfig)other);
+        return mergeFrom((com.google.cloud.notebooks.v1.RuntimeSoftwareConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1125,7 +1233,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.notebooks.v1.RuntimeSoftwareConfig other) {
-      if (other == com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.getDefaultInstance()) return this;
+      if (other == com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.getDefaultInstance())
+        return this;
       if (!other.getNotebookUpgradeSchedule().isEmpty()) {
         notebookUpgradeSchedule_ = other.notebookUpgradeSchedule_;
         onChanged();
@@ -1168,9 +1277,10 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.RuntimeSoftwareConfig oth
             kernelsBuilder_ = null;
             kernels_ = other.kernels_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            kernelsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getKernelsFieldBuilder() : null;
+            kernelsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getKernelsFieldBuilder()
+                    : null;
           } else {
             kernelsBuilder_.addAllMessages(other.kernels_);
           }
@@ -1216,80 +1326,92 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              notebookUpgradeSchedule_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            case 16: {
-              enableHealthMonitoring_ = input.readBool();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 16
-            case 24: {
-              idleShutdown_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 24
-            case 32: {
-              idleShutdownTimeout_ = input.readInt32();
-
-              break;
-            } // case 32
-            case 40: {
-              installGpuDriver_ = input.readBool();
-
-              break;
-            } // case 40
-            case 50: {
-              customGpuDriverPath_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 50
-            case 58: {
-              postStartupScript_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 58
-            case 66: {
-              com.google.cloud.notebooks.v1.ContainerImage m =
-                  input.readMessage(
-                      com.google.cloud.notebooks.v1.ContainerImage.parser(),
-                      extensionRegistry);
-              if (kernelsBuilder_ == null) {
-                ensureKernelsIsMutable();
-                kernels_.add(m);
-              } else {
-                kernelsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 66
-            case 72: {
-              upgradeable_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 72
-            case 80: {
-              postStartupScriptBehavior_ = input.readEnum();
-
-              break;
-            } // case 80
-            case 88: {
-              disableTerminal_ = input.readBool();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 88
-            case 98: {
-              version_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 98
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                notebookUpgradeSchedule_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            case 16:
+              {
+                enableHealthMonitoring_ = input.readBool();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 16
+            case 24:
+              {
+                idleShutdown_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 24
+            case 32:
+              {
+                idleShutdownTimeout_ = input.readInt32();
+
+                break;
+              } // case 32
+            case 40:
+              {
+                installGpuDriver_ = input.readBool();
+
+                break;
+              } // case 40
+            case 50:
+              {
+                customGpuDriverPath_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 50
+            case 58:
+              {
+                postStartupScript_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 58
+            case 66:
+              {
+                com.google.cloud.notebooks.v1.ContainerImage m =
+                    input.readMessage(
+                        com.google.cloud.notebooks.v1.ContainerImage.parser(), extensionRegistry);
+                if (kernelsBuilder_ == null) {
+                  ensureKernelsIsMutable();
+                  kernels_.add(m);
+                } else {
+                  kernelsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 66
+            case 72:
+              {
+                upgradeable_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 72
+            case 80:
+              {
+                postStartupScriptBehavior_ = input.readEnum();
+
+                break;
+              } // case 80
+            case 88:
+              {
+                disableTerminal_ = input.readBool();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 88
+            case 98:
+              {
+                version_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000020;
+                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) {
@@ -1299,23 +1421,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object notebookUpgradeSchedule_ = "";
     /**
+     *
+     *
      * 
      * Cron expression in UTC timezone, used to schedule instance auto upgrade.
      * Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
      * 
* * string notebook_upgrade_schedule = 1; + * * @return The notebookUpgradeSchedule. */ public java.lang.String getNotebookUpgradeSchedule() { java.lang.Object ref = notebookUpgradeSchedule_; 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(); notebookUpgradeSchedule_ = s; return s; @@ -1324,21 +1449,22 @@ public java.lang.String getNotebookUpgradeSchedule() { } } /** + * + * *
      * Cron expression in UTC timezone, used to schedule instance auto upgrade.
      * Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
      * 
* * string notebook_upgrade_schedule = 1; + * * @return The bytes for notebookUpgradeSchedule. */ - public com.google.protobuf.ByteString - getNotebookUpgradeScheduleBytes() { + public com.google.protobuf.ByteString getNotebookUpgradeScheduleBytes() { java.lang.Object ref = notebookUpgradeSchedule_; 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); notebookUpgradeSchedule_ = b; return b; } else { @@ -1346,70 +1472,80 @@ public java.lang.String getNotebookUpgradeSchedule() { } } /** + * + * *
      * Cron expression in UTC timezone, used to schedule instance auto upgrade.
      * Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
      * 
* * string notebook_upgrade_schedule = 1; + * * @param value The notebookUpgradeSchedule to set. * @return This builder for chaining. */ - public Builder setNotebookUpgradeSchedule( - java.lang.String value) { + public Builder setNotebookUpgradeSchedule(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + notebookUpgradeSchedule_ = value; onChanged(); return this; } /** + * + * *
      * Cron expression in UTC timezone, used to schedule instance auto upgrade.
      * Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
      * 
* * string notebook_upgrade_schedule = 1; + * * @return This builder for chaining. */ public Builder clearNotebookUpgradeSchedule() { - + notebookUpgradeSchedule_ = getDefaultInstance().getNotebookUpgradeSchedule(); onChanged(); return this; } /** + * + * *
      * Cron expression in UTC timezone, used to schedule instance auto upgrade.
      * Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
      * 
* * string notebook_upgrade_schedule = 1; + * * @param value The bytes for notebookUpgradeSchedule to set. * @return This builder for chaining. */ - public Builder setNotebookUpgradeScheduleBytes( - com.google.protobuf.ByteString value) { + public Builder setNotebookUpgradeScheduleBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + notebookUpgradeSchedule_ = value; onChanged(); return this; } - private boolean enableHealthMonitoring_ ; + private boolean enableHealthMonitoring_; /** + * + * *
      * Verifies core internal services are running.
      * Default: True
      * 
* * optional bool enable_health_monitoring = 2; + * * @return Whether the enableHealthMonitoring field is set. */ @java.lang.Override @@ -1417,12 +1553,15 @@ public boolean hasEnableHealthMonitoring() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Verifies core internal services are running.
      * Default: True
      * 
* * optional bool enable_health_monitoring = 2; + * * @return The enableHealthMonitoring. */ @java.lang.Override @@ -1430,12 +1569,15 @@ public boolean getEnableHealthMonitoring() { return enableHealthMonitoring_; } /** + * + * *
      * Verifies core internal services are running.
      * Default: True
      * 
* * optional bool enable_health_monitoring = 2; + * * @param value The enableHealthMonitoring to set. * @return This builder for chaining. */ @@ -1446,12 +1588,15 @@ public Builder setEnableHealthMonitoring(boolean value) { return this; } /** + * + * *
      * Verifies core internal services are running.
      * Default: True
      * 
* * optional bool enable_health_monitoring = 2; + * * @return This builder for chaining. */ public Builder clearEnableHealthMonitoring() { @@ -1461,14 +1606,17 @@ public Builder clearEnableHealthMonitoring() { return this; } - private boolean idleShutdown_ ; + private boolean idleShutdown_; /** + * + * *
      * Runtime will automatically shutdown after idle_shutdown_time.
      * Default: True
      * 
* * optional bool idle_shutdown = 3; + * * @return Whether the idleShutdown field is set. */ @java.lang.Override @@ -1476,12 +1624,15 @@ public boolean hasIdleShutdown() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Runtime will automatically shutdown after idle_shutdown_time.
      * Default: True
      * 
* * optional bool idle_shutdown = 3; + * * @return The idleShutdown. */ @java.lang.Override @@ -1489,12 +1640,15 @@ public boolean getIdleShutdown() { return idleShutdown_; } /** + * + * *
      * Runtime will automatically shutdown after idle_shutdown_time.
      * Default: True
      * 
* * optional bool idle_shutdown = 3; + * * @param value The idleShutdown to set. * @return This builder for chaining. */ @@ -1505,12 +1659,15 @@ public Builder setIdleShutdown(boolean value) { return this; } /** + * + * *
      * Runtime will automatically shutdown after idle_shutdown_time.
      * Default: True
      * 
* * optional bool idle_shutdown = 3; + * * @return This builder for chaining. */ public Builder clearIdleShutdown() { @@ -1520,13 +1677,16 @@ public Builder clearIdleShutdown() { return this; } - private int idleShutdownTimeout_ ; + private int idleShutdownTimeout_; /** + * + * *
      * Time in minutes to wait before shutting down runtime. Default: 180 minutes
      * 
* * int32 idle_shutdown_timeout = 4; + * * @return The idleShutdownTimeout. */ @java.lang.Override @@ -1534,43 +1694,52 @@ public int getIdleShutdownTimeout() { return idleShutdownTimeout_; } /** + * + * *
      * Time in minutes to wait before shutting down runtime. Default: 180 minutes
      * 
* * int32 idle_shutdown_timeout = 4; + * * @param value The idleShutdownTimeout to set. * @return This builder for chaining. */ public Builder setIdleShutdownTimeout(int value) { - + idleShutdownTimeout_ = value; onChanged(); return this; } /** + * + * *
      * Time in minutes to wait before shutting down runtime. Default: 180 minutes
      * 
* * int32 idle_shutdown_timeout = 4; + * * @return This builder for chaining. */ public Builder clearIdleShutdownTimeout() { - + idleShutdownTimeout_ = 0; onChanged(); return this; } - private boolean installGpuDriver_ ; + private boolean installGpuDriver_; /** + * + * *
      * Install Nvidia Driver automatically.
      * Default: True
      * 
* * bool install_gpu_driver = 5; + * * @return The installGpuDriver. */ @java.lang.Override @@ -1578,32 +1747,38 @@ public boolean getInstallGpuDriver() { return installGpuDriver_; } /** + * + * *
      * Install Nvidia Driver automatically.
      * Default: True
      * 
* * bool install_gpu_driver = 5; + * * @param value The installGpuDriver to set. * @return This builder for chaining. */ public Builder setInstallGpuDriver(boolean value) { - + installGpuDriver_ = value; onChanged(); return this; } /** + * + * *
      * Install Nvidia Driver automatically.
      * Default: True
      * 
* * bool install_gpu_driver = 5; + * * @return This builder for chaining. */ public Builder clearInstallGpuDriver() { - + installGpuDriver_ = false; onChanged(); return this; @@ -1611,19 +1786,21 @@ public Builder clearInstallGpuDriver() { private java.lang.Object customGpuDriverPath_ = ""; /** + * + * *
      * Specify a custom Cloud Storage path where the GPU driver is stored.
      * If not specified, we'll automatically choose from official GPU drivers.
      * 
* * string custom_gpu_driver_path = 6; + * * @return The customGpuDriverPath. */ public java.lang.String getCustomGpuDriverPath() { java.lang.Object ref = customGpuDriverPath_; 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(); customGpuDriverPath_ = s; return s; @@ -1632,21 +1809,22 @@ public java.lang.String getCustomGpuDriverPath() { } } /** + * + * *
      * Specify a custom Cloud Storage path where the GPU driver is stored.
      * If not specified, we'll automatically choose from official GPU drivers.
      * 
* * string custom_gpu_driver_path = 6; + * * @return The bytes for customGpuDriverPath. */ - public com.google.protobuf.ByteString - getCustomGpuDriverPathBytes() { + public com.google.protobuf.ByteString getCustomGpuDriverPathBytes() { java.lang.Object ref = customGpuDriverPath_; 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); customGpuDriverPath_ = b; return b; } else { @@ -1654,57 +1832,64 @@ public java.lang.String getCustomGpuDriverPath() { } } /** + * + * *
      * Specify a custom Cloud Storage path where the GPU driver is stored.
      * If not specified, we'll automatically choose from official GPU drivers.
      * 
* * string custom_gpu_driver_path = 6; + * * @param value The customGpuDriverPath to set. * @return This builder for chaining. */ - public Builder setCustomGpuDriverPath( - java.lang.String value) { + public Builder setCustomGpuDriverPath(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + customGpuDriverPath_ = value; onChanged(); return this; } /** + * + * *
      * Specify a custom Cloud Storage path where the GPU driver is stored.
      * If not specified, we'll automatically choose from official GPU drivers.
      * 
* * string custom_gpu_driver_path = 6; + * * @return This builder for chaining. */ public Builder clearCustomGpuDriverPath() { - + customGpuDriverPath_ = getDefaultInstance().getCustomGpuDriverPath(); onChanged(); return this; } /** + * + * *
      * Specify a custom Cloud Storage path where the GPU driver is stored.
      * If not specified, we'll automatically choose from official GPU drivers.
      * 
* * string custom_gpu_driver_path = 6; + * * @param value The bytes for customGpuDriverPath to set. * @return This builder for chaining. */ - public Builder setCustomGpuDriverPathBytes( - com.google.protobuf.ByteString value) { + public Builder setCustomGpuDriverPathBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customGpuDriverPath_ = value; onChanged(); return this; @@ -1712,6 +1897,8 @@ public Builder setCustomGpuDriverPathBytes( private java.lang.Object postStartupScript_ = ""; /** + * + * *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
@@ -1719,13 +1906,13 @@ public Builder setCustomGpuDriverPathBytes(
      * 
* * string post_startup_script = 7; + * * @return The postStartupScript. */ public java.lang.String getPostStartupScript() { java.lang.Object ref = postStartupScript_; 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(); postStartupScript_ = s; return s; @@ -1734,6 +1921,8 @@ public java.lang.String getPostStartupScript() { } } /** + * + * *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
@@ -1741,15 +1930,14 @@ public java.lang.String getPostStartupScript() {
      * 
* * string post_startup_script = 7; + * * @return The bytes for postStartupScript. */ - public com.google.protobuf.ByteString - getPostStartupScriptBytes() { + public com.google.protobuf.ByteString getPostStartupScriptBytes() { java.lang.Object ref = postStartupScript_; 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); postStartupScript_ = b; return b; } else { @@ -1757,6 +1945,8 @@ public java.lang.String getPostStartupScript() { } } /** + * + * *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
@@ -1764,20 +1954,22 @@ public java.lang.String getPostStartupScript() {
      * 
* * string post_startup_script = 7; + * * @param value The postStartupScript to set. * @return This builder for chaining. */ - public Builder setPostStartupScript( - java.lang.String value) { + public Builder setPostStartupScript(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + postStartupScript_ = value; onChanged(); return this; } /** + * + * *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
@@ -1785,15 +1977,18 @@ public Builder setPostStartupScript(
      * 
* * string post_startup_script = 7; + * * @return This builder for chaining. */ public Builder clearPostStartupScript() { - + postStartupScript_ = getDefaultInstance().getPostStartupScript(); onChanged(); return this; } /** + * + * *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
@@ -1801,39 +1996,47 @@ public Builder clearPostStartupScript() {
      * 
* * string post_startup_script = 7; + * * @param value The bytes for postStartupScript to set. * @return This builder for chaining. */ - public Builder setPostStartupScriptBytes( - com.google.protobuf.ByteString value) { + public Builder setPostStartupScriptBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + postStartupScript_ = value; onChanged(); return this; } private java.util.List kernels_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureKernelsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { kernels_ = new java.util.ArrayList(kernels_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.ContainerImage, com.google.cloud.notebooks.v1.ContainerImage.Builder, com.google.cloud.notebooks.v1.ContainerImageOrBuilder> kernelsBuilder_; + com.google.cloud.notebooks.v1.ContainerImage, + com.google.cloud.notebooks.v1.ContainerImage.Builder, + com.google.cloud.notebooks.v1.ContainerImageOrBuilder> + kernelsBuilder_; /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getKernelsList() { if (kernelsBuilder_ == null) { @@ -1843,11 +2046,15 @@ public java.util.List getKernelsLi } } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getKernelsCount() { if (kernelsBuilder_ == null) { @@ -1857,11 +2064,15 @@ public int getKernelsCount() { } } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.notebooks.v1.ContainerImage getKernels(int index) { if (kernelsBuilder_ == null) { @@ -1871,14 +2082,17 @@ public com.google.cloud.notebooks.v1.ContainerImage getKernels(int index) { } } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setKernels( - int index, com.google.cloud.notebooks.v1.ContainerImage value) { + public Builder setKernels(int index, com.google.cloud.notebooks.v1.ContainerImage value) { if (kernelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1892,11 +2106,15 @@ public Builder setKernels( return this; } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setKernels( int index, com.google.cloud.notebooks.v1.ContainerImage.Builder builderForValue) { @@ -1910,11 +2128,15 @@ public Builder setKernels( return this; } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addKernels(com.google.cloud.notebooks.v1.ContainerImage value) { if (kernelsBuilder_ == null) { @@ -1930,14 +2152,17 @@ public Builder addKernels(com.google.cloud.notebooks.v1.ContainerImage value) { return this; } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addKernels( - int index, com.google.cloud.notebooks.v1.ContainerImage value) { + public Builder addKernels(int index, com.google.cloud.notebooks.v1.ContainerImage value) { if (kernelsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1951,11 +2176,15 @@ public Builder addKernels( return this; } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addKernels( com.google.cloud.notebooks.v1.ContainerImage.Builder builderForValue) { @@ -1969,11 +2198,15 @@ public Builder addKernels( return this; } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addKernels( int index, com.google.cloud.notebooks.v1.ContainerImage.Builder builderForValue) { @@ -1987,18 +2220,21 @@ public Builder addKernels( return this; } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllKernels( java.lang.Iterable values) { if (kernelsBuilder_ == null) { ensureKernelsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, kernels_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, kernels_); onChanged(); } else { kernelsBuilder_.addAllMessages(values); @@ -2006,11 +2242,15 @@ public Builder addAllKernels( return this; } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearKernels() { if (kernelsBuilder_ == null) { @@ -2023,11 +2263,15 @@ public Builder clearKernels() { return this; } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeKernels(int index) { if (kernelsBuilder_ == null) { @@ -2040,39 +2284,50 @@ public Builder removeKernels(int index) { return this; } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.notebooks.v1.ContainerImage.Builder getKernelsBuilder( - int index) { + public com.google.cloud.notebooks.v1.ContainerImage.Builder getKernelsBuilder(int index) { return getKernelsFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.notebooks.v1.ContainerImageOrBuilder getKernelsOrBuilder( - int index) { + public com.google.cloud.notebooks.v1.ContainerImageOrBuilder getKernelsOrBuilder(int index) { if (kernelsBuilder_ == null) { - return kernels_.get(index); } else { + return kernels_.get(index); + } else { return kernelsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getKernelsOrBuilderList() { + public java.util.List + getKernelsOrBuilderList() { if (kernelsBuilder_ != null) { return kernelsBuilder_.getMessageOrBuilderList(); } else { @@ -2080,61 +2335,78 @@ public com.google.cloud.notebooks.v1.ContainerImageOrBuilder getKernelsOrBuilder } } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.notebooks.v1.ContainerImage.Builder addKernelsBuilder() { - return getKernelsFieldBuilder().addBuilder( - com.google.cloud.notebooks.v1.ContainerImage.getDefaultInstance()); + return getKernelsFieldBuilder() + .addBuilder(com.google.cloud.notebooks.v1.ContainerImage.getDefaultInstance()); } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.notebooks.v1.ContainerImage.Builder addKernelsBuilder( - int index) { - return getKernelsFieldBuilder().addBuilder( - index, com.google.cloud.notebooks.v1.ContainerImage.getDefaultInstance()); + public com.google.cloud.notebooks.v1.ContainerImage.Builder addKernelsBuilder(int index) { + return getKernelsFieldBuilder() + .addBuilder(index, com.google.cloud.notebooks.v1.ContainerImage.getDefaultInstance()); } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getKernelsBuilderList() { + public java.util.List + getKernelsBuilderList() { return getKernelsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.ContainerImage, com.google.cloud.notebooks.v1.ContainerImage.Builder, com.google.cloud.notebooks.v1.ContainerImageOrBuilder> + com.google.cloud.notebooks.v1.ContainerImage, + com.google.cloud.notebooks.v1.ContainerImage.Builder, + com.google.cloud.notebooks.v1.ContainerImageOrBuilder> getKernelsFieldBuilder() { if (kernelsBuilder_ == null) { - kernelsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.ContainerImage, com.google.cloud.notebooks.v1.ContainerImage.Builder, com.google.cloud.notebooks.v1.ContainerImageOrBuilder>( - kernels_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + kernelsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.notebooks.v1.ContainerImage, + com.google.cloud.notebooks.v1.ContainerImage.Builder, + com.google.cloud.notebooks.v1.ContainerImageOrBuilder>( + kernels_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); kernels_ = null; } return kernelsBuilder_; } - private boolean upgradeable_ ; + private boolean upgradeable_; /** + * + * *
      * Output only. Bool indicating whether an newer image is available in an image family.
      * 
* * optional bool upgradeable = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the upgradeable field is set. */ @java.lang.Override @@ -2142,11 +2414,14 @@ public boolean hasUpgradeable() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Output only. Bool indicating whether an newer image is available in an image family.
      * 
* * optional bool upgradeable = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The upgradeable. */ @java.lang.Override @@ -2154,11 +2429,14 @@ public boolean getUpgradeable() { return upgradeable_; } /** + * + * *
      * Output only. Bool indicating whether an newer image is available in an image family.
      * 
* * optional bool upgradeable = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The upgradeable to set. * @return This builder for chaining. */ @@ -2169,11 +2447,14 @@ public Builder setUpgradeable(boolean value) { return this; } /** + * + * *
      * Output only. Bool indicating whether an newer image is available in an image family.
      * 
* * optional bool upgradeable = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUpgradeable() { @@ -2185,86 +2466,122 @@ public Builder clearUpgradeable() { private int postStartupScriptBehavior_ = 0; /** + * + * *
      * Behavior for the post startup script.
      * 
* - * .google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior post_startup_script_behavior = 10; + * + * .google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior post_startup_script_behavior = 10; + * + * * @return The enum numeric value on the wire for postStartupScriptBehavior. */ - @java.lang.Override public int getPostStartupScriptBehaviorValue() { + @java.lang.Override + public int getPostStartupScriptBehaviorValue() { return postStartupScriptBehavior_; } /** + * + * *
      * Behavior for the post startup script.
      * 
* - * .google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior post_startup_script_behavior = 10; + * + * .google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior post_startup_script_behavior = 10; + * + * * @param value The enum numeric value on the wire for postStartupScriptBehavior to set. * @return This builder for chaining. */ public Builder setPostStartupScriptBehaviorValue(int value) { - + postStartupScriptBehavior_ = value; onChanged(); return this; } /** + * + * *
      * Behavior for the post startup script.
      * 
* - * .google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior post_startup_script_behavior = 10; + * + * .google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior post_startup_script_behavior = 10; + * + * * @return The postStartupScriptBehavior. */ @java.lang.Override - public com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior getPostStartupScriptBehavior() { + public com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior + getPostStartupScriptBehavior() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior result = com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior.valueOf(postStartupScriptBehavior_); - return result == null ? com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior result = + com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior.valueOf( + postStartupScriptBehavior_); + return result == null + ? com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior + .UNRECOGNIZED + : result; } /** + * + * *
      * Behavior for the post startup script.
      * 
* - * .google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior post_startup_script_behavior = 10; + * + * .google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior post_startup_script_behavior = 10; + * + * * @param value The postStartupScriptBehavior to set. * @return This builder for chaining. */ - public Builder setPostStartupScriptBehavior(com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior value) { + public Builder setPostStartupScriptBehavior( + com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior value) { if (value == null) { throw new NullPointerException(); } - + postStartupScriptBehavior_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Behavior for the post startup script.
      * 
* - * .google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior post_startup_script_behavior = 10; + * + * .google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior post_startup_script_behavior = 10; + * + * * @return This builder for chaining. */ public Builder clearPostStartupScriptBehavior() { - + postStartupScriptBehavior_ = 0; onChanged(); return this; } - private boolean disableTerminal_ ; + private boolean disableTerminal_; /** + * + * *
      * Bool indicating whether JupyterLab terminal will be available or not.
      * Default: False
      * 
* * optional bool disable_terminal = 11; + * * @return Whether the disableTerminal field is set. */ @java.lang.Override @@ -2272,12 +2589,15 @@ public boolean hasDisableTerminal() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * Bool indicating whether JupyterLab terminal will be available or not.
      * Default: False
      * 
* * optional bool disable_terminal = 11; + * * @return The disableTerminal. */ @java.lang.Override @@ -2285,12 +2605,15 @@ public boolean getDisableTerminal() { return disableTerminal_; } /** + * + * *
      * Bool indicating whether JupyterLab terminal will be available or not.
      * Default: False
      * 
* * optional bool disable_terminal = 11; + * * @param value The disableTerminal to set. * @return This builder for chaining. */ @@ -2301,12 +2624,15 @@ public Builder setDisableTerminal(boolean value) { return this; } /** + * + * *
      * Bool indicating whether JupyterLab terminal will be available or not.
      * Default: False
      * 
* * optional bool disable_terminal = 11; + * * @return This builder for chaining. */ public Builder clearDisableTerminal() { @@ -2318,29 +2644,34 @@ public Builder clearDisableTerminal() { private java.lang.Object version_ = ""; /** + * + * *
      * Output only. version of boot image such as M100, from release label of the image.
      * 
* * optional string version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the version field is set. */ public boolean hasVersion() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Output only. version of boot image such as M100, from release label of the image.
      * 
* * optional string version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; 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(); version_ = s; return s; @@ -2349,20 +2680,21 @@ public java.lang.String getVersion() { } } /** + * + * *
      * Output only. version of boot image such as M100, from release label of the image.
      * 
* * optional string version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for version. */ - public com.google.protobuf.ByteString - getVersionBytes() { + public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; 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); version_ = b; return b; } else { @@ -2370,30 +2702,35 @@ public java.lang.String getVersion() { } } /** + * + * *
      * Output only. version of boot image such as M100, from release label of the image.
      * 
* * optional string version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The version to set. * @return This builder for chaining. */ - public Builder setVersion( - java.lang.String value) { + public Builder setVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; version_ = value; onChanged(); return this; } /** + * + * *
      * Output only. version of boot image such as M100, from release label of the image.
      * 
* * optional string version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVersion() { @@ -2403,28 +2740,30 @@ public Builder clearVersion() { return this; } /** + * + * *
      * Output only. version of boot image such as M100, from release label of the image.
      * 
* * optional string version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for version to set. * @return This builder for chaining. */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); bitField0_ |= 0x00000020; version_ = 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); } @@ -2434,12 +2773,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.RuntimeSoftwareConfig) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.RuntimeSoftwareConfig) private static final com.google.cloud.notebooks.v1.RuntimeSoftwareConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.RuntimeSoftwareConfig(); } @@ -2448,27 +2787,27 @@ public static com.google.cloud.notebooks.v1.RuntimeSoftwareConfig getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RuntimeSoftwareConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RuntimeSoftwareConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -2483,6 +2822,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.RuntimeSoftwareConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeSoftwareConfigOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeSoftwareConfigOrBuilder.java similarity index 74% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeSoftwareConfigOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeSoftwareConfigOrBuilder.java index efcc88535423..bfc850359d8d 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeSoftwareConfigOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeSoftwareConfigOrBuilder.java @@ -1,120 +1,166 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/runtime.proto package com.google.cloud.notebooks.v1; -public interface RuntimeSoftwareConfigOrBuilder extends +public interface RuntimeSoftwareConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.RuntimeSoftwareConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Cron expression in UTC timezone, used to schedule instance auto upgrade.
    * Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
    * 
* * string notebook_upgrade_schedule = 1; + * * @return The notebookUpgradeSchedule. */ java.lang.String getNotebookUpgradeSchedule(); /** + * + * *
    * Cron expression in UTC timezone, used to schedule instance auto upgrade.
    * Please follow the [cron format](https://en.wikipedia.org/wiki/Cron).
    * 
* * string notebook_upgrade_schedule = 1; + * * @return The bytes for notebookUpgradeSchedule. */ - com.google.protobuf.ByteString - getNotebookUpgradeScheduleBytes(); + com.google.protobuf.ByteString getNotebookUpgradeScheduleBytes(); /** + * + * *
    * Verifies core internal services are running.
    * Default: True
    * 
* * optional bool enable_health_monitoring = 2; + * * @return Whether the enableHealthMonitoring field is set. */ boolean hasEnableHealthMonitoring(); /** + * + * *
    * Verifies core internal services are running.
    * Default: True
    * 
* * optional bool enable_health_monitoring = 2; + * * @return The enableHealthMonitoring. */ boolean getEnableHealthMonitoring(); /** + * + * *
    * Runtime will automatically shutdown after idle_shutdown_time.
    * Default: True
    * 
* * optional bool idle_shutdown = 3; + * * @return Whether the idleShutdown field is set. */ boolean hasIdleShutdown(); /** + * + * *
    * Runtime will automatically shutdown after idle_shutdown_time.
    * Default: True
    * 
* * optional bool idle_shutdown = 3; + * * @return The idleShutdown. */ boolean getIdleShutdown(); /** + * + * *
    * Time in minutes to wait before shutting down runtime. Default: 180 minutes
    * 
* * int32 idle_shutdown_timeout = 4; + * * @return The idleShutdownTimeout. */ int getIdleShutdownTimeout(); /** + * + * *
    * Install Nvidia Driver automatically.
    * Default: True
    * 
* * bool install_gpu_driver = 5; + * * @return The installGpuDriver. */ boolean getInstallGpuDriver(); /** + * + * *
    * Specify a custom Cloud Storage path where the GPU driver is stored.
    * If not specified, we'll automatically choose from official GPU drivers.
    * 
* * string custom_gpu_driver_path = 6; + * * @return The customGpuDriverPath. */ java.lang.String getCustomGpuDriverPath(); /** + * + * *
    * Specify a custom Cloud Storage path where the GPU driver is stored.
    * If not specified, we'll automatically choose from official GPU drivers.
    * 
* * string custom_gpu_driver_path = 6; + * * @return The bytes for customGpuDriverPath. */ - com.google.protobuf.ByteString - getCustomGpuDriverPathBytes(); + com.google.protobuf.ByteString getCustomGpuDriverPathBytes(); /** + * + * *
    * Path to a Bash script that automatically runs after a notebook instance
    * fully boots up. The path must be a URL or
@@ -122,10 +168,13 @@ public interface RuntimeSoftwareConfigOrBuilder extends
    * 
* * string post_startup_script = 7; + * * @return The postStartupScript. */ java.lang.String getPostStartupScript(); /** + * + * *
    * Path to a Bash script that automatically runs after a notebook instance
    * fully boots up. The path must be a URL or
@@ -133,140 +182,189 @@ public interface RuntimeSoftwareConfigOrBuilder extends
    * 
* * string post_startup_script = 7; + * * @return The bytes for postStartupScript. */ - com.google.protobuf.ByteString - getPostStartupScriptBytes(); + com.google.protobuf.ByteString getPostStartupScriptBytes(); /** + * + * *
    * Optional. Use a list of container images to use as Kernels in the notebook instance.
    * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getKernelsList(); + java.util.List getKernelsList(); /** + * + * *
    * Optional. Use a list of container images to use as Kernels in the notebook instance.
    * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.notebooks.v1.ContainerImage getKernels(int index); /** + * + * *
    * Optional. Use a list of container images to use as Kernels in the notebook instance.
    * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getKernelsCount(); /** + * + * *
    * Optional. Use a list of container images to use as Kernels in the notebook instance.
    * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getKernelsOrBuilderList(); /** + * + * *
    * Optional. Use a list of container images to use as Kernels in the notebook instance.
    * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage kernels = 8 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.notebooks.v1.ContainerImageOrBuilder getKernelsOrBuilder( - int index); + com.google.cloud.notebooks.v1.ContainerImageOrBuilder getKernelsOrBuilder(int index); /** + * + * *
    * Output only. Bool indicating whether an newer image is available in an image family.
    * 
* * optional bool upgradeable = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the upgradeable field is set. */ boolean hasUpgradeable(); /** + * + * *
    * Output only. Bool indicating whether an newer image is available in an image family.
    * 
* * optional bool upgradeable = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The upgradeable. */ boolean getUpgradeable(); /** + * + * *
    * Behavior for the post startup script.
    * 
* - * .google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior post_startup_script_behavior = 10; + * + * .google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior post_startup_script_behavior = 10; + * + * * @return The enum numeric value on the wire for postStartupScriptBehavior. */ int getPostStartupScriptBehaviorValue(); /** + * + * *
    * Behavior for the post startup script.
    * 
* - * .google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior post_startup_script_behavior = 10; + * + * .google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior post_startup_script_behavior = 10; + * + * * @return The postStartupScriptBehavior. */ - com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior getPostStartupScriptBehavior(); + com.google.cloud.notebooks.v1.RuntimeSoftwareConfig.PostStartupScriptBehavior + getPostStartupScriptBehavior(); /** + * + * *
    * Bool indicating whether JupyterLab terminal will be available or not.
    * Default: False
    * 
* * optional bool disable_terminal = 11; + * * @return Whether the disableTerminal field is set. */ boolean hasDisableTerminal(); /** + * + * *
    * Bool indicating whether JupyterLab terminal will be available or not.
    * Default: False
    * 
* * optional bool disable_terminal = 11; + * * @return The disableTerminal. */ boolean getDisableTerminal(); /** + * + * *
    * Output only. version of boot image such as M100, from release label of the image.
    * 
* * optional string version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return Whether the version field is set. */ boolean hasVersion(); /** + * + * *
    * Output only. version of boot image such as M100, from release label of the image.
    * 
* * optional string version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The version. */ java.lang.String getVersion(); /** + * + * *
    * Output only. version of boot image such as M100, from release label of the image.
    * 
* * optional string version = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for version. */ - com.google.protobuf.ByteString - getVersionBytes(); + com.google.protobuf.ByteString getVersionBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Schedule.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Schedule.java similarity index 71% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Schedule.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Schedule.java index 73375336bbf5..b531feb965c4 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Schedule.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Schedule.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/schedule.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * The definition of a schedule.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.Schedule} */ -public final class Schedule extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Schedule extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.Schedule) ScheduleOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Schedule.newBuilder() to construct. private Schedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Schedule() { name_ = ""; displayName_ = ""; @@ -31,39 +49,43 @@ private Schedule() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Schedule(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ScheduleProto.internal_static_google_cloud_notebooks_v1_Schedule_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ScheduleProto + .internal_static_google_cloud_notebooks_v1_Schedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ScheduleProto.internal_static_google_cloud_notebooks_v1_Schedule_fieldAccessorTable + return com.google.cloud.notebooks.v1.ScheduleProto + .internal_static_google_cloud_notebooks_v1_Schedule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.Schedule.class, com.google.cloud.notebooks.v1.Schedule.Builder.class); + com.google.cloud.notebooks.v1.Schedule.class, + com.google.cloud.notebooks.v1.Schedule.Builder.class); } /** + * + * *
    * State of the job.
    * 
* * Protobuf enum {@code google.cloud.notebooks.v1.Schedule.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified state.
      * 
@@ -72,6 +94,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The job is executing normally.
      * 
@@ -80,6 +104,8 @@ public enum State */ ENABLED(1), /** + * + * *
      * The job is paused by the user. It will not execute. A user can
      * intentionally pause the job using
@@ -90,6 +116,8 @@ public enum State
      */
     PAUSED(2),
     /**
+     *
+     *
      * 
      * The job is disabled by the system due to error. The user
      * cannot directly set a job to be disabled.
@@ -99,6 +127,8 @@ public enum State
      */
     DISABLED(3),
     /**
+     *
+     *
      * 
      * The job state resulting from a failed [CloudScheduler.UpdateJob][]
      * operation. To recover a job from this state, retry
@@ -109,6 +139,8 @@ public enum State
      */
     UPDATE_FAILED(4),
     /**
+     *
+     *
      * 
      * The schedule resource is being created.
      * 
@@ -117,6 +149,8 @@ public enum State */ INITIALIZING(5), /** + * + * *
      * The schedule resource is being deleted.
      * 
@@ -128,6 +162,8 @@ public enum State ; /** + * + * *
      * Unspecified state.
      * 
@@ -136,6 +172,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The job is executing normally.
      * 
@@ -144,6 +182,8 @@ public enum State */ public static final int ENABLED_VALUE = 1; /** + * + * *
      * The job is paused by the user. It will not execute. A user can
      * intentionally pause the job using
@@ -154,6 +194,8 @@ public enum State
      */
     public static final int PAUSED_VALUE = 2;
     /**
+     *
+     *
      * 
      * The job is disabled by the system due to error. The user
      * cannot directly set a job to be disabled.
@@ -163,6 +205,8 @@ public enum State
      */
     public static final int DISABLED_VALUE = 3;
     /**
+     *
+     *
      * 
      * The job state resulting from a failed [CloudScheduler.UpdateJob][]
      * operation. To recover a job from this state, retry
@@ -173,6 +217,8 @@ public enum State
      */
     public static final int UPDATE_FAILED_VALUE = 4;
     /**
+     *
+     *
      * 
      * The schedule resource is being created.
      * 
@@ -181,6 +227,8 @@ public enum State */ public static final int INITIALIZING_VALUE = 5; /** + * + * *
      * The schedule resource is being deleted.
      * 
@@ -189,7 +237,6 @@ public enum State */ public static final int DELETING_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -214,53 +261,57 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return ENABLED; - case 2: return PAUSED; - case 3: return DISABLED; - case 4: return UPDATE_FAILED; - case 5: return INITIALIZING; - case 6: return DELETING; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ENABLED; + case 2: + return PAUSED; + case 3: + return DISABLED; + case 4: + return UPDATE_FAILED; + case 5: + return INITIALIZING; + case 6: + return DELETING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.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.cloud.notebooks.v1.Schedule.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; @@ -280,12 +331,15 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The name of this schedule. Format:
    * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -294,30 +348,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; } } /** + * + * *
    * Output only. The name of this schedule. Format:
    * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -328,6 +382,8 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * Output only. Display name used for UI purposes.
    * Name can only contain alphanumeric characters, hyphens '-',
@@ -335,6 +391,7 @@ public java.lang.String getName() {
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The displayName. */ @java.lang.Override @@ -343,14 +400,15 @@ 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; } } /** + * + * *
    * Output only. Display name used for UI purposes.
    * Name can only contain alphanumeric characters, hyphens '-',
@@ -358,16 +416,15 @@ public java.lang.String getDisplayName() {
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -378,11 +435,14 @@ public java.lang.String getDisplayName() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * A brief description of this environment.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -391,29 +451,29 @@ public java.lang.String getDescription() { 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(); description_ = s; return s; } } /** + * + * *
    * A brief description of this environment.
    * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -425,24 +485,31 @@ public java.lang.String getDescription() { private int state_; /** * .google.cloud.notebooks.v1.Schedule.State state = 4; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** * .google.cloud.notebooks.v1.Schedule.State state = 4; + * * @return The state. */ - @java.lang.Override public com.google.cloud.notebooks.v1.Schedule.State getState() { + @java.lang.Override + public com.google.cloud.notebooks.v1.Schedule.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.Schedule.State result = com.google.cloud.notebooks.v1.Schedule.State.valueOf(state_); + com.google.cloud.notebooks.v1.Schedule.State result = + com.google.cloud.notebooks.v1.Schedule.State.valueOf(state_); return result == null ? com.google.cloud.notebooks.v1.Schedule.State.UNRECOGNIZED : result; } public static final int CRON_SCHEDULE_FIELD_NUMBER = 5; private volatile java.lang.Object cronSchedule_; /** + * + * *
    * Cron-tab formatted schedule by which the job will execute.
    * Format: minute, hour, day of month, month, day of week,
@@ -451,6 +518,7 @@ public java.lang.String getDescription() {
    * 
* * string cron_schedule = 5; + * * @return The cronSchedule. */ @java.lang.Override @@ -459,14 +527,15 @@ public java.lang.String getCronSchedule() { 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(); cronSchedule_ = s; return s; } } /** + * + * *
    * Cron-tab formatted schedule by which the job will execute.
    * Format: minute, hour, day of month, month, day of week,
@@ -475,16 +544,15 @@ public java.lang.String getCronSchedule() {
    * 
* * string cron_schedule = 5; + * * @return The bytes for cronSchedule. */ @java.lang.Override - public com.google.protobuf.ByteString - getCronScheduleBytes() { + public com.google.protobuf.ByteString getCronScheduleBytes() { java.lang.Object ref = cronSchedule_; 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); cronSchedule_ = b; return b; } else { @@ -495,6 +563,8 @@ public java.lang.String getCronSchedule() { public static final int TIME_ZONE_FIELD_NUMBER = 6; private volatile java.lang.Object timeZone_; /** + * + * *
    * Timezone on which the cron_schedule.
    * The value of this field must be a time zone name from the tz database.
@@ -506,6 +576,7 @@ public java.lang.String getCronSchedule() {
    * 
* * string time_zone = 6; + * * @return The timeZone. */ @java.lang.Override @@ -514,14 +585,15 @@ public java.lang.String getTimeZone() { 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(); timeZone_ = s; return s; } } /** + * + * *
    * Timezone on which the cron_schedule.
    * The value of this field must be a time zone name from the tz database.
@@ -533,16 +605,15 @@ public java.lang.String getTimeZone() {
    * 
* * string time_zone = 6; + * * @return The bytes for timeZone. */ @java.lang.Override - public com.google.protobuf.ByteString - getTimeZoneBytes() { + public com.google.protobuf.ByteString getTimeZoneBytes() { java.lang.Object ref = timeZone_; 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); timeZone_ = b; return b; } else { @@ -553,11 +624,15 @@ public java.lang.String getTimeZone() { public static final int CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Time the schedule was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -565,11 +640,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Time the schedule was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -577,11 +656,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Time the schedule was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -591,11 +673,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 8; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. Time the schedule was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -603,11 +689,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Time the schedule was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -615,11 +705,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. Time the schedule was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -629,11 +722,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int EXECUTION_TEMPLATE_FIELD_NUMBER = 9; private com.google.cloud.notebooks.v1.ExecutionTemplate executionTemplate_; /** + * + * *
    * Notebook Execution Template corresponding to this schedule.
    * 
* * .google.cloud.notebooks.v1.ExecutionTemplate execution_template = 9; + * * @return Whether the executionTemplate field is set. */ @java.lang.Override @@ -641,18 +737,25 @@ public boolean hasExecutionTemplate() { return executionTemplate_ != null; } /** + * + * *
    * Notebook Execution Template corresponding to this schedule.
    * 
* * .google.cloud.notebooks.v1.ExecutionTemplate execution_template = 9; + * * @return The executionTemplate. */ @java.lang.Override public com.google.cloud.notebooks.v1.ExecutionTemplate getExecutionTemplate() { - return executionTemplate_ == null ? com.google.cloud.notebooks.v1.ExecutionTemplate.getDefaultInstance() : executionTemplate_; + return executionTemplate_ == null + ? com.google.cloud.notebooks.v1.ExecutionTemplate.getDefaultInstance() + : executionTemplate_; } /** + * + * *
    * Notebook Execution Template corresponding to this schedule.
    * 
@@ -667,69 +770,89 @@ public com.google.cloud.notebooks.v1.ExecutionTemplateOrBuilder getExecutionTemp public static final int RECENT_EXECUTIONS_FIELD_NUMBER = 10; private java.util.List recentExecutions_; /** + * + * *
    * Output only. The most recent execution names triggered from this schedule and their
    * corresponding states.
    * 
* - * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getRecentExecutionsList() { return recentExecutions_; } /** + * + * *
    * Output only. The most recent execution names triggered from this schedule and their
    * corresponding states.
    * 
* - * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getRecentExecutionsOrBuilderList() { return recentExecutions_; } /** + * + * *
    * Output only. The most recent execution names triggered from this schedule and their
    * corresponding states.
    * 
* - * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getRecentExecutionsCount() { return recentExecutions_.size(); } /** + * + * *
    * Output only. The most recent execution names triggered from this schedule and their
    * corresponding states.
    * 
* - * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.notebooks.v1.Execution getRecentExecutions(int index) { return recentExecutions_.get(index); } /** + * + * *
    * Output only. The most recent execution names triggered from this schedule and their
    * corresponding states.
    * 
* - * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.notebooks.v1.ExecutionOrBuilder getRecentExecutionsOrBuilder( - int index) { + public com.google.cloud.notebooks.v1.ExecutionOrBuilder getRecentExecutionsOrBuilder(int index) { return recentExecutions_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -741,8 +864,7 @@ 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_); } @@ -792,8 +914,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (state_ != com.google.cloud.notebooks.v1.Schedule.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cronSchedule_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, cronSchedule_); @@ -802,20 +923,17 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, timeZone_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); } if (executionTemplate_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getExecutionTemplate()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getExecutionTemplate()); } for (int i = 0; i < recentExecutions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, recentExecutions_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, recentExecutions_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -825,41 +943,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.cloud.notebooks.v1.Schedule)) { return super.equals(obj); } com.google.cloud.notebooks.v1.Schedule other = (com.google.cloud.notebooks.v1.Schedule) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (state_ != other.state_) return false; - if (!getCronSchedule() - .equals(other.getCronSchedule())) return false; - if (!getTimeZone() - .equals(other.getTimeZone())) return false; + if (!getCronSchedule().equals(other.getCronSchedule())) return false; + if (!getTimeZone().equals(other.getTimeZone())) 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 (hasExecutionTemplate() != other.hasExecutionTemplate()) return false; if (hasExecutionTemplate()) { - if (!getExecutionTemplate() - .equals(other.getExecutionTemplate())) return false; + if (!getExecutionTemplate().equals(other.getExecutionTemplate())) return false; } - if (!getRecentExecutionsList() - .equals(other.getRecentExecutionsList())) return false; + if (!getRecentExecutionsList().equals(other.getRecentExecutionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -904,130 +1013,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.notebooks.v1.Schedule parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.notebooks.v1.Schedule parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.Schedule 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.cloud.notebooks.v1.Schedule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.Schedule parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.Schedule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.Schedule 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.cloud.notebooks.v1.Schedule 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.cloud.notebooks.v1.Schedule 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.cloud.notebooks.v1.Schedule 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.cloud.notebooks.v1.Schedule 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.cloud.notebooks.v1.Schedule 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.cloud.notebooks.v1.Schedule 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.cloud.notebooks.v1.Schedule 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; } /** + * + * *
    * The definition of a schedule.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.Schedule} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.Schedule) com.google.cloud.notebooks.v1.ScheduleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ScheduleProto.internal_static_google_cloud_notebooks_v1_Schedule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ScheduleProto + .internal_static_google_cloud_notebooks_v1_Schedule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ScheduleProto.internal_static_google_cloud_notebooks_v1_Schedule_fieldAccessorTable + return com.google.cloud.notebooks.v1.ScheduleProto + .internal_static_google_cloud_notebooks_v1_Schedule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.Schedule.class, com.google.cloud.notebooks.v1.Schedule.Builder.class); + com.google.cloud.notebooks.v1.Schedule.class, + com.google.cloud.notebooks.v1.Schedule.Builder.class); } // Construct using com.google.cloud.notebooks.v1.Schedule.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1072,9 +1187,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.ScheduleProto.internal_static_google_cloud_notebooks_v1_Schedule_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.ScheduleProto + .internal_static_google_cloud_notebooks_v1_Schedule_descriptor; } @java.lang.Override @@ -1093,7 +1208,8 @@ public com.google.cloud.notebooks.v1.Schedule build() { @java.lang.Override public com.google.cloud.notebooks.v1.Schedule buildPartial() { - com.google.cloud.notebooks.v1.Schedule result = new com.google.cloud.notebooks.v1.Schedule(this); + com.google.cloud.notebooks.v1.Schedule result = + new com.google.cloud.notebooks.v1.Schedule(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.displayName_ = displayName_; @@ -1133,38 +1249,39 @@ public com.google.cloud.notebooks.v1.Schedule buildPartial() { 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.cloud.notebooks.v1.Schedule) { - return mergeFrom((com.google.cloud.notebooks.v1.Schedule)other); + return mergeFrom((com.google.cloud.notebooks.v1.Schedule) other); } else { super.mergeFrom(other); return this; @@ -1223,9 +1340,10 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.Schedule other) { recentExecutionsBuilder_ = null; recentExecutions_ = other.recentExecutions_; bitField0_ = (bitField0_ & ~0x00000001); - recentExecutionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRecentExecutionsFieldBuilder() : null; + recentExecutionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRecentExecutionsFieldBuilder() + : null; } else { recentExecutionsBuilder_.addAllMessages(other.recentExecutions_); } @@ -1257,76 +1375,81 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - displayName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - description_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 32: { - state_ = input.readEnum(); - - break; - } // case 32 - case 42: { - cronSchedule_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 50: { - timeZone_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 58: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 58 - case 66: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 66 - case 74: { - input.readMessage( - getExecutionTemplateFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 74 - case 82: { - com.google.cloud.notebooks.v1.Execution m = - input.readMessage( - com.google.cloud.notebooks.v1.Execution.parser(), - extensionRegistry); - if (recentExecutionsBuilder_ == null) { - ensureRecentExecutionsIsMutable(); - recentExecutions_.add(m); - } else { - recentExecutionsBuilder_.addMessage(m); - } - break; - } // case 82 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 32: + { + state_ = input.readEnum(); + + break; + } // case 32 + case 42: + { + cronSchedule_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 50: + { + timeZone_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 58: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 58 + case 66: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + case 74: + { + input.readMessage( + getExecutionTemplateFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 74 + case 82: + { + com.google.cloud.notebooks.v1.Execution m = + input.readMessage( + com.google.cloud.notebooks.v1.Execution.parser(), extensionRegistry); + if (recentExecutionsBuilder_ == null) { + ensureRecentExecutionsIsMutable(); + recentExecutions_.add(m); + } else { + recentExecutionsBuilder_.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) { @@ -1336,23 +1459,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The name of this schedule. Format:
      * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -1361,21 +1487,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The name of this schedule. Format:
      * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1383,57 +1510,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The name of this schedule. Format:
      * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The name of this schedule. Format:
      * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The name of this schedule. Format:
      * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1441,6 +1575,8 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Output only. Display name used for UI purposes.
      * Name can only contain alphanumeric characters, hyphens '-',
@@ -1448,13 +1584,13 @@ public Builder setNameBytes(
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -1463,6 +1599,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Output only. Display name used for UI purposes.
      * Name can only contain alphanumeric characters, hyphens '-',
@@ -1470,15 +1608,14 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1486,6 +1623,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Output only. Display name used for UI purposes.
      * Name can only contain alphanumeric characters, hyphens '-',
@@ -1493,20 +1632,22 @@ public java.lang.String getDisplayName() {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Display name used for UI purposes.
      * Name can only contain alphanumeric characters, hyphens '-',
@@ -1514,15 +1655,18 @@ public Builder setDisplayName(
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * Output only. Display name used for UI purposes.
      * Name can only contain alphanumeric characters, hyphens '-',
@@ -1530,16 +1674,16 @@ public Builder clearDisplayName() {
      * 
* * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1547,18 +1691,20 @@ public Builder setDisplayNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * A brief description of this environment.
      * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1567,20 +1713,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A brief description of this environment.
      * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1588,54 +1735,61 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A brief description of this environment.
      * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * A brief description of this environment.
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * A brief description of this environment.
      * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1644,34 +1798,40 @@ public Builder setDescriptionBytes( private int state_ = 0; /** * .google.cloud.notebooks.v1.Schedule.State state = 4; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** * .google.cloud.notebooks.v1.Schedule.State state = 4; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** * .google.cloud.notebooks.v1.Schedule.State state = 4; + * * @return The state. */ @java.lang.Override public com.google.cloud.notebooks.v1.Schedule.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.Schedule.State result = com.google.cloud.notebooks.v1.Schedule.State.valueOf(state_); + com.google.cloud.notebooks.v1.Schedule.State result = + com.google.cloud.notebooks.v1.Schedule.State.valueOf(state_); return result == null ? com.google.cloud.notebooks.v1.Schedule.State.UNRECOGNIZED : result; } /** * .google.cloud.notebooks.v1.Schedule.State state = 4; + * * @param value The state to set. * @return This builder for chaining. */ @@ -1679,17 +1839,18 @@ public Builder setState(com.google.cloud.notebooks.v1.Schedule.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** * .google.cloud.notebooks.v1.Schedule.State state = 4; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1697,6 +1858,8 @@ public Builder clearState() { private java.lang.Object cronSchedule_ = ""; /** + * + * *
      * Cron-tab formatted schedule by which the job will execute.
      * Format: minute, hour, day of month, month, day of week,
@@ -1705,13 +1868,13 @@ public Builder clearState() {
      * 
* * string cron_schedule = 5; + * * @return The cronSchedule. */ public java.lang.String getCronSchedule() { java.lang.Object ref = cronSchedule_; 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(); cronSchedule_ = s; return s; @@ -1720,6 +1883,8 @@ public java.lang.String getCronSchedule() { } } /** + * + * *
      * Cron-tab formatted schedule by which the job will execute.
      * Format: minute, hour, day of month, month, day of week,
@@ -1728,15 +1893,14 @@ public java.lang.String getCronSchedule() {
      * 
* * string cron_schedule = 5; + * * @return The bytes for cronSchedule. */ - public com.google.protobuf.ByteString - getCronScheduleBytes() { + public com.google.protobuf.ByteString getCronScheduleBytes() { java.lang.Object ref = cronSchedule_; 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); cronSchedule_ = b; return b; } else { @@ -1744,6 +1908,8 @@ public java.lang.String getCronSchedule() { } } /** + * + * *
      * Cron-tab formatted schedule by which the job will execute.
      * Format: minute, hour, day of month, month, day of week,
@@ -1752,20 +1918,22 @@ public java.lang.String getCronSchedule() {
      * 
* * string cron_schedule = 5; + * * @param value The cronSchedule to set. * @return This builder for chaining. */ - public Builder setCronSchedule( - java.lang.String value) { + public Builder setCronSchedule(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + cronSchedule_ = value; onChanged(); return this; } /** + * + * *
      * Cron-tab formatted schedule by which the job will execute.
      * Format: minute, hour, day of month, month, day of week,
@@ -1774,15 +1942,18 @@ public Builder setCronSchedule(
      * 
* * string cron_schedule = 5; + * * @return This builder for chaining. */ public Builder clearCronSchedule() { - + cronSchedule_ = getDefaultInstance().getCronSchedule(); onChanged(); return this; } /** + * + * *
      * Cron-tab formatted schedule by which the job will execute.
      * Format: minute, hour, day of month, month, day of week,
@@ -1791,16 +1962,16 @@ public Builder clearCronSchedule() {
      * 
* * string cron_schedule = 5; + * * @param value The bytes for cronSchedule to set. * @return This builder for chaining. */ - public Builder setCronScheduleBytes( - com.google.protobuf.ByteString value) { + public Builder setCronScheduleBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cronSchedule_ = value; onChanged(); return this; @@ -1808,6 +1979,8 @@ public Builder setCronScheduleBytes( private java.lang.Object timeZone_ = ""; /** + * + * *
      * Timezone on which the cron_schedule.
      * The value of this field must be a time zone name from the tz database.
@@ -1819,13 +1992,13 @@ public Builder setCronScheduleBytes(
      * 
* * string time_zone = 6; + * * @return The timeZone. */ public java.lang.String getTimeZone() { java.lang.Object ref = timeZone_; 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(); timeZone_ = s; return s; @@ -1834,6 +2007,8 @@ public java.lang.String getTimeZone() { } } /** + * + * *
      * Timezone on which the cron_schedule.
      * The value of this field must be a time zone name from the tz database.
@@ -1845,15 +2020,14 @@ public java.lang.String getTimeZone() {
      * 
* * string time_zone = 6; + * * @return The bytes for timeZone. */ - public com.google.protobuf.ByteString - getTimeZoneBytes() { + public com.google.protobuf.ByteString getTimeZoneBytes() { java.lang.Object ref = timeZone_; 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); timeZone_ = b; return b; } else { @@ -1861,6 +2035,8 @@ public java.lang.String getTimeZone() { } } /** + * + * *
      * Timezone on which the cron_schedule.
      * The value of this field must be a time zone name from the tz database.
@@ -1872,20 +2048,22 @@ public java.lang.String getTimeZone() {
      * 
* * string time_zone = 6; + * * @param value The timeZone to set. * @return This builder for chaining. */ - public Builder setTimeZone( - java.lang.String value) { + public Builder setTimeZone(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + timeZone_ = value; onChanged(); return this; } /** + * + * *
      * Timezone on which the cron_schedule.
      * The value of this field must be a time zone name from the tz database.
@@ -1897,15 +2075,18 @@ public Builder setTimeZone(
      * 
* * string time_zone = 6; + * * @return This builder for chaining. */ public Builder clearTimeZone() { - + timeZone_ = getDefaultInstance().getTimeZone(); onChanged(); return this; } /** + * + * *
      * Timezone on which the cron_schedule.
      * The value of this field must be a time zone name from the tz database.
@@ -1917,16 +2098,16 @@ public Builder clearTimeZone() {
      * 
* * string time_zone = 6; + * * @param value The bytes for timeZone to set. * @return This builder for chaining. */ - public Builder setTimeZoneBytes( - com.google.protobuf.ByteString value) { + public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + timeZone_ = value; onChanged(); return this; @@ -1934,39 +2115,58 @@ public Builder setTimeZoneBytes( 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_; /** + * + * *
      * Output only. Time the schedule was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. Time the schedule was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time the schedule was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1982,14 +2182,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time the schedule was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -2000,17 +2203,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Time the schedule was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2022,11 +2229,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time the schedule was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2040,48 +2251,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Time the schedule was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time the schedule was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Time the schedule was created.
      * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; @@ -2089,39 +2316,58 @@ 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_; /** + * + * *
      * Output only. Time the schedule was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. Time the schedule was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time the schedule was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2137,14 +2383,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time the schedule was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -2155,17 +2404,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Time the schedule was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2177,11 +2430,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time the schedule was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2195,48 +2452,64 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Time the schedule was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time the schedule was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. Time the schedule was last updated.
      * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; @@ -2244,34 +2517,47 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private com.google.cloud.notebooks.v1.ExecutionTemplate executionTemplate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.ExecutionTemplate, com.google.cloud.notebooks.v1.ExecutionTemplate.Builder, com.google.cloud.notebooks.v1.ExecutionTemplateOrBuilder> executionTemplateBuilder_; + com.google.cloud.notebooks.v1.ExecutionTemplate, + com.google.cloud.notebooks.v1.ExecutionTemplate.Builder, + com.google.cloud.notebooks.v1.ExecutionTemplateOrBuilder> + executionTemplateBuilder_; /** + * + * *
      * Notebook Execution Template corresponding to this schedule.
      * 
* * .google.cloud.notebooks.v1.ExecutionTemplate execution_template = 9; + * * @return Whether the executionTemplate field is set. */ public boolean hasExecutionTemplate() { return executionTemplateBuilder_ != null || executionTemplate_ != null; } /** + * + * *
      * Notebook Execution Template corresponding to this schedule.
      * 
* * .google.cloud.notebooks.v1.ExecutionTemplate execution_template = 9; + * * @return The executionTemplate. */ public com.google.cloud.notebooks.v1.ExecutionTemplate getExecutionTemplate() { if (executionTemplateBuilder_ == null) { - return executionTemplate_ == null ? com.google.cloud.notebooks.v1.ExecutionTemplate.getDefaultInstance() : executionTemplate_; + return executionTemplate_ == null + ? com.google.cloud.notebooks.v1.ExecutionTemplate.getDefaultInstance() + : executionTemplate_; } else { return executionTemplateBuilder_.getMessage(); } } /** + * + * *
      * Notebook Execution Template corresponding to this schedule.
      * 
@@ -2292,6 +2578,8 @@ public Builder setExecutionTemplate(com.google.cloud.notebooks.v1.ExecutionTempl return this; } /** + * + * *
      * Notebook Execution Template corresponding to this schedule.
      * 
@@ -2310,6 +2598,8 @@ public Builder setExecutionTemplate( return this; } /** + * + * *
      * Notebook Execution Template corresponding to this schedule.
      * 
@@ -2320,7 +2610,9 @@ public Builder mergeExecutionTemplate(com.google.cloud.notebooks.v1.ExecutionTem if (executionTemplateBuilder_ == null) { if (executionTemplate_ != null) { executionTemplate_ = - com.google.cloud.notebooks.v1.ExecutionTemplate.newBuilder(executionTemplate_).mergeFrom(value).buildPartial(); + com.google.cloud.notebooks.v1.ExecutionTemplate.newBuilder(executionTemplate_) + .mergeFrom(value) + .buildPartial(); } else { executionTemplate_ = value; } @@ -2332,6 +2624,8 @@ public Builder mergeExecutionTemplate(com.google.cloud.notebooks.v1.ExecutionTem return this; } /** + * + * *
      * Notebook Execution Template corresponding to this schedule.
      * 
@@ -2350,6 +2644,8 @@ public Builder clearExecutionTemplate() { return this; } /** + * + * *
      * Notebook Execution Template corresponding to this schedule.
      * 
@@ -2357,26 +2653,32 @@ public Builder clearExecutionTemplate() { * .google.cloud.notebooks.v1.ExecutionTemplate execution_template = 9; */ public com.google.cloud.notebooks.v1.ExecutionTemplate.Builder getExecutionTemplateBuilder() { - + onChanged(); return getExecutionTemplateFieldBuilder().getBuilder(); } /** + * + * *
      * Notebook Execution Template corresponding to this schedule.
      * 
* * .google.cloud.notebooks.v1.ExecutionTemplate execution_template = 9; */ - public com.google.cloud.notebooks.v1.ExecutionTemplateOrBuilder getExecutionTemplateOrBuilder() { + public com.google.cloud.notebooks.v1.ExecutionTemplateOrBuilder + getExecutionTemplateOrBuilder() { if (executionTemplateBuilder_ != null) { return executionTemplateBuilder_.getMessageOrBuilder(); } else { - return executionTemplate_ == null ? - com.google.cloud.notebooks.v1.ExecutionTemplate.getDefaultInstance() : executionTemplate_; + return executionTemplate_ == null + ? com.google.cloud.notebooks.v1.ExecutionTemplate.getDefaultInstance() + : executionTemplate_; } } /** + * + * *
      * Notebook Execution Template corresponding to this schedule.
      * 
@@ -2384,38 +2686,50 @@ public com.google.cloud.notebooks.v1.ExecutionTemplateOrBuilder getExecutionTemp * .google.cloud.notebooks.v1.ExecutionTemplate execution_template = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.ExecutionTemplate, com.google.cloud.notebooks.v1.ExecutionTemplate.Builder, com.google.cloud.notebooks.v1.ExecutionTemplateOrBuilder> + com.google.cloud.notebooks.v1.ExecutionTemplate, + com.google.cloud.notebooks.v1.ExecutionTemplate.Builder, + com.google.cloud.notebooks.v1.ExecutionTemplateOrBuilder> getExecutionTemplateFieldBuilder() { if (executionTemplateBuilder_ == null) { - executionTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.ExecutionTemplate, com.google.cloud.notebooks.v1.ExecutionTemplate.Builder, com.google.cloud.notebooks.v1.ExecutionTemplateOrBuilder>( - getExecutionTemplate(), - getParentForChildren(), - isClean()); + executionTemplateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.ExecutionTemplate, + com.google.cloud.notebooks.v1.ExecutionTemplate.Builder, + com.google.cloud.notebooks.v1.ExecutionTemplateOrBuilder>( + getExecutionTemplate(), getParentForChildren(), isClean()); executionTemplate_ = null; } return executionTemplateBuilder_; } private java.util.List recentExecutions_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRecentExecutionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - recentExecutions_ = new java.util.ArrayList(recentExecutions_); + recentExecutions_ = + new java.util.ArrayList(recentExecutions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.Execution, com.google.cloud.notebooks.v1.Execution.Builder, com.google.cloud.notebooks.v1.ExecutionOrBuilder> recentExecutionsBuilder_; + com.google.cloud.notebooks.v1.Execution, + com.google.cloud.notebooks.v1.Execution.Builder, + com.google.cloud.notebooks.v1.ExecutionOrBuilder> + recentExecutionsBuilder_; /** + * + * *
      * Output only. The most recent execution names triggered from this schedule and their
      * corresponding states.
      * 
* - * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getRecentExecutionsList() { if (recentExecutionsBuilder_ == null) { @@ -2425,12 +2739,16 @@ public java.util.List getRecentExecutio } } /** + * + * *
      * Output only. The most recent execution names triggered from this schedule and their
      * corresponding states.
      * 
* - * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getRecentExecutionsCount() { if (recentExecutionsBuilder_ == null) { @@ -2440,12 +2758,16 @@ public int getRecentExecutionsCount() { } } /** + * + * *
      * Output only. The most recent execution names triggered from this schedule and their
      * corresponding states.
      * 
* - * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.notebooks.v1.Execution getRecentExecutions(int index) { if (recentExecutionsBuilder_ == null) { @@ -2455,15 +2777,18 @@ public com.google.cloud.notebooks.v1.Execution getRecentExecutions(int index) { } } /** + * + * *
      * Output only. The most recent execution names triggered from this schedule and their
      * corresponding states.
      * 
* - * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setRecentExecutions( - int index, com.google.cloud.notebooks.v1.Execution value) { + public Builder setRecentExecutions(int index, com.google.cloud.notebooks.v1.Execution value) { if (recentExecutionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2477,12 +2802,16 @@ public Builder setRecentExecutions( return this; } /** + * + * *
      * Output only. The most recent execution names triggered from this schedule and their
      * corresponding states.
      * 
* - * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setRecentExecutions( int index, com.google.cloud.notebooks.v1.Execution.Builder builderForValue) { @@ -2496,12 +2825,16 @@ public Builder setRecentExecutions( return this; } /** + * + * *
      * Output only. The most recent execution names triggered from this schedule and their
      * corresponding states.
      * 
* - * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addRecentExecutions(com.google.cloud.notebooks.v1.Execution value) { if (recentExecutionsBuilder_ == null) { @@ -2517,15 +2850,18 @@ public Builder addRecentExecutions(com.google.cloud.notebooks.v1.Execution value return this; } /** + * + * *
      * Output only. The most recent execution names triggered from this schedule and their
      * corresponding states.
      * 
* - * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addRecentExecutions( - int index, com.google.cloud.notebooks.v1.Execution value) { + public Builder addRecentExecutions(int index, com.google.cloud.notebooks.v1.Execution value) { if (recentExecutionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2539,12 +2875,16 @@ public Builder addRecentExecutions( return this; } /** + * + * *
      * Output only. The most recent execution names triggered from this schedule and their
      * corresponding states.
      * 
* - * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addRecentExecutions( com.google.cloud.notebooks.v1.Execution.Builder builderForValue) { @@ -2558,12 +2898,16 @@ public Builder addRecentExecutions( return this; } /** + * + * *
      * Output only. The most recent execution names triggered from this schedule and their
      * corresponding states.
      * 
* - * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addRecentExecutions( int index, com.google.cloud.notebooks.v1.Execution.Builder builderForValue) { @@ -2577,19 +2921,22 @@ public Builder addRecentExecutions( return this; } /** + * + * *
      * Output only. The most recent execution names triggered from this schedule and their
      * corresponding states.
      * 
* - * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllRecentExecutions( java.lang.Iterable values) { if (recentExecutionsBuilder_ == null) { ensureRecentExecutionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, recentExecutions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, recentExecutions_); onChanged(); } else { recentExecutionsBuilder_.addAllMessages(values); @@ -2597,12 +2944,16 @@ public Builder addAllRecentExecutions( return this; } /** + * + * *
      * Output only. The most recent execution names triggered from this schedule and their
      * corresponding states.
      * 
* - * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearRecentExecutions() { if (recentExecutionsBuilder_ == null) { @@ -2615,12 +2966,16 @@ public Builder clearRecentExecutions() { return this; } /** + * + * *
      * Output only. The most recent execution names triggered from this schedule and their
      * corresponding states.
      * 
* - * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeRecentExecutions(int index) { if (recentExecutionsBuilder_ == null) { @@ -2633,42 +2988,54 @@ public Builder removeRecentExecutions(int index) { return this; } /** + * + * *
      * Output only. The most recent execution names triggered from this schedule and their
      * corresponding states.
      * 
* - * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.notebooks.v1.Execution.Builder getRecentExecutionsBuilder( - int index) { + public com.google.cloud.notebooks.v1.Execution.Builder getRecentExecutionsBuilder(int index) { return getRecentExecutionsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. The most recent execution names triggered from this schedule and their
      * corresponding states.
      * 
* - * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.notebooks.v1.ExecutionOrBuilder getRecentExecutionsOrBuilder( int index) { if (recentExecutionsBuilder_ == null) { - return recentExecutions_.get(index); } else { + return recentExecutions_.get(index); + } else { return recentExecutionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. The most recent execution names triggered from this schedule and their
      * corresponding states.
      * 
* - * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getRecentExecutionsOrBuilderList() { + public java.util.List + getRecentExecutionsOrBuilderList() { if (recentExecutionsBuilder_ != null) { return recentExecutionsBuilder_.getMessageOrBuilderList(); } else { @@ -2676,48 +3043,65 @@ public com.google.cloud.notebooks.v1.ExecutionOrBuilder getRecentExecutionsOrBui } } /** + * + * *
      * Output only. The most recent execution names triggered from this schedule and their
      * corresponding states.
      * 
* - * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.notebooks.v1.Execution.Builder addRecentExecutionsBuilder() { - return getRecentExecutionsFieldBuilder().addBuilder( - com.google.cloud.notebooks.v1.Execution.getDefaultInstance()); + return getRecentExecutionsFieldBuilder() + .addBuilder(com.google.cloud.notebooks.v1.Execution.getDefaultInstance()); } /** + * + * *
      * Output only. The most recent execution names triggered from this schedule and their
      * corresponding states.
      * 
* - * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.notebooks.v1.Execution.Builder addRecentExecutionsBuilder( - int index) { - return getRecentExecutionsFieldBuilder().addBuilder( - index, com.google.cloud.notebooks.v1.Execution.getDefaultInstance()); + public com.google.cloud.notebooks.v1.Execution.Builder addRecentExecutionsBuilder(int index) { + return getRecentExecutionsFieldBuilder() + .addBuilder(index, com.google.cloud.notebooks.v1.Execution.getDefaultInstance()); } /** + * + * *
      * Output only. The most recent execution names triggered from this schedule and their
      * corresponding states.
      * 
* - * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getRecentExecutionsBuilderList() { + public java.util.List + getRecentExecutionsBuilderList() { return getRecentExecutionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.Execution, com.google.cloud.notebooks.v1.Execution.Builder, com.google.cloud.notebooks.v1.ExecutionOrBuilder> + com.google.cloud.notebooks.v1.Execution, + com.google.cloud.notebooks.v1.Execution.Builder, + com.google.cloud.notebooks.v1.ExecutionOrBuilder> getRecentExecutionsFieldBuilder() { if (recentExecutionsBuilder_ == null) { - recentExecutionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.Execution, com.google.cloud.notebooks.v1.Execution.Builder, com.google.cloud.notebooks.v1.ExecutionOrBuilder>( + recentExecutionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.notebooks.v1.Execution, + com.google.cloud.notebooks.v1.Execution.Builder, + com.google.cloud.notebooks.v1.ExecutionOrBuilder>( recentExecutions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2726,9 +3110,9 @@ public com.google.cloud.notebooks.v1.Execution.Builder addRecentExecutionsBuilde } return recentExecutionsBuilder_; } + @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); } @@ -2738,12 +3122,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.Schedule) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.Schedule) private static final com.google.cloud.notebooks.v1.Schedule DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.Schedule(); } @@ -2752,27 +3136,27 @@ public static com.google.cloud.notebooks.v1.Schedule getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Schedule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Schedule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -2787,6 +3171,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.Schedule getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ScheduleName.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ScheduleName.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ScheduleName.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ScheduleName.java diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ScheduleOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ScheduleOrBuilder.java similarity index 75% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ScheduleOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ScheduleOrBuilder.java index e6b9f75a7610..358c81d10b3e 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ScheduleOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ScheduleOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/schedule.proto package com.google.cloud.notebooks.v1; -public interface ScheduleOrBuilder extends +public interface ScheduleOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.Schedule) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The name of this schedule. Format:
    * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The name of this schedule. Format:
    * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. Display name used for UI purposes.
    * Name can only contain alphanumeric characters, hyphens '-',
@@ -37,10 +60,13 @@ public interface ScheduleOrBuilder extends
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Output only. Display name used for UI purposes.
    * Name can only contain alphanumeric characters, hyphens '-',
@@ -48,43 +74,52 @@ public interface ScheduleOrBuilder extends
    * 
* * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * A brief description of this environment.
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * A brief description of this environment.
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** * .google.cloud.notebooks.v1.Schedule.State state = 4; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** * .google.cloud.notebooks.v1.Schedule.State state = 4; + * * @return The state. */ com.google.cloud.notebooks.v1.Schedule.State getState(); /** + * + * *
    * Cron-tab formatted schedule by which the job will execute.
    * Format: minute, hour, day of month, month, day of week,
@@ -93,10 +128,13 @@ public interface ScheduleOrBuilder extends
    * 
* * string cron_schedule = 5; + * * @return The cronSchedule. */ java.lang.String getCronSchedule(); /** + * + * *
    * Cron-tab formatted schedule by which the job will execute.
    * Format: minute, hour, day of month, month, day of week,
@@ -105,12 +143,14 @@ public interface ScheduleOrBuilder extends
    * 
* * string cron_schedule = 5; + * * @return The bytes for cronSchedule. */ - com.google.protobuf.ByteString - getCronScheduleBytes(); + com.google.protobuf.ByteString getCronScheduleBytes(); /** + * + * *
    * Timezone on which the cron_schedule.
    * The value of this field must be a time zone name from the tz database.
@@ -122,10 +162,13 @@ public interface ScheduleOrBuilder extends
    * 
* * string time_zone = 6; + * * @return The timeZone. */ java.lang.String getTimeZone(); /** + * + * *
    * Timezone on which the cron_schedule.
    * The value of this field must be a time zone name from the tz database.
@@ -137,84 +180,114 @@ public interface ScheduleOrBuilder extends
    * 
* * string time_zone = 6; + * * @return The bytes for timeZone. */ - com.google.protobuf.ByteString - getTimeZoneBytes(); + com.google.protobuf.ByteString getTimeZoneBytes(); /** + * + * *
    * Output only. Time the schedule was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Time the schedule was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Time the schedule was created.
    * 
* - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Time the schedule was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. Time the schedule was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. Time the schedule was last updated.
    * 
* - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Notebook Execution Template corresponding to this schedule.
    * 
* * .google.cloud.notebooks.v1.ExecutionTemplate execution_template = 9; + * * @return Whether the executionTemplate field is set. */ boolean hasExecutionTemplate(); /** + * + * *
    * Notebook Execution Template corresponding to this schedule.
    * 
* * .google.cloud.notebooks.v1.ExecutionTemplate execution_template = 9; + * * @return The executionTemplate. */ com.google.cloud.notebooks.v1.ExecutionTemplate getExecutionTemplate(); /** + * + * *
    * Notebook Execution Template corresponding to this schedule.
    * 
@@ -224,51 +297,69 @@ public interface ScheduleOrBuilder extends com.google.cloud.notebooks.v1.ExecutionTemplateOrBuilder getExecutionTemplateOrBuilder(); /** + * + * *
    * Output only. The most recent execution names triggered from this schedule and their
    * corresponding states.
    * 
* - * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getRecentExecutionsList(); + java.util.List getRecentExecutionsList(); /** + * + * *
    * Output only. The most recent execution names triggered from this schedule and their
    * corresponding states.
    * 
* - * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.notebooks.v1.Execution getRecentExecutions(int index); /** + * + * *
    * Output only. The most recent execution names triggered from this schedule and their
    * corresponding states.
    * 
* - * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getRecentExecutionsCount(); /** + * + * *
    * Output only. The most recent execution names triggered from this schedule and their
    * corresponding states.
    * 
* - * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getRecentExecutionsOrBuilderList(); /** + * + * *
    * Output only. The most recent execution names triggered from this schedule and their
    * corresponding states.
    * 
* - * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.notebooks.v1.Execution recent_executions = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.notebooks.v1.ExecutionOrBuilder getRecentExecutionsOrBuilder( - int index); + com.google.cloud.notebooks.v1.ExecutionOrBuilder getRecentExecutionsOrBuilder(int index); } diff --git a/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ScheduleProto.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ScheduleProto.java new file mode 100644 index 000000000000..ce698940920e --- /dev/null +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ScheduleProto.java @@ -0,0 +1,108 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/notebooks/v1/schedule.proto + +package com.google.cloud.notebooks.v1; + +public final class ScheduleProto { + private ScheduleProto() {} + + 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_cloud_notebooks_v1_Schedule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1_Schedule_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/cloud/notebooks/v1/schedule.pro" + + "to\022\031google.cloud.notebooks.v1\032\037google/ap" + + "i/field_behavior.proto\032\031google/api/resou" + + "rce.proto\032)google/cloud/notebooks/v1/exe" + + "cution.proto\032\037google/protobuf/timestamp." + + "proto\"\214\005\n\010Schedule\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\003\022\023\n\013description\030" + + "\003 \001(\t\0228\n\005state\030\004 \001(\0162).google.cloud.note" + + "books.v1.Schedule.State\022\025\n\rcron_schedule" + + "\030\005 \001(\t\022\021\n\ttime_zone\030\006 \001(\t\0224\n\013create_time" + + "\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "4\n\013update_time\030\010 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\022H\n\022execution_template\030\t \001(" + + "\0132,.google.cloud.notebooks.v1.ExecutionT" + + "emplate\022D\n\021recent_executions\030\n \003(\0132$.goo" + + "gle.cloud.notebooks.v1.ExecutionB\003\340A\003\"x\n" + + "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007ENABLED" + + "\020\001\022\n\n\006PAUSED\020\002\022\014\n\010DISABLED\020\003\022\021\n\rUPDATE_F" + + "AILED\020\004\022\020\n\014INITIALIZING\020\005\022\014\n\010DELETING\020\006:" + + "c\352A`\n!notebooks.googleapis.com/Schedule\022" + + ";projects/{project}/location/{location}/" + + "schedules/{schedule}Bt\n\035com.google.cloud" + + ".notebooks.v1B\rScheduleProtoP\001ZBgoogle.g" + + "olang.org/genproto/googleapis/cloud/note" + + "books/v1;notebooksb\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.cloud.notebooks.v1.ExecutionProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_notebooks_v1_Schedule_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_notebooks_v1_Schedule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1_Schedule_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "State", + "CronSchedule", + "TimeZone", + "CreateTime", + "UpdateTime", + "ExecutionTemplate", + "RecentExecutions", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.notebooks.v1.ExecutionProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceAcceleratorRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceAcceleratorRequest.java similarity index 65% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceAcceleratorRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceAcceleratorRequest.java index 9e3b3b56a6cc..c9c64e0ad70e 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceAcceleratorRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceAcceleratorRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for setting instance accelerator.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.SetInstanceAcceleratorRequest} */ -public final class SetInstanceAcceleratorRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SetInstanceAcceleratorRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.SetInstanceAcceleratorRequest) SetInstanceAcceleratorRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SetInstanceAcceleratorRequest.newBuilder() to construct. private SetInstanceAcceleratorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SetInstanceAcceleratorRequest() { name_ = ""; type_ = 0; @@ -26,38 +44,42 @@ private SetInstanceAcceleratorRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SetInstanceAcceleratorRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_SetInstanceAcceleratorRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_SetInstanceAcceleratorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_SetInstanceAcceleratorRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_SetInstanceAcceleratorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest.class, com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest.Builder.class); + com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest.class, + com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -66,30 +88,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -100,33 +122,50 @@ public java.lang.String getName() { public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** + * + * *
    * Required. Type of this accelerator.
    * 
* - * .google.cloud.notebooks.v1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * Required. Type of this accelerator.
    * 
* - * .google.cloud.notebooks.v1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The type. */ - @java.lang.Override public com.google.cloud.notebooks.v1.Instance.AcceleratorType getType() { + @java.lang.Override + public com.google.cloud.notebooks.v1.Instance.AcceleratorType getType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.Instance.AcceleratorType result = com.google.cloud.notebooks.v1.Instance.AcceleratorType.valueOf(type_); - return result == null ? com.google.cloud.notebooks.v1.Instance.AcceleratorType.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1.Instance.AcceleratorType result = + com.google.cloud.notebooks.v1.Instance.AcceleratorType.valueOf(type_); + return result == null + ? com.google.cloud.notebooks.v1.Instance.AcceleratorType.UNRECOGNIZED + : result; } public static final int CORE_COUNT_FIELD_NUMBER = 3; private long coreCount_; /** + * + * *
    * Required. Count of cores of this accelerator. Note that not all combinations
    * of `type` and `core_count` are valid. Check [GPUs on
@@ -135,6 +174,7 @@ public java.lang.String getName() {
    * 
* * int64 core_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The coreCount. */ @java.lang.Override @@ -143,6 +183,7 @@ public long getCoreCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -154,12 +195,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (type_ != com.google.cloud.notebooks.v1.Instance.AcceleratorType.ACCELERATOR_TYPE_UNSPECIFIED.getNumber()) { + if (type_ + != com.google.cloud.notebooks.v1.Instance.AcceleratorType.ACCELERATOR_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, type_); } if (coreCount_ != 0L) { @@ -177,13 +219,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (type_ != com.google.cloud.notebooks.v1.Instance.AcceleratorType.ACCELERATOR_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); + if (type_ + != com.google.cloud.notebooks.v1.Instance.AcceleratorType.ACCELERATOR_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } if (coreCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, coreCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, coreCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -193,18 +235,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.cloud.notebooks.v1.SetInstanceAcceleratorRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest other = (com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest) obj; + com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest other = + (com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (type_ != other.type_) return false; - if (getCoreCount() - != other.getCoreCount()) return false; + if (getCoreCount() != other.getCoreCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -221,137 +262,143 @@ public int hashCode() { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + CORE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCoreCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCoreCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest 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.cloud.notebooks.v1.SetInstanceAcceleratorRequest 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.cloud.notebooks.v1.SetInstanceAcceleratorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest 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.cloud.notebooks.v1.SetInstanceAcceleratorRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest 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.cloud.notebooks.v1.SetInstanceAcceleratorRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest 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.cloud.notebooks.v1.SetInstanceAcceleratorRequest 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.cloud.notebooks.v1.SetInstanceAcceleratorRequest 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.cloud.notebooks.v1.SetInstanceAcceleratorRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest 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; } /** + * + * *
    * Request for setting instance accelerator.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.SetInstanceAcceleratorRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.SetInstanceAcceleratorRequest) com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_SetInstanceAcceleratorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_SetInstanceAcceleratorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_SetInstanceAcceleratorRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_SetInstanceAcceleratorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest.class, com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest.Builder.class); + com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest.class, + com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -365,9 +412,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_SetInstanceAcceleratorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_SetInstanceAcceleratorRequest_descriptor; } @java.lang.Override @@ -386,7 +433,8 @@ public com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest buildPartial() { - com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest result = new com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest(this); + com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest result = + new com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest(this); result.name_ = name_; result.type_ = type_; result.coreCount_ = coreCount_; @@ -398,38 +446,39 @@ public com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest buildPartial( 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.cloud.notebooks.v1.SetInstanceAcceleratorRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest) other); } else { super.mergeFrom(other); return this; @@ -437,7 +486,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest other) { - if (other == com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,27 +524,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - type_ = input.readEnum(); - - break; - } // case 16 - case 24: { - coreCount_ = input.readInt64(); - - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + + break; + } // case 16 + case 24: + { + coreCount_ = input.readInt64(); + + 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) { @@ -507,19 +561,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -528,21 +584,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -550,57 +607,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -608,51 +672,75 @@ public Builder setNameBytes( private int type_ = 0; /** + * + * *
      * Required. Type of this accelerator.
      * 
* - * .google.cloud.notebooks.v1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Required. Type of this accelerator.
      * 
* - * .google.cloud.notebooks.v1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
      * Required. Type of this accelerator.
      * 
* - * .google.cloud.notebooks.v1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The type. */ @java.lang.Override public com.google.cloud.notebooks.v1.Instance.AcceleratorType getType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.Instance.AcceleratorType result = com.google.cloud.notebooks.v1.Instance.AcceleratorType.valueOf(type_); - return result == null ? com.google.cloud.notebooks.v1.Instance.AcceleratorType.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1.Instance.AcceleratorType result = + com.google.cloud.notebooks.v1.Instance.AcceleratorType.valueOf(type_); + return result == null + ? com.google.cloud.notebooks.v1.Instance.AcceleratorType.UNRECOGNIZED + : result; } /** + * + * *
      * Required. Type of this accelerator.
      * 
* - * .google.cloud.notebooks.v1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The type to set. * @return This builder for chaining. */ @@ -660,28 +748,35 @@ public Builder setType(com.google.cloud.notebooks.v1.Instance.AcceleratorType va if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. Type of this accelerator.
      * 
* - * .google.cloud.notebooks.v1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private long coreCount_ ; + private long coreCount_; /** + * + * *
      * Required. Count of cores of this accelerator. Note that not all combinations
      * of `type` and `core_count` are valid. Check [GPUs on
@@ -690,6 +785,7 @@ public Builder clearType() {
      * 
* * int64 core_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The coreCount. */ @java.lang.Override @@ -697,6 +793,8 @@ public long getCoreCount() { return coreCount_; } /** + * + * *
      * Required. Count of cores of this accelerator. Note that not all combinations
      * of `type` and `core_count` are valid. Check [GPUs on
@@ -705,16 +803,19 @@ public long getCoreCount() {
      * 
* * int64 core_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The coreCount to set. * @return This builder for chaining. */ public Builder setCoreCount(long value) { - + coreCount_ = value; onChanged(); return this; } /** + * + * *
      * Required. Count of cores of this accelerator. Note that not all combinations
      * of `type` and `core_count` are valid. Check [GPUs on
@@ -723,17 +824,18 @@ public Builder setCoreCount(long value) {
      * 
* * int64 core_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearCoreCount() { - + coreCount_ = 0L; 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); } @@ -743,12 +845,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.SetInstanceAcceleratorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.SetInstanceAcceleratorRequest) private static final com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest(); } @@ -757,27 +859,27 @@ public static com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetInstanceAcceleratorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetInstanceAcceleratorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -792,6 +894,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceAcceleratorRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceAcceleratorRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceAcceleratorRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceAcceleratorRequestOrBuilder.java index edc8374d8f47..5942a6ebdeba 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceAcceleratorRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceAcceleratorRequestOrBuilder.java @@ -1,54 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface SetInstanceAcceleratorRequestOrBuilder extends +public interface SetInstanceAcceleratorRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.SetInstanceAcceleratorRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. Type of this accelerator.
    * 
* - * .google.cloud.notebooks.v1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * Required. Type of this accelerator.
    * 
* - * .google.cloud.notebooks.v1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The type. */ com.google.cloud.notebooks.v1.Instance.AcceleratorType getType(); /** + * + * *
    * Required. Count of cores of this accelerator. Note that not all combinations
    * of `type` and `core_count` are valid. Check [GPUs on
@@ -57,6 +90,7 @@ public interface SetInstanceAcceleratorRequestOrBuilder extends
    * 
* * int64 core_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The coreCount. */ long getCoreCount(); diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceLabelsRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceLabelsRequest.java similarity index 61% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceLabelsRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceLabelsRequest.java index c687bc0d2e42..e4322d4af9c3 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceLabelsRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceLabelsRequest.java @@ -1,74 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for setting instance labels.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.SetInstanceLabelsRequest} */ -public final class SetInstanceLabelsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SetInstanceLabelsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.SetInstanceLabelsRequest) SetInstanceLabelsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SetInstanceLabelsRequest.newBuilder() to construct. private SetInstanceLabelsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SetInstanceLabelsRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SetInstanceLabelsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_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 2: 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.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.SetInstanceLabelsRequest.class, com.google.cloud.notebooks.v1.SetInstanceLabelsRequest.Builder.class); + com.google.cloud.notebooks.v1.SetInstanceLabelsRequest.class, + com.google.cloud.notebooks.v1.SetInstanceLabelsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -77,30 +98,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -109,24 +130,23 @@ public java.lang.String getName() { } public static final int LABELS_FIELD_NUMBER = 2; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -135,6 +155,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method
@@ -142,22 +164,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 2;
    */
-
   @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 getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method
@@ -166,11 +188,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 2;
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method
@@ -179,16 +202,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 2;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method
@@ -197,12 +220,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 2;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -210,6 +232,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -221,17 +244,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_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        2);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2);
     getUnknownFields().writeTo(output);
   }
 
@@ -244,15 +262,15 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
-    for (java.util.Map.Entry entry
-         : internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(2, labels__);
+    for (java.util.Map.Entry entry :
+        internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry labels__ =
+          LabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -262,17 +280,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.cloud.notebooks.v1.SetInstanceLabelsRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.notebooks.v1.SetInstanceLabelsRequest other = (com.google.cloud.notebooks.v1.SetInstanceLabelsRequest) obj;
+    com.google.cloud.notebooks.v1.SetInstanceLabelsRequest other =
+        (com.google.cloud.notebooks.v1.SetInstanceLabelsRequest) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
+    if (!getName().equals(other.getName())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -296,151 +313,156 @@ public int hashCode() {
   }
 
   public static com.google.cloud.notebooks.v1.SetInstanceLabelsRequest 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.cloud.notebooks.v1.SetInstanceLabelsRequest 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.cloud.notebooks.v1.SetInstanceLabelsRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.notebooks.v1.SetInstanceLabelsRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.notebooks.v1.SetInstanceLabelsRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.notebooks.v1.SetInstanceLabelsRequest 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.cloud.notebooks.v1.SetInstanceLabelsRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.notebooks.v1.SetInstanceLabelsRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.notebooks.v1.SetInstanceLabelsRequest 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.cloud.notebooks.v1.SetInstanceLabelsRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.notebooks.v1.SetInstanceLabelsRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.notebooks.v1.SetInstanceLabelsRequest 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.cloud.notebooks.v1.SetInstanceLabelsRequest 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.cloud.notebooks.v1.SetInstanceLabelsRequest 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.cloud.notebooks.v1.SetInstanceLabelsRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.notebooks.v1.SetInstanceLabelsRequest 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;
   }
   /**
+   *
+   *
    * 
    * Request for setting instance labels.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.SetInstanceLabelsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.SetInstanceLabelsRequest) com.google.cloud.notebooks.v1.SetInstanceLabelsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: 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 2: 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.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.SetInstanceLabelsRequest.class, com.google.cloud.notebooks.v1.SetInstanceLabelsRequest.Builder.class); + com.google.cloud.notebooks.v1.SetInstanceLabelsRequest.class, + com.google.cloud.notebooks.v1.SetInstanceLabelsRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.SetInstanceLabelsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -451,9 +473,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_descriptor; } @java.lang.Override @@ -472,7 +494,8 @@ public com.google.cloud.notebooks.v1.SetInstanceLabelsRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.SetInstanceLabelsRequest buildPartial() { - com.google.cloud.notebooks.v1.SetInstanceLabelsRequest result = new com.google.cloud.notebooks.v1.SetInstanceLabelsRequest(this); + com.google.cloud.notebooks.v1.SetInstanceLabelsRequest result = + new com.google.cloud.notebooks.v1.SetInstanceLabelsRequest(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.labels_ = internalGetLabels(); @@ -485,38 +508,39 @@ public com.google.cloud.notebooks.v1.SetInstanceLabelsRequest buildPartial() { 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.cloud.notebooks.v1.SetInstanceLabelsRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.SetInstanceLabelsRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.SetInstanceLabelsRequest) other); } else { super.mergeFrom(other); return this; @@ -524,13 +548,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.SetInstanceLabelsRequest other) { - if (other == com.google.cloud.notebooks.v1.SetInstanceLabelsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.SetInstanceLabelsRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -557,25 +581,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + 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) { @@ -585,23 +614,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -610,21 +642,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -632,78 +665,84 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField 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 - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -715,6 +754,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels to apply to this instance.
      * These can be later modified by the setLabels method
@@ -722,22 +763,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 2;
      */
-
     @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 getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Labels to apply to this instance.
      * These can be later modified by the setLabels method
@@ -746,11 +787,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 2;
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Labels to apply to this instance.
      * These can be later modified by the setLabels method
@@ -759,16 +801,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 2;
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Labels to apply to this instance.
      * These can be later modified by the setLabels method
@@ -777,12 +820,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 2;
      */
     @java.lang.Override
-
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -790,11 +832,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Labels to apply to this instance.
      * These can be later modified by the setLabels method
@@ -802,23 +845,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 2;
      */
-
-    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
-    getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Labels to apply to this instance.
      * These can be later modified by the setLabels method
@@ -826,19 +867,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 2;
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    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");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Labels to apply to this instance.
      * These can be later modified by the setLabels method
@@ -846,16 +888,13 @@ public Builder putLabels(
      *
      * map<string, string> labels = 2;
      */
-
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       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);
     }
 
@@ -865,12 +904,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.SetInstanceLabelsRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.SetInstanceLabelsRequest)
   private static final com.google.cloud.notebooks.v1.SetInstanceLabelsRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.SetInstanceLabelsRequest();
   }
@@ -879,27 +918,27 @@ public static com.google.cloud.notebooks.v1.SetInstanceLabelsRequest getDefaultI
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SetInstanceLabelsRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        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 PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SetInstanceLabelsRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            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 parser() {
     return PARSER;
@@ -914,6 +953,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.notebooks.v1.SetInstanceLabelsRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceLabelsRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceLabelsRequestOrBuilder.java
similarity index 62%
rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceLabelsRequestOrBuilder.java
rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceLabelsRequestOrBuilder.java
index eadb86b10984..396b945217b0 100644
--- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceLabelsRequestOrBuilder.java
+++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceLabelsRequestOrBuilder.java
@@ -1,35 +1,58 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/notebooks/v1/service.proto
 
 package com.google.cloud.notebooks.v1;
 
-public interface SetInstanceLabelsRequestOrBuilder extends
+public interface SetInstanceLabelsRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.SetInstanceLabelsRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method
@@ -39,6 +62,8 @@ public interface SetInstanceLabelsRequestOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method
@@ -46,15 +71,13 @@ public interface SetInstanceLabelsRequestOrBuilder extends
    *
    * map<string, string> labels = 2;
    */
-  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
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method
@@ -62,9 +85,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 2;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method
@@ -74,11 +98,13 @@ boolean containsLabels(
    */
 
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method
@@ -86,7 +112,5 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 2;
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceMachineTypeRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceMachineTypeRequest.java
similarity index 68%
rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceMachineTypeRequest.java
rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceMachineTypeRequest.java
index 8efae4609b7c..1e948e1f7830 100644
--- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceMachineTypeRequest.java
+++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceMachineTypeRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/notebooks/v1/service.proto
 
 package com.google.cloud.notebooks.v1;
 
 /**
+ *
+ *
  * 
  * Request for setting instance machine type.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.SetInstanceMachineTypeRequest} */ -public final class SetInstanceMachineTypeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SetInstanceMachineTypeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.SetInstanceMachineTypeRequest) SetInstanceMachineTypeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SetInstanceMachineTypeRequest.newBuilder() to construct. private SetInstanceMachineTypeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SetInstanceMachineTypeRequest() { name_ = ""; machineType_ = ""; @@ -26,38 +44,42 @@ private SetInstanceMachineTypeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SetInstanceMachineTypeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_SetInstanceMachineTypeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_SetInstanceMachineTypeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_SetInstanceMachineTypeRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_SetInstanceMachineTypeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest.class, com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest.Builder.class); + com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest.class, + com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -66,30 +88,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -100,12 +122,15 @@ public java.lang.String getName() { public static final int MACHINE_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object machineType_; /** + * + * *
    * Required. The [Compute Engine machine
    * type](https://cloud.google.com/compute/docs/machine-types).
    * 
* * string machine_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The machineType. */ @java.lang.Override @@ -114,30 +139,30 @@ public java.lang.String getMachineType() { 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(); machineType_ = s; return s; } } /** + * + * *
    * Required. The [Compute Engine machine
    * type](https://cloud.google.com/compute/docs/machine-types).
    * 
* * string machine_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for machineType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMachineTypeBytes() { + public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; 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); machineType_ = b; return b; } else { @@ -146,6 +171,7 @@ public java.lang.String getMachineType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -157,8 +183,7 @@ 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_); } @@ -188,17 +213,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.cloud.notebooks.v1.SetInstanceMachineTypeRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest other = (com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest) obj; + com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest other = + (com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getMachineType() - .equals(other.getMachineType())) return false; + if (!getName().equals(other.getName())) return false; + if (!getMachineType().equals(other.getMachineType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -220,129 +244,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest 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.cloud.notebooks.v1.SetInstanceMachineTypeRequest 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.cloud.notebooks.v1.SetInstanceMachineTypeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest 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.cloud.notebooks.v1.SetInstanceMachineTypeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest 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.cloud.notebooks.v1.SetInstanceMachineTypeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest 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.cloud.notebooks.v1.SetInstanceMachineTypeRequest 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.cloud.notebooks.v1.SetInstanceMachineTypeRequest 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.cloud.notebooks.v1.SetInstanceMachineTypeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest 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; } /** + * + * *
    * Request for setting instance machine type.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.SetInstanceMachineTypeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.SetInstanceMachineTypeRequest) com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_SetInstanceMachineTypeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_SetInstanceMachineTypeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_SetInstanceMachineTypeRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_SetInstanceMachineTypeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest.class, com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest.Builder.class); + com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest.class, + com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -354,9 +385,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_SetInstanceMachineTypeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_SetInstanceMachineTypeRequest_descriptor; } @java.lang.Override @@ -375,7 +406,8 @@ public com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest buildPartial() { - com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest result = new com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest(this); + com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest result = + new com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest(this); result.name_ = name_; result.machineType_ = machineType_; onBuilt(); @@ -386,38 +418,39 @@ public com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest buildPartial( 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.cloud.notebooks.v1.SetInstanceMachineTypeRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest) other); } else { super.mergeFrom(other); return this; @@ -425,7 +458,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest other) { - if (other == com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -460,22 +494,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - machineType_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + machineType_ = input.readStringRequireUtf8(); + + 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) { @@ -488,19 +525,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -509,21 +548,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -531,57 +571,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -589,19 +636,21 @@ public Builder setNameBytes( private java.lang.Object machineType_ = ""; /** + * + * *
      * Required. The [Compute Engine machine
      * type](https://cloud.google.com/compute/docs/machine-types).
      * 
* * string machine_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The machineType. */ public java.lang.String getMachineType() { java.lang.Object ref = machineType_; 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(); machineType_ = s; return s; @@ -610,21 +659,22 @@ public java.lang.String getMachineType() { } } /** + * + * *
      * Required. The [Compute Engine machine
      * type](https://cloud.google.com/compute/docs/machine-types).
      * 
* * string machine_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for machineType. */ - public com.google.protobuf.ByteString - getMachineTypeBytes() { + public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; 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); machineType_ = b; return b; } else { @@ -632,64 +682,71 @@ public java.lang.String getMachineType() { } } /** + * + * *
      * Required. The [Compute Engine machine
      * type](https://cloud.google.com/compute/docs/machine-types).
      * 
* * string machine_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The machineType to set. * @return This builder for chaining. */ - public Builder setMachineType( - java.lang.String value) { + public Builder setMachineType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + machineType_ = value; onChanged(); return this; } /** + * + * *
      * Required. The [Compute Engine machine
      * type](https://cloud.google.com/compute/docs/machine-types).
      * 
* * string machine_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearMachineType() { - + machineType_ = getDefaultInstance().getMachineType(); onChanged(); return this; } /** + * + * *
      * Required. The [Compute Engine machine
      * type](https://cloud.google.com/compute/docs/machine-types).
      * 
* * string machine_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for machineType to set. * @return This builder for chaining. */ - public Builder setMachineTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + machineType_ = 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); } @@ -699,12 +756,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.SetInstanceMachineTypeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.SetInstanceMachineTypeRequest) private static final com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest(); } @@ -713,27 +770,27 @@ public static com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetInstanceMachineTypeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetInstanceMachineTypeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -748,6 +805,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceMachineTypeRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceMachineTypeRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceMachineTypeRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceMachineTypeRequestOrBuilder.java index 8a13dc8894ab..b3b5ec16637a 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceMachineTypeRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceMachineTypeRequestOrBuilder.java @@ -1,53 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface SetInstanceMachineTypeRequestOrBuilder extends +public interface SetInstanceMachineTypeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.SetInstanceMachineTypeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The [Compute Engine machine
    * type](https://cloud.google.com/compute/docs/machine-types).
    * 
* * string machine_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The machineType. */ java.lang.String getMachineType(); /** + * + * *
    * Required. The [Compute Engine machine
    * type](https://cloud.google.com/compute/docs/machine-types).
    * 
* * string machine_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for machineType. */ - com.google.protobuf.ByteString - getMachineTypeBytes(); + com.google.protobuf.ByteString getMachineTypeBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartInstanceRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartInstanceRequest.java similarity index 65% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartInstanceRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartInstanceRequest.java index 426d86b632f4..33490af407d2 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartInstanceRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartInstanceRequest.java @@ -1,62 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for starting a notebook instance
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.StartInstanceRequest} */ -public final class StartInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StartInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.StartInstanceRequest) StartInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StartInstanceRequest.newBuilder() to construct. private StartInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StartInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StartInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_StartInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_StartInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_StartInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_StartInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.StartInstanceRequest.class, com.google.cloud.notebooks.v1.StartInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1.StartInstanceRequest.class, + com.google.cloud.notebooks.v1.StartInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -65,30 +87,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -97,6 +119,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +131,7 @@ 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_); } @@ -133,15 +155,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.cloud.notebooks.v1.StartInstanceRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.StartInstanceRequest other = (com.google.cloud.notebooks.v1.StartInstanceRequest) obj; + com.google.cloud.notebooks.v1.StartInstanceRequest other = + (com.google.cloud.notebooks.v1.StartInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,129 +183,135 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.StartInstanceRequest 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.cloud.notebooks.v1.StartInstanceRequest 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.cloud.notebooks.v1.StartInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.StartInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.StartInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.StartInstanceRequest 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.cloud.notebooks.v1.StartInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.StartInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.StartInstanceRequest 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.cloud.notebooks.v1.StartInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.StartInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.StartInstanceRequest 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.cloud.notebooks.v1.StartInstanceRequest 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.cloud.notebooks.v1.StartInstanceRequest 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.cloud.notebooks.v1.StartInstanceRequest 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; } /** + * + * *
    * Request for starting a notebook instance
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.StartInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.StartInstanceRequest) com.google.cloud.notebooks.v1.StartInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_StartInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_StartInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_StartInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_StartInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.StartInstanceRequest.class, com.google.cloud.notebooks.v1.StartInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1.StartInstanceRequest.class, + com.google.cloud.notebooks.v1.StartInstanceRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.StartInstanceRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +321,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_StartInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_StartInstanceRequest_descriptor; } @java.lang.Override @@ -314,7 +342,8 @@ public com.google.cloud.notebooks.v1.StartInstanceRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.StartInstanceRequest buildPartial() { - com.google.cloud.notebooks.v1.StartInstanceRequest result = new com.google.cloud.notebooks.v1.StartInstanceRequest(this); + com.google.cloud.notebooks.v1.StartInstanceRequest result = + new com.google.cloud.notebooks.v1.StartInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +353,39 @@ public com.google.cloud.notebooks.v1.StartInstanceRequest buildPartial() { 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.cloud.notebooks.v1.StartInstanceRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.StartInstanceRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.StartInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -363,7 +393,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.StartInstanceRequest other) { - if (other == com.google.cloud.notebooks.v1.StartInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.StartInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -394,17 +425,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -417,19 +450,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -438,21 +473,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -460,64 +496,71 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -527,12 +570,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.StartInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.StartInstanceRequest) private static final com.google.cloud.notebooks.v1.StartInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.StartInstanceRequest(); } @@ -541,27 +584,27 @@ public static com.google.cloud.notebooks.v1.StartInstanceRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -576,6 +619,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.StartInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartInstanceRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartInstanceRequestOrBuilder.java similarity index 52% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartInstanceRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartInstanceRequestOrBuilder.java index 4492de540274..e8ea435b5dec 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartInstanceRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartInstanceRequestOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface StartInstanceRequestOrBuilder extends +public interface StartInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.StartInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartRuntimeRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartRuntimeRequest.java similarity index 67% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartRuntimeRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartRuntimeRequest.java index 281aeb51816a..404f223f0637 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartRuntimeRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartRuntimeRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/managed_service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for starting a Managed Notebook Runtime.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.StartRuntimeRequest} */ -public final class StartRuntimeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StartRuntimeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.StartRuntimeRequest) StartRuntimeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StartRuntimeRequest.newBuilder() to construct. private StartRuntimeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StartRuntimeRequest() { name_ = ""; requestId_ = ""; @@ -26,38 +44,42 @@ private StartRuntimeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StartRuntimeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_StartRuntimeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_StartRuntimeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_StartRuntimeRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_StartRuntimeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.StartRuntimeRequest.class, com.google.cloud.notebooks.v1.StartRuntimeRequest.Builder.class); + com.google.cloud.notebooks.v1.StartRuntimeRequest.class, + com.google.cloud.notebooks.v1.StartRuntimeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -66,30 +88,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -100,11 +122,14 @@ public java.lang.String getName() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 2; + * * @return The requestId. */ @java.lang.Override @@ -113,29 +138,29 @@ public java.lang.String getRequestId() { 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(); requestId_ = s; return s; } } /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 2; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; 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); requestId_ = b; return b; } else { @@ -144,6 +169,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +181,7 @@ 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_); } @@ -186,17 +211,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.cloud.notebooks.v1.StartRuntimeRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.StartRuntimeRequest other = (com.google.cloud.notebooks.v1.StartRuntimeRequest) obj; + com.google.cloud.notebooks.v1.StartRuntimeRequest other = + (com.google.cloud.notebooks.v1.StartRuntimeRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -218,129 +242,135 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.StartRuntimeRequest 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.cloud.notebooks.v1.StartRuntimeRequest 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.cloud.notebooks.v1.StartRuntimeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.StartRuntimeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.StartRuntimeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.StartRuntimeRequest 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.cloud.notebooks.v1.StartRuntimeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.StartRuntimeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.StartRuntimeRequest 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.cloud.notebooks.v1.StartRuntimeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.StartRuntimeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.StartRuntimeRequest 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.cloud.notebooks.v1.StartRuntimeRequest 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.cloud.notebooks.v1.StartRuntimeRequest 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.cloud.notebooks.v1.StartRuntimeRequest 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; } /** + * + * *
    * Request for starting a Managed Notebook Runtime.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.StartRuntimeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.StartRuntimeRequest) com.google.cloud.notebooks.v1.StartRuntimeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_StartRuntimeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_StartRuntimeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_StartRuntimeRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_StartRuntimeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.StartRuntimeRequest.class, com.google.cloud.notebooks.v1.StartRuntimeRequest.Builder.class); + com.google.cloud.notebooks.v1.StartRuntimeRequest.class, + com.google.cloud.notebooks.v1.StartRuntimeRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.StartRuntimeRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -352,9 +382,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_StartRuntimeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_StartRuntimeRequest_descriptor; } @java.lang.Override @@ -373,7 +403,8 @@ public com.google.cloud.notebooks.v1.StartRuntimeRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.StartRuntimeRequest buildPartial() { - com.google.cloud.notebooks.v1.StartRuntimeRequest result = new com.google.cloud.notebooks.v1.StartRuntimeRequest(this); + com.google.cloud.notebooks.v1.StartRuntimeRequest result = + new com.google.cloud.notebooks.v1.StartRuntimeRequest(this); result.name_ = name_; result.requestId_ = requestId_; onBuilt(); @@ -384,38 +415,39 @@ public com.google.cloud.notebooks.v1.StartRuntimeRequest buildPartial() { 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.cloud.notebooks.v1.StartRuntimeRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.StartRuntimeRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.StartRuntimeRequest) other); } else { super.mergeFrom(other); return this; @@ -423,7 +455,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.StartRuntimeRequest other) { - if (other == com.google.cloud.notebooks.v1.StartRuntimeRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.StartRuntimeRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -458,22 +491,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - requestId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + + 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) { @@ -486,19 +522,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -507,21 +545,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -529,57 +568,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -587,18 +633,20 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 2; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; 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(); requestId_ = s; return s; @@ -607,20 +655,21 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 2; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; 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); requestId_ = b; return b; } else { @@ -628,61 +677,68 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 2; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 2; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 2; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -692,12 +748,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.StartRuntimeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.StartRuntimeRequest) private static final com.google.cloud.notebooks.v1.StartRuntimeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.StartRuntimeRequest(); } @@ -706,27 +762,27 @@ public static com.google.cloud.notebooks.v1.StartRuntimeRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartRuntimeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartRuntimeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -741,6 +797,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.StartRuntimeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartRuntimeRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartRuntimeRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartRuntimeRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartRuntimeRequestOrBuilder.java index 7444c53791d7..1501a98cb768 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartRuntimeRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartRuntimeRequestOrBuilder.java @@ -1,51 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/managed_service.proto package com.google.cloud.notebooks.v1; -public interface StartRuntimeRequestOrBuilder extends +public interface StartRuntimeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.StartRuntimeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 2; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 2; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopInstanceRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopInstanceRequest.java similarity index 65% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopInstanceRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopInstanceRequest.java index 0a0e7054296c..50f661863af5 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopInstanceRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopInstanceRequest.java @@ -1,62 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for stopping a notebook instance
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.StopInstanceRequest} */ -public final class StopInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StopInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.StopInstanceRequest) StopInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StopInstanceRequest.newBuilder() to construct. private StopInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StopInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StopInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_StopInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_StopInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_StopInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_StopInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.StopInstanceRequest.class, com.google.cloud.notebooks.v1.StopInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1.StopInstanceRequest.class, + com.google.cloud.notebooks.v1.StopInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -65,30 +87,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -97,6 +119,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +131,7 @@ 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_); } @@ -133,15 +155,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.cloud.notebooks.v1.StopInstanceRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.StopInstanceRequest other = (com.google.cloud.notebooks.v1.StopInstanceRequest) obj; + com.google.cloud.notebooks.v1.StopInstanceRequest other = + (com.google.cloud.notebooks.v1.StopInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,129 +183,135 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.StopInstanceRequest 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.cloud.notebooks.v1.StopInstanceRequest 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.cloud.notebooks.v1.StopInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.StopInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.StopInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.StopInstanceRequest 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.cloud.notebooks.v1.StopInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.StopInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.StopInstanceRequest 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.cloud.notebooks.v1.StopInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.StopInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.StopInstanceRequest 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.cloud.notebooks.v1.StopInstanceRequest 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.cloud.notebooks.v1.StopInstanceRequest 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.cloud.notebooks.v1.StopInstanceRequest 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; } /** + * + * *
    * Request for stopping a notebook instance
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.StopInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.StopInstanceRequest) com.google.cloud.notebooks.v1.StopInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_StopInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_StopInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_StopInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_StopInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.StopInstanceRequest.class, com.google.cloud.notebooks.v1.StopInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1.StopInstanceRequest.class, + com.google.cloud.notebooks.v1.StopInstanceRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.StopInstanceRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +321,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_StopInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_StopInstanceRequest_descriptor; } @java.lang.Override @@ -314,7 +342,8 @@ public com.google.cloud.notebooks.v1.StopInstanceRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.StopInstanceRequest buildPartial() { - com.google.cloud.notebooks.v1.StopInstanceRequest result = new com.google.cloud.notebooks.v1.StopInstanceRequest(this); + com.google.cloud.notebooks.v1.StopInstanceRequest result = + new com.google.cloud.notebooks.v1.StopInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +353,39 @@ public com.google.cloud.notebooks.v1.StopInstanceRequest buildPartial() { 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.cloud.notebooks.v1.StopInstanceRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.StopInstanceRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.StopInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -363,7 +393,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.StopInstanceRequest other) { - if (other == com.google.cloud.notebooks.v1.StopInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.StopInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -394,17 +425,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -417,19 +450,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -438,21 +473,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -460,64 +496,71 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -527,12 +570,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.StopInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.StopInstanceRequest) private static final com.google.cloud.notebooks.v1.StopInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.StopInstanceRequest(); } @@ -541,27 +584,27 @@ public static com.google.cloud.notebooks.v1.StopInstanceRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -576,6 +619,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.StopInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopInstanceRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopInstanceRequestOrBuilder.java similarity index 52% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopInstanceRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopInstanceRequestOrBuilder.java index 2a6d68b36916..d2b22e2917ee 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopInstanceRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopInstanceRequestOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface StopInstanceRequestOrBuilder extends +public interface StopInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.StopInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopRuntimeRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopRuntimeRequest.java similarity index 67% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopRuntimeRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopRuntimeRequest.java index 988240246278..05538379ec14 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopRuntimeRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopRuntimeRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/managed_service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for stopping a Managed Notebook Runtime.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.StopRuntimeRequest} */ -public final class StopRuntimeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StopRuntimeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.StopRuntimeRequest) StopRuntimeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StopRuntimeRequest.newBuilder() to construct. private StopRuntimeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StopRuntimeRequest() { name_ = ""; requestId_ = ""; @@ -26,38 +44,42 @@ private StopRuntimeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StopRuntimeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_StopRuntimeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_StopRuntimeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_StopRuntimeRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_StopRuntimeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.StopRuntimeRequest.class, com.google.cloud.notebooks.v1.StopRuntimeRequest.Builder.class); + com.google.cloud.notebooks.v1.StopRuntimeRequest.class, + com.google.cloud.notebooks.v1.StopRuntimeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -66,30 +88,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -100,11 +122,14 @@ public java.lang.String getName() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 2; + * * @return The requestId. */ @java.lang.Override @@ -113,29 +138,29 @@ public java.lang.String getRequestId() { 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(); requestId_ = s; return s; } } /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 2; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; 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); requestId_ = b; return b; } else { @@ -144,6 +169,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +181,7 @@ 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_); } @@ -186,17 +211,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.cloud.notebooks.v1.StopRuntimeRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.StopRuntimeRequest other = (com.google.cloud.notebooks.v1.StopRuntimeRequest) obj; + com.google.cloud.notebooks.v1.StopRuntimeRequest other = + (com.google.cloud.notebooks.v1.StopRuntimeRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -217,130 +241,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.notebooks.v1.StopRuntimeRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.notebooks.v1.StopRuntimeRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.StopRuntimeRequest 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.cloud.notebooks.v1.StopRuntimeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.StopRuntimeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.StopRuntimeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.StopRuntimeRequest 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.cloud.notebooks.v1.StopRuntimeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.StopRuntimeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.StopRuntimeRequest 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.cloud.notebooks.v1.StopRuntimeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.StopRuntimeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.StopRuntimeRequest 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.cloud.notebooks.v1.StopRuntimeRequest 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.cloud.notebooks.v1.StopRuntimeRequest 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.cloud.notebooks.v1.StopRuntimeRequest 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; } /** + * + * *
    * Request for stopping a Managed Notebook Runtime.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.StopRuntimeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.StopRuntimeRequest) com.google.cloud.notebooks.v1.StopRuntimeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_StopRuntimeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_StopRuntimeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_StopRuntimeRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_StopRuntimeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.StopRuntimeRequest.class, com.google.cloud.notebooks.v1.StopRuntimeRequest.Builder.class); + com.google.cloud.notebooks.v1.StopRuntimeRequest.class, + com.google.cloud.notebooks.v1.StopRuntimeRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.StopRuntimeRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -352,9 +382,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_StopRuntimeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_StopRuntimeRequest_descriptor; } @java.lang.Override @@ -373,7 +403,8 @@ public com.google.cloud.notebooks.v1.StopRuntimeRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.StopRuntimeRequest buildPartial() { - com.google.cloud.notebooks.v1.StopRuntimeRequest result = new com.google.cloud.notebooks.v1.StopRuntimeRequest(this); + com.google.cloud.notebooks.v1.StopRuntimeRequest result = + new com.google.cloud.notebooks.v1.StopRuntimeRequest(this); result.name_ = name_; result.requestId_ = requestId_; onBuilt(); @@ -384,38 +415,39 @@ public com.google.cloud.notebooks.v1.StopRuntimeRequest buildPartial() { 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.cloud.notebooks.v1.StopRuntimeRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.StopRuntimeRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.StopRuntimeRequest) other); } else { super.mergeFrom(other); return this; @@ -423,7 +455,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.StopRuntimeRequest other) { - if (other == com.google.cloud.notebooks.v1.StopRuntimeRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.StopRuntimeRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -458,22 +491,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - requestId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + + 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) { @@ -486,19 +522,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -507,21 +545,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -529,57 +568,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -587,18 +633,20 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 2; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; 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(); requestId_ = s; return s; @@ -607,20 +655,21 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 2; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; 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); requestId_ = b; return b; } else { @@ -628,61 +677,68 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 2; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 2; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 2; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -692,12 +748,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.StopRuntimeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.StopRuntimeRequest) private static final com.google.cloud.notebooks.v1.StopRuntimeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.StopRuntimeRequest(); } @@ -706,27 +762,27 @@ public static com.google.cloud.notebooks.v1.StopRuntimeRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopRuntimeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopRuntimeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -741,6 +797,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.StopRuntimeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopRuntimeRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopRuntimeRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopRuntimeRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopRuntimeRequestOrBuilder.java index 401f89d98cb8..8bc13aef47f6 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopRuntimeRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopRuntimeRequestOrBuilder.java @@ -1,51 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/managed_service.proto package com.google.cloud.notebooks.v1; -public interface StopRuntimeRequestOrBuilder extends +public interface StopRuntimeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.StopRuntimeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 2; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 2; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SwitchRuntimeRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SwitchRuntimeRequest.java similarity index 69% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SwitchRuntimeRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SwitchRuntimeRequest.java index 084eaf2aba8f..de8e2adb90d2 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SwitchRuntimeRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SwitchRuntimeRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/managed_service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for switching a Managed Notebook Runtime.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.SwitchRuntimeRequest} */ -public final class SwitchRuntimeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SwitchRuntimeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.SwitchRuntimeRequest) SwitchRuntimeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SwitchRuntimeRequest.newBuilder() to construct. private SwitchRuntimeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SwitchRuntimeRequest() { name_ = ""; machineType_ = ""; @@ -27,38 +45,42 @@ private SwitchRuntimeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SwitchRuntimeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_SwitchRuntimeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_SwitchRuntimeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_SwitchRuntimeRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_SwitchRuntimeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.SwitchRuntimeRequest.class, com.google.cloud.notebooks.v1.SwitchRuntimeRequest.Builder.class); + com.google.cloud.notebooks.v1.SwitchRuntimeRequest.class, + com.google.cloud.notebooks.v1.SwitchRuntimeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -67,30 +89,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -101,11 +123,14 @@ public java.lang.String getName() { public static final int MACHINE_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object machineType_; /** + * + * *
    * machine type.
    * 
* * string machine_type = 2; + * * @return The machineType. */ @java.lang.Override @@ -114,29 +139,29 @@ public java.lang.String getMachineType() { 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(); machineType_ = s; return s; } } /** + * + * *
    * machine type.
    * 
* * string machine_type = 2; + * * @return The bytes for machineType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMachineTypeBytes() { + public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; 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); machineType_ = b; return b; } else { @@ -147,11 +172,14 @@ public java.lang.String getMachineType() { public static final int ACCELERATOR_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig acceleratorConfig_; /** + * + * *
    * accelerator config.
    * 
* * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 3; + * * @return Whether the acceleratorConfig field is set. */ @java.lang.Override @@ -159,18 +187,25 @@ public boolean hasAcceleratorConfig() { return acceleratorConfig_ != null; } /** + * + * *
    * accelerator config.
    * 
* * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 3; + * * @return The acceleratorConfig. */ @java.lang.Override public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig getAcceleratorConfig() { - return acceleratorConfig_ == null ? com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.getDefaultInstance() : acceleratorConfig_; + return acceleratorConfig_ == null + ? com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.getDefaultInstance() + : acceleratorConfig_; } /** + * + * *
    * accelerator config.
    * 
@@ -178,18 +213,22 @@ public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig getAcceleratorConf * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 3; */ @java.lang.Override - public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder getAcceleratorConfigOrBuilder() { + public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder + getAcceleratorConfigOrBuilder() { return getAcceleratorConfig(); } public static final int REQUEST_ID_FIELD_NUMBER = 4; private volatile java.lang.Object requestId_; /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 4; + * * @return The requestId. */ @java.lang.Override @@ -198,29 +237,29 @@ public java.lang.String getRequestId() { 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(); requestId_ = s; return s; } } /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 4; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; 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); requestId_ = b; return b; } else { @@ -229,6 +268,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,8 +280,7 @@ 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_); } @@ -270,8 +309,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, machineType_); } if (acceleratorConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getAcceleratorConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAcceleratorConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -284,24 +322,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.cloud.notebooks.v1.SwitchRuntimeRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.SwitchRuntimeRequest other = (com.google.cloud.notebooks.v1.SwitchRuntimeRequest) obj; + com.google.cloud.notebooks.v1.SwitchRuntimeRequest other = + (com.google.cloud.notebooks.v1.SwitchRuntimeRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getMachineType() - .equals(other.getMachineType())) return false; + if (!getName().equals(other.getName())) return false; + if (!getMachineType().equals(other.getMachineType())) return false; if (hasAcceleratorConfig() != other.hasAcceleratorConfig()) return false; if (hasAcceleratorConfig()) { - if (!getAcceleratorConfig() - .equals(other.getAcceleratorConfig())) return false; + if (!getAcceleratorConfig().equals(other.getAcceleratorConfig())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -329,129 +364,135 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.SwitchRuntimeRequest 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.cloud.notebooks.v1.SwitchRuntimeRequest 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.cloud.notebooks.v1.SwitchRuntimeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.SwitchRuntimeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.SwitchRuntimeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.SwitchRuntimeRequest 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.cloud.notebooks.v1.SwitchRuntimeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.SwitchRuntimeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.SwitchRuntimeRequest 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.cloud.notebooks.v1.SwitchRuntimeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.SwitchRuntimeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.SwitchRuntimeRequest 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.cloud.notebooks.v1.SwitchRuntimeRequest 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.cloud.notebooks.v1.SwitchRuntimeRequest 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.cloud.notebooks.v1.SwitchRuntimeRequest 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; } /** + * + * *
    * Request for switching a Managed Notebook Runtime.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.SwitchRuntimeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.SwitchRuntimeRequest) com.google.cloud.notebooks.v1.SwitchRuntimeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_SwitchRuntimeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_SwitchRuntimeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_SwitchRuntimeRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_SwitchRuntimeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.SwitchRuntimeRequest.class, com.google.cloud.notebooks.v1.SwitchRuntimeRequest.Builder.class); + com.google.cloud.notebooks.v1.SwitchRuntimeRequest.class, + com.google.cloud.notebooks.v1.SwitchRuntimeRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.SwitchRuntimeRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -471,9 +512,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_SwitchRuntimeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_SwitchRuntimeRequest_descriptor; } @java.lang.Override @@ -492,7 +533,8 @@ public com.google.cloud.notebooks.v1.SwitchRuntimeRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.SwitchRuntimeRequest buildPartial() { - com.google.cloud.notebooks.v1.SwitchRuntimeRequest result = new com.google.cloud.notebooks.v1.SwitchRuntimeRequest(this); + com.google.cloud.notebooks.v1.SwitchRuntimeRequest result = + new com.google.cloud.notebooks.v1.SwitchRuntimeRequest(this); result.name_ = name_; result.machineType_ = machineType_; if (acceleratorConfigBuilder_ == null) { @@ -509,38 +551,39 @@ public com.google.cloud.notebooks.v1.SwitchRuntimeRequest buildPartial() { 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.cloud.notebooks.v1.SwitchRuntimeRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.SwitchRuntimeRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.SwitchRuntimeRequest) other); } else { super.mergeFrom(other); return this; @@ -548,7 +591,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.SwitchRuntimeRequest other) { - if (other == com.google.cloud.notebooks.v1.SwitchRuntimeRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.SwitchRuntimeRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -590,34 +634,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); + case 10: + { + name_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - machineType_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + machineType_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - input.readMessage( - getAcceleratorConfigFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 18 + case 26: + { + input.readMessage( + getAcceleratorConfigFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - case 34: { - requestId_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -630,19 +678,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -651,21 +701,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -673,57 +724,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -731,18 +789,20 @@ public Builder setNameBytes( private java.lang.Object machineType_ = ""; /** + * + * *
      * machine type.
      * 
* * string machine_type = 2; + * * @return The machineType. */ public java.lang.String getMachineType() { java.lang.Object ref = machineType_; 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(); machineType_ = s; return s; @@ -751,20 +811,21 @@ public java.lang.String getMachineType() { } } /** + * + * *
      * machine type.
      * 
* * string machine_type = 2; + * * @return The bytes for machineType. */ - public com.google.protobuf.ByteString - getMachineTypeBytes() { + public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; 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); machineType_ = b; return b; } else { @@ -772,54 +833,61 @@ public java.lang.String getMachineType() { } } /** + * + * *
      * machine type.
      * 
* * string machine_type = 2; + * * @param value The machineType to set. * @return This builder for chaining. */ - public Builder setMachineType( - java.lang.String value) { + public Builder setMachineType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + machineType_ = value; onChanged(); return this; } /** + * + * *
      * machine type.
      * 
* * string machine_type = 2; + * * @return This builder for chaining. */ public Builder clearMachineType() { - + machineType_ = getDefaultInstance().getMachineType(); onChanged(); return this; } /** + * + * *
      * machine type.
      * 
* * string machine_type = 2; + * * @param value The bytes for machineType to set. * @return This builder for chaining. */ - public Builder setMachineTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + machineType_ = value; onChanged(); return this; @@ -827,41 +895,55 @@ public Builder setMachineTypeBytes( private com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig acceleratorConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig, com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.Builder, com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder> acceleratorConfigBuilder_; + com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig, + com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.Builder, + com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder> + acceleratorConfigBuilder_; /** + * + * *
      * accelerator config.
      * 
* * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 3; + * * @return Whether the acceleratorConfig field is set. */ public boolean hasAcceleratorConfig() { return acceleratorConfigBuilder_ != null || acceleratorConfig_ != null; } /** + * + * *
      * accelerator config.
      * 
* * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 3; + * * @return The acceleratorConfig. */ public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig getAcceleratorConfig() { if (acceleratorConfigBuilder_ == null) { - return acceleratorConfig_ == null ? com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.getDefaultInstance() : acceleratorConfig_; + return acceleratorConfig_ == null + ? com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.getDefaultInstance() + : acceleratorConfig_; } else { return acceleratorConfigBuilder_.getMessage(); } } /** + * + * *
      * accelerator config.
      * 
* * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 3; */ - public Builder setAcceleratorConfig(com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig value) { + public Builder setAcceleratorConfig( + com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig value) { if (acceleratorConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -875,6 +957,8 @@ public Builder setAcceleratorConfig(com.google.cloud.notebooks.v1.RuntimeAcceler return this; } /** + * + * *
      * accelerator config.
      * 
@@ -893,17 +977,22 @@ public Builder setAcceleratorConfig( return this; } /** + * + * *
      * accelerator config.
      * 
* * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 3; */ - public Builder mergeAcceleratorConfig(com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig value) { + public Builder mergeAcceleratorConfig( + com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig value) { if (acceleratorConfigBuilder_ == null) { if (acceleratorConfig_ != null) { acceleratorConfig_ = - com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.newBuilder(acceleratorConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.newBuilder(acceleratorConfig_) + .mergeFrom(value) + .buildPartial(); } else { acceleratorConfig_ = value; } @@ -915,6 +1004,8 @@ public Builder mergeAcceleratorConfig(com.google.cloud.notebooks.v1.RuntimeAccel return this; } /** + * + * *
      * accelerator config.
      * 
@@ -933,33 +1024,42 @@ public Builder clearAcceleratorConfig() { return this; } /** + * + * *
      * accelerator config.
      * 
* * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 3; */ - public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.Builder getAcceleratorConfigBuilder() { - + public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.Builder + getAcceleratorConfigBuilder() { + onChanged(); return getAcceleratorConfigFieldBuilder().getBuilder(); } /** + * + * *
      * accelerator config.
      * 
* * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 3; */ - public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder getAcceleratorConfigOrBuilder() { + public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder + getAcceleratorConfigOrBuilder() { if (acceleratorConfigBuilder_ != null) { return acceleratorConfigBuilder_.getMessageOrBuilder(); } else { - return acceleratorConfig_ == null ? - com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.getDefaultInstance() : acceleratorConfig_; + return acceleratorConfig_ == null + ? com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.getDefaultInstance() + : acceleratorConfig_; } } /** + * + * *
      * accelerator config.
      * 
@@ -967,14 +1067,17 @@ public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder getAccele * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig, com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.Builder, com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder> + com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig, + com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.Builder, + com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder> getAcceleratorConfigFieldBuilder() { if (acceleratorConfigBuilder_ == null) { - acceleratorConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig, com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.Builder, com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder>( - getAcceleratorConfig(), - getParentForChildren(), - isClean()); + acceleratorConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig, + com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.Builder, + com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder>( + getAcceleratorConfig(), getParentForChildren(), isClean()); acceleratorConfig_ = null; } return acceleratorConfigBuilder_; @@ -982,18 +1085,20 @@ public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder getAccele private java.lang.Object requestId_ = ""; /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 4; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; 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(); requestId_ = s; return s; @@ -1002,20 +1107,21 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 4; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; 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); requestId_ = b; return b; } else { @@ -1023,61 +1129,68 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 4; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 4; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 4; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1087,12 +1200,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.SwitchRuntimeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.SwitchRuntimeRequest) private static final com.google.cloud.notebooks.v1.SwitchRuntimeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.SwitchRuntimeRequest(); } @@ -1101,27 +1214,27 @@ public static com.google.cloud.notebooks.v1.SwitchRuntimeRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SwitchRuntimeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SwitchRuntimeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -1136,6 +1249,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.SwitchRuntimeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SwitchRuntimeRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SwitchRuntimeRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SwitchRuntimeRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SwitchRuntimeRequestOrBuilder.java index 26be2a194efc..67ceb9925ff4 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SwitchRuntimeRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SwitchRuntimeRequestOrBuilder.java @@ -1,73 +1,107 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/managed_service.proto package com.google.cloud.notebooks.v1; -public interface SwitchRuntimeRequestOrBuilder extends +public interface SwitchRuntimeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.SwitchRuntimeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * machine type.
    * 
* * string machine_type = 2; + * * @return The machineType. */ java.lang.String getMachineType(); /** + * + * *
    * machine type.
    * 
* * string machine_type = 2; + * * @return The bytes for machineType. */ - com.google.protobuf.ByteString - getMachineTypeBytes(); + com.google.protobuf.ByteString getMachineTypeBytes(); /** + * + * *
    * accelerator config.
    * 
* * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 3; + * * @return Whether the acceleratorConfig field is set. */ boolean hasAcceleratorConfig(); /** + * + * *
    * accelerator config.
    * 
* * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 3; + * * @return The acceleratorConfig. */ com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig getAcceleratorConfig(); /** + * + * *
    * accelerator config.
    * 
@@ -77,22 +111,27 @@ public interface SwitchRuntimeRequestOrBuilder extends com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder getAcceleratorConfigOrBuilder(); /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 4; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 4; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/TriggerScheduleRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/TriggerScheduleRequest.java similarity index 62% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/TriggerScheduleRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/TriggerScheduleRequest.java index f3fa17a1230f..07e21712f08f 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/TriggerScheduleRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/TriggerScheduleRequest.java @@ -1,62 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for created scheduled notebooks
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.TriggerScheduleRequest} */ -public final class TriggerScheduleRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TriggerScheduleRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.TriggerScheduleRequest) TriggerScheduleRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TriggerScheduleRequest.newBuilder() to construct. private TriggerScheduleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TriggerScheduleRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TriggerScheduleRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_TriggerScheduleRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_TriggerScheduleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_TriggerScheduleRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_TriggerScheduleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.TriggerScheduleRequest.class, com.google.cloud.notebooks.v1.TriggerScheduleRequest.Builder.class); + com.google.cloud.notebooks.v1.TriggerScheduleRequest.class, + com.google.cloud.notebooks.v1.TriggerScheduleRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}/schedules/{schedule_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,30 +89,32 @@ 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; } } /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}/schedules/{schedule_id}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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 { @@ -97,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +135,7 @@ 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_); } @@ -133,15 +159,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.cloud.notebooks.v1.TriggerScheduleRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.TriggerScheduleRequest other = (com.google.cloud.notebooks.v1.TriggerScheduleRequest) obj; + com.google.cloud.notebooks.v1.TriggerScheduleRequest other = + (com.google.cloud.notebooks.v1.TriggerScheduleRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,129 +187,135 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.TriggerScheduleRequest 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.cloud.notebooks.v1.TriggerScheduleRequest 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.cloud.notebooks.v1.TriggerScheduleRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.TriggerScheduleRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.TriggerScheduleRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.TriggerScheduleRequest 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.cloud.notebooks.v1.TriggerScheduleRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.TriggerScheduleRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.TriggerScheduleRequest 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.cloud.notebooks.v1.TriggerScheduleRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.TriggerScheduleRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.TriggerScheduleRequest 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.cloud.notebooks.v1.TriggerScheduleRequest 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.cloud.notebooks.v1.TriggerScheduleRequest 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.cloud.notebooks.v1.TriggerScheduleRequest 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; } /** + * + * *
    * Request for created scheduled notebooks
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.TriggerScheduleRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.TriggerScheduleRequest) com.google.cloud.notebooks.v1.TriggerScheduleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_TriggerScheduleRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_TriggerScheduleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_TriggerScheduleRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_TriggerScheduleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.TriggerScheduleRequest.class, com.google.cloud.notebooks.v1.TriggerScheduleRequest.Builder.class); + com.google.cloud.notebooks.v1.TriggerScheduleRequest.class, + com.google.cloud.notebooks.v1.TriggerScheduleRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.TriggerScheduleRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +325,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_TriggerScheduleRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_TriggerScheduleRequest_descriptor; } @java.lang.Override @@ -314,7 +346,8 @@ public com.google.cloud.notebooks.v1.TriggerScheduleRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.TriggerScheduleRequest buildPartial() { - com.google.cloud.notebooks.v1.TriggerScheduleRequest result = new com.google.cloud.notebooks.v1.TriggerScheduleRequest(this); + com.google.cloud.notebooks.v1.TriggerScheduleRequest result = + new com.google.cloud.notebooks.v1.TriggerScheduleRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +357,39 @@ public com.google.cloud.notebooks.v1.TriggerScheduleRequest buildPartial() { 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.cloud.notebooks.v1.TriggerScheduleRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.TriggerScheduleRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.TriggerScheduleRequest) other); } else { super.mergeFrom(other); return this; @@ -363,7 +397,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.TriggerScheduleRequest other) { - if (other == com.google.cloud.notebooks.v1.TriggerScheduleRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.TriggerScheduleRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -394,17 +429,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -417,19 +454,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}/schedules/{schedule_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -438,21 +479,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}/schedules/{schedule_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @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 { @@ -460,64 +504,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}/schedules/{schedule_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}/schedules/{schedule_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}/schedules/{schedule_id}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -527,12 +584,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.TriggerScheduleRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.TriggerScheduleRequest) private static final com.google.cloud.notebooks.v1.TriggerScheduleRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.TriggerScheduleRequest(); } @@ -541,27 +598,27 @@ public static com.google.cloud.notebooks.v1.TriggerScheduleRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TriggerScheduleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TriggerScheduleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -576,6 +633,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.TriggerScheduleRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/TriggerScheduleRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/TriggerScheduleRequestOrBuilder.java new file mode 100644 index 000000000000..20b70133fd68 --- /dev/null +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/TriggerScheduleRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/notebooks/v1/service.proto + +package com.google.cloud.notebooks.v1; + +public interface TriggerScheduleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.TriggerScheduleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format:
+   * `parent=projects/{project_id}/locations/{location}/schedules/{schedule_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Format:
+   * `parent=projects/{project_id}/locations/{location}/schedules/{schedule_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceConfigRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceConfigRequest.java similarity index 67% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceConfigRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceConfigRequest.java index d04b7449b369..8b4e8becfec6 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceConfigRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceConfigRequest.java @@ -1,62 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for updating instance configurations.
  * 
* * Protobuf type {@code google.cloud.notebooks.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.cloud.notebooks.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() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateInstanceConfigRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_UpdateInstanceConfigRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_UpdateInstanceConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_UpdateInstanceConfigRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_UpdateInstanceConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest.class, com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest.Builder.class); + com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest.class, + com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -65,30 +87,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -99,11 +121,14 @@ public java.lang.String getName() { public static final int CONFIG_FIELD_NUMBER = 2; private com.google.cloud.notebooks.v1.InstanceConfig config_; /** + * + * *
    * The instance configurations to be updated.
    * 
* * .google.cloud.notebooks.v1.InstanceConfig config = 2; + * * @return Whether the config field is set. */ @java.lang.Override @@ -111,18 +136,25 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * The instance configurations to be updated.
    * 
* * .google.cloud.notebooks.v1.InstanceConfig config = 2; + * * @return The config. */ @java.lang.Override public com.google.cloud.notebooks.v1.InstanceConfig getConfig() { - return config_ == null ? com.google.cloud.notebooks.v1.InstanceConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.notebooks.v1.InstanceConfig.getDefaultInstance() + : config_; } /** + * + * *
    * The instance configurations to be updated.
    * 
@@ -135,6 +167,7 @@ public com.google.cloud.notebooks.v1.InstanceConfigOrBuilder getConfigOrBuilder( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -146,8 +179,7 @@ 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_); } @@ -167,8 +199,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -178,19 +209,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.cloud.notebooks.v1.UpdateInstanceConfigRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest other = (com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest) obj; + com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest other = + (com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -215,129 +245,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.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.cloud.notebooks.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.cloud.notebooks.v1.UpdateInstanceConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.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.cloud.notebooks.v1.UpdateInstanceConfigRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.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.cloud.notebooks.v1.UpdateInstanceConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.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.cloud.notebooks.v1.UpdateInstanceConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.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.cloud.notebooks.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.cloud.notebooks.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.cloud.notebooks.v1.UpdateInstanceConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.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; } /** + * + * *
    * Request for updating instance configurations.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.UpdateInstanceConfigRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.UpdateInstanceConfigRequest) com.google.cloud.notebooks.v1.UpdateInstanceConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_UpdateInstanceConfigRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_UpdateInstanceConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_UpdateInstanceConfigRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_UpdateInstanceConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest.class, com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest.Builder.class); + com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest.class, + com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -353,9 +390,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_UpdateInstanceConfigRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_UpdateInstanceConfigRequest_descriptor; } @java.lang.Override @@ -374,7 +411,8 @@ public com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest buildPartial() { - com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest result = new com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest(this); + com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest result = + new com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest(this); result.name_ = name_; if (configBuilder_ == null) { result.config_ = config_; @@ -389,38 +427,39 @@ public com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest buildPartial() 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.cloud.notebooks.v1.UpdateInstanceConfigRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest) other); } else { super.mergeFrom(other); return this; @@ -428,7 +467,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest other) { - if (other == com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -462,24 +502,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - input.readMessage( - getConfigFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); + + 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) { @@ -492,19 +533,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -513,21 +556,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -535,57 +579,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -593,34 +644,47 @@ public Builder setNameBytes( private com.google.cloud.notebooks.v1.InstanceConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.InstanceConfig, com.google.cloud.notebooks.v1.InstanceConfig.Builder, com.google.cloud.notebooks.v1.InstanceConfigOrBuilder> configBuilder_; + com.google.cloud.notebooks.v1.InstanceConfig, + com.google.cloud.notebooks.v1.InstanceConfig.Builder, + com.google.cloud.notebooks.v1.InstanceConfigOrBuilder> + configBuilder_; /** + * + * *
      * The instance configurations to be updated.
      * 
* * .google.cloud.notebooks.v1.InstanceConfig config = 2; + * * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** + * + * *
      * The instance configurations to be updated.
      * 
* * .google.cloud.notebooks.v1.InstanceConfig config = 2; + * * @return The config. */ public com.google.cloud.notebooks.v1.InstanceConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.notebooks.v1.InstanceConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.notebooks.v1.InstanceConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * The instance configurations to be updated.
      * 
@@ -641,14 +705,15 @@ public Builder setConfig(com.google.cloud.notebooks.v1.InstanceConfig value) { return this; } /** + * + * *
      * The instance configurations to be updated.
      * 
* * .google.cloud.notebooks.v1.InstanceConfig config = 2; */ - public Builder setConfig( - com.google.cloud.notebooks.v1.InstanceConfig.Builder builderForValue) { + public Builder setConfig(com.google.cloud.notebooks.v1.InstanceConfig.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); onChanged(); @@ -659,6 +724,8 @@ public Builder setConfig( return this; } /** + * + * *
      * The instance configurations to be updated.
      * 
@@ -669,7 +736,9 @@ public Builder mergeConfig(com.google.cloud.notebooks.v1.InstanceConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.notebooks.v1.InstanceConfig.newBuilder(config_).mergeFrom(value).buildPartial(); + com.google.cloud.notebooks.v1.InstanceConfig.newBuilder(config_) + .mergeFrom(value) + .buildPartial(); } else { config_ = value; } @@ -681,6 +750,8 @@ public Builder mergeConfig(com.google.cloud.notebooks.v1.InstanceConfig value) { return this; } /** + * + * *
      * The instance configurations to be updated.
      * 
@@ -699,6 +770,8 @@ public Builder clearConfig() { return this; } /** + * + * *
      * The instance configurations to be updated.
      * 
@@ -706,11 +779,13 @@ public Builder clearConfig() { * .google.cloud.notebooks.v1.InstanceConfig config = 2; */ public com.google.cloud.notebooks.v1.InstanceConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The instance configurations to be updated.
      * 
@@ -721,11 +796,14 @@ public com.google.cloud.notebooks.v1.InstanceConfigOrBuilder getConfigOrBuilder( if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null ? - com.google.cloud.notebooks.v1.InstanceConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.notebooks.v1.InstanceConfig.getDefaultInstance() + : config_; } } /** + * + * *
      * The instance configurations to be updated.
      * 
@@ -733,21 +811,24 @@ public com.google.cloud.notebooks.v1.InstanceConfigOrBuilder getConfigOrBuilder( * .google.cloud.notebooks.v1.InstanceConfig config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.InstanceConfig, com.google.cloud.notebooks.v1.InstanceConfig.Builder, com.google.cloud.notebooks.v1.InstanceConfigOrBuilder> + com.google.cloud.notebooks.v1.InstanceConfig, + com.google.cloud.notebooks.v1.InstanceConfig.Builder, + com.google.cloud.notebooks.v1.InstanceConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.InstanceConfig, com.google.cloud.notebooks.v1.InstanceConfig.Builder, com.google.cloud.notebooks.v1.InstanceConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.InstanceConfig, + com.google.cloud.notebooks.v1.InstanceConfig.Builder, + com.google.cloud.notebooks.v1.InstanceConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; } + @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); } @@ -757,12 +838,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.UpdateInstanceConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.UpdateInstanceConfigRequest) private static final com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest(); } @@ -771,27 +852,27 @@ public static com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @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 PARSER = + new com.google.protobuf.AbstractParser() { + @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 parser() { return PARSER; @@ -806,6 +887,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceConfigRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceConfigRequestOrBuilder.java similarity index 66% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceConfigRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceConfigRequestOrBuilder.java index 19bd70de5494..0b3cfc20ee2c 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceConfigRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceConfigRequestOrBuilder.java @@ -1,53 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface UpdateInstanceConfigRequestOrBuilder extends +public interface UpdateInstanceConfigRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.UpdateInstanceConfigRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The instance configurations to be updated.
    * 
* * .google.cloud.notebooks.v1.InstanceConfig config = 2; + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * The instance configurations to be updated.
    * 
* * .google.cloud.notebooks.v1.InstanceConfig config = 2; + * * @return The config. */ com.google.cloud.notebooks.v1.InstanceConfig getConfig(); /** + * + * *
    * The instance configurations to be updated.
    * 
diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceMetadataItemsRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceMetadataItemsRequest.java similarity index 58% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceMetadataItemsRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceMetadataItemsRequest.java index bdc6e14679d0..58c069c02422 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceMetadataItemsRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceMetadataItemsRequest.java @@ -1,74 +1,96 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for adding/changing metadata items  for an instance.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest} */ -public final class UpdateInstanceMetadataItemsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateInstanceMetadataItemsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest) UpdateInstanceMetadataItemsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateInstanceMetadataItemsRequest.newBuilder() to construct. - private UpdateInstanceMetadataItemsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateInstanceMetadataItemsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateInstanceMetadataItemsRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateInstanceMetadataItemsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_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 2: return internalGetItems(); 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.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest.class, com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest.Builder.class); + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest.class, + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -77,30 +99,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -109,24 +131,23 @@ public java.lang.String getName() { } public static final int ITEMS_FIELD_NUMBER = 2; + private static final class ItemsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_ItemsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> items_; - private com.google.protobuf.MapField - internalGetItems() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_ItemsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField items_; + + private com.google.protobuf.MapField internalGetItems() { if (items_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ItemsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ItemsDefaultEntryHolder.defaultEntry); } return items_; } @@ -135,28 +156,30 @@ public int getItemsCount() { return internalGetItems().getMap().size(); } /** + * + * *
    * Metadata items to add/update for the instance.
    * 
* * map<string, string> items = 2; */ - @java.lang.Override - public boolean containsItems( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsItems(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetItems().getMap().containsKey(key); } - /** - * Use {@link #getItemsMap()} instead. - */ + /** Use {@link #getItemsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getItems() { return getItemsMap(); } /** + * + * *
    * Metadata items to add/update for the instance.
    * 
@@ -164,11 +187,12 @@ public java.util.Map getItems() { * map<string, string> items = 2; */ @java.lang.Override - public java.util.Map getItemsMap() { return internalGetItems().getMap(); } /** + * + * *
    * Metadata items to add/update for the instance.
    * 
@@ -176,16 +200,16 @@ public java.util.Map getItemsMap() { * map<string, string> items = 2; */ @java.lang.Override - - public java.lang.String getItemsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetItems().getMap(); + public java.lang.String getItemsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetItems().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Metadata items to add/update for the instance.
    * 
@@ -193,12 +217,11 @@ public java.lang.String getItemsOrDefault( * map<string, string> items = 2; */ @java.lang.Override - - public java.lang.String getItemsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetItems().getMap(); + public java.lang.String getItemsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetItems().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -206,6 +229,7 @@ public java.lang.String getItemsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -217,17 +241,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_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetItems(), - ItemsDefaultEntryHolder.defaultEntry, - 2); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetItems(), ItemsDefaultEntryHolder.defaultEntry, 2); getUnknownFields().writeTo(output); } @@ -240,15 +259,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - for (java.util.Map.Entry entry - : internalGetItems().getMap().entrySet()) { - com.google.protobuf.MapEntry - items__ = ItemsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, items__); + for (java.util.Map.Entry entry : + internalGetItems().getMap().entrySet()) { + com.google.protobuf.MapEntry items__ = + ItemsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, items__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -258,17 +277,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.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest other = (com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest) obj; + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest other = + (com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!internalGetItems().equals( - other.internalGetItems())) return false; + if (!getName().equals(other.getName())) return false; + if (!internalGetItems().equals(other.internalGetItems())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -292,151 +310,156 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest 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.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest 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.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest 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.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest 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.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest 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.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest 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.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest 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.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest 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; } /** + * + * *
    * Request for adding/changing metadata items  for an instance.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest) com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: return internalGetItems(); 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 2: return internalGetMutableItems(); 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.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest.class, com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest.Builder.class); + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest.class, + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -447,13 +470,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_descriptor; } @java.lang.Override - public com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest getDefaultInstanceForType() { + public com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest + getDefaultInstanceForType() { return com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest.getDefaultInstance(); } @@ -468,7 +492,8 @@ public com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest build() @java.lang.Override public com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest buildPartial() { - com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest result = new com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest(this); + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest result = + new com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.items_ = internalGetItems(); @@ -481,52 +506,55 @@ public com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest buildPar 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.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest other) { - if (other == com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest other) { + if (other + == com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } - internalGetMutableItems().mergeFrom( - other.internalGetItems()); + internalGetMutableItems().mergeFrom(other.internalGetItems()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -553,25 +581,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - com.google.protobuf.MapEntry - items__ = input.readMessage( - ItemsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableItems().getMutableMap().put( - items__.getKey(), items__.getValue()); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry items__ = + input.readMessage( + ItemsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableItems().getMutableMap().put(items__.getKey(), items__.getValue()); + 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) { @@ -581,23 +611,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -606,21 +639,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -628,78 +662,84 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> items_; - private com.google.protobuf.MapField - internalGetItems() { + private com.google.protobuf.MapField items_; + + private com.google.protobuf.MapField internalGetItems() { if (items_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ItemsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ItemsDefaultEntryHolder.defaultEntry); } return items_; } + private com.google.protobuf.MapField - internalGetMutableItems() { - onChanged();; + internalGetMutableItems() { + onChanged(); + ; if (items_ == null) { - items_ = com.google.protobuf.MapField.newMapField( - ItemsDefaultEntryHolder.defaultEntry); + items_ = com.google.protobuf.MapField.newMapField(ItemsDefaultEntryHolder.defaultEntry); } if (!items_.isMutable()) { items_ = items_.copy(); @@ -711,28 +751,30 @@ public int getItemsCount() { return internalGetItems().getMap().size(); } /** + * + * *
      * Metadata items to add/update for the instance.
      * 
* * map<string, string> items = 2; */ - @java.lang.Override - public boolean containsItems( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsItems(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetItems().getMap().containsKey(key); } - /** - * Use {@link #getItemsMap()} instead. - */ + /** Use {@link #getItemsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getItems() { return getItemsMap(); } /** + * + * *
      * Metadata items to add/update for the instance.
      * 
@@ -740,11 +782,12 @@ public java.util.Map getItems() { * map<string, string> items = 2; */ @java.lang.Override - public java.util.Map getItemsMap() { return internalGetItems().getMap(); } /** + * + * *
      * Metadata items to add/update for the instance.
      * 
@@ -752,16 +795,16 @@ public java.util.Map getItemsMap() { * map<string, string> items = 2; */ @java.lang.Override - - public java.lang.String getItemsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetItems().getMap(); + public java.lang.String getItemsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetItems().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Metadata items to add/update for the instance.
      * 
@@ -769,12 +812,11 @@ public java.lang.String getItemsOrDefault( * map<string, string> items = 2; */ @java.lang.Override - - public java.lang.String getItemsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetItems().getMap(); + public java.lang.String getItemsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetItems().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -782,69 +824,66 @@ public java.lang.String getItemsOrThrow( } public Builder clearItems() { - internalGetMutableItems().getMutableMap() - .clear(); + internalGetMutableItems().getMutableMap().clear(); return this; } /** + * + * *
      * Metadata items to add/update for the instance.
      * 
* * map<string, string> items = 2; */ - - public Builder removeItems( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableItems().getMutableMap() - .remove(key); + public Builder removeItems(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableItems().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableItems() { + public java.util.Map getMutableItems() { return internalGetMutableItems().getMutableMap(); } /** + * + * *
      * Metadata items to add/update for the instance.
      * 
* * map<string, string> items = 2; */ - public Builder putItems( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putItems(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableItems().getMutableMap() - .put(key, value); + internalGetMutableItems().getMutableMap().put(key, value); return this; } /** + * + * *
      * Metadata items to add/update for the instance.
      * 
* * map<string, string> items = 2; */ - - public Builder putAllItems( - java.util.Map values) { - internalGetMutableItems().getMutableMap() - .putAll(values); + public Builder putAllItems(java.util.Map values) { + internalGetMutableItems().getMutableMap().putAll(values); 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); } @@ -854,41 +893,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest) - private static final com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest(); } - public static com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest getDefaultInstance() { + public static com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateInstanceMetadataItemsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateInstanceMetadataItemsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -900,9 +941,8 @@ public com.google.protobuf.Parser getParserF } @java.lang.Override - public com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest getDefaultInstanceForType() { + public com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceMetadataItemsRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceMetadataItemsRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceMetadataItemsRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceMetadataItemsRequestOrBuilder.java index 0f4a252aaf6b..bce0cd4d6d73 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceMetadataItemsRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceMetadataItemsRequestOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface UpdateInstanceMetadataItemsRequestOrBuilder extends +public interface UpdateInstanceMetadataItemsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Metadata items to add/update for the instance.
    * 
@@ -38,30 +61,31 @@ public interface UpdateInstanceMetadataItemsRequestOrBuilder extends */ int getItemsCount(); /** + * + * *
    * Metadata items to add/update for the instance.
    * 
* * map<string, string> items = 2; */ - boolean containsItems( - java.lang.String key); - /** - * Use {@link #getItemsMap()} instead. - */ + boolean containsItems(java.lang.String key); + /** Use {@link #getItemsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getItems(); + java.util.Map getItems(); /** + * + * *
    * Metadata items to add/update for the instance.
    * 
* * map<string, string> items = 2; */ - java.util.Map - getItemsMap(); + java.util.Map getItemsMap(); /** + * + * *
    * Metadata items to add/update for the instance.
    * 
@@ -70,18 +94,18 @@ boolean containsItems( */ /* nullable */ -java.lang.String getItemsOrDefault( + java.lang.String getItemsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Metadata items to add/update for the instance.
    * 
* * map<string, string> items = 2; */ - - java.lang.String getItemsOrThrow( - java.lang.String key); + java.lang.String getItemsOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceMetadataItemsResponse.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceMetadataItemsResponse.java similarity index 54% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceMetadataItemsResponse.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceMetadataItemsResponse.java index 5f276443cf00..aec4d8964f3b 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceMetadataItemsResponse.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceMetadataItemsResponse.java @@ -1,83 +1,101 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Response for adding/changing metadata items for an instance.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse} */ -public final class UpdateInstanceMetadataItemsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateInstanceMetadataItemsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse) UpdateInstanceMetadataItemsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateInstanceMetadataItemsResponse.newBuilder() to construct. - private UpdateInstanceMetadataItemsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateInstanceMetadataItemsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateInstanceMetadataItemsResponse() { - } + + private UpdateInstanceMetadataItemsResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateInstanceMetadataItemsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_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 1: return internalGetItems(); 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.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse.class, com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse.Builder.class); + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse.class, + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse.Builder.class); } public static final int ITEMS_FIELD_NUMBER = 1; + private static final class ItemsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_ItemsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> items_; - private com.google.protobuf.MapField - internalGetItems() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_ItemsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField items_; + + private com.google.protobuf.MapField internalGetItems() { if (items_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ItemsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ItemsDefaultEntryHolder.defaultEntry); } return items_; } @@ -86,28 +104,30 @@ public int getItemsCount() { return internalGetItems().getMap().size(); } /** + * + * *
    * Map of items that were added/updated to/in the metadata.
    * 
* * map<string, string> items = 1; */ - @java.lang.Override - public boolean containsItems( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsItems(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetItems().getMap().containsKey(key); } - /** - * Use {@link #getItemsMap()} instead. - */ + /** Use {@link #getItemsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getItems() { return getItemsMap(); } /** + * + * *
    * Map of items that were added/updated to/in the metadata.
    * 
@@ -115,11 +135,12 @@ public java.util.Map getItems() { * map<string, string> items = 1; */ @java.lang.Override - public java.util.Map getItemsMap() { return internalGetItems().getMap(); } /** + * + * *
    * Map of items that were added/updated to/in the metadata.
    * 
@@ -127,16 +148,16 @@ public java.util.Map getItemsMap() { * map<string, string> items = 1; */ @java.lang.Override - - public java.lang.String getItemsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetItems().getMap(); + public java.lang.String getItemsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetItems().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Map of items that were added/updated to/in the metadata.
    * 
@@ -144,12 +165,11 @@ public java.lang.String getItemsOrDefault( * map<string, string> items = 1; */ @java.lang.Override - - public java.lang.String getItemsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetItems().getMap(); + public java.lang.String getItemsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetItems().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -157,6 +177,7 @@ public java.lang.String getItemsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,14 +189,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetItems(), - ItemsDefaultEntryHolder.defaultEntry, - 1); + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetItems(), ItemsDefaultEntryHolder.defaultEntry, 1); getUnknownFields().writeTo(output); } @@ -185,15 +201,15 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry - : internalGetItems().getMap().entrySet()) { - com.google.protobuf.MapEntry - items__ = ItemsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, items__); + for (java.util.Map.Entry entry : + internalGetItems().getMap().entrySet()) { + com.google.protobuf.MapEntry items__ = + ItemsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, items__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -203,15 +219,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.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse other = (com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse) obj; + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse other = + (com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse) obj; - if (!internalGetItems().equals( - other.internalGetItems())) return false; + if (!internalGetItems().equals(other.internalGetItems())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -233,151 +249,158 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse 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.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse 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.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse 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.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse 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.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse 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.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse 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.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse 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; } /** + * + * *
    * Response for adding/changing metadata items for an instance.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse) com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetItems(); 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 1: return internalGetMutableItems(); 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.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse.class, com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse.Builder.class); + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse.class, + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse.Builder.class); } - // Construct using com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -386,13 +409,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_descriptor; } @java.lang.Override - public com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse getDefaultInstanceForType() { + public com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse + getDefaultInstanceForType() { return com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse.getDefaultInstance(); } @@ -407,7 +431,8 @@ public com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse build() @java.lang.Override public com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse buildPartial() { - com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse result = new com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse(this); + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse result = + new com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse(this); int from_bitField0_ = bitField0_; result.items_ = internalGetItems(); result.items_.makeImmutable(); @@ -419,48 +444,51 @@ public com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse buildPa 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.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse) { - return mergeFrom((com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse)other); + return mergeFrom((com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse other) { - if (other == com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse.getDefaultInstance()) return this; - internalGetMutableItems().mergeFrom( - other.internalGetItems()); + public Builder mergeFrom( + com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse other) { + if (other + == com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse.getDefaultInstance()) + return this; + internalGetMutableItems().mergeFrom(other.internalGetItems()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -487,20 +515,21 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.protobuf.MapEntry - items__ = input.readMessage( - ItemsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableItems().getMutableMap().put( - items__.getKey(), items__.getValue()); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.protobuf.MapEntry items__ = + input.readMessage( + ItemsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableItems().getMutableMap().put(items__.getKey(), items__.getValue()); + 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) { @@ -510,24 +539,24 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> items_; - private com.google.protobuf.MapField - internalGetItems() { + private com.google.protobuf.MapField items_; + + private com.google.protobuf.MapField internalGetItems() { if (items_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ItemsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(ItemsDefaultEntryHolder.defaultEntry); } return items_; } + private com.google.protobuf.MapField - internalGetMutableItems() { - onChanged();; + internalGetMutableItems() { + onChanged(); + ; if (items_ == null) { - items_ = com.google.protobuf.MapField.newMapField( - ItemsDefaultEntryHolder.defaultEntry); + items_ = com.google.protobuf.MapField.newMapField(ItemsDefaultEntryHolder.defaultEntry); } if (!items_.isMutable()) { items_ = items_.copy(); @@ -539,28 +568,30 @@ public int getItemsCount() { return internalGetItems().getMap().size(); } /** + * + * *
      * Map of items that were added/updated to/in the metadata.
      * 
* * map<string, string> items = 1; */ - @java.lang.Override - public boolean containsItems( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsItems(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetItems().getMap().containsKey(key); } - /** - * Use {@link #getItemsMap()} instead. - */ + /** Use {@link #getItemsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getItems() { return getItemsMap(); } /** + * + * *
      * Map of items that were added/updated to/in the metadata.
      * 
@@ -568,11 +599,12 @@ public java.util.Map getItems() { * map<string, string> items = 1; */ @java.lang.Override - public java.util.Map getItemsMap() { return internalGetItems().getMap(); } /** + * + * *
      * Map of items that were added/updated to/in the metadata.
      * 
@@ -580,16 +612,16 @@ public java.util.Map getItemsMap() { * map<string, string> items = 1; */ @java.lang.Override - - public java.lang.String getItemsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetItems().getMap(); + public java.lang.String getItemsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetItems().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Map of items that were added/updated to/in the metadata.
      * 
@@ -597,12 +629,11 @@ public java.lang.String getItemsOrDefault( * map<string, string> items = 1; */ @java.lang.Override - - public java.lang.String getItemsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetItems().getMap(); + public java.lang.String getItemsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetItems().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -610,69 +641,66 @@ public java.lang.String getItemsOrThrow( } public Builder clearItems() { - internalGetMutableItems().getMutableMap() - .clear(); + internalGetMutableItems().getMutableMap().clear(); return this; } /** + * + * *
      * Map of items that were added/updated to/in the metadata.
      * 
* * map<string, string> items = 1; */ - - public Builder removeItems( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableItems().getMutableMap() - .remove(key); + public Builder removeItems(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableItems().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableItems() { + public java.util.Map getMutableItems() { return internalGetMutableItems().getMutableMap(); } /** + * + * *
      * Map of items that were added/updated to/in the metadata.
      * 
* * map<string, string> items = 1; */ - public Builder putItems( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putItems(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableItems().getMutableMap() - .put(key, value); + internalGetMutableItems().getMutableMap().put(key, value); return this; } /** + * + * *
      * Map of items that were added/updated to/in the metadata.
      * 
* * map<string, string> items = 1; */ - - public Builder putAllItems( - java.util.Map values) { - internalGetMutableItems().getMutableMap() - .putAll(values); + public Builder putAllItems(java.util.Map values) { + internalGetMutableItems().getMutableMap().putAll(values); 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); } @@ -682,41 +710,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse) - private static final com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse(); } - public static com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse getDefaultInstance() { + public static com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateInstanceMetadataItemsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateInstanceMetadataItemsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -728,9 +758,8 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse getDefaultInstanceForType() { + public com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceMetadataItemsResponseOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceMetadataItemsResponseOrBuilder.java similarity index 52% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceMetadataItemsResponseOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceMetadataItemsResponseOrBuilder.java index 31b986ee41b9..047bbcb87392 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceMetadataItemsResponseOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceMetadataItemsResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface UpdateInstanceMetadataItemsResponseOrBuilder extends +public interface UpdateInstanceMetadataItemsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Map of items that were added/updated to/in the metadata.
    * 
@@ -16,30 +34,31 @@ public interface UpdateInstanceMetadataItemsResponseOrBuilder extends */ int getItemsCount(); /** + * + * *
    * Map of items that were added/updated to/in the metadata.
    * 
* * map<string, string> items = 1; */ - boolean containsItems( - java.lang.String key); - /** - * Use {@link #getItemsMap()} instead. - */ + boolean containsItems(java.lang.String key); + /** Use {@link #getItemsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getItems(); + java.util.Map getItems(); /** + * + * *
    * Map of items that were added/updated to/in the metadata.
    * 
* * map<string, string> items = 1; */ - java.util.Map - getItemsMap(); + java.util.Map getItemsMap(); /** + * + * *
    * Map of items that were added/updated to/in the metadata.
    * 
@@ -48,18 +67,18 @@ boolean containsItems( */ /* nullable */ -java.lang.String getItemsOrDefault( + java.lang.String getItemsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Map of items that were added/updated to/in the metadata.
    * 
* * map<string, string> items = 1; */ - - java.lang.String getItemsOrThrow( - java.lang.String key); + java.lang.String getItemsOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateRuntimeRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateRuntimeRequest.java similarity index 73% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateRuntimeRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateRuntimeRequest.java index 30f515588c2d..43340d36731c 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateRuntimeRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateRuntimeRequest.java @@ -1,61 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/managed_service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for updating a Managed Notebook configuration.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.UpdateRuntimeRequest} */ -public final class UpdateRuntimeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateRuntimeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.UpdateRuntimeRequest) UpdateRuntimeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateRuntimeRequest.newBuilder() to construct. private UpdateRuntimeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateRuntimeRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateRuntimeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_UpdateRuntimeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_UpdateRuntimeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_UpdateRuntimeRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_UpdateRuntimeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.UpdateRuntimeRequest.class, com.google.cloud.notebooks.v1.UpdateRuntimeRequest.Builder.class); + com.google.cloud.notebooks.v1.UpdateRuntimeRequest.class, + com.google.cloud.notebooks.v1.UpdateRuntimeRequest.Builder.class); } public static final int RUNTIME_FIELD_NUMBER = 1; private com.google.cloud.notebooks.v1.Runtime runtime_; /** + * + * *
    * Required. The Runtime to be updated.
    * 
* - * .google.cloud.notebooks.v1.Runtime runtime = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.notebooks.v1.Runtime runtime = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the runtime field is set. */ @java.lang.Override @@ -63,11 +86,15 @@ public boolean hasRuntime() { return runtime_ != null; } /** + * + * *
    * Required. The Runtime to be updated.
    * 
* - * .google.cloud.notebooks.v1.Runtime runtime = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.notebooks.v1.Runtime runtime = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The runtime. */ @java.lang.Override @@ -75,11 +102,14 @@ public com.google.cloud.notebooks.v1.Runtime getRuntime() { return runtime_ == null ? com.google.cloud.notebooks.v1.Runtime.getDefaultInstance() : runtime_; } /** + * + * *
    * Required. The Runtime to be updated.
    * 
* - * .google.cloud.notebooks.v1.Runtime runtime = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.notebooks.v1.Runtime runtime = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.notebooks.v1.RuntimeOrBuilder getRuntimeOrBuilder() { @@ -89,6 +119,8 @@ public com.google.cloud.notebooks.v1.RuntimeOrBuilder getRuntimeOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Required. Specifies the path, relative to `Runtime`, of
    * the field to update. For example, to change the software configuration
@@ -112,7 +144,9 @@ public com.google.cloud.notebooks.v1.RuntimeOrBuilder getRuntimeOrBuilder() {
    * - software_config.disable_terminal
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -120,6 +154,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Required. Specifies the path, relative to `Runtime`, of
    * the field to update. For example, to change the software configuration
@@ -143,7 +179,9 @@ public boolean hasUpdateMask() {
    * - software_config.disable_terminal
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ @java.lang.Override @@ -151,6 +189,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Required. Specifies the path, relative to `Runtime`, of
    * the field to update. For example, to change the software configuration
@@ -174,7 +214,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * - software_config.disable_terminal
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -184,11 +225,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 3; private volatile java.lang.Object requestId_; /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 3; + * * @return The requestId. */ @java.lang.Override @@ -197,29 +241,29 @@ public java.lang.String getRequestId() { 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(); requestId_ = s; return s; } } /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 3; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; 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); requestId_ = b; return b; } else { @@ -228,6 +272,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -239,8 +284,7 @@ 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 (runtime_ != null) { output.writeMessage(1, getRuntime()); } @@ -260,12 +304,10 @@ public int getSerializedSize() { size = 0; if (runtime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRuntime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRuntime()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -278,25 +320,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.cloud.notebooks.v1.UpdateRuntimeRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.UpdateRuntimeRequest other = (com.google.cloud.notebooks.v1.UpdateRuntimeRequest) obj; + com.google.cloud.notebooks.v1.UpdateRuntimeRequest other = + (com.google.cloud.notebooks.v1.UpdateRuntimeRequest) obj; if (hasRuntime() != other.hasRuntime()) return false; if (hasRuntime()) { - if (!getRuntime() - .equals(other.getRuntime())) return false; + if (!getRuntime().equals(other.getRuntime())) 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 (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -324,129 +364,135 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.UpdateRuntimeRequest 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.cloud.notebooks.v1.UpdateRuntimeRequest 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.cloud.notebooks.v1.UpdateRuntimeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.UpdateRuntimeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.UpdateRuntimeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.UpdateRuntimeRequest 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.cloud.notebooks.v1.UpdateRuntimeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.UpdateRuntimeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.UpdateRuntimeRequest 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.cloud.notebooks.v1.UpdateRuntimeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.UpdateRuntimeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.UpdateRuntimeRequest 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.cloud.notebooks.v1.UpdateRuntimeRequest 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.cloud.notebooks.v1.UpdateRuntimeRequest 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.cloud.notebooks.v1.UpdateRuntimeRequest 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; } /** + * + * *
    * Request for updating a Managed Notebook configuration.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.UpdateRuntimeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.UpdateRuntimeRequest) com.google.cloud.notebooks.v1.UpdateRuntimeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_UpdateRuntimeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_UpdateRuntimeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_UpdateRuntimeRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_UpdateRuntimeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.UpdateRuntimeRequest.class, com.google.cloud.notebooks.v1.UpdateRuntimeRequest.Builder.class); + com.google.cloud.notebooks.v1.UpdateRuntimeRequest.class, + com.google.cloud.notebooks.v1.UpdateRuntimeRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.UpdateRuntimeRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -468,9 +514,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_UpdateRuntimeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.ManagedNotebooksProto + .internal_static_google_cloud_notebooks_v1_UpdateRuntimeRequest_descriptor; } @java.lang.Override @@ -489,7 +535,8 @@ public com.google.cloud.notebooks.v1.UpdateRuntimeRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.UpdateRuntimeRequest buildPartial() { - com.google.cloud.notebooks.v1.UpdateRuntimeRequest result = new com.google.cloud.notebooks.v1.UpdateRuntimeRequest(this); + com.google.cloud.notebooks.v1.UpdateRuntimeRequest result = + new com.google.cloud.notebooks.v1.UpdateRuntimeRequest(this); if (runtimeBuilder_ == null) { result.runtime_ = runtime_; } else { @@ -509,38 +556,39 @@ public com.google.cloud.notebooks.v1.UpdateRuntimeRequest buildPartial() { 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.cloud.notebooks.v1.UpdateRuntimeRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.UpdateRuntimeRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.UpdateRuntimeRequest) other); } else { super.mergeFrom(other); return this; @@ -548,7 +596,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.UpdateRuntimeRequest other) { - if (other == com.google.cloud.notebooks.v1.UpdateRuntimeRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.UpdateRuntimeRequest.getDefaultInstance()) + return this; if (other.hasRuntime()) { mergeRuntime(other.getRuntime()); } @@ -585,31 +634,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getRuntimeFieldBuilder().getBuilder(), - extensionRegistry); + case 10: + { + input.readMessage(getRuntimeFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 18 - case 26: { - requestId_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -622,39 +671,58 @@ public Builder mergeFrom( private com.google.cloud.notebooks.v1.Runtime runtime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.Runtime, com.google.cloud.notebooks.v1.Runtime.Builder, com.google.cloud.notebooks.v1.RuntimeOrBuilder> runtimeBuilder_; + com.google.cloud.notebooks.v1.Runtime, + com.google.cloud.notebooks.v1.Runtime.Builder, + com.google.cloud.notebooks.v1.RuntimeOrBuilder> + runtimeBuilder_; /** + * + * *
      * Required. The Runtime to be updated.
      * 
* - * .google.cloud.notebooks.v1.Runtime runtime = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Runtime runtime = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the runtime field is set. */ public boolean hasRuntime() { return runtimeBuilder_ != null || runtime_ != null; } /** + * + * *
      * Required. The Runtime to be updated.
      * 
* - * .google.cloud.notebooks.v1.Runtime runtime = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Runtime runtime = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The runtime. */ public com.google.cloud.notebooks.v1.Runtime getRuntime() { if (runtimeBuilder_ == null) { - return runtime_ == null ? com.google.cloud.notebooks.v1.Runtime.getDefaultInstance() : runtime_; + return runtime_ == null + ? com.google.cloud.notebooks.v1.Runtime.getDefaultInstance() + : runtime_; } else { return runtimeBuilder_.getMessage(); } } /** + * + * *
      * Required. The Runtime to be updated.
      * 
* - * .google.cloud.notebooks.v1.Runtime runtime = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Runtime runtime = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRuntime(com.google.cloud.notebooks.v1.Runtime value) { if (runtimeBuilder_ == null) { @@ -670,14 +738,17 @@ public Builder setRuntime(com.google.cloud.notebooks.v1.Runtime value) { return this; } /** + * + * *
      * Required. The Runtime to be updated.
      * 
* - * .google.cloud.notebooks.v1.Runtime runtime = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Runtime runtime = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setRuntime( - com.google.cloud.notebooks.v1.Runtime.Builder builderForValue) { + public Builder setRuntime(com.google.cloud.notebooks.v1.Runtime.Builder builderForValue) { if (runtimeBuilder_ == null) { runtime_ = builderForValue.build(); onChanged(); @@ -688,17 +759,23 @@ public Builder setRuntime( return this; } /** + * + * *
      * Required. The Runtime to be updated.
      * 
* - * .google.cloud.notebooks.v1.Runtime runtime = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Runtime runtime = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeRuntime(com.google.cloud.notebooks.v1.Runtime value) { if (runtimeBuilder_ == null) { if (runtime_ != null) { runtime_ = - com.google.cloud.notebooks.v1.Runtime.newBuilder(runtime_).mergeFrom(value).buildPartial(); + com.google.cloud.notebooks.v1.Runtime.newBuilder(runtime_) + .mergeFrom(value) + .buildPartial(); } else { runtime_ = value; } @@ -710,11 +787,15 @@ public Builder mergeRuntime(com.google.cloud.notebooks.v1.Runtime value) { return this; } /** + * + * *
      * Required. The Runtime to be updated.
      * 
* - * .google.cloud.notebooks.v1.Runtime runtime = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Runtime runtime = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRuntime() { if (runtimeBuilder_ == null) { @@ -728,48 +809,64 @@ public Builder clearRuntime() { return this; } /** + * + * *
      * Required. The Runtime to be updated.
      * 
* - * .google.cloud.notebooks.v1.Runtime runtime = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Runtime runtime = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.notebooks.v1.Runtime.Builder getRuntimeBuilder() { - + onChanged(); return getRuntimeFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Runtime to be updated.
      * 
* - * .google.cloud.notebooks.v1.Runtime runtime = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Runtime runtime = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.notebooks.v1.RuntimeOrBuilder getRuntimeOrBuilder() { if (runtimeBuilder_ != null) { return runtimeBuilder_.getMessageOrBuilder(); } else { - return runtime_ == null ? - com.google.cloud.notebooks.v1.Runtime.getDefaultInstance() : runtime_; + return runtime_ == null + ? com.google.cloud.notebooks.v1.Runtime.getDefaultInstance() + : runtime_; } } /** + * + * *
      * Required. The Runtime to be updated.
      * 
* - * .google.cloud.notebooks.v1.Runtime runtime = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.Runtime runtime = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.Runtime, com.google.cloud.notebooks.v1.Runtime.Builder, com.google.cloud.notebooks.v1.RuntimeOrBuilder> + com.google.cloud.notebooks.v1.Runtime, + com.google.cloud.notebooks.v1.Runtime.Builder, + com.google.cloud.notebooks.v1.RuntimeOrBuilder> getRuntimeFieldBuilder() { if (runtimeBuilder_ == null) { - runtimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.Runtime, com.google.cloud.notebooks.v1.Runtime.Builder, com.google.cloud.notebooks.v1.RuntimeOrBuilder>( - getRuntime(), - getParentForChildren(), - isClean()); + runtimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.Runtime, + com.google.cloud.notebooks.v1.Runtime.Builder, + com.google.cloud.notebooks.v1.RuntimeOrBuilder>( + getRuntime(), getParentForChildren(), isClean()); runtime_ = null; } return runtimeBuilder_; @@ -777,8 +874,13 @@ public com.google.cloud.notebooks.v1.RuntimeOrBuilder getRuntimeOrBuilder() { 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_; /** + * + * *
      * Required. Specifies the path, relative to `Runtime`, of
      * the field to update. For example, to change the software configuration
@@ -802,13 +904,17 @@ public com.google.cloud.notebooks.v1.RuntimeOrBuilder getRuntimeOrBuilder() {
      * - software_config.disable_terminal
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Required. Specifies the path, relative to `Runtime`, of
      * the field to update. For example, to change the software configuration
@@ -832,17 +938,23 @@ public boolean hasUpdateMask() {
      * - software_config.disable_terminal
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @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(); } } /** + * + * *
      * Required. Specifies the path, relative to `Runtime`, of
      * the field to update. For example, to change the software configuration
@@ -866,7 +978,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * - software_config.disable_terminal
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -882,6 +995,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Specifies the path, relative to `Runtime`, of
      * the field to update. For example, to change the software configuration
@@ -905,10 +1020,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * - software_config.disable_terminal
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -919,6 +1034,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Required. Specifies the path, relative to `Runtime`, of
      * the field to update. For example, to change the software configuration
@@ -942,13 +1059,14 @@ public Builder setUpdateMask(
      * - software_config.disable_terminal
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -960,6 +1078,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Required. Specifies the path, relative to `Runtime`, of
      * the field to update. For example, to change the software configuration
@@ -983,7 +1103,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * - software_config.disable_terminal
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -997,6 +1118,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Required. Specifies the path, relative to `Runtime`, of
      * the field to update. For example, to change the software configuration
@@ -1020,14 +1143,17 @@ public Builder clearUpdateMask() {
      * - software_config.disable_terminal
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Specifies the path, relative to `Runtime`, of
      * the field to update. For example, to change the software configuration
@@ -1051,17 +1177,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * - software_config.disable_terminal
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ 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_; } } /** + * + * *
      * Required. Specifies the path, relative to `Runtime`, of
      * the field to update. For example, to change the software configuration
@@ -1085,17 +1215,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * - software_config.disable_terminal
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ 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_; @@ -1103,18 +1237,20 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 3; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; 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(); requestId_ = s; return s; @@ -1123,20 +1259,21 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 3; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; 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); requestId_ = b; return b; } else { @@ -1144,61 +1281,68 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 3; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 3; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 3; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1208,12 +1352,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.UpdateRuntimeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.UpdateRuntimeRequest) private static final com.google.cloud.notebooks.v1.UpdateRuntimeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.UpdateRuntimeRequest(); } @@ -1222,27 +1366,27 @@ public static com.google.cloud.notebooks.v1.UpdateRuntimeRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateRuntimeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateRuntimeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -1257,6 +1401,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.UpdateRuntimeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateRuntimeRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateRuntimeRequestOrBuilder.java similarity index 79% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateRuntimeRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateRuntimeRequestOrBuilder.java index b70372ca41d0..3f44e9ea5db0 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateRuntimeRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateRuntimeRequestOrBuilder.java @@ -1,40 +1,69 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/managed_service.proto package com.google.cloud.notebooks.v1; -public interface UpdateRuntimeRequestOrBuilder extends +public interface UpdateRuntimeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.UpdateRuntimeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Runtime to be updated.
    * 
* - * .google.cloud.notebooks.v1.Runtime runtime = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.notebooks.v1.Runtime runtime = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the runtime field is set. */ boolean hasRuntime(); /** + * + * *
    * Required. The Runtime to be updated.
    * 
* - * .google.cloud.notebooks.v1.Runtime runtime = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.notebooks.v1.Runtime runtime = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The runtime. */ com.google.cloud.notebooks.v1.Runtime getRuntime(); /** + * + * *
    * Required. The Runtime to be updated.
    * 
* - * .google.cloud.notebooks.v1.Runtime runtime = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.notebooks.v1.Runtime runtime = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.notebooks.v1.RuntimeOrBuilder getRuntimeOrBuilder(); /** + * + * *
    * Required. Specifies the path, relative to `Runtime`, of
    * the field to update. For example, to change the software configuration
@@ -58,11 +87,15 @@ public interface UpdateRuntimeRequestOrBuilder extends
    * - software_config.disable_terminal
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Required. Specifies the path, relative to `Runtime`, of
    * the field to update. For example, to change the software configuration
@@ -86,11 +119,15 @@ public interface UpdateRuntimeRequestOrBuilder extends
    * - software_config.disable_terminal
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Required. Specifies the path, relative to `Runtime`, of
    * the field to update. For example, to change the software configuration
@@ -114,27 +151,33 @@ public interface UpdateRuntimeRequestOrBuilder extends
    * - software_config.disable_terminal
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 3; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 3; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateShieldedInstanceConfigRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateShieldedInstanceConfigRequest.java similarity index 61% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateShieldedInstanceConfigRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateShieldedInstanceConfigRequest.java index ea271251dbce..8b4018be007d 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateShieldedInstanceConfigRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateShieldedInstanceConfigRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for updating the Shielded Instance config for a notebook instance.
  * You can only use this method on a stopped instance
@@ -11,53 +28,60 @@
  *
  * Protobuf type {@code google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest}
  */
-public final class UpdateShieldedInstanceConfigRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UpdateShieldedInstanceConfigRequest
+    extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest)
     UpdateShieldedInstanceConfigRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UpdateShieldedInstanceConfigRequest.newBuilder() to construct.
-  private UpdateShieldedInstanceConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+  private UpdateShieldedInstanceConfigRequest(
+      com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private UpdateShieldedInstanceConfigRequest() {
     name_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UpdateShieldedInstanceConfigRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_UpdateShieldedInstanceConfigRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.notebooks.v1.NotebooksProto
+        .internal_static_google_cloud_notebooks_v1_UpdateShieldedInstanceConfigRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_UpdateShieldedInstanceConfigRequest_fieldAccessorTable
+    return com.google.cloud.notebooks.v1.NotebooksProto
+        .internal_static_google_cloud_notebooks_v1_UpdateShieldedInstanceConfigRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest.class, com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest.Builder.class);
+            com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest.class,
+            com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -66,30 +90,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -100,11 +124,15 @@ public java.lang.String getName() { public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shieldedInstanceConfig_; /** + * + * *
    * ShieldedInstance configuration to be updated.
    * 
* - * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 2; + * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 2; + * + * * @return Whether the shieldedInstanceConfig field is set. */ @java.lang.Override @@ -112,30 +140,41 @@ public boolean hasShieldedInstanceConfig() { return shieldedInstanceConfig_ != null; } /** + * + * *
    * ShieldedInstance configuration to be updated.
    * 
* - * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 2; + * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 2; + * + * * @return The shieldedInstanceConfig. */ @java.lang.Override public com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig getShieldedInstanceConfig() { - return shieldedInstanceConfig_ == null ? com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null + ? com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } /** + * + * *
    * ShieldedInstance configuration to be updated.
    * 
* - * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 2; + * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 2; + * */ @java.lang.Override - public com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { + public com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { return getShieldedInstanceConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,8 +186,7 @@ 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_); } @@ -168,8 +206,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (shieldedInstanceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getShieldedInstanceConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getShieldedInstanceConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -179,19 +217,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.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest other = (com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest) obj; + com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest other = + (com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasShieldedInstanceConfig() != other.hasShieldedInstanceConfig()) return false; if (hasShieldedInstanceConfig()) { - if (!getShieldedInstanceConfig() - .equals(other.getShieldedInstanceConfig())) return false; + if (!getShieldedInstanceConfig().equals(other.getShieldedInstanceConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -216,96 +253,105 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest 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.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest 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.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest 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.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest 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.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest 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.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest 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.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest 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; } /** + * + * *
    * Request for updating the Shielded Instance config for a notebook instance.
    * You can only use this method on a stopped instance
@@ -313,33 +359,33 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest)
       com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_UpdateShieldedInstanceConfigRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.notebooks.v1.NotebooksProto
+          .internal_static_google_cloud_notebooks_v1_UpdateShieldedInstanceConfigRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_UpdateShieldedInstanceConfigRequest_fieldAccessorTable
+      return com.google.cloud.notebooks.v1.NotebooksProto
+          .internal_static_google_cloud_notebooks_v1_UpdateShieldedInstanceConfigRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest.class, com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest.Builder.class);
+              com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest.class,
+              com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest.Builder.class);
     }
 
-    // Construct using com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest.newBuilder()
-    private Builder() {
-
-    }
+    // Construct using
+    // com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest.newBuilder()
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -355,13 +401,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_UpdateShieldedInstanceConfigRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.notebooks.v1.NotebooksProto
+          .internal_static_google_cloud_notebooks_v1_UpdateShieldedInstanceConfigRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest getDefaultInstanceForType() {
+    public com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest
+        getDefaultInstanceForType() {
       return com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest.getDefaultInstance();
     }
 
@@ -376,7 +423,8 @@ public com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest build()
 
     @java.lang.Override
     public com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest buildPartial() {
-      com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest result = new com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest(this);
+      com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest result =
+          new com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest(this);
       result.name_ = name_;
       if (shieldedInstanceConfigBuilder_ == null) {
         result.shieldedInstanceConfig_ = shieldedInstanceConfig_;
@@ -391,46 +439,50 @@ public com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest buildPa
     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.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest) {
-        return mergeFrom((com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest)other);
+        return mergeFrom((com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest other) {
-      if (other == com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest other) {
+      if (other
+          == com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -464,24 +516,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getShieldedInstanceConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(
+                    getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry);
+
+                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) {
@@ -494,19 +548,21 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -515,21 +571,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -537,57 +594,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -595,41 +659,62 @@ public Builder setNameBytes( private com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shieldedInstanceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig, com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.Builder, com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfigOrBuilder> shieldedInstanceConfigBuilder_; + com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig, + com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.Builder, + com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfigOrBuilder> + shieldedInstanceConfigBuilder_; /** + * + * *
      * ShieldedInstance configuration to be updated.
      * 
* - * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 2; + * + * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 2; + * + * * @return Whether the shieldedInstanceConfig field is set. */ public boolean hasShieldedInstanceConfig() { return shieldedInstanceConfigBuilder_ != null || shieldedInstanceConfig_ != null; } /** + * + * *
      * ShieldedInstance configuration to be updated.
      * 
* - * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 2; + * + * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 2; + * + * * @return The shieldedInstanceConfig. */ - public com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig getShieldedInstanceConfig() { + public com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig + getShieldedInstanceConfig() { if (shieldedInstanceConfigBuilder_ == null) { - return shieldedInstanceConfig_ == null ? com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null + ? com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } else { return shieldedInstanceConfigBuilder_.getMessage(); } } /** + * + * *
      * ShieldedInstance configuration to be updated.
      * 
* - * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 2; + * + * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 2; + * */ - public Builder setShieldedInstanceConfig(com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig value) { + public Builder setShieldedInstanceConfig( + com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig value) { if (shieldedInstanceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -643,11 +728,15 @@ public Builder setShieldedInstanceConfig(com.google.cloud.notebooks.v1.Instance. return this; } /** + * + * *
      * ShieldedInstance configuration to be updated.
      * 
* - * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 2; + * + * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 2; + * */ public Builder setShieldedInstanceConfig( com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.Builder builderForValue) { @@ -661,17 +750,25 @@ public Builder setShieldedInstanceConfig( return this; } /** + * + * *
      * ShieldedInstance configuration to be updated.
      * 
* - * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 2; + * + * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 2; + * */ - public Builder mergeShieldedInstanceConfig(com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig value) { + public Builder mergeShieldedInstanceConfig( + com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig value) { if (shieldedInstanceConfigBuilder_ == null) { if (shieldedInstanceConfig_ != null) { shieldedInstanceConfig_ = - com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.newBuilder(shieldedInstanceConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.newBuilder( + shieldedInstanceConfig_) + .mergeFrom(value) + .buildPartial(); } else { shieldedInstanceConfig_ = value; } @@ -683,11 +780,15 @@ public Builder mergeShieldedInstanceConfig(com.google.cloud.notebooks.v1.Instanc return this; } /** + * + * *
      * ShieldedInstance configuration to be updated.
      * 
* - * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 2; + * + * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 2; + * */ public Builder clearShieldedInstanceConfig() { if (shieldedInstanceConfigBuilder_ == null) { @@ -701,55 +802,73 @@ public Builder clearShieldedInstanceConfig() { return this; } /** + * + * *
      * ShieldedInstance configuration to be updated.
      * 
* - * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 2; + * + * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 2; + * */ - public com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder() { - + public com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.Builder + getShieldedInstanceConfigBuilder() { + onChanged(); return getShieldedInstanceConfigFieldBuilder().getBuilder(); } /** + * + * *
      * ShieldedInstance configuration to be updated.
      * 
* - * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 2; + * + * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 2; + * */ - public com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { + public com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { if (shieldedInstanceConfigBuilder_ != null) { return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); } else { - return shieldedInstanceConfig_ == null ? - com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null + ? com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } } /** + * + * *
      * ShieldedInstance configuration to be updated.
      * 
* - * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 2; + * + * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig, com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.Builder, com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfigOrBuilder> + com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig, + com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.Builder, + com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfigOrBuilder> getShieldedInstanceConfigFieldBuilder() { if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig, com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.Builder, com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfigOrBuilder>( - getShieldedInstanceConfig(), - getParentForChildren(), - isClean()); + shieldedInstanceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig, + com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig.Builder, + com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfigOrBuilder>( + getShieldedInstanceConfig(), getParentForChildren(), isClean()); shieldedInstanceConfig_ = null; } return shieldedInstanceConfigBuilder_; } + @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,41 +878,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest) - private static final com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest DEFAULT_INSTANCE; + private static final com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest(); } - public static com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest getDefaultInstance() { + public static com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateShieldedInstanceConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateShieldedInstanceConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -805,9 +926,8 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest getDefaultInstanceForType() { + public com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateShieldedInstanceConfigRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateShieldedInstanceConfigRequestOrBuilder.java similarity index 61% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateShieldedInstanceConfigRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateShieldedInstanceConfigRequestOrBuilder.java index 7fd2e403ddb3..9fc7cebe3cfe 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateShieldedInstanceConfigRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateShieldedInstanceConfigRequestOrBuilder.java @@ -1,58 +1,91 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface UpdateShieldedInstanceConfigRequestOrBuilder extends +public interface UpdateShieldedInstanceConfigRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * ShieldedInstance configuration to be updated.
    * 
* - * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 2; + * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 2; + * + * * @return Whether the shieldedInstanceConfig field is set. */ boolean hasShieldedInstanceConfig(); /** + * + * *
    * ShieldedInstance configuration to be updated.
    * 
* - * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 2; + * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 2; + * + * * @return The shieldedInstanceConfig. */ com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig getShieldedInstanceConfig(); /** + * + * *
    * ShieldedInstance configuration to be updated.
    * 
* - * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 2; + * .google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig shielded_instance_config = 2; + * */ - com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder(); + com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceInternalRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceInternalRequest.java similarity index 67% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceInternalRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceInternalRequest.java index e18d03151029..3ff7a5328dd1 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceInternalRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceInternalRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for upgrading a notebook instance from within the VM
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.UpgradeInstanceInternalRequest} */ -public final class UpgradeInstanceInternalRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpgradeInstanceInternalRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.UpgradeInstanceInternalRequest) UpgradeInstanceInternalRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpgradeInstanceInternalRequest.newBuilder() to construct. - private UpgradeInstanceInternalRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpgradeInstanceInternalRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpgradeInstanceInternalRequest() { name_ = ""; vmId_ = ""; @@ -27,38 +46,42 @@ private UpgradeInstanceInternalRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpgradeInstanceInternalRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_UpgradeInstanceInternalRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_UpgradeInstanceInternalRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_UpgradeInstanceInternalRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_UpgradeInstanceInternalRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest.class, com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest.Builder.class); + com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest.class, + com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -67,30 +90,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -101,12 +124,15 @@ public java.lang.String getName() { public static final int VM_ID_FIELD_NUMBER = 2; private volatile java.lang.Object vmId_; /** + * + * *
    * Required. The VM hardware token for authenticating the VM.
    * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
    * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vmId. */ @java.lang.Override @@ -115,30 +141,30 @@ public java.lang.String getVmId() { 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(); vmId_ = s; return s; } } /** + * + * *
    * Required. The VM hardware token for authenticating the VM.
    * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
    * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vmId. */ @java.lang.Override - public com.google.protobuf.ByteString - getVmIdBytes() { + public com.google.protobuf.ByteString getVmIdBytes() { java.lang.Object ref = vmId_; 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); vmId_ = b; return b; } else { @@ -149,33 +175,47 @@ public java.lang.String getVmId() { public static final int TYPE_FIELD_NUMBER = 3; private int type_; /** + * + * *
    * Optional. The optional UpgradeType. Setting this field will search for additional
    * compute images to upgrade this instance.
    * 
* - * .google.cloud.notebooks.v1.UpgradeType type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.UpgradeType type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * Optional. The optional UpgradeType. Setting this field will search for additional
    * compute images to upgrade this instance.
    * 
* - * .google.cloud.notebooks.v1.UpgradeType type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.UpgradeType type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The type. */ - @java.lang.Override public com.google.cloud.notebooks.v1.UpgradeType getType() { + @java.lang.Override + public com.google.cloud.notebooks.v1.UpgradeType getType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.UpgradeType result = com.google.cloud.notebooks.v1.UpgradeType.valueOf(type_); + com.google.cloud.notebooks.v1.UpgradeType result = + com.google.cloud.notebooks.v1.UpgradeType.valueOf(type_); return result == null ? com.google.cloud.notebooks.v1.UpgradeType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,8 +227,7 @@ 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_); } @@ -214,8 +253,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vmId_); } if (type_ != com.google.cloud.notebooks.v1.UpgradeType.UPGRADE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, type_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, type_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -225,17 +263,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.cloud.notebooks.v1.UpgradeInstanceInternalRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest other = (com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest) obj; + com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest other = + (com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getVmId() - .equals(other.getVmId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getVmId().equals(other.getVmId())) return false; if (type_ != other.type_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -260,129 +297,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest 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.cloud.notebooks.v1.UpgradeInstanceInternalRequest 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.cloud.notebooks.v1.UpgradeInstanceInternalRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest 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.cloud.notebooks.v1.UpgradeInstanceInternalRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest 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.cloud.notebooks.v1.UpgradeInstanceInternalRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest 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.cloud.notebooks.v1.UpgradeInstanceInternalRequest 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.cloud.notebooks.v1.UpgradeInstanceInternalRequest 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.cloud.notebooks.v1.UpgradeInstanceInternalRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest 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; } /** + * + * *
    * Request for upgrading a notebook instance from within the VM
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.UpgradeInstanceInternalRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.UpgradeInstanceInternalRequest) com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_UpgradeInstanceInternalRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_UpgradeInstanceInternalRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_UpgradeInstanceInternalRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_UpgradeInstanceInternalRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest.class, com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest.Builder.class); + com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest.class, + com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -396,13 +440,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_UpgradeInstanceInternalRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_UpgradeInstanceInternalRequest_descriptor; } @java.lang.Override - public com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest getDefaultInstanceForType() { + public com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest + getDefaultInstanceForType() { return com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest.getDefaultInstance(); } @@ -417,7 +462,8 @@ public com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest buildPartial() { - com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest result = new com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest(this); + com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest result = + new com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest(this); result.name_ = name_; result.vmId_ = vmId_; result.type_ = type_; @@ -429,38 +475,39 @@ public com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest buildPartial 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.cloud.notebooks.v1.UpgradeInstanceInternalRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest) other); } else { super.mergeFrom(other); return this; @@ -468,7 +515,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest other) { - if (other == com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -506,27 +555,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - vmId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: { - type_ = input.readEnum(); - - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + vmId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + type_ = input.readEnum(); + + 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) { @@ -539,19 +592,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -560,21 +615,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -582,57 +638,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -640,19 +703,21 @@ public Builder setNameBytes( private java.lang.Object vmId_ = ""; /** + * + * *
      * Required. The VM hardware token for authenticating the VM.
      * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
      * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vmId. */ public java.lang.String getVmId() { java.lang.Object ref = vmId_; 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(); vmId_ = s; return s; @@ -661,21 +726,22 @@ public java.lang.String getVmId() { } } /** + * + * *
      * Required. The VM hardware token for authenticating the VM.
      * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
      * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vmId. */ - public com.google.protobuf.ByteString - getVmIdBytes() { + public com.google.protobuf.ByteString getVmIdBytes() { java.lang.Object ref = vmId_; 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); vmId_ = b; return b; } else { @@ -683,57 +749,64 @@ public java.lang.String getVmId() { } } /** + * + * *
      * Required. The VM hardware token for authenticating the VM.
      * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
      * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The vmId to set. * @return This builder for chaining. */ - public Builder setVmId( - java.lang.String value) { + public Builder setVmId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vmId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The VM hardware token for authenticating the VM.
      * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
      * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearVmId() { - + vmId_ = getDefaultInstance().getVmId(); onChanged(); return this; } /** + * + * *
      * Required. The VM hardware token for authenticating the VM.
      * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
      * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for vmId to set. * @return This builder for chaining. */ - public Builder setVmIdBytes( - com.google.protobuf.ByteString value) { + public Builder setVmIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vmId_ = value; onChanged(); return this; @@ -741,55 +814,77 @@ public Builder setVmIdBytes( private int type_ = 0; /** + * + * *
      * Optional. The optional UpgradeType. Setting this field will search for additional
      * compute images to upgrade this instance.
      * 
* - * .google.cloud.notebooks.v1.UpgradeType type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.UpgradeType type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Optional. The optional UpgradeType. Setting this field will search for additional
      * compute images to upgrade this instance.
      * 
* - * .google.cloud.notebooks.v1.UpgradeType type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.UpgradeType type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The optional UpgradeType. Setting this field will search for additional
      * compute images to upgrade this instance.
      * 
* - * .google.cloud.notebooks.v1.UpgradeType type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.UpgradeType type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The type. */ @java.lang.Override public com.google.cloud.notebooks.v1.UpgradeType getType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.UpgradeType result = com.google.cloud.notebooks.v1.UpgradeType.valueOf(type_); + com.google.cloud.notebooks.v1.UpgradeType result = + com.google.cloud.notebooks.v1.UpgradeType.valueOf(type_); return result == null ? com.google.cloud.notebooks.v1.UpgradeType.UNRECOGNIZED : result; } /** + * + * *
      * Optional. The optional UpgradeType. Setting this field will search for additional
      * compute images to upgrade this instance.
      * 
* - * .google.cloud.notebooks.v1.UpgradeType type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.UpgradeType type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The type to set. * @return This builder for chaining. */ @@ -797,29 +892,34 @@ public Builder setType(com.google.cloud.notebooks.v1.UpgradeType value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. The optional UpgradeType. Setting this field will search for additional
      * compute images to upgrade this instance.
      * 
* - * .google.cloud.notebooks.v1.UpgradeType type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.UpgradeType type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; 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); } @@ -829,12 +929,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.UpgradeInstanceInternalRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.UpgradeInstanceInternalRequest) - private static final com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest DEFAULT_INSTANCE; + private static final com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest(); } @@ -843,27 +944,27 @@ public static com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpgradeInstanceInternalRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpgradeInstanceInternalRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -878,6 +979,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceInternalRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceInternalRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceInternalRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceInternalRequestOrBuilder.java index c831aa7c8ea9..32fef7eaf219 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceInternalRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceInternalRequestOrBuilder.java @@ -1,73 +1,109 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface UpgradeInstanceInternalRequestOrBuilder extends +public interface UpgradeInstanceInternalRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.UpgradeInstanceInternalRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The VM hardware token for authenticating the VM.
    * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
    * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vmId. */ java.lang.String getVmId(); /** + * + * *
    * Required. The VM hardware token for authenticating the VM.
    * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
    * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vmId. */ - com.google.protobuf.ByteString - getVmIdBytes(); + com.google.protobuf.ByteString getVmIdBytes(); /** + * + * *
    * Optional. The optional UpgradeType. Setting this field will search for additional
    * compute images to upgrade this instance.
    * 
* - * .google.cloud.notebooks.v1.UpgradeType type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.UpgradeType type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * Optional. The optional UpgradeType. Setting this field will search for additional
    * compute images to upgrade this instance.
    * 
* - * .google.cloud.notebooks.v1.UpgradeType type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.UpgradeType type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The type. */ com.google.cloud.notebooks.v1.UpgradeType getType(); diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceRequest.java similarity index 66% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceRequest.java index bd08fb182a8f..1b3cedad3913 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for upgrading a notebook instance
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.UpgradeInstanceRequest} */ -public final class UpgradeInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpgradeInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.UpgradeInstanceRequest) UpgradeInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpgradeInstanceRequest.newBuilder() to construct. private UpgradeInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpgradeInstanceRequest() { name_ = ""; type_ = 0; @@ -26,38 +44,42 @@ private UpgradeInstanceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpgradeInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_UpgradeInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_UpgradeInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_UpgradeInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_UpgradeInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.UpgradeInstanceRequest.class, com.google.cloud.notebooks.v1.UpgradeInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1.UpgradeInstanceRequest.class, + com.google.cloud.notebooks.v1.UpgradeInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -66,30 +88,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -100,33 +122,47 @@ public java.lang.String getName() { public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** + * + * *
    * Optional. The optional UpgradeType. Setting this field will search for additional
    * compute images to upgrade this instance.
    * 
* - * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * Optional. The optional UpgradeType. Setting this field will search for additional
    * compute images to upgrade this instance.
    * 
* - * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The type. */ - @java.lang.Override public com.google.cloud.notebooks.v1.UpgradeType getType() { + @java.lang.Override + public com.google.cloud.notebooks.v1.UpgradeType getType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.UpgradeType result = com.google.cloud.notebooks.v1.UpgradeType.valueOf(type_); + com.google.cloud.notebooks.v1.UpgradeType result = + com.google.cloud.notebooks.v1.UpgradeType.valueOf(type_); return result == null ? com.google.cloud.notebooks.v1.UpgradeType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,8 +174,7 @@ 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_); } @@ -159,8 +194,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (type_ != com.google.cloud.notebooks.v1.UpgradeType.UPGRADE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -170,15 +204,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.cloud.notebooks.v1.UpgradeInstanceRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.UpgradeInstanceRequest other = (com.google.cloud.notebooks.v1.UpgradeInstanceRequest) obj; + com.google.cloud.notebooks.v1.UpgradeInstanceRequest other = + (com.google.cloud.notebooks.v1.UpgradeInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (type_ != other.type_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -201,129 +235,135 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.UpgradeInstanceRequest 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.cloud.notebooks.v1.UpgradeInstanceRequest 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.cloud.notebooks.v1.UpgradeInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.UpgradeInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.UpgradeInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.UpgradeInstanceRequest 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.cloud.notebooks.v1.UpgradeInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.UpgradeInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.UpgradeInstanceRequest 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.cloud.notebooks.v1.UpgradeInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.UpgradeInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.UpgradeInstanceRequest 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.cloud.notebooks.v1.UpgradeInstanceRequest 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.cloud.notebooks.v1.UpgradeInstanceRequest 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.cloud.notebooks.v1.UpgradeInstanceRequest 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; } /** + * + * *
    * Request for upgrading a notebook instance
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.UpgradeInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.UpgradeInstanceRequest) com.google.cloud.notebooks.v1.UpgradeInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_UpgradeInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_UpgradeInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_UpgradeInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_UpgradeInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.UpgradeInstanceRequest.class, com.google.cloud.notebooks.v1.UpgradeInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1.UpgradeInstanceRequest.class, + com.google.cloud.notebooks.v1.UpgradeInstanceRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1.UpgradeInstanceRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -335,9 +375,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.NotebooksProto.internal_static_google_cloud_notebooks_v1_UpgradeInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.NotebooksProto + .internal_static_google_cloud_notebooks_v1_UpgradeInstanceRequest_descriptor; } @java.lang.Override @@ -356,7 +396,8 @@ public com.google.cloud.notebooks.v1.UpgradeInstanceRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1.UpgradeInstanceRequest buildPartial() { - com.google.cloud.notebooks.v1.UpgradeInstanceRequest result = new com.google.cloud.notebooks.v1.UpgradeInstanceRequest(this); + com.google.cloud.notebooks.v1.UpgradeInstanceRequest result = + new com.google.cloud.notebooks.v1.UpgradeInstanceRequest(this); result.name_ = name_; result.type_ = type_; onBuilt(); @@ -367,38 +408,39 @@ public com.google.cloud.notebooks.v1.UpgradeInstanceRequest buildPartial() { 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.cloud.notebooks.v1.UpgradeInstanceRequest) { - return mergeFrom((com.google.cloud.notebooks.v1.UpgradeInstanceRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1.UpgradeInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -406,7 +448,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.UpgradeInstanceRequest other) { - if (other == com.google.cloud.notebooks.v1.UpgradeInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.UpgradeInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -440,22 +483,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - type_ = input.readEnum(); - - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + + 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) { @@ -468,19 +514,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -489,21 +537,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -511,57 +560,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -569,55 +625,77 @@ public Builder setNameBytes( private int type_ = 0; /** + * + * *
      * Optional. The optional UpgradeType. Setting this field will search for additional
      * compute images to upgrade this instance.
      * 
* - * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Optional. The optional UpgradeType. Setting this field will search for additional
      * compute images to upgrade this instance.
      * 
* - * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The optional UpgradeType. Setting this field will search for additional
      * compute images to upgrade this instance.
      * 
* - * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The type. */ @java.lang.Override public com.google.cloud.notebooks.v1.UpgradeType getType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.UpgradeType result = com.google.cloud.notebooks.v1.UpgradeType.valueOf(type_); + com.google.cloud.notebooks.v1.UpgradeType result = + com.google.cloud.notebooks.v1.UpgradeType.valueOf(type_); return result == null ? com.google.cloud.notebooks.v1.UpgradeType.UNRECOGNIZED : result; } /** + * + * *
      * Optional. The optional UpgradeType. Setting this field will search for additional
      * compute images to upgrade this instance.
      * 
* - * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The type to set. * @return This builder for chaining. */ @@ -625,29 +703,34 @@ public Builder setType(com.google.cloud.notebooks.v1.UpgradeType value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. The optional UpgradeType. Setting this field will search for additional
      * compute images to upgrade this instance.
      * 
* - * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; 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); } @@ -657,12 +740,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.UpgradeInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.UpgradeInstanceRequest) private static final com.google.cloud.notebooks.v1.UpgradeInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.UpgradeInstanceRequest(); } @@ -671,27 +754,27 @@ public static com.google.cloud.notebooks.v1.UpgradeInstanceRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpgradeInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpgradeInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -706,6 +789,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.UpgradeInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceRequestOrBuilder.java index 2357318afb51..e0eba3068315 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceRequestOrBuilder.java @@ -1,51 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; -public interface UpgradeInstanceRequestOrBuilder extends +public interface UpgradeInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.UpgradeInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. The optional UpgradeType. Setting this field will search for additional
    * compute images to upgrade this instance.
    * 
* - * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * Optional. The optional UpgradeType. Setting this field will search for additional
    * compute images to upgrade this instance.
    * 
* - * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.UpgradeType type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The type. */ com.google.cloud.notebooks.v1.UpgradeType getType(); diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeRuntimeRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeRuntimeRequest.java similarity index 68% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeRuntimeRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeRuntimeRequest.java index 2b754acc6c3c..73418778dfb1 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeRuntimeRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeRuntimeRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/managed_service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Request for upgrading a Managed Notebook Runtime to the latest version.
  * option (google.api.message_visibility).restriction =
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.notebooks.v1.UpgradeRuntimeRequest}
  */
-public final class UpgradeRuntimeRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class UpgradeRuntimeRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.UpgradeRuntimeRequest)
     UpgradeRuntimeRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use UpgradeRuntimeRequest.newBuilder() to construct.
   private UpgradeRuntimeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private UpgradeRuntimeRequest() {
     name_ = "";
     requestId_ = "";
@@ -28,38 +46,42 @@ private UpgradeRuntimeRequest() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new UpgradeRuntimeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_UpgradeRuntimeRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.notebooks.v1.ManagedNotebooksProto
+        .internal_static_google_cloud_notebooks_v1_UpgradeRuntimeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_UpgradeRuntimeRequest_fieldAccessorTable
+    return com.google.cloud.notebooks.v1.ManagedNotebooksProto
+        .internal_static_google_cloud_notebooks_v1_UpgradeRuntimeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.notebooks.v1.UpgradeRuntimeRequest.class, com.google.cloud.notebooks.v1.UpgradeRuntimeRequest.Builder.class);
+            com.google.cloud.notebooks.v1.UpgradeRuntimeRequest.class,
+            com.google.cloud.notebooks.v1.UpgradeRuntimeRequest.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -68,30 +90,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -102,11 +124,14 @@ public java.lang.String getName() { public static final int REQUEST_ID_FIELD_NUMBER = 2; private volatile java.lang.Object requestId_; /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 2; + * * @return The requestId. */ @java.lang.Override @@ -115,29 +140,29 @@ public java.lang.String getRequestId() { 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(); requestId_ = s; return s; } } /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 2; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; 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); requestId_ = b; return b; } else { @@ -146,6 +171,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -157,8 +183,7 @@ 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_); } @@ -188,17 +213,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.cloud.notebooks.v1.UpgradeRuntimeRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.UpgradeRuntimeRequest other = (com.google.cloud.notebooks.v1.UpgradeRuntimeRequest) obj; + com.google.cloud.notebooks.v1.UpgradeRuntimeRequest other = + (com.google.cloud.notebooks.v1.UpgradeRuntimeRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -220,96 +244,103 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.UpgradeRuntimeRequest 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.cloud.notebooks.v1.UpgradeRuntimeRequest 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.cloud.notebooks.v1.UpgradeRuntimeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.UpgradeRuntimeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.UpgradeRuntimeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.UpgradeRuntimeRequest 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.cloud.notebooks.v1.UpgradeRuntimeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.UpgradeRuntimeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.UpgradeRuntimeRequest 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.cloud.notebooks.v1.UpgradeRuntimeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.UpgradeRuntimeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.UpgradeRuntimeRequest 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.cloud.notebooks.v1.UpgradeRuntimeRequest 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.cloud.notebooks.v1.UpgradeRuntimeRequest 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.cloud.notebooks.v1.UpgradeRuntimeRequest 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; } /** + * + * *
    * Request for upgrading a Managed Notebook Runtime to the latest version.
    * option (google.api.message_visibility).restriction =
@@ -318,33 +349,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.notebooks.v1.UpgradeRuntimeRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.UpgradeRuntimeRequest)
       com.google.cloud.notebooks.v1.UpgradeRuntimeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_UpgradeRuntimeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.notebooks.v1.ManagedNotebooksProto
+          .internal_static_google_cloud_notebooks_v1_UpgradeRuntimeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_UpgradeRuntimeRequest_fieldAccessorTable
+      return com.google.cloud.notebooks.v1.ManagedNotebooksProto
+          .internal_static_google_cloud_notebooks_v1_UpgradeRuntimeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.notebooks.v1.UpgradeRuntimeRequest.class, com.google.cloud.notebooks.v1.UpgradeRuntimeRequest.Builder.class);
+              com.google.cloud.notebooks.v1.UpgradeRuntimeRequest.class,
+              com.google.cloud.notebooks.v1.UpgradeRuntimeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.notebooks.v1.UpgradeRuntimeRequest.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -356,9 +386,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.notebooks.v1.ManagedNotebooksProto.internal_static_google_cloud_notebooks_v1_UpgradeRuntimeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.notebooks.v1.ManagedNotebooksProto
+          .internal_static_google_cloud_notebooks_v1_UpgradeRuntimeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -377,7 +407,8 @@ public com.google.cloud.notebooks.v1.UpgradeRuntimeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.notebooks.v1.UpgradeRuntimeRequest buildPartial() {
-      com.google.cloud.notebooks.v1.UpgradeRuntimeRequest result = new com.google.cloud.notebooks.v1.UpgradeRuntimeRequest(this);
+      com.google.cloud.notebooks.v1.UpgradeRuntimeRequest result =
+          new com.google.cloud.notebooks.v1.UpgradeRuntimeRequest(this);
       result.name_ = name_;
       result.requestId_ = requestId_;
       onBuilt();
@@ -388,38 +419,39 @@ public com.google.cloud.notebooks.v1.UpgradeRuntimeRequest buildPartial() {
     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.cloud.notebooks.v1.UpgradeRuntimeRequest) {
-        return mergeFrom((com.google.cloud.notebooks.v1.UpgradeRuntimeRequest)other);
+        return mergeFrom((com.google.cloud.notebooks.v1.UpgradeRuntimeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -427,7 +459,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.notebooks.v1.UpgradeRuntimeRequest other) {
-      if (other == com.google.cloud.notebooks.v1.UpgradeRuntimeRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.notebooks.v1.UpgradeRuntimeRequest.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -462,22 +495,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            case 18: {
-              requestId_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            case 18:
+              {
+                requestId_ = input.readStringRequireUtf8();
+
+                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) {
@@ -490,19 +526,21 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -511,21 +549,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -533,57 +572,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -591,18 +637,20 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 2; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; 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(); requestId_ = s; return s; @@ -611,20 +659,21 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 2; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; 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); requestId_ = b; return b; } else { @@ -632,61 +681,68 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 2; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; onChanged(); return this; } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 2; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** + * + * *
      * Idempotent request UUID.
      * 
* * string request_id = 2; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -696,12 +752,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.UpgradeRuntimeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.UpgradeRuntimeRequest) private static final com.google.cloud.notebooks.v1.UpgradeRuntimeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.UpgradeRuntimeRequest(); } @@ -710,27 +766,27 @@ public static com.google.cloud.notebooks.v1.UpgradeRuntimeRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpgradeRuntimeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpgradeRuntimeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -745,6 +801,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.UpgradeRuntimeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeRuntimeRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeRuntimeRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeRuntimeRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeRuntimeRequestOrBuilder.java index 25d4feafac9e..cdafa6c85c03 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeRuntimeRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeRuntimeRequestOrBuilder.java @@ -1,51 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/managed_service.proto package com.google.cloud.notebooks.v1; -public interface UpgradeRuntimeRequestOrBuilder extends +public interface UpgradeRuntimeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.UpgradeRuntimeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 2; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Idempotent request UUID.
    * 
* * string request_id = 2; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeType.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeType.java similarity index 68% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeType.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeType.java index e175dbf330b9..558fe9181314 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeType.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeType.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/service.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Definition of the types of upgrade that can be used on this
  * instance.
@@ -11,9 +28,10 @@
  *
  * Protobuf enum {@code google.cloud.notebooks.v1.UpgradeType}
  */
-public enum UpgradeType
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum UpgradeType implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * Upgrade type is not specified.
    * 
@@ -22,6 +40,8 @@ public enum UpgradeType */ UPGRADE_TYPE_UNSPECIFIED(0), /** + * + * *
    * Upgrade ML framework.
    * 
@@ -30,6 +50,8 @@ public enum UpgradeType */ UPGRADE_FRAMEWORK(1), /** + * + * *
    * Upgrade Operating System.
    * 
@@ -38,6 +60,8 @@ public enum UpgradeType */ UPGRADE_OS(2), /** + * + * *
    * Upgrade CUDA.
    * 
@@ -46,6 +70,8 @@ public enum UpgradeType */ UPGRADE_CUDA(3), /** + * + * *
    * Upgrade All (OS, Framework and CUDA).
    * 
@@ -57,6 +83,8 @@ public enum UpgradeType ; /** + * + * *
    * Upgrade type is not specified.
    * 
@@ -65,6 +93,8 @@ public enum UpgradeType */ public static final int UPGRADE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Upgrade ML framework.
    * 
@@ -73,6 +103,8 @@ public enum UpgradeType */ public static final int UPGRADE_FRAMEWORK_VALUE = 1; /** + * + * *
    * Upgrade Operating System.
    * 
@@ -81,6 +113,8 @@ public enum UpgradeType */ public static final int UPGRADE_OS_VALUE = 2; /** + * + * *
    * Upgrade CUDA.
    * 
@@ -89,6 +123,8 @@ public enum UpgradeType */ public static final int UPGRADE_CUDA_VALUE = 3; /** + * + * *
    * Upgrade All (OS, Framework and CUDA).
    * 
@@ -97,7 +133,6 @@ public enum UpgradeType */ public static final int UPGRADE_ALL_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -122,51 +157,53 @@ public static UpgradeType valueOf(int value) { */ public static UpgradeType forNumber(int value) { switch (value) { - case 0: return UPGRADE_TYPE_UNSPECIFIED; - case 1: return UPGRADE_FRAMEWORK; - case 2: return UPGRADE_OS; - case 3: return UPGRADE_CUDA; - case 4: return UPGRADE_ALL; - default: return null; + case 0: + return UPGRADE_TYPE_UNSPECIFIED; + case 1: + return UPGRADE_FRAMEWORK; + case 2: + return UPGRADE_OS; + case 3: + return UPGRADE_CUDA; + case 4: + return UPGRADE_ALL; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - UpgradeType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public UpgradeType findValueByNumber(int number) { - return UpgradeType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public UpgradeType findValueByNumber(int number) { + return UpgradeType.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.cloud.notebooks.v1.NotebooksProto.getDescriptor().getEnumTypes().get(0); } private static final UpgradeType[] VALUES = values(); - public static UpgradeType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static UpgradeType 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; @@ -182,4 +219,3 @@ private UpgradeType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.notebooks.v1.UpgradeType) } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachine.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachine.java similarity index 69% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachine.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachine.java index c3fca0c80315..3c713b94af83 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachine.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachine.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/runtime.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Runtime using Virtual Machine for computing.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.VirtualMachine} */ -public final class VirtualMachine extends - com.google.protobuf.GeneratedMessageV3 implements +public final class VirtualMachine extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.VirtualMachine) VirtualMachineOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VirtualMachine.newBuilder() to construct. private VirtualMachine(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private VirtualMachine() { instanceName_ = ""; instanceId_ = ""; @@ -26,37 +44,41 @@ private VirtualMachine() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VirtualMachine(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_VirtualMachine_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_VirtualMachine_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_VirtualMachine_fieldAccessorTable + return com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_VirtualMachine_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.VirtualMachine.class, com.google.cloud.notebooks.v1.VirtualMachine.Builder.class); + com.google.cloud.notebooks.v1.VirtualMachine.class, + com.google.cloud.notebooks.v1.VirtualMachine.Builder.class); } public static final int INSTANCE_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object instanceName_; /** + * + * *
    * Output only. The user-friendly name of the Managed Compute Engine instance.
    * 
* * string instance_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The instanceName. */ @java.lang.Override @@ -65,29 +87,29 @@ public java.lang.String getInstanceName() { 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(); instanceName_ = s; return s; } } /** + * + * *
    * Output only. The user-friendly name of the Managed Compute Engine instance.
    * 
* * string instance_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for instanceName. */ @java.lang.Override - public com.google.protobuf.ByteString - getInstanceNameBytes() { + public com.google.protobuf.ByteString getInstanceNameBytes() { java.lang.Object ref = instanceName_; 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); instanceName_ = b; return b; } else { @@ -98,11 +120,14 @@ public java.lang.String getInstanceName() { public static final int INSTANCE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object instanceId_; /** + * + * *
    * Output only. The unique identifier of the Managed Compute Engine instance.
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The instanceId. */ @java.lang.Override @@ -111,29 +136,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; } } /** + * + * *
    * Output only. The unique identifier of the Managed Compute Engine instance.
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -144,11 +169,14 @@ public java.lang.String getInstanceId() { public static final int VIRTUAL_MACHINE_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.notebooks.v1.VirtualMachineConfig virtualMachineConfig_; /** + * + * *
    * Virtual Machine configuration settings.
    * 
* * .google.cloud.notebooks.v1.VirtualMachineConfig virtual_machine_config = 3; + * * @return Whether the virtualMachineConfig field is set. */ @java.lang.Override @@ -156,18 +184,25 @@ public boolean hasVirtualMachineConfig() { return virtualMachineConfig_ != null; } /** + * + * *
    * Virtual Machine configuration settings.
    * 
* * .google.cloud.notebooks.v1.VirtualMachineConfig virtual_machine_config = 3; + * * @return The virtualMachineConfig. */ @java.lang.Override public com.google.cloud.notebooks.v1.VirtualMachineConfig getVirtualMachineConfig() { - return virtualMachineConfig_ == null ? com.google.cloud.notebooks.v1.VirtualMachineConfig.getDefaultInstance() : virtualMachineConfig_; + return virtualMachineConfig_ == null + ? com.google.cloud.notebooks.v1.VirtualMachineConfig.getDefaultInstance() + : virtualMachineConfig_; } /** + * + * *
    * Virtual Machine configuration settings.
    * 
@@ -175,11 +210,13 @@ public com.google.cloud.notebooks.v1.VirtualMachineConfig getVirtualMachineConfi * .google.cloud.notebooks.v1.VirtualMachineConfig virtual_machine_config = 3; */ @java.lang.Override - public com.google.cloud.notebooks.v1.VirtualMachineConfigOrBuilder getVirtualMachineConfigOrBuilder() { + public com.google.cloud.notebooks.v1.VirtualMachineConfigOrBuilder + getVirtualMachineConfigOrBuilder() { return getVirtualMachineConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,8 +228,7 @@ 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(instanceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceName_); } @@ -218,8 +254,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_); } if (virtualMachineConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getVirtualMachineConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getVirtualMachineConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -229,21 +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.cloud.notebooks.v1.VirtualMachine)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.VirtualMachine other = (com.google.cloud.notebooks.v1.VirtualMachine) obj; + com.google.cloud.notebooks.v1.VirtualMachine other = + (com.google.cloud.notebooks.v1.VirtualMachine) obj; - if (!getInstanceName() - .equals(other.getInstanceName())) return false; - if (!getInstanceId() - .equals(other.getInstanceId())) return false; + if (!getInstanceName().equals(other.getInstanceName())) return false; + if (!getInstanceId().equals(other.getInstanceId())) return false; if (hasVirtualMachineConfig() != other.hasVirtualMachineConfig()) return false; if (hasVirtualMachineConfig()) { - if (!getVirtualMachineConfig() - .equals(other.getVirtualMachineConfig())) return false; + if (!getVirtualMachineConfig().equals(other.getVirtualMachineConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -269,130 +303,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.notebooks.v1.VirtualMachine parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.notebooks.v1.VirtualMachine parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.VirtualMachine 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.cloud.notebooks.v1.VirtualMachine parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.VirtualMachine parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.VirtualMachine parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.VirtualMachine 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.cloud.notebooks.v1.VirtualMachine 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.cloud.notebooks.v1.VirtualMachine 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.cloud.notebooks.v1.VirtualMachine parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.VirtualMachine parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.VirtualMachine 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.cloud.notebooks.v1.VirtualMachine 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.cloud.notebooks.v1.VirtualMachine 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.cloud.notebooks.v1.VirtualMachine 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; } /** + * + * *
    * Runtime using Virtual Machine for computing.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.VirtualMachine} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.VirtualMachine) com.google.cloud.notebooks.v1.VirtualMachineOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_VirtualMachine_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_VirtualMachine_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_VirtualMachine_fieldAccessorTable + return com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_VirtualMachine_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.VirtualMachine.class, com.google.cloud.notebooks.v1.VirtualMachine.Builder.class); + com.google.cloud.notebooks.v1.VirtualMachine.class, + com.google.cloud.notebooks.v1.VirtualMachine.Builder.class); } // Construct using com.google.cloud.notebooks.v1.VirtualMachine.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -410,9 +450,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_VirtualMachine_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_VirtualMachine_descriptor; } @java.lang.Override @@ -431,7 +471,8 @@ public com.google.cloud.notebooks.v1.VirtualMachine build() { @java.lang.Override public com.google.cloud.notebooks.v1.VirtualMachine buildPartial() { - com.google.cloud.notebooks.v1.VirtualMachine result = new com.google.cloud.notebooks.v1.VirtualMachine(this); + com.google.cloud.notebooks.v1.VirtualMachine result = + new com.google.cloud.notebooks.v1.VirtualMachine(this); result.instanceName_ = instanceName_; result.instanceId_ = instanceId_; if (virtualMachineConfigBuilder_ == null) { @@ -447,38 +488,39 @@ public com.google.cloud.notebooks.v1.VirtualMachine buildPartial() { 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.cloud.notebooks.v1.VirtualMachine) { - return mergeFrom((com.google.cloud.notebooks.v1.VirtualMachine)other); + return mergeFrom((com.google.cloud.notebooks.v1.VirtualMachine) other); } else { super.mergeFrom(other); return this; @@ -524,29 +566,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - instanceName_ = input.readStringRequireUtf8(); + case 10: + { + instanceName_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - instanceId_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + instanceId_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - input.readMessage( - getVirtualMachineConfigFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 18 + case 26: + { + input.readMessage( + getVirtualMachineConfigFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -559,18 +604,20 @@ public Builder mergeFrom( private java.lang.Object instanceName_ = ""; /** + * + * *
      * Output only. The user-friendly name of the Managed Compute Engine instance.
      * 
* * string instance_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The instanceName. */ public java.lang.String getInstanceName() { java.lang.Object ref = instanceName_; 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(); instanceName_ = s; return s; @@ -579,20 +626,21 @@ public java.lang.String getInstanceName() { } } /** + * + * *
      * Output only. The user-friendly name of the Managed Compute Engine instance.
      * 
* * string instance_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for instanceName. */ - public com.google.protobuf.ByteString - getInstanceNameBytes() { + public com.google.protobuf.ByteString getInstanceNameBytes() { java.lang.Object ref = instanceName_; 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); instanceName_ = b; return b; } else { @@ -600,54 +648,61 @@ public java.lang.String getInstanceName() { } } /** + * + * *
      * Output only. The user-friendly name of the Managed Compute Engine instance.
      * 
* * string instance_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The instanceName to set. * @return This builder for chaining. */ - public Builder setInstanceName( - java.lang.String value) { + public Builder setInstanceName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instanceName_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The user-friendly name of the Managed Compute Engine instance.
      * 
* * string instance_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearInstanceName() { - + instanceName_ = getDefaultInstance().getInstanceName(); onChanged(); return this; } /** + * + * *
      * Output only. The user-friendly name of the Managed Compute Engine instance.
      * 
* * string instance_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for instanceName to set. * @return This builder for chaining. */ - public Builder setInstanceNameBytes( - com.google.protobuf.ByteString value) { + public Builder setInstanceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceName_ = value; onChanged(); return this; @@ -655,18 +710,20 @@ public Builder setInstanceNameBytes( private java.lang.Object instanceId_ = ""; /** + * + * *
      * Output only. The unique identifier of the Managed Compute Engine instance.
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -675,20 +732,21 @@ public java.lang.String getInstanceId() { } } /** + * + * *
      * Output only. The unique identifier of the Managed Compute Engine instance.
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -696,54 +754,61 @@ public java.lang.String getInstanceId() { } } /** + * + * *
      * Output only. The unique identifier of the Managed Compute Engine instance.
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId( - java.lang.String value) { + public Builder setInstanceId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instanceId_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The unique identifier of the Managed Compute Engine instance.
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearInstanceId() { - + instanceId_ = getDefaultInstance().getInstanceId(); onChanged(); return this; } /** + * + * *
      * Output only. The unique identifier of the Managed Compute Engine instance.
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceIdBytes( - com.google.protobuf.ByteString value) { + public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceId_ = value; onChanged(); return this; @@ -751,41 +816,55 @@ public Builder setInstanceIdBytes( private com.google.cloud.notebooks.v1.VirtualMachineConfig virtualMachineConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.VirtualMachineConfig, com.google.cloud.notebooks.v1.VirtualMachineConfig.Builder, com.google.cloud.notebooks.v1.VirtualMachineConfigOrBuilder> virtualMachineConfigBuilder_; + com.google.cloud.notebooks.v1.VirtualMachineConfig, + com.google.cloud.notebooks.v1.VirtualMachineConfig.Builder, + com.google.cloud.notebooks.v1.VirtualMachineConfigOrBuilder> + virtualMachineConfigBuilder_; /** + * + * *
      * Virtual Machine configuration settings.
      * 
* * .google.cloud.notebooks.v1.VirtualMachineConfig virtual_machine_config = 3; + * * @return Whether the virtualMachineConfig field is set. */ public boolean hasVirtualMachineConfig() { return virtualMachineConfigBuilder_ != null || virtualMachineConfig_ != null; } /** + * + * *
      * Virtual Machine configuration settings.
      * 
* * .google.cloud.notebooks.v1.VirtualMachineConfig virtual_machine_config = 3; + * * @return The virtualMachineConfig. */ public com.google.cloud.notebooks.v1.VirtualMachineConfig getVirtualMachineConfig() { if (virtualMachineConfigBuilder_ == null) { - return virtualMachineConfig_ == null ? com.google.cloud.notebooks.v1.VirtualMachineConfig.getDefaultInstance() : virtualMachineConfig_; + return virtualMachineConfig_ == null + ? com.google.cloud.notebooks.v1.VirtualMachineConfig.getDefaultInstance() + : virtualMachineConfig_; } else { return virtualMachineConfigBuilder_.getMessage(); } } /** + * + * *
      * Virtual Machine configuration settings.
      * 
* * .google.cloud.notebooks.v1.VirtualMachineConfig virtual_machine_config = 3; */ - public Builder setVirtualMachineConfig(com.google.cloud.notebooks.v1.VirtualMachineConfig value) { + public Builder setVirtualMachineConfig( + com.google.cloud.notebooks.v1.VirtualMachineConfig value) { if (virtualMachineConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -799,6 +878,8 @@ public Builder setVirtualMachineConfig(com.google.cloud.notebooks.v1.VirtualMach return this; } /** + * + * *
      * Virtual Machine configuration settings.
      * 
@@ -817,17 +898,22 @@ public Builder setVirtualMachineConfig( return this; } /** + * + * *
      * Virtual Machine configuration settings.
      * 
* * .google.cloud.notebooks.v1.VirtualMachineConfig virtual_machine_config = 3; */ - public Builder mergeVirtualMachineConfig(com.google.cloud.notebooks.v1.VirtualMachineConfig value) { + public Builder mergeVirtualMachineConfig( + com.google.cloud.notebooks.v1.VirtualMachineConfig value) { if (virtualMachineConfigBuilder_ == null) { if (virtualMachineConfig_ != null) { virtualMachineConfig_ = - com.google.cloud.notebooks.v1.VirtualMachineConfig.newBuilder(virtualMachineConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.notebooks.v1.VirtualMachineConfig.newBuilder(virtualMachineConfig_) + .mergeFrom(value) + .buildPartial(); } else { virtualMachineConfig_ = value; } @@ -839,6 +925,8 @@ public Builder mergeVirtualMachineConfig(com.google.cloud.notebooks.v1.VirtualMa return this; } /** + * + * *
      * Virtual Machine configuration settings.
      * 
@@ -857,33 +945,42 @@ public Builder clearVirtualMachineConfig() { return this; } /** + * + * *
      * Virtual Machine configuration settings.
      * 
* * .google.cloud.notebooks.v1.VirtualMachineConfig virtual_machine_config = 3; */ - public com.google.cloud.notebooks.v1.VirtualMachineConfig.Builder getVirtualMachineConfigBuilder() { - + public com.google.cloud.notebooks.v1.VirtualMachineConfig.Builder + getVirtualMachineConfigBuilder() { + onChanged(); return getVirtualMachineConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Virtual Machine configuration settings.
      * 
* * .google.cloud.notebooks.v1.VirtualMachineConfig virtual_machine_config = 3; */ - public com.google.cloud.notebooks.v1.VirtualMachineConfigOrBuilder getVirtualMachineConfigOrBuilder() { + public com.google.cloud.notebooks.v1.VirtualMachineConfigOrBuilder + getVirtualMachineConfigOrBuilder() { if (virtualMachineConfigBuilder_ != null) { return virtualMachineConfigBuilder_.getMessageOrBuilder(); } else { - return virtualMachineConfig_ == null ? - com.google.cloud.notebooks.v1.VirtualMachineConfig.getDefaultInstance() : virtualMachineConfig_; + return virtualMachineConfig_ == null + ? com.google.cloud.notebooks.v1.VirtualMachineConfig.getDefaultInstance() + : virtualMachineConfig_; } } /** + * + * *
      * Virtual Machine configuration settings.
      * 
@@ -891,21 +988,24 @@ public com.google.cloud.notebooks.v1.VirtualMachineConfigOrBuilder getVirtualMac * .google.cloud.notebooks.v1.VirtualMachineConfig virtual_machine_config = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.VirtualMachineConfig, com.google.cloud.notebooks.v1.VirtualMachineConfig.Builder, com.google.cloud.notebooks.v1.VirtualMachineConfigOrBuilder> + com.google.cloud.notebooks.v1.VirtualMachineConfig, + com.google.cloud.notebooks.v1.VirtualMachineConfig.Builder, + com.google.cloud.notebooks.v1.VirtualMachineConfigOrBuilder> getVirtualMachineConfigFieldBuilder() { if (virtualMachineConfigBuilder_ == null) { - virtualMachineConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.VirtualMachineConfig, com.google.cloud.notebooks.v1.VirtualMachineConfig.Builder, com.google.cloud.notebooks.v1.VirtualMachineConfigOrBuilder>( - getVirtualMachineConfig(), - getParentForChildren(), - isClean()); + virtualMachineConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.VirtualMachineConfig, + com.google.cloud.notebooks.v1.VirtualMachineConfig.Builder, + com.google.cloud.notebooks.v1.VirtualMachineConfigOrBuilder>( + getVirtualMachineConfig(), getParentForChildren(), isClean()); virtualMachineConfig_ = null; } return virtualMachineConfigBuilder_; } + @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); } @@ -915,12 +1015,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.VirtualMachine) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.VirtualMachine) private static final com.google.cloud.notebooks.v1.VirtualMachine DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.VirtualMachine(); } @@ -929,27 +1029,27 @@ public static com.google.cloud.notebooks.v1.VirtualMachine getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VirtualMachine parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VirtualMachine parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -964,6 +1064,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.VirtualMachine getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachineConfig.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachineConfig.java similarity index 67% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachineConfig.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachineConfig.java index 9e838cd477d7..eba5a1ebe379 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachineConfig.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachineConfig.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/runtime.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * The config settings for virtual machine.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.VirtualMachineConfig} */ -public final class VirtualMachineConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class VirtualMachineConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.VirtualMachineConfig) VirtualMachineConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VirtualMachineConfig.newBuilder() to construct. private VirtualMachineConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private VirtualMachineConfig() { zone_ = ""; machineType_ = ""; @@ -32,25 +50,23 @@ private VirtualMachineConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VirtualMachineConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_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 14: return internalGetGuestAttributes(); @@ -59,19 +75,23 @@ protected com.google.protobuf.MapField internalGetMapField( case 16: 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.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_fieldAccessorTable + return com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.VirtualMachineConfig.class, com.google.cloud.notebooks.v1.VirtualMachineConfig.Builder.class); + com.google.cloud.notebooks.v1.VirtualMachineConfig.class, + com.google.cloud.notebooks.v1.VirtualMachineConfig.Builder.class); } /** + * + * *
    * The type of vNIC driver.
    * Default should be UNSPECIFIED_NIC_TYPE.
@@ -79,9 +99,10 @@ protected com.google.protobuf.MapField internalGetMapField(
    *
    * Protobuf enum {@code google.cloud.notebooks.v1.VirtualMachineConfig.NicType}
    */
-  public enum NicType
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum NicType implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * No type specified.
      * 
@@ -90,6 +111,8 @@ public enum NicType */ UNSPECIFIED_NIC_TYPE(0), /** + * + * *
      * VIRTIO
      * 
@@ -98,6 +121,8 @@ public enum NicType */ VIRTIO_NET(1), /** + * + * *
      * GVNIC
      * 
@@ -109,6 +134,8 @@ public enum NicType ; /** + * + * *
      * No type specified.
      * 
@@ -117,6 +144,8 @@ public enum NicType */ public static final int UNSPECIFIED_NIC_TYPE_VALUE = 0; /** + * + * *
      * VIRTIO
      * 
@@ -125,6 +154,8 @@ public enum NicType */ public static final int VIRTIO_NET_VALUE = 1; /** + * + * *
      * GVNIC
      * 
@@ -133,7 +164,6 @@ public enum NicType */ public static final int GVNIC_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -158,49 +188,51 @@ public static NicType valueOf(int value) { */ public static NicType forNumber(int value) { switch (value) { - case 0: return UNSPECIFIED_NIC_TYPE; - case 1: return VIRTIO_NET; - case 2: return GVNIC; - default: return null; + case 0: + return UNSPECIFIED_NIC_TYPE; + case 1: + return VIRTIO_NET; + case 2: + return GVNIC; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - NicType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public NicType findValueByNumber(int number) { - return NicType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public NicType findValueByNumber(int number) { + return NicType.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.cloud.notebooks.v1.VirtualMachineConfig.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.notebooks.v1.VirtualMachineConfig.getDescriptor() + .getEnumTypes() + .get(0); } private static final NicType[] VALUES = values(); - public static NicType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static NicType 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; @@ -217,11 +249,13 @@ private NicType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.notebooks.v1.VirtualMachineConfig.NicType) } - public interface BootImageOrBuilder extends + public interface BootImageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.VirtualMachineConfig.BootImage) - com.google.protobuf.MessageOrBuilder { - } + com.google.protobuf.MessageOrBuilder {} /** + * + * *
    * Definition of the boot image used by the Runtime.
    * Used to facilitate runtime upgradeability.
@@ -229,44 +263,46 @@ public interface BootImageOrBuilder extends
    *
    * Protobuf type {@code google.cloud.notebooks.v1.VirtualMachineConfig.BootImage}
    */
-  public static final class BootImage extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class BootImage extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.VirtualMachineConfig.BootImage)
       BootImageOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use BootImage.newBuilder() to construct.
     private BootImage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private BootImage() {
-    }
+
+    private BootImage() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new BootImage();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_BootImage_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.notebooks.v1.RuntimeProto
+          .internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_BootImage_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_BootImage_fieldAccessorTable
+      return com.google.cloud.notebooks.v1.RuntimeProto
+          .internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_BootImage_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.class, com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.Builder.class);
+              com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.class,
+              com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.Builder.class);
     }
 
     private byte memoizedIsInitialized = -1;
+
     @java.lang.Override
     public final boolean isInitialized() {
       byte isInitialized = memoizedIsInitialized;
@@ -278,8 +314,7 @@ 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 {
       getUnknownFields().writeTo(output);
     }
 
@@ -297,12 +332,13 @@ 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.cloud.notebooks.v1.VirtualMachineConfig.BootImage)) {
         return super.equals(obj);
       }
-      com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage other = (com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage) obj;
+      com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage other =
+          (com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage) obj;
 
       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
       return true;
@@ -321,87 +357,94 @@ public int hashCode() {
     }
 
     public static com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage 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.cloud.notebooks.v1.VirtualMachineConfig.BootImage 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.cloud.notebooks.v1.VirtualMachineConfig.BootImage parseFrom(
         com.google.protobuf.ByteString data)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage parseFrom(
         com.google.protobuf.ByteString data,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
         throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data, extensionRegistry);
     }
-    public static com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage parseFrom(byte[] data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
+
+    public static com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage parseFrom(
+        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
       return PARSER.parseFrom(data);
     }
+
     public static com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage 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.cloud.notebooks.v1.VirtualMachineConfig.BootImage parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
+
+    public static com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage parseFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
     }
+
     public static com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage 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.cloud.notebooks.v1.VirtualMachineConfig.BootImage parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
+
+    public static com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage parseDelimitedFrom(
+        java.io.InputStream input) throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
     }
+
     public static com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage 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.cloud.notebooks.v1.VirtualMachineConfig.BootImage 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.cloud.notebooks.v1.VirtualMachineConfig.BootImage 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.cloud.notebooks.v1.VirtualMachineConfig.BootImage prototype) {
+
+    public static Builder newBuilder(
+        com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage 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
@@ -411,6 +454,8 @@ protected Builder newBuilderForType(
       return builder;
     }
     /**
+     *
+     *
      * 
      * Definition of the boot image used by the Runtime.
      * Used to facilitate runtime upgradeability.
@@ -418,33 +463,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.notebooks.v1.VirtualMachineConfig.BootImage}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.VirtualMachineConfig.BootImage)
         com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImageOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_BootImage_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.notebooks.v1.RuntimeProto
+            .internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_BootImage_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_BootImage_fieldAccessorTable
+        return com.google.cloud.notebooks.v1.RuntimeProto
+            .internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_BootImage_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.class, com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.Builder.class);
+                com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.class,
+                com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.Builder.class);
       }
 
       // Construct using com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -452,13 +497,14 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_BootImage_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.notebooks.v1.RuntimeProto
+            .internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_BootImage_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage getDefaultInstanceForType() {
+      public com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage
+          getDefaultInstanceForType() {
         return com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.getDefaultInstance();
       }
 
@@ -473,7 +519,8 @@ public com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage build() {
 
       @java.lang.Override
       public com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage buildPartial() {
-        com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage result = new com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage(this);
+        com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage result =
+            new com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage(this);
         onBuilt();
         return result;
       }
@@ -482,38 +529,41 @@ public com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage buildPartial
       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.cloud.notebooks.v1.VirtualMachineConfig.BootImage) {
-          return mergeFrom((com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage)other);
+          return mergeFrom((com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -521,7 +571,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage other) {
-        if (other == com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.getDefaultInstance()) return this;
+        if (other
+            == com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.getDefaultInstance())
+          return this;
         this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
         return this;
@@ -548,12 +600,13 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              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) {
@@ -563,6 +616,7 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       @java.lang.Override
       public final Builder setUnknownFields(
           final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -575,41 +629,44 @@ public final Builder mergeUnknownFields(
         return super.mergeUnknownFields(unknownFields);
       }
 
-
       // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.VirtualMachineConfig.BootImage)
     }
 
     // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.VirtualMachineConfig.BootImage)
-    private static final com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage DEFAULT_INSTANCE;
+    private static final com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage
+        DEFAULT_INSTANCE;
+
     static {
       DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage();
     }
 
-    public static com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage getDefaultInstance() {
+    public static com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage
+        getDefaultInstance() {
       return DEFAULT_INSTANCE;
     }
 
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public BootImage parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        Builder builder = newBuilder();
-        try {
-          builder.mergeFrom(input, extensionRegistry);
-        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          throw e.setUnfinishedMessage(builder.buildPartial());
-        } catch (com.google.protobuf.UninitializedMessageException e) {
-          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 PARSER =
+        new com.google.protobuf.AbstractParser() {
+          @java.lang.Override
+          public BootImage parsePartialFrom(
+              com.google.protobuf.CodedInputStream input,
+              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+              throws com.google.protobuf.InvalidProtocolBufferException {
+            Builder builder = newBuilder();
+            try {
+              builder.mergeFrom(input, extensionRegistry);
+            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+              throw e.setUnfinishedMessage(builder.buildPartial());
+            } catch (com.google.protobuf.UninitializedMessageException e) {
+              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 parser() {
       return PARSER;
@@ -621,15 +678,17 @@ public com.google.protobuf.Parser getParserForType() {
     }
 
     @java.lang.Override
-    public com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage getDefaultInstanceForType() {
+    public com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage
+        getDefaultInstanceForType() {
       return DEFAULT_INSTANCE;
     }
-
   }
 
   public static final int ZONE_FIELD_NUMBER = 1;
   private volatile java.lang.Object zone_;
   /**
+   *
+   *
    * 
    * Output only. The zone where the virtual machine is located.
    * If using regional request, the notebooks service will pick a location
@@ -639,6 +698,7 @@ public com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage getDefaultIn
    * 
* * string zone = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The zone. */ @java.lang.Override @@ -647,14 +707,15 @@ public java.lang.String getZone() { 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(); zone_ = s; return s; } } /** + * + * *
    * Output only. The zone where the virtual machine is located.
    * If using regional request, the notebooks service will pick a location
@@ -664,16 +725,15 @@ public java.lang.String getZone() {
    * 
* * string zone = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for zone. */ @java.lang.Override - public com.google.protobuf.ByteString - getZoneBytes() { + public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; 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); zone_ = b; return b; } else { @@ -684,6 +744,8 @@ public java.lang.String getZone() { public static final int MACHINE_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object machineType_; /** + * + * *
    * Required. The Compute Engine machine type used for runtimes.
    * Short name is valid. Examples:
@@ -692,6 +754,7 @@ public java.lang.String getZone() {
    * 
* * string machine_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The machineType. */ @java.lang.Override @@ -700,14 +763,15 @@ public java.lang.String getMachineType() { 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(); machineType_ = s; return s; } } /** + * + * *
    * Required. The Compute Engine machine type used for runtimes.
    * Short name is valid. Examples:
@@ -716,16 +780,15 @@ public java.lang.String getMachineType() {
    * 
* * string machine_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for machineType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMachineTypeBytes() { + public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; 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); machineType_ = b; return b; } else { @@ -736,56 +799,76 @@ public java.lang.String getMachineType() { public static final int CONTAINER_IMAGES_FIELD_NUMBER = 3; private java.util.List containerImages_; /** + * + * *
    * Optional. Use a list of container images to use as Kernels in the notebook instance.
    * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.List getContainerImagesList() { return containerImages_; } /** + * + * *
    * Optional. Use a list of container images to use as Kernels in the notebook instance.
    * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List + public java.util.List getContainerImagesOrBuilderList() { return containerImages_; } /** + * + * *
    * Optional. Use a list of container images to use as Kernels in the notebook instance.
    * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public int getContainerImagesCount() { return containerImages_.size(); } /** + * + * *
    * Optional. Use a list of container images to use as Kernels in the notebook instance.
    * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.notebooks.v1.ContainerImage getContainerImages(int index) { return containerImages_.get(index); } /** + * + * *
    * Optional. Use a list of container images to use as Kernels in the notebook instance.
    * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.notebooks.v1.ContainerImageOrBuilder getContainerImagesOrBuilder( @@ -796,11 +879,16 @@ public com.google.cloud.notebooks.v1.ContainerImageOrBuilder getContainerImagesO public static final int DATA_DISK_FIELD_NUMBER = 4; private com.google.cloud.notebooks.v1.LocalDisk dataDisk_; /** + * + * *
    * Required. Data disk option configuration settings.
    * 
* - * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the dataDisk field is set. */ @java.lang.Override @@ -808,23 +896,34 @@ public boolean hasDataDisk() { return dataDisk_ != null; } /** + * + * *
    * Required. Data disk option configuration settings.
    * 
* - * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The dataDisk. */ @java.lang.Override public com.google.cloud.notebooks.v1.LocalDisk getDataDisk() { - return dataDisk_ == null ? com.google.cloud.notebooks.v1.LocalDisk.getDefaultInstance() : dataDisk_; + return dataDisk_ == null + ? com.google.cloud.notebooks.v1.LocalDisk.getDefaultInstance() + : dataDisk_; } /** + * + * *
    * Required. Data disk option configuration settings.
    * 
* - * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.notebooks.v1.LocalDiskOrBuilder getDataDiskOrBuilder() { @@ -834,11 +933,16 @@ public com.google.cloud.notebooks.v1.LocalDiskOrBuilder getDataDiskOrBuilder() { public static final int ENCRYPTION_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.notebooks.v1.EncryptionConfig encryptionConfig_; /** + * + * *
    * Optional. Encryption settings for virtual machine data disk.
    * 
* - * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the encryptionConfig field is set. */ @java.lang.Override @@ -846,23 +950,34 @@ public boolean hasEncryptionConfig() { return encryptionConfig_ != null; } /** + * + * *
    * Optional. Encryption settings for virtual machine data disk.
    * 
* - * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The encryptionConfig. */ @java.lang.Override public com.google.cloud.notebooks.v1.EncryptionConfig getEncryptionConfig() { - return encryptionConfig_ == null ? com.google.cloud.notebooks.v1.EncryptionConfig.getDefaultInstance() : encryptionConfig_; + return encryptionConfig_ == null + ? com.google.cloud.notebooks.v1.EncryptionConfig.getDefaultInstance() + : encryptionConfig_; } /** + * + * *
    * Optional. Encryption settings for virtual machine data disk.
    * 
* - * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.notebooks.v1.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder() { @@ -872,11 +987,16 @@ public com.google.cloud.notebooks.v1.EncryptionConfigOrBuilder getEncryptionConf public static final int SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shieldedInstanceConfig_; /** + * + * *
    * Optional. Shielded VM Instance configuration settings.
    * 
* - * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the shieldedInstanceConfig field is set. */ @java.lang.Override @@ -884,37 +1004,54 @@ public boolean hasShieldedInstanceConfig() { return shieldedInstanceConfig_ != null; } /** + * + * *
    * Optional. Shielded VM Instance configuration settings.
    * 
* - * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The shieldedInstanceConfig. */ @java.lang.Override public com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig getShieldedInstanceConfig() { - return shieldedInstanceConfig_ == null ? com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null + ? com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } /** + * + * *
    * Optional. Shielded VM Instance configuration settings.
    * 
* - * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { + public com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { return getShieldedInstanceConfig(); } public static final int ACCELERATOR_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig acceleratorConfig_; /** + * + * *
    * Optional. The Compute Engine accelerator configuration for this runtime.
    * 
* - * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the acceleratorConfig field is set. */ @java.lang.Override @@ -922,32 +1059,46 @@ public boolean hasAcceleratorConfig() { return acceleratorConfig_ != null; } /** + * + * *
    * Optional. The Compute Engine accelerator configuration for this runtime.
    * 
* - * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The acceleratorConfig. */ @java.lang.Override public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig getAcceleratorConfig() { - return acceleratorConfig_ == null ? com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.getDefaultInstance() : acceleratorConfig_; + return acceleratorConfig_ == null + ? com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.getDefaultInstance() + : acceleratorConfig_; } /** + * + * *
    * Optional. The Compute Engine accelerator configuration for this runtime.
    * 
* - * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder getAcceleratorConfigOrBuilder() { + public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder + getAcceleratorConfigOrBuilder() { return getAcceleratorConfig(); } public static final int NETWORK_FIELD_NUMBER = 8; private volatile java.lang.Object network_; /** + * + * *
    * Optional. The Compute Engine network to be used for machine
    * communications. Cannot be specified with subnetwork. If neither
@@ -966,6 +1117,7 @@ public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder getAccele
    * 
* * string network = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The network. */ @java.lang.Override @@ -974,14 +1126,15 @@ public java.lang.String getNetwork() { 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(); network_ = s; return s; } } /** + * + * *
    * Optional. The Compute Engine network to be used for machine
    * communications. Cannot be specified with subnetwork. If neither
@@ -1000,16 +1153,15 @@ public java.lang.String getNetwork() {
    * 
* * string network = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; 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); network_ = b; return b; } else { @@ -1020,6 +1172,8 @@ public java.lang.String getNetwork() { public static final int SUBNET_FIELD_NUMBER = 9; private volatile java.lang.Object subnet_; /** + * + * *
    * Optional. The Compute Engine subnetwork to be used for machine
    * communications. Cannot be specified with network.
@@ -1029,6 +1183,7 @@ public java.lang.String getNetwork() {
    * 
* * string subnet = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The subnet. */ @java.lang.Override @@ -1037,14 +1192,15 @@ public java.lang.String getSubnet() { 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(); subnet_ = s; return s; } } /** + * + * *
    * Optional. The Compute Engine subnetwork to be used for machine
    * communications. Cannot be specified with network.
@@ -1054,16 +1210,15 @@ public java.lang.String getSubnet() {
    * 
* * string subnet = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for subnet. */ @java.lang.Override - public com.google.protobuf.ByteString - getSubnetBytes() { + public com.google.protobuf.ByteString getSubnetBytes() { java.lang.Object ref = subnet_; 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); subnet_ = b; return b; } else { @@ -1074,6 +1229,8 @@ public java.lang.String getSubnet() { public static final int INTERNAL_IP_ONLY_FIELD_NUMBER = 10; private boolean internalIpOnly_; /** + * + * *
    * Optional. If true, runtime will only have internal IP
    * addresses. By default, runtimes are not restricted to internal IP
@@ -1084,6 +1241,7 @@ public java.lang.String getSubnet() {
    * 
* * bool internal_ip_only = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The internalIpOnly. */ @java.lang.Override @@ -1094,37 +1252,45 @@ public boolean getInternalIpOnly() { public static final int TAGS_FIELD_NUMBER = 13; private com.google.protobuf.LazyStringList tags_; /** + * + * *
    * Optional. The Compute Engine tags to add to runtime (see [Tagging
    * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
    * 
* * repeated string tags = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList - getTagsList() { + public com.google.protobuf.ProtocolStringList getTagsList() { return tags_; } /** + * + * *
    * Optional. The Compute Engine tags to add to runtime (see [Tagging
    * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
    * 
* * repeated string tags = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** + * + * *
    * Optional. The Compute Engine tags to add to runtime (see [Tagging
    * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
    * 
* * repeated string tags = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -1132,36 +1298,39 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** + * + * *
    * Optional. The Compute Engine tags to add to runtime (see [Tagging
    * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
    * 
* * repeated string tags = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { + public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } public static final int GUEST_ATTRIBUTES_FIELD_NUMBER = 14; + private static final class GuestAttributesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_GuestAttributesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_GuestAttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> guestAttributes_; + + private com.google.protobuf.MapField guestAttributes_; + private com.google.protobuf.MapField - internalGetGuestAttributes() { + internalGetGuestAttributes() { if (guestAttributes_ == null) { return com.google.protobuf.MapField.emptyMapField( GuestAttributesDefaultEntryHolder.defaultEntry); @@ -1173,6 +1342,8 @@ public int getGuestAttributesCount() { return internalGetGuestAttributes().getMap().size(); } /** + * + * *
    * Output only. The Compute Engine guest attributes. (see
    * [Project and instance
@@ -1180,24 +1351,26 @@ public int getGuestAttributesCount() {
    * attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
    * 
* - * map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public boolean containsGuestAttributes( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsGuestAttributes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetGuestAttributes().getMap().containsKey(key); } - /** - * Use {@link #getGuestAttributesMap()} instead. - */ + /** Use {@link #getGuestAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getGuestAttributes() { return getGuestAttributesMap(); } /** + * + * *
    * Output only. The Compute Engine guest attributes. (see
    * [Project and instance
@@ -1205,14 +1378,17 @@ public java.util.Map getGuestAttributes() {
    * attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
    * 
* - * map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.Map getGuestAttributesMap() { return internalGetGuestAttributes().getMap(); } /** + * + * *
    * Output only. The Compute Engine guest attributes. (see
    * [Project and instance
@@ -1220,19 +1396,22 @@ public java.util.Map getGuestAttributesMap()
    * attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
    * 
* - * map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.lang.String getGuestAttributesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetGuestAttributes().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetGuestAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Output only. The Compute Engine guest attributes. (see
    * [Project and instance
@@ -1240,15 +1419,16 @@ public java.lang.String getGuestAttributesOrDefault(
    * attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
    * 
* - * map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - - public java.lang.String getGuestAttributesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetGuestAttributes().getMap(); + public java.lang.String getGuestAttributesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetGuestAttributes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1256,24 +1436,23 @@ public java.lang.String getGuestAttributesOrThrow( } public static final int METADATA_FIELD_NUMBER = 15; + private static final class MetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_MetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> metadata_; - private com.google.protobuf.MapField - internalGetMetadata() { + + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } @@ -1282,6 +1461,8 @@ public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** + * + * *
    * Optional. The Compute Engine metadata entries to add to virtual machine. (see
    * [Project and instance
@@ -1290,22 +1471,22 @@ public int getMetadataCount() {
    *
    * map<string, string> metadata = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
-
   @java.lang.Override
-  public boolean containsMetadata(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsMetadata(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetMetadata().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getMetadataMap()} instead.
-   */
+  /** Use {@link #getMetadataMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getMetadata() {
     return getMetadataMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The Compute Engine metadata entries to add to virtual machine. (see
    * [Project and instance
@@ -1315,11 +1496,12 @@ public java.util.Map getMetadata() {
    * map<string, string> metadata = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
   public java.util.Map getMetadataMap() {
     return internalGetMetadata().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The Compute Engine metadata entries to add to virtual machine. (see
    * [Project and instance
@@ -1329,16 +1511,17 @@ public java.util.Map getMetadataMap() {
    * map<string, string> metadata = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
   public java.lang.String getMetadataOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetMetadata().getMap();
+      java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetMetadata().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The Compute Engine metadata entries to add to virtual machine. (see
    * [Project and instance
@@ -1348,12 +1531,11 @@ public java.lang.String getMetadataOrDefault(
    * map<string, string> metadata = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
-  public java.lang.String getMetadataOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetMetadata().getMap();
+  public java.lang.String getMetadataOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetMetadata().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -1361,24 +1543,23 @@ public java.lang.String getMetadataOrThrow(
   }
 
   public static final int LABELS_FIELD_NUMBER = 16;
+
   private static final class LabelsDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry<
-        java.lang.String, java.lang.String> defaultEntry =
-            com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_LabelsEntry_descriptor, 
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "");
+    static final com.google.protobuf.MapEntry defaultEntry =
+        com.google.protobuf.MapEntry.newDefaultInstance(
+            com.google.cloud.notebooks.v1.RuntimeProto
+                .internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_LabelsEntry_descriptor,
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "",
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "");
   }
-  private com.google.protobuf.MapField<
-      java.lang.String, java.lang.String> labels_;
-  private com.google.protobuf.MapField
-  internalGetLabels() {
+
+  private com.google.protobuf.MapField labels_;
+
+  private com.google.protobuf.MapField internalGetLabels() {
     if (labels_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(
-          LabelsDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
     }
     return labels_;
   }
@@ -1387,6 +1568,8 @@ public int getLabelsCount() {
     return internalGetLabels().getMap().size();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this runtime.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -1399,22 +1582,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL];
    */
-
   @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 getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this runtime.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -1428,11 +1611,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this runtime.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -1446,16 +1630,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this runtime.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -1469,12 +1653,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -1484,35 +1667,52 @@ public java.lang.String getLabelsOrThrow(
   public static final int NIC_TYPE_FIELD_NUMBER = 17;
   private int nicType_;
   /**
+   *
+   *
    * 
    * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
    * VirtioNet.
    * 
* - * .google.cloud.notebooks.v1.VirtualMachineConfig.NicType nic_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.VirtualMachineConfig.NicType nic_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for nicType. */ - @java.lang.Override public int getNicTypeValue() { + @java.lang.Override + public int getNicTypeValue() { return nicType_; } /** + * + * *
    * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
    * VirtioNet.
    * 
* - * .google.cloud.notebooks.v1.VirtualMachineConfig.NicType nic_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.VirtualMachineConfig.NicType nic_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The nicType. */ - @java.lang.Override public com.google.cloud.notebooks.v1.VirtualMachineConfig.NicType getNicType() { + @java.lang.Override + public com.google.cloud.notebooks.v1.VirtualMachineConfig.NicType getNicType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.VirtualMachineConfig.NicType result = com.google.cloud.notebooks.v1.VirtualMachineConfig.NicType.valueOf(nicType_); - return result == null ? com.google.cloud.notebooks.v1.VirtualMachineConfig.NicType.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1.VirtualMachineConfig.NicType result = + com.google.cloud.notebooks.v1.VirtualMachineConfig.NicType.valueOf(nicType_); + return result == null + ? com.google.cloud.notebooks.v1.VirtualMachineConfig.NicType.UNRECOGNIZED + : result; } public static final int RESERVED_IP_RANGE_FIELD_NUMBER = 18; private volatile java.lang.Object reservedIpRange_; /** + * + * *
    * Optional. Reserved IP Range name is used for VPC Peering.
    * The subnetwork allocation will use the range *name* if it's assigned.
@@ -1529,6 +1729,7 @@ public java.lang.String getLabelsOrThrow(
    * 
* * string reserved_ip_range = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The reservedIpRange. */ @java.lang.Override @@ -1537,14 +1738,15 @@ public java.lang.String getReservedIpRange() { 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(); reservedIpRange_ = s; return s; } } /** + * + * *
    * Optional. Reserved IP Range name is used for VPC Peering.
    * The subnetwork allocation will use the range *name* if it's assigned.
@@ -1561,16 +1763,15 @@ public java.lang.String getReservedIpRange() {
    * 
* * string reserved_ip_range = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for reservedIpRange. */ @java.lang.Override - public com.google.protobuf.ByteString - getReservedIpRangeBytes() { + public com.google.protobuf.ByteString getReservedIpRangeBytes() { java.lang.Object ref = reservedIpRange_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reservedIpRange_ = b; return b; } else { @@ -1581,11 +1782,16 @@ public java.lang.String getReservedIpRange() { public static final int BOOT_IMAGE_FIELD_NUMBER = 19; private com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage bootImage_; /** + * + * *
    * Optional. Boot image metadata used for runtime upgradeability.
    * 
* - * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the bootImage field is set. */ @java.lang.Override @@ -1593,30 +1799,43 @@ public boolean hasBootImage() { return bootImage_ != null; } /** + * + * *
    * Optional. Boot image metadata used for runtime upgradeability.
    * 
* - * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bootImage. */ @java.lang.Override public com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage getBootImage() { - return bootImage_ == null ? com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.getDefaultInstance() : bootImage_; + return bootImage_ == null + ? com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.getDefaultInstance() + : bootImage_; } /** + * + * *
    * Optional. Boot image metadata used for runtime upgradeability.
    * 
* - * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImageOrBuilder getBootImageOrBuilder() { + public com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImageOrBuilder + getBootImageOrBuilder() { return getBootImage(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1628,8 +1847,7 @@ 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(zone_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, zone_); } @@ -1663,25 +1881,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < tags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, tags_.getRaw(i)); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetGuestAttributes(), - GuestAttributesDefaultEntryHolder.defaultEntry, - 14); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetMetadata(), - MetadataDefaultEntryHolder.defaultEntry, - 15); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 16); - if (nicType_ != com.google.cloud.notebooks.v1.VirtualMachineConfig.NicType.UNSPECIFIED_NIC_TYPE.getNumber()) { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetGuestAttributes(), GuestAttributesDefaultEntryHolder.defaultEntry, 14); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 15); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 16); + if (nicType_ + != com.google.cloud.notebooks.v1.VirtualMachineConfig.NicType.UNSPECIFIED_NIC_TYPE + .getNumber()) { output.writeEnum(17, nicType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reservedIpRange_)) { @@ -1706,24 +1914,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, machineType_); } for (int i = 0; i < containerImages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, containerImages_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, containerImages_.get(i)); } if (dataDisk_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getDataDisk()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDataDisk()); } if (encryptionConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getEncryptionConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEncryptionConfig()); } if (shieldedInstanceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getShieldedInstanceConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, getShieldedInstanceConfig()); } if (acceleratorConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getAcceleratorConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getAcceleratorConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, network_); @@ -1732,8 +1936,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, subnet_); } if (internalIpOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(10, internalIpOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, internalIpOnly_); } { int dataSize = 0; @@ -1743,46 +1946,46 @@ public int getSerializedSize() { size += dataSize; size += 1 * getTagsList().size(); } - for (java.util.Map.Entry entry - : internalGetGuestAttributes().getMap().entrySet()) { - com.google.protobuf.MapEntry - guestAttributes__ = GuestAttributesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, guestAttributes__); - } - for (java.util.Map.Entry entry - : internalGetMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry - metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, metadata__); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, labels__); - } - if (nicType_ != com.google.cloud.notebooks.v1.VirtualMachineConfig.NicType.UNSPECIFIED_NIC_TYPE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(17, nicType_); + for (java.util.Map.Entry entry : + internalGetGuestAttributes().getMap().entrySet()) { + com.google.protobuf.MapEntry guestAttributes__ = + GuestAttributesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, guestAttributes__); + } + for (java.util.Map.Entry entry : + internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry metadata__ = + MetadataDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, metadata__); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, labels__); + } + if (nicType_ + != com.google.cloud.notebooks.v1.VirtualMachineConfig.NicType.UNSPECIFIED_NIC_TYPE + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, nicType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reservedIpRange_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, reservedIpRange_); } if (bootImage_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, getBootImage()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getBootImage()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1792,60 +1995,45 @@ 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.cloud.notebooks.v1.VirtualMachineConfig)) { return super.equals(obj); } - com.google.cloud.notebooks.v1.VirtualMachineConfig other = (com.google.cloud.notebooks.v1.VirtualMachineConfig) obj; + com.google.cloud.notebooks.v1.VirtualMachineConfig other = + (com.google.cloud.notebooks.v1.VirtualMachineConfig) obj; - if (!getZone() - .equals(other.getZone())) return false; - if (!getMachineType() - .equals(other.getMachineType())) return false; - if (!getContainerImagesList() - .equals(other.getContainerImagesList())) return false; + if (!getZone().equals(other.getZone())) return false; + if (!getMachineType().equals(other.getMachineType())) return false; + if (!getContainerImagesList().equals(other.getContainerImagesList())) return false; if (hasDataDisk() != other.hasDataDisk()) return false; if (hasDataDisk()) { - if (!getDataDisk() - .equals(other.getDataDisk())) return false; + if (!getDataDisk().equals(other.getDataDisk())) 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 (hasShieldedInstanceConfig() != other.hasShieldedInstanceConfig()) return false; if (hasShieldedInstanceConfig()) { - if (!getShieldedInstanceConfig() - .equals(other.getShieldedInstanceConfig())) return false; + if (!getShieldedInstanceConfig().equals(other.getShieldedInstanceConfig())) return false; } if (hasAcceleratorConfig() != other.hasAcceleratorConfig()) return false; if (hasAcceleratorConfig()) { - if (!getAcceleratorConfig() - .equals(other.getAcceleratorConfig())) return false; - } - if (!getNetwork() - .equals(other.getNetwork())) return false; - if (!getSubnet() - .equals(other.getSubnet())) return false; - if (getInternalIpOnly() - != other.getInternalIpOnly()) return false; - if (!getTagsList() - .equals(other.getTagsList())) return false; - if (!internalGetGuestAttributes().equals( - other.internalGetGuestAttributes())) return false; - if (!internalGetMetadata().equals( - other.internalGetMetadata())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; + if (!getAcceleratorConfig().equals(other.getAcceleratorConfig())) return false; + } + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getSubnet().equals(other.getSubnet())) return false; + if (getInternalIpOnly() != other.getInternalIpOnly()) return false; + if (!getTagsList().equals(other.getTagsList())) return false; + if (!internalGetGuestAttributes().equals(other.internalGetGuestAttributes())) return false; + if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (nicType_ != other.nicType_) return false; - if (!getReservedIpRange() - .equals(other.getReservedIpRange())) return false; + if (!getReservedIpRange().equals(other.getReservedIpRange())) return false; if (hasBootImage() != other.hasBootImage()) return false; if (hasBootImage()) { - if (!getBootImage() - .equals(other.getBootImage())) return false; + if (!getBootImage().equals(other.getBootImage())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1887,8 +2075,7 @@ public int hashCode() { hash = (37 * hash) + SUBNET_FIELD_NUMBER; hash = (53 * hash) + getSubnet().hashCode(); hash = (37 * hash) + INTERNAL_IP_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInternalIpOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInternalIpOnly()); if (getTagsCount() > 0) { hash = (37 * hash) + TAGS_FIELD_NUMBER; hash = (53 * hash) + getTagsList().hashCode(); @@ -1919,114 +2106,120 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1.VirtualMachineConfig 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.cloud.notebooks.v1.VirtualMachineConfig 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.cloud.notebooks.v1.VirtualMachineConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.VirtualMachineConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.VirtualMachineConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.VirtualMachineConfig 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.cloud.notebooks.v1.VirtualMachineConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.VirtualMachineConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.VirtualMachineConfig 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.cloud.notebooks.v1.VirtualMachineConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1.VirtualMachineConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1.VirtualMachineConfig 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.cloud.notebooks.v1.VirtualMachineConfig 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.cloud.notebooks.v1.VirtualMachineConfig 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.cloud.notebooks.v1.VirtualMachineConfig 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; } /** + * + * *
    * The config settings for virtual machine.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.VirtualMachineConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.VirtualMachineConfig) com.google.cloud.notebooks.v1.VirtualMachineConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 14: return internalGetGuestAttributes(); @@ -2035,13 +2228,12 @@ protected com.google.protobuf.MapField internalGetMapField( case 16: 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 14: return internalGetMutableGuestAttributes(); @@ -2050,28 +2242,27 @@ protected com.google.protobuf.MapField internalGetMutableMapField( case 16: 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.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_fieldAccessorTable + return com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1.VirtualMachineConfig.class, com.google.cloud.notebooks.v1.VirtualMachineConfig.Builder.class); + com.google.cloud.notebooks.v1.VirtualMachineConfig.class, + com.google.cloud.notebooks.v1.VirtualMachineConfig.Builder.class); } // Construct using com.google.cloud.notebooks.v1.VirtualMachineConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2135,9 +2326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1.RuntimeProto.internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1.RuntimeProto + .internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_descriptor; } @java.lang.Override @@ -2156,7 +2347,8 @@ public com.google.cloud.notebooks.v1.VirtualMachineConfig build() { @java.lang.Override public com.google.cloud.notebooks.v1.VirtualMachineConfig buildPartial() { - com.google.cloud.notebooks.v1.VirtualMachineConfig result = new com.google.cloud.notebooks.v1.VirtualMachineConfig(this); + com.google.cloud.notebooks.v1.VirtualMachineConfig result = + new com.google.cloud.notebooks.v1.VirtualMachineConfig(this); int from_bitField0_ = bitField0_; result.zone_ = zone_; result.machineType_ = machineType_; @@ -2218,38 +2410,39 @@ public com.google.cloud.notebooks.v1.VirtualMachineConfig buildPartial() { 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.cloud.notebooks.v1.VirtualMachineConfig) { - return mergeFrom((com.google.cloud.notebooks.v1.VirtualMachineConfig)other); + return mergeFrom((com.google.cloud.notebooks.v1.VirtualMachineConfig) other); } else { super.mergeFrom(other); return this; @@ -2257,7 +2450,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1.VirtualMachineConfig other) { - if (other == com.google.cloud.notebooks.v1.VirtualMachineConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1.VirtualMachineConfig.getDefaultInstance()) + return this; if (!other.getZone().isEmpty()) { zone_ = other.zone_; onChanged(); @@ -2284,9 +2478,10 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.VirtualMachineConfig othe containerImagesBuilder_ = null; containerImages_ = other.containerImages_; bitField0_ = (bitField0_ & ~0x00000001); - containerImagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getContainerImagesFieldBuilder() : null; + containerImagesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getContainerImagesFieldBuilder() + : null; } else { containerImagesBuilder_.addAllMessages(other.containerImages_); } @@ -2325,12 +2520,9 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.VirtualMachineConfig othe } onChanged(); } - internalGetMutableGuestAttributes().mergeFrom( - other.internalGetGuestAttributes()); - internalGetMutableMetadata().mergeFrom( - other.internalGetMetadata()); - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableGuestAttributes().mergeFrom(other.internalGetGuestAttributes()); + internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (other.nicType_ != 0) { setNicTypeValue(other.getNicTypeValue()); } @@ -2367,125 +2559,141 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - zone_ = input.readStringRequireUtf8(); + case 10: + { + zone_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - machineType_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + machineType_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - com.google.cloud.notebooks.v1.ContainerImage m = - input.readMessage( - com.google.cloud.notebooks.v1.ContainerImage.parser(), - extensionRegistry); - if (containerImagesBuilder_ == null) { - ensureContainerImagesIsMutable(); - containerImages_.add(m); - } else { - containerImagesBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: { - input.readMessage( - getDataDiskFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 18 + case 26: + { + com.google.cloud.notebooks.v1.ContainerImage m = + input.readMessage( + com.google.cloud.notebooks.v1.ContainerImage.parser(), extensionRegistry); + if (containerImagesBuilder_ == null) { + ensureContainerImagesIsMutable(); + containerImages_.add(m); + } else { + containerImagesBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + input.readMessage(getDataDiskFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 34 - case 42: { - input.readMessage( - getEncryptionConfigFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 34 + case 42: + { + input.readMessage( + getEncryptionConfigFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 42 - case 50: { - input.readMessage( - getShieldedInstanceConfigFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 42 + case 50: + { + input.readMessage( + getShieldedInstanceConfigFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 50 - case 58: { - input.readMessage( - getAcceleratorConfigFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 50 + case 58: + { + input.readMessage( + getAcceleratorConfigFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 58 - case 66: { - network_ = input.readStringRequireUtf8(); + break; + } // case 58 + case 66: + { + network_ = input.readStringRequireUtf8(); - break; - } // case 66 - case 74: { - subnet_ = input.readStringRequireUtf8(); + break; + } // case 66 + case 74: + { + subnet_ = input.readStringRequireUtf8(); - break; - } // case 74 - case 80: { - internalIpOnly_ = input.readBool(); + break; + } // case 74 + case 80: + { + internalIpOnly_ = input.readBool(); - break; - } // case 80 - case 106: { - java.lang.String s = input.readStringRequireUtf8(); - ensureTagsIsMutable(); - tags_.add(s); - break; - } // case 106 - case 114: { - com.google.protobuf.MapEntry - guestAttributes__ = input.readMessage( - GuestAttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableGuestAttributes().getMutableMap().put( - guestAttributes__.getKey(), guestAttributes__.getValue()); - break; - } // case 114 - case 122: { - com.google.protobuf.MapEntry - metadata__ = input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableMetadata().getMutableMap().put( - metadata__.getKey(), metadata__.getValue()); - break; - } // case 122 - case 130: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } // case 130 - case 136: { - nicType_ = input.readEnum(); + break; + } // case 80 + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 106 + case 114: + { + com.google.protobuf.MapEntry guestAttributes__ = + input.readMessage( + GuestAttributesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableGuestAttributes() + .getMutableMap() + .put(guestAttributes__.getKey(), guestAttributes__.getValue()); + break; + } // case 114 + case 122: + { + com.google.protobuf.MapEntry metadata__ = + input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableMetadata() + .getMutableMap() + .put(metadata__.getKey(), metadata__.getValue()); + break; + } // case 122 + case 130: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 130 + case 136: + { + nicType_ = input.readEnum(); - break; - } // case 136 - case 146: { - reservedIpRange_ = input.readStringRequireUtf8(); + break; + } // case 136 + case 146: + { + reservedIpRange_ = input.readStringRequireUtf8(); - break; - } // case 146 - case 154: { - input.readMessage( - getBootImageFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 146 + case 154: + { + input.readMessage(getBootImageFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 154 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 154 + 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) { @@ -2495,10 +2703,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object zone_ = ""; /** + * + * *
      * Output only. The zone where the virtual machine is located.
      * If using regional request, the notebooks service will pick a location
@@ -2508,13 +2719,13 @@ public Builder mergeFrom(
      * 
* * string zone = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The zone. */ public java.lang.String getZone() { java.lang.Object ref = zone_; 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(); zone_ = s; return s; @@ -2523,6 +2734,8 @@ public java.lang.String getZone() { } } /** + * + * *
      * Output only. The zone where the virtual machine is located.
      * If using regional request, the notebooks service will pick a location
@@ -2532,15 +2745,14 @@ public java.lang.String getZone() {
      * 
* * string zone = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for zone. */ - public com.google.protobuf.ByteString - getZoneBytes() { + public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; 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); zone_ = b; return b; } else { @@ -2548,6 +2760,8 @@ public java.lang.String getZone() { } } /** + * + * *
      * Output only. The zone where the virtual machine is located.
      * If using regional request, the notebooks service will pick a location
@@ -2557,20 +2771,22 @@ public java.lang.String getZone() {
      * 
* * string zone = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The zone to set. * @return This builder for chaining. */ - public Builder setZone( - java.lang.String value) { + public Builder setZone(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + zone_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The zone where the virtual machine is located.
      * If using regional request, the notebooks service will pick a location
@@ -2580,15 +2796,18 @@ public Builder setZone(
      * 
* * string zone = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearZone() { - + zone_ = getDefaultInstance().getZone(); onChanged(); return this; } /** + * + * *
      * Output only. The zone where the virtual machine is located.
      * If using regional request, the notebooks service will pick a location
@@ -2598,16 +2817,16 @@ public Builder clearZone() {
      * 
* * string zone = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for zone to set. * @return This builder for chaining. */ - public Builder setZoneBytes( - com.google.protobuf.ByteString value) { + public Builder setZoneBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = value; onChanged(); return this; @@ -2615,6 +2834,8 @@ public Builder setZoneBytes( private java.lang.Object machineType_ = ""; /** + * + * *
      * Required. The Compute Engine machine type used for runtimes.
      * Short name is valid. Examples:
@@ -2623,13 +2844,13 @@ public Builder setZoneBytes(
      * 
* * string machine_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The machineType. */ public java.lang.String getMachineType() { java.lang.Object ref = machineType_; 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(); machineType_ = s; return s; @@ -2638,6 +2859,8 @@ public java.lang.String getMachineType() { } } /** + * + * *
      * Required. The Compute Engine machine type used for runtimes.
      * Short name is valid. Examples:
@@ -2646,15 +2869,14 @@ public java.lang.String getMachineType() {
      * 
* * string machine_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for machineType. */ - public com.google.protobuf.ByteString - getMachineTypeBytes() { + public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; 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); machineType_ = b; return b; } else { @@ -2662,6 +2884,8 @@ public java.lang.String getMachineType() { } } /** + * + * *
      * Required. The Compute Engine machine type used for runtimes.
      * Short name is valid. Examples:
@@ -2670,20 +2894,22 @@ public java.lang.String getMachineType() {
      * 
* * string machine_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The machineType to set. * @return This builder for chaining. */ - public Builder setMachineType( - java.lang.String value) { + public Builder setMachineType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + machineType_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Compute Engine machine type used for runtimes.
      * Short name is valid. Examples:
@@ -2692,15 +2918,18 @@ public Builder setMachineType(
      * 
* * string machine_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearMachineType() { - + machineType_ = getDefaultInstance().getMachineType(); onChanged(); return this; } /** + * + * *
      * Required. The Compute Engine machine type used for runtimes.
      * Short name is valid. Examples:
@@ -2709,39 +2938,48 @@ public Builder clearMachineType() {
      * 
* * string machine_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for machineType to set. * @return This builder for chaining. */ - public Builder setMachineTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + machineType_ = value; onChanged(); return this; } private java.util.List containerImages_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureContainerImagesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - containerImages_ = new java.util.ArrayList(containerImages_); + containerImages_ = + new java.util.ArrayList(containerImages_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.ContainerImage, com.google.cloud.notebooks.v1.ContainerImage.Builder, com.google.cloud.notebooks.v1.ContainerImageOrBuilder> containerImagesBuilder_; + com.google.cloud.notebooks.v1.ContainerImage, + com.google.cloud.notebooks.v1.ContainerImage.Builder, + com.google.cloud.notebooks.v1.ContainerImageOrBuilder> + containerImagesBuilder_; /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public java.util.List getContainerImagesList() { if (containerImagesBuilder_ == null) { @@ -2751,11 +2989,15 @@ public java.util.List getContainer } } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public int getContainerImagesCount() { if (containerImagesBuilder_ == null) { @@ -2765,11 +3007,15 @@ public int getContainerImagesCount() { } } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.notebooks.v1.ContainerImage getContainerImages(int index) { if (containerImagesBuilder_ == null) { @@ -2779,11 +3025,15 @@ public com.google.cloud.notebooks.v1.ContainerImage getContainerImages(int index } } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setContainerImages( int index, com.google.cloud.notebooks.v1.ContainerImage value) { @@ -2800,11 +3050,15 @@ public Builder setContainerImages( return this; } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setContainerImages( int index, com.google.cloud.notebooks.v1.ContainerImage.Builder builderForValue) { @@ -2818,11 +3072,15 @@ public Builder setContainerImages( return this; } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addContainerImages(com.google.cloud.notebooks.v1.ContainerImage value) { if (containerImagesBuilder_ == null) { @@ -2838,11 +3096,15 @@ public Builder addContainerImages(com.google.cloud.notebooks.v1.ContainerImage v return this; } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addContainerImages( int index, com.google.cloud.notebooks.v1.ContainerImage value) { @@ -2859,11 +3121,15 @@ public Builder addContainerImages( return this; } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addContainerImages( com.google.cloud.notebooks.v1.ContainerImage.Builder builderForValue) { @@ -2877,11 +3143,15 @@ public Builder addContainerImages( return this; } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addContainerImages( int index, com.google.cloud.notebooks.v1.ContainerImage.Builder builderForValue) { @@ -2895,18 +3165,21 @@ public Builder addContainerImages( return this; } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder addAllContainerImages( java.lang.Iterable values) { if (containerImagesBuilder_ == null) { ensureContainerImagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, containerImages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, containerImages_); onChanged(); } else { containerImagesBuilder_.addAllMessages(values); @@ -2914,11 +3187,15 @@ public Builder addAllContainerImages( return this; } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearContainerImages() { if (containerImagesBuilder_ == null) { @@ -2931,11 +3208,15 @@ public Builder clearContainerImages() { return this; } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeContainerImages(int index) { if (containerImagesBuilder_ == null) { @@ -2948,39 +3229,52 @@ public Builder removeContainerImages(int index) { return this; } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.notebooks.v1.ContainerImage.Builder getContainerImagesBuilder( int index) { return getContainerImagesFieldBuilder().getBuilder(index); } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.notebooks.v1.ContainerImageOrBuilder getContainerImagesOrBuilder( int index) { if (containerImagesBuilder_ == null) { - return containerImages_.get(index); } else { + return containerImages_.get(index); + } else { return containerImagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getContainerImagesOrBuilderList() { + public java.util.List + getContainerImagesOrBuilderList() { if (containerImagesBuilder_ != null) { return containerImagesBuilder_.getMessageOrBuilderList(); } else { @@ -2988,45 +3282,63 @@ public com.google.cloud.notebooks.v1.ContainerImageOrBuilder getContainerImagesO } } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.notebooks.v1.ContainerImage.Builder addContainerImagesBuilder() { - return getContainerImagesFieldBuilder().addBuilder( - com.google.cloud.notebooks.v1.ContainerImage.getDefaultInstance()); + return getContainerImagesFieldBuilder() + .addBuilder(com.google.cloud.notebooks.v1.ContainerImage.getDefaultInstance()); } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.notebooks.v1.ContainerImage.Builder addContainerImagesBuilder( int index) { - return getContainerImagesFieldBuilder().addBuilder( - index, com.google.cloud.notebooks.v1.ContainerImage.getDefaultInstance()); + return getContainerImagesFieldBuilder() + .addBuilder(index, com.google.cloud.notebooks.v1.ContainerImage.getDefaultInstance()); } /** + * + * *
      * Optional. Use a list of container images to use as Kernels in the notebook instance.
      * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getContainerImagesBuilderList() { + public java.util.List + getContainerImagesBuilderList() { return getContainerImagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.ContainerImage, com.google.cloud.notebooks.v1.ContainerImage.Builder, com.google.cloud.notebooks.v1.ContainerImageOrBuilder> + com.google.cloud.notebooks.v1.ContainerImage, + com.google.cloud.notebooks.v1.ContainerImage.Builder, + com.google.cloud.notebooks.v1.ContainerImageOrBuilder> getContainerImagesFieldBuilder() { if (containerImagesBuilder_ == null) { - containerImagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1.ContainerImage, com.google.cloud.notebooks.v1.ContainerImage.Builder, com.google.cloud.notebooks.v1.ContainerImageOrBuilder>( + containerImagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.notebooks.v1.ContainerImage, + com.google.cloud.notebooks.v1.ContainerImage.Builder, + com.google.cloud.notebooks.v1.ContainerImageOrBuilder>( containerImages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3038,39 +3350,58 @@ public com.google.cloud.notebooks.v1.ContainerImage.Builder addContainerImagesBu private com.google.cloud.notebooks.v1.LocalDisk dataDisk_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.LocalDisk, com.google.cloud.notebooks.v1.LocalDisk.Builder, com.google.cloud.notebooks.v1.LocalDiskOrBuilder> dataDiskBuilder_; + com.google.cloud.notebooks.v1.LocalDisk, + com.google.cloud.notebooks.v1.LocalDisk.Builder, + com.google.cloud.notebooks.v1.LocalDiskOrBuilder> + dataDiskBuilder_; /** + * + * *
      * Required. Data disk option configuration settings.
      * 
* - * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the dataDisk field is set. */ public boolean hasDataDisk() { return dataDiskBuilder_ != null || dataDisk_ != null; } /** + * + * *
      * Required. Data disk option configuration settings.
      * 
* - * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The dataDisk. */ public com.google.cloud.notebooks.v1.LocalDisk getDataDisk() { if (dataDiskBuilder_ == null) { - return dataDisk_ == null ? com.google.cloud.notebooks.v1.LocalDisk.getDefaultInstance() : dataDisk_; + return dataDisk_ == null + ? com.google.cloud.notebooks.v1.LocalDisk.getDefaultInstance() + : dataDisk_; } else { return dataDiskBuilder_.getMessage(); } } /** + * + * *
      * Required. Data disk option configuration settings.
      * 
* - * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDataDisk(com.google.cloud.notebooks.v1.LocalDisk value) { if (dataDiskBuilder_ == null) { @@ -3086,14 +3417,17 @@ public Builder setDataDisk(com.google.cloud.notebooks.v1.LocalDisk value) { return this; } /** + * + * *
      * Required. Data disk option configuration settings.
      * 
* - * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setDataDisk( - com.google.cloud.notebooks.v1.LocalDisk.Builder builderForValue) { + public Builder setDataDisk(com.google.cloud.notebooks.v1.LocalDisk.Builder builderForValue) { if (dataDiskBuilder_ == null) { dataDisk_ = builderForValue.build(); onChanged(); @@ -3104,17 +3438,23 @@ public Builder setDataDisk( return this; } /** + * + * *
      * Required. Data disk option configuration settings.
      * 
* - * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeDataDisk(com.google.cloud.notebooks.v1.LocalDisk value) { if (dataDiskBuilder_ == null) { if (dataDisk_ != null) { dataDisk_ = - com.google.cloud.notebooks.v1.LocalDisk.newBuilder(dataDisk_).mergeFrom(value).buildPartial(); + com.google.cloud.notebooks.v1.LocalDisk.newBuilder(dataDisk_) + .mergeFrom(value) + .buildPartial(); } else { dataDisk_ = value; } @@ -3126,11 +3466,15 @@ public Builder mergeDataDisk(com.google.cloud.notebooks.v1.LocalDisk value) { return this; } /** + * + * *
      * Required. Data disk option configuration settings.
      * 
* - * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDataDisk() { if (dataDiskBuilder_ == null) { @@ -3144,48 +3488,64 @@ public Builder clearDataDisk() { return this; } /** + * + * *
      * Required. Data disk option configuration settings.
      * 
* - * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.notebooks.v1.LocalDisk.Builder getDataDiskBuilder() { - + onChanged(); return getDataDiskFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Data disk option configuration settings.
      * 
* - * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.notebooks.v1.LocalDiskOrBuilder getDataDiskOrBuilder() { if (dataDiskBuilder_ != null) { return dataDiskBuilder_.getMessageOrBuilder(); } else { - return dataDisk_ == null ? - com.google.cloud.notebooks.v1.LocalDisk.getDefaultInstance() : dataDisk_; + return dataDisk_ == null + ? com.google.cloud.notebooks.v1.LocalDisk.getDefaultInstance() + : dataDisk_; } } /** + * + * *
      * Required. Data disk option configuration settings.
      * 
* - * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.LocalDisk, com.google.cloud.notebooks.v1.LocalDisk.Builder, com.google.cloud.notebooks.v1.LocalDiskOrBuilder> + com.google.cloud.notebooks.v1.LocalDisk, + com.google.cloud.notebooks.v1.LocalDisk.Builder, + com.google.cloud.notebooks.v1.LocalDiskOrBuilder> getDataDiskFieldBuilder() { if (dataDiskBuilder_ == null) { - dataDiskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.LocalDisk, com.google.cloud.notebooks.v1.LocalDisk.Builder, com.google.cloud.notebooks.v1.LocalDiskOrBuilder>( - getDataDisk(), - getParentForChildren(), - isClean()); + dataDiskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.LocalDisk, + com.google.cloud.notebooks.v1.LocalDisk.Builder, + com.google.cloud.notebooks.v1.LocalDiskOrBuilder>( + getDataDisk(), getParentForChildren(), isClean()); dataDisk_ = null; } return dataDiskBuilder_; @@ -3193,39 +3553,58 @@ public com.google.cloud.notebooks.v1.LocalDiskOrBuilder getDataDiskOrBuilder() { private com.google.cloud.notebooks.v1.EncryptionConfig encryptionConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.EncryptionConfig, com.google.cloud.notebooks.v1.EncryptionConfig.Builder, com.google.cloud.notebooks.v1.EncryptionConfigOrBuilder> encryptionConfigBuilder_; + com.google.cloud.notebooks.v1.EncryptionConfig, + com.google.cloud.notebooks.v1.EncryptionConfig.Builder, + com.google.cloud.notebooks.v1.EncryptionConfigOrBuilder> + encryptionConfigBuilder_; /** + * + * *
      * Optional. Encryption settings for virtual machine data disk.
      * 
* - * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the encryptionConfig field is set. */ public boolean hasEncryptionConfig() { return encryptionConfigBuilder_ != null || encryptionConfig_ != null; } /** + * + * *
      * Optional. Encryption settings for virtual machine data disk.
      * 
* - * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The encryptionConfig. */ public com.google.cloud.notebooks.v1.EncryptionConfig getEncryptionConfig() { if (encryptionConfigBuilder_ == null) { - return encryptionConfig_ == null ? com.google.cloud.notebooks.v1.EncryptionConfig.getDefaultInstance() : encryptionConfig_; + return encryptionConfig_ == null + ? com.google.cloud.notebooks.v1.EncryptionConfig.getDefaultInstance() + : encryptionConfig_; } else { return encryptionConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Encryption settings for virtual machine data disk.
      * 
* - * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setEncryptionConfig(com.google.cloud.notebooks.v1.EncryptionConfig value) { if (encryptionConfigBuilder_ == null) { @@ -3241,11 +3620,15 @@ public Builder setEncryptionConfig(com.google.cloud.notebooks.v1.EncryptionConfi return this; } /** + * + * *
      * Optional. Encryption settings for virtual machine data disk.
      * 
* - * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setEncryptionConfig( com.google.cloud.notebooks.v1.EncryptionConfig.Builder builderForValue) { @@ -3259,17 +3642,23 @@ public Builder setEncryptionConfig( return this; } /** + * + * *
      * Optional. Encryption settings for virtual machine data disk.
      * 
* - * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeEncryptionConfig(com.google.cloud.notebooks.v1.EncryptionConfig value) { if (encryptionConfigBuilder_ == null) { if (encryptionConfig_ != null) { encryptionConfig_ = - com.google.cloud.notebooks.v1.EncryptionConfig.newBuilder(encryptionConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.notebooks.v1.EncryptionConfig.newBuilder(encryptionConfig_) + .mergeFrom(value) + .buildPartial(); } else { encryptionConfig_ = value; } @@ -3281,11 +3670,15 @@ public Builder mergeEncryptionConfig(com.google.cloud.notebooks.v1.EncryptionCon return this; } /** + * + * *
      * Optional. Encryption settings for virtual machine data disk.
      * 
* - * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearEncryptionConfig() { if (encryptionConfigBuilder_ == null) { @@ -3299,48 +3692,64 @@ public Builder clearEncryptionConfig() { return this; } /** + * + * *
      * Optional. Encryption settings for virtual machine data disk.
      * 
* - * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.notebooks.v1.EncryptionConfig.Builder getEncryptionConfigBuilder() { - + onChanged(); return getEncryptionConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Encryption settings for virtual machine data disk.
      * 
* - * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.notebooks.v1.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder() { if (encryptionConfigBuilder_ != null) { return encryptionConfigBuilder_.getMessageOrBuilder(); } else { - return encryptionConfig_ == null ? - com.google.cloud.notebooks.v1.EncryptionConfig.getDefaultInstance() : encryptionConfig_; + return encryptionConfig_ == null + ? com.google.cloud.notebooks.v1.EncryptionConfig.getDefaultInstance() + : encryptionConfig_; } } /** + * + * *
      * Optional. Encryption settings for virtual machine data disk.
      * 
* - * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.EncryptionConfig, com.google.cloud.notebooks.v1.EncryptionConfig.Builder, com.google.cloud.notebooks.v1.EncryptionConfigOrBuilder> + com.google.cloud.notebooks.v1.EncryptionConfig, + com.google.cloud.notebooks.v1.EncryptionConfig.Builder, + com.google.cloud.notebooks.v1.EncryptionConfigOrBuilder> getEncryptionConfigFieldBuilder() { if (encryptionConfigBuilder_ == null) { - encryptionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.EncryptionConfig, com.google.cloud.notebooks.v1.EncryptionConfig.Builder, com.google.cloud.notebooks.v1.EncryptionConfigOrBuilder>( - getEncryptionConfig(), - getParentForChildren(), - isClean()); + encryptionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.EncryptionConfig, + com.google.cloud.notebooks.v1.EncryptionConfig.Builder, + com.google.cloud.notebooks.v1.EncryptionConfigOrBuilder>( + getEncryptionConfig(), getParentForChildren(), isClean()); encryptionConfig_ = null; } return encryptionConfigBuilder_; @@ -3348,41 +3757,61 @@ public com.google.cloud.notebooks.v1.EncryptionConfigOrBuilder getEncryptionConf private com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shieldedInstanceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig, com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.Builder, com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfigOrBuilder> shieldedInstanceConfigBuilder_; + com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig, + com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.Builder, + com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfigOrBuilder> + shieldedInstanceConfigBuilder_; /** + * + * *
      * Optional. Shielded VM Instance configuration settings.
      * 
* - * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the shieldedInstanceConfig field is set. */ public boolean hasShieldedInstanceConfig() { return shieldedInstanceConfigBuilder_ != null || shieldedInstanceConfig_ != null; } /** + * + * *
      * Optional. Shielded VM Instance configuration settings.
      * 
* - * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The shieldedInstanceConfig. */ public com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig getShieldedInstanceConfig() { if (shieldedInstanceConfigBuilder_ == null) { - return shieldedInstanceConfig_ == null ? com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null + ? com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } else { return shieldedInstanceConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Shielded VM Instance configuration settings.
      * 
* - * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setShieldedInstanceConfig(com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig value) { + public Builder setShieldedInstanceConfig( + com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig value) { if (shieldedInstanceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3396,11 +3825,15 @@ public Builder setShieldedInstanceConfig(com.google.cloud.notebooks.v1.RuntimeSh return this; } /** + * + * *
      * Optional. Shielded VM Instance configuration settings.
      * 
* - * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setShieldedInstanceConfig( com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.Builder builderForValue) { @@ -3414,17 +3847,25 @@ public Builder setShieldedInstanceConfig( return this; } /** + * + * *
      * Optional. Shielded VM Instance configuration settings.
      * 
* - * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeShieldedInstanceConfig(com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig value) { + public Builder mergeShieldedInstanceConfig( + com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig value) { if (shieldedInstanceConfigBuilder_ == null) { if (shieldedInstanceConfig_ != null) { shieldedInstanceConfig_ = - com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.newBuilder(shieldedInstanceConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.newBuilder( + shieldedInstanceConfig_) + .mergeFrom(value) + .buildPartial(); } else { shieldedInstanceConfig_ = value; } @@ -3436,11 +3877,15 @@ public Builder mergeShieldedInstanceConfig(com.google.cloud.notebooks.v1.Runtime return this; } /** + * + * *
      * Optional. Shielded VM Instance configuration settings.
      * 
* - * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearShieldedInstanceConfig() { if (shieldedInstanceConfigBuilder_ == null) { @@ -3454,48 +3899,66 @@ public Builder clearShieldedInstanceConfig() { return this; } /** + * + * *
      * Optional. Shielded VM Instance configuration settings.
      * 
* - * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder() { - + public com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.Builder + getShieldedInstanceConfigBuilder() { + onChanged(); return getShieldedInstanceConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Shielded VM Instance configuration settings.
      * 
* - * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder() { + public com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { if (shieldedInstanceConfigBuilder_ != null) { return shieldedInstanceConfigBuilder_.getMessageOrBuilder(); } else { - return shieldedInstanceConfig_ == null ? - com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.getDefaultInstance() : shieldedInstanceConfig_; + return shieldedInstanceConfig_ == null + ? com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.getDefaultInstance() + : shieldedInstanceConfig_; } } /** - *
+     *
+     *
+     * 
      * Optional. Shielded VM Instance configuration settings.
      * 
* - * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig, com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.Builder, com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfigOrBuilder> + com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig, + com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.Builder, + com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfigOrBuilder> getShieldedInstanceConfigFieldBuilder() { if (shieldedInstanceConfigBuilder_ == null) { - shieldedInstanceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig, com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.Builder, com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfigOrBuilder>( - getShieldedInstanceConfig(), - getParentForChildren(), - isClean()); + shieldedInstanceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig, + com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig.Builder, + com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfigOrBuilder>( + getShieldedInstanceConfig(), getParentForChildren(), isClean()); shieldedInstanceConfig_ = null; } return shieldedInstanceConfigBuilder_; @@ -3503,41 +3966,61 @@ public com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfigOrBuilder getS private com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig acceleratorConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig, com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.Builder, com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder> acceleratorConfigBuilder_; + com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig, + com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.Builder, + com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder> + acceleratorConfigBuilder_; /** + * + * *
      * Optional. The Compute Engine accelerator configuration for this runtime.
      * 
* - * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the acceleratorConfig field is set. */ public boolean hasAcceleratorConfig() { return acceleratorConfigBuilder_ != null || acceleratorConfig_ != null; } /** + * + * *
      * Optional. The Compute Engine accelerator configuration for this runtime.
      * 
* - * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The acceleratorConfig. */ public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig getAcceleratorConfig() { if (acceleratorConfigBuilder_ == null) { - return acceleratorConfig_ == null ? com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.getDefaultInstance() : acceleratorConfig_; + return acceleratorConfig_ == null + ? com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.getDefaultInstance() + : acceleratorConfig_; } else { return acceleratorConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. The Compute Engine accelerator configuration for this runtime.
      * 
* - * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setAcceleratorConfig(com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig value) { + public Builder setAcceleratorConfig( + com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig value) { if (acceleratorConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3551,11 +4034,15 @@ public Builder setAcceleratorConfig(com.google.cloud.notebooks.v1.RuntimeAcceler return this; } /** + * + * *
      * Optional. The Compute Engine accelerator configuration for this runtime.
      * 
* - * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAcceleratorConfig( com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.Builder builderForValue) { @@ -3569,17 +4056,24 @@ public Builder setAcceleratorConfig( return this; } /** + * + * *
      * Optional. The Compute Engine accelerator configuration for this runtime.
      * 
* - * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeAcceleratorConfig(com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig value) { + public Builder mergeAcceleratorConfig( + com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig value) { if (acceleratorConfigBuilder_ == null) { if (acceleratorConfig_ != null) { acceleratorConfig_ = - com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.newBuilder(acceleratorConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.newBuilder(acceleratorConfig_) + .mergeFrom(value) + .buildPartial(); } else { acceleratorConfig_ = value; } @@ -3591,11 +4085,15 @@ public Builder mergeAcceleratorConfig(com.google.cloud.notebooks.v1.RuntimeAccel return this; } /** + * + * *
      * Optional. The Compute Engine accelerator configuration for this runtime.
      * 
* - * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearAcceleratorConfig() { if (acceleratorConfigBuilder_ == null) { @@ -3609,48 +4107,66 @@ public Builder clearAcceleratorConfig() { return this; } /** + * + * *
      * Optional. The Compute Engine accelerator configuration for this runtime.
      * 
* - * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.Builder getAcceleratorConfigBuilder() { - + public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.Builder + getAcceleratorConfigBuilder() { + onChanged(); return getAcceleratorConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The Compute Engine accelerator configuration for this runtime.
      * 
* - * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder getAcceleratorConfigOrBuilder() { + public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder + getAcceleratorConfigOrBuilder() { if (acceleratorConfigBuilder_ != null) { return acceleratorConfigBuilder_.getMessageOrBuilder(); } else { - return acceleratorConfig_ == null ? - com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.getDefaultInstance() : acceleratorConfig_; + return acceleratorConfig_ == null + ? com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.getDefaultInstance() + : acceleratorConfig_; } } /** + * + * *
      * Optional. The Compute Engine accelerator configuration for this runtime.
      * 
* - * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig, com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.Builder, com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder> + com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig, + com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.Builder, + com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder> getAcceleratorConfigFieldBuilder() { if (acceleratorConfigBuilder_ == null) { - acceleratorConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig, com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.Builder, com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder>( - getAcceleratorConfig(), - getParentForChildren(), - isClean()); + acceleratorConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig, + com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig.Builder, + com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder>( + getAcceleratorConfig(), getParentForChildren(), isClean()); acceleratorConfig_ = null; } return acceleratorConfigBuilder_; @@ -3658,6 +4174,8 @@ public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder getAccele private java.lang.Object network_ = ""; /** + * + * *
      * Optional. The Compute Engine network to be used for machine
      * communications. Cannot be specified with subnetwork. If neither
@@ -3676,13 +4194,13 @@ public com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder getAccele
      * 
* * string network = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; 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(); network_ = s; return s; @@ -3691,6 +4209,8 @@ public java.lang.String getNetwork() { } } /** + * + * *
      * Optional. The Compute Engine network to be used for machine
      * communications. Cannot be specified with subnetwork. If neither
@@ -3709,15 +4229,14 @@ public java.lang.String getNetwork() {
      * 
* * string network = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for network. */ - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; 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); network_ = b; return b; } else { @@ -3725,6 +4244,8 @@ public java.lang.String getNetwork() { } } /** + * + * *
      * Optional. The Compute Engine network to be used for machine
      * communications. Cannot be specified with subnetwork. If neither
@@ -3743,20 +4264,22 @@ public java.lang.String getNetwork() {
      * 
* * string network = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork( - java.lang.String value) { + public Builder setNetwork(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + network_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The Compute Engine network to be used for machine
      * communications. Cannot be specified with subnetwork. If neither
@@ -3775,15 +4298,18 @@ public Builder setNetwork(
      * 
* * string network = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearNetwork() { - + network_ = getDefaultInstance().getNetwork(); onChanged(); return this; } /** + * + * *
      * Optional. The Compute Engine network to be used for machine
      * communications. Cannot be specified with subnetwork. If neither
@@ -3802,16 +4328,16 @@ public Builder clearNetwork() {
      * 
* * string network = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes( - com.google.protobuf.ByteString value) { + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; onChanged(); return this; @@ -3819,6 +4345,8 @@ public Builder setNetworkBytes( private java.lang.Object subnet_ = ""; /** + * + * *
      * Optional. The Compute Engine subnetwork to be used for machine
      * communications. Cannot be specified with network.
@@ -3828,13 +4356,13 @@ public Builder setNetworkBytes(
      * 
* * string subnet = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The subnet. */ public java.lang.String getSubnet() { java.lang.Object ref = subnet_; 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(); subnet_ = s; return s; @@ -3843,6 +4371,8 @@ public java.lang.String getSubnet() { } } /** + * + * *
      * Optional. The Compute Engine subnetwork to be used for machine
      * communications. Cannot be specified with network.
@@ -3852,15 +4382,14 @@ public java.lang.String getSubnet() {
      * 
* * string subnet = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for subnet. */ - public com.google.protobuf.ByteString - getSubnetBytes() { + public com.google.protobuf.ByteString getSubnetBytes() { java.lang.Object ref = subnet_; 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); subnet_ = b; return b; } else { @@ -3868,6 +4397,8 @@ public java.lang.String getSubnet() { } } /** + * + * *
      * Optional. The Compute Engine subnetwork to be used for machine
      * communications. Cannot be specified with network.
@@ -3877,20 +4408,22 @@ public java.lang.String getSubnet() {
      * 
* * string subnet = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The subnet to set. * @return This builder for chaining. */ - public Builder setSubnet( - java.lang.String value) { + public Builder setSubnet(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subnet_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The Compute Engine subnetwork to be used for machine
      * communications. Cannot be specified with network.
@@ -3900,15 +4433,18 @@ public Builder setSubnet(
      * 
* * string subnet = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSubnet() { - + subnet_ = getDefaultInstance().getSubnet(); onChanged(); return this; } /** + * + * *
      * Optional. The Compute Engine subnetwork to be used for machine
      * communications. Cannot be specified with network.
@@ -3918,23 +4454,25 @@ public Builder clearSubnet() {
      * 
* * string subnet = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for subnet to set. * @return This builder for chaining. */ - public Builder setSubnetBytes( - com.google.protobuf.ByteString value) { + public Builder setSubnetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subnet_ = value; onChanged(); return this; } - private boolean internalIpOnly_ ; + private boolean internalIpOnly_; /** + * + * *
      * Optional. If true, runtime will only have internal IP
      * addresses. By default, runtimes are not restricted to internal IP
@@ -3945,6 +4483,7 @@ public Builder setSubnetBytes(
      * 
* * bool internal_ip_only = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The internalIpOnly. */ @java.lang.Override @@ -3952,6 +4491,8 @@ public boolean getInternalIpOnly() { return internalIpOnly_; } /** + * + * *
      * Optional. If true, runtime will only have internal IP
      * addresses. By default, runtimes are not restricted to internal IP
@@ -3962,16 +4503,19 @@ public boolean getInternalIpOnly() {
      * 
* * bool internal_ip_only = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The internalIpOnly to set. * @return This builder for chaining. */ public Builder setInternalIpOnly(boolean value) { - + internalIpOnly_ = value; onChanged(); return this; } /** + * + * *
      * Optional. If true, runtime will only have internal IP
      * addresses. By default, runtimes are not restricted to internal IP
@@ -3982,54 +4526,65 @@ public Builder setInternalIpOnly(boolean value) {
      * 
* * bool internal_ip_only = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearInternalIpOnly() { - + internalIpOnly_ = false; onChanged(); return this; } - private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList tags_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTagsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Optional. The Compute Engine tags to add to runtime (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the tags. */ - public com.google.protobuf.ProtocolStringList - getTagsList() { + public com.google.protobuf.ProtocolStringList getTagsList() { return tags_.getUnmodifiableView(); } /** + * + * *
      * Optional. The Compute Engine tags to add to runtime (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** + * + * *
      * Optional. The Compute Engine tags to add to runtime (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The tags at the given index. */ @@ -4037,85 +4592,95 @@ public java.lang.String getTags(int index) { return tags_.get(index); } /** + * + * *
      * Optional. The Compute Engine tags to add to runtime (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { + public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } /** + * + * *
      * Optional. The Compute Engine tags to add to runtime (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ - public Builder setTags( - int index, java.lang.String value) { + public Builder setTags(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); + throw new NullPointerException(); + } + ensureTagsIsMutable(); tags_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. The Compute Engine tags to add to runtime (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The tags to add. * @return This builder for chaining. */ - public Builder addTags( - java.lang.String value) { + public Builder addTags(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); + throw new NullPointerException(); + } + ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. The Compute Engine tags to add to runtime (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The tags to add. * @return This builder for chaining. */ - public Builder addAllTags( - java.lang.Iterable values) { + public Builder addAllTags(java.lang.Iterable values) { ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); onChanged(); return this; } /** + * + * *
      * Optional. The Compute Engine tags to add to runtime (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearTags() { @@ -4125,43 +4690,48 @@ public Builder clearTags() { return this; } /** + * + * *
      * Optional. The Compute Engine tags to add to runtime (see [Tagging
      * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
      * 
* * repeated string tags = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the tags to add. * @return This builder for chaining. */ - public Builder addTagsBytes( - com.google.protobuf.ByteString value) { + public Builder addTagsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> guestAttributes_; + private com.google.protobuf.MapField guestAttributes_; + private com.google.protobuf.MapField - internalGetGuestAttributes() { + internalGetGuestAttributes() { if (guestAttributes_ == null) { return com.google.protobuf.MapField.emptyMapField( GuestAttributesDefaultEntryHolder.defaultEntry); } return guestAttributes_; } + private com.google.protobuf.MapField - internalGetMutableGuestAttributes() { - onChanged();; + internalGetMutableGuestAttributes() { + onChanged(); + ; if (guestAttributes_ == null) { - guestAttributes_ = com.google.protobuf.MapField.newMapField( - GuestAttributesDefaultEntryHolder.defaultEntry); + guestAttributes_ = + com.google.protobuf.MapField.newMapField( + GuestAttributesDefaultEntryHolder.defaultEntry); } if (!guestAttributes_.isMutable()) { guestAttributes_ = guestAttributes_.copy(); @@ -4173,6 +4743,8 @@ public int getGuestAttributesCount() { return internalGetGuestAttributes().getMap().size(); } /** + * + * *
      * Output only. The Compute Engine guest attributes. (see
      * [Project and instance
@@ -4180,24 +4752,26 @@ public int getGuestAttributesCount() {
      * attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
      * 
* - * map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - @java.lang.Override - public boolean containsGuestAttributes( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsGuestAttributes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetGuestAttributes().getMap().containsKey(key); } - /** - * Use {@link #getGuestAttributesMap()} instead. - */ + /** Use {@link #getGuestAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getGuestAttributes() { return getGuestAttributesMap(); } /** + * + * *
      * Output only. The Compute Engine guest attributes. (see
      * [Project and instance
@@ -4205,14 +4779,17 @@ public java.util.Map getGuestAttributes() {
      * attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
      * 
* - * map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.Map getGuestAttributesMap() { return internalGetGuestAttributes().getMap(); } /** + * + * *
      * Output only. The Compute Engine guest attributes. (see
      * [Project and instance
@@ -4220,19 +4797,22 @@ public java.util.Map getGuestAttributesMap()
      * attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
      * 
* - * map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.lang.String getGuestAttributesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetGuestAttributes().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetGuestAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Output only. The Compute Engine guest attributes. (see
      * [Project and instance
@@ -4240,15 +4820,16 @@ public java.lang.String getGuestAttributesOrDefault(
      * attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
      * 
* - * map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - - public java.lang.String getGuestAttributesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetGuestAttributes().getMap(); + public java.lang.String getGuestAttributesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetGuestAttributes().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -4256,11 +4837,12 @@ public java.lang.String getGuestAttributesOrThrow( } public Builder clearGuestAttributes() { - internalGetMutableGuestAttributes().getMutableMap() - .clear(); + internalGetMutableGuestAttributes().getMutableMap().clear(); return this; } /** + * + * *
      * Output only. The Compute Engine guest attributes. (see
      * [Project and instance
@@ -4268,25 +4850,25 @@ public Builder clearGuestAttributes() {
      * attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
      * 
* - * map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - - public Builder removeGuestAttributes( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableGuestAttributes().getMutableMap() - .remove(key); + public Builder removeGuestAttributes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableGuestAttributes().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableGuestAttributes() { + public java.util.Map getMutableGuestAttributes() { return internalGetMutableGuestAttributes().getMutableMap(); } /** + * + * *
      * Output only. The Compute Engine guest attributes. (see
      * [Project and instance
@@ -4294,21 +4876,24 @@ public Builder removeGuestAttributes(
      * attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
      * 
* - * map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder putGuestAttributes( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putGuestAttributes(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableGuestAttributes().getMutableMap() - .put(key, value); + internalGetMutableGuestAttributes().getMutableMap().put(key, value); return this; } /** + * + * *
      * Output only. The Compute Engine guest attributes. (see
      * [Project and instance
@@ -4316,32 +4901,31 @@ public Builder putGuestAttributes(
      * attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
      * 
* - * map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - - public Builder putAllGuestAttributes( - java.util.Map values) { - internalGetMutableGuestAttributes().getMutableMap() - .putAll(values); + public Builder putAllGuestAttributes(java.util.Map values) { + internalGetMutableGuestAttributes().getMutableMap().putAll(values); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> metadata_; - private com.google.protobuf.MapField - internalGetMetadata() { + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } + private com.google.protobuf.MapField - internalGetMutableMetadata() { - onChanged();; + internalGetMutableMetadata() { + onChanged(); + ; if (metadata_ == null) { - metadata_ = com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); + metadata_ = + com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry); } if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); @@ -4353,78 +4937,85 @@ public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** + * + * *
      * Optional. The Compute Engine metadata entries to add to virtual machine. (see
      * [Project and instance
      * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
      * 
* - * map<string, string> metadata = 15 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> metadata = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean containsMetadata( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetMetadata().getMap().containsKey(key); } - /** - * Use {@link #getMetadataMap()} instead. - */ + /** Use {@link #getMetadataMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMetadata() { return getMetadataMap(); } /** + * + * *
      * Optional. The Compute Engine metadata entries to add to virtual machine. (see
      * [Project and instance
      * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
      * 
* - * map<string, string> metadata = 15 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> metadata = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** + * + * *
      * Optional. The Compute Engine metadata entries to add to virtual machine. (see
      * [Project and instance
      * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
      * 
* - * map<string, string> metadata = 15 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> metadata = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.lang.String getMetadataOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMetadata().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Optional. The Compute Engine metadata entries to add to virtual machine. (see
      * [Project and instance
      * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
      * 
* - * map<string, string> metadata = 15 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> metadata = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - - public java.lang.String getMetadataOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMetadata().getMap(); + public java.lang.String getMetadataOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -4432,89 +5023,88 @@ public java.lang.String getMetadataOrThrow( } public Builder clearMetadata() { - internalGetMutableMetadata().getMutableMap() - .clear(); + internalGetMutableMetadata().getMutableMap().clear(); return this; } /** + * + * *
      * Optional. The Compute Engine metadata entries to add to virtual machine. (see
      * [Project and instance
      * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
      * 
* - * map<string, string> metadata = 15 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> metadata = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder removeMetadata( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableMetadata().getMutableMap() - .remove(key); + public Builder removeMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableMetadata().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableMetadata() { + public java.util.Map getMutableMetadata() { return internalGetMutableMetadata().getMutableMap(); } /** + * + * *
      * Optional. The Compute Engine metadata entries to add to virtual machine. (see
      * [Project and instance
      * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
      * 
* - * map<string, string> metadata = 15 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> metadata = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder putMetadata( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putMetadata(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableMetadata().getMutableMap() - .put(key, value); + internalGetMutableMetadata().getMutableMap().put(key, value); return this; } /** + * + * *
      * Optional. The Compute Engine metadata entries to add to virtual machine. (see
      * [Project and instance
      * metadata](https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_and_instance_metadata)).
      * 
* - * map<string, string> metadata = 15 [(.google.api.field_behavior) = OPTIONAL]; + * map<string, string> metadata = 15 [(.google.api.field_behavior) = OPTIONAL]; + * */ - - public Builder putAllMetadata( - java.util.Map values) { - internalGetMutableMetadata().getMutableMap() - .putAll(values); + public Builder putAllMetadata(java.util.Map values) { + internalGetMutableMetadata().getMutableMap().putAll(values); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField 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 - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -4526,6 +5116,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Optional. The labels to associate with this runtime.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -4538,22 +5130,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL];
      */
-
     @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 getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this runtime.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -4567,11 +5159,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this runtime.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -4585,16 +5178,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this runtime.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -4608,12 +5202,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -4621,11 +5214,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this runtime.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -4638,23 +5232,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL];
      */
-
-    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
-    getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this runtime.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -4667,19 +5259,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL];
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    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");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Optional. The labels to associate with this runtime.
      * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -4692,65 +5285,86 @@ public Builder putLabels(
      *
      * map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL];
      */
-
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       return this;
     }
 
     private int nicType_ = 0;
     /**
+     *
+     *
      * 
      * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
      * VirtioNet.
      * 
* - * .google.cloud.notebooks.v1.VirtualMachineConfig.NicType nic_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.VirtualMachineConfig.NicType nic_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for nicType. */ - @java.lang.Override public int getNicTypeValue() { + @java.lang.Override + public int getNicTypeValue() { return nicType_; } /** + * + * *
      * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
      * VirtioNet.
      * 
* - * .google.cloud.notebooks.v1.VirtualMachineConfig.NicType nic_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.VirtualMachineConfig.NicType nic_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for nicType to set. * @return This builder for chaining. */ public Builder setNicTypeValue(int value) { - + nicType_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
      * VirtioNet.
      * 
* - * .google.cloud.notebooks.v1.VirtualMachineConfig.NicType nic_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.VirtualMachineConfig.NicType nic_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The nicType. */ @java.lang.Override public com.google.cloud.notebooks.v1.VirtualMachineConfig.NicType getNicType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1.VirtualMachineConfig.NicType result = com.google.cloud.notebooks.v1.VirtualMachineConfig.NicType.valueOf(nicType_); - return result == null ? com.google.cloud.notebooks.v1.VirtualMachineConfig.NicType.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1.VirtualMachineConfig.NicType result = + com.google.cloud.notebooks.v1.VirtualMachineConfig.NicType.valueOf(nicType_); + return result == null + ? com.google.cloud.notebooks.v1.VirtualMachineConfig.NicType.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
      * VirtioNet.
      * 
* - * .google.cloud.notebooks.v1.VirtualMachineConfig.NicType nic_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.VirtualMachineConfig.NicType nic_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The nicType to set. * @return This builder for chaining. */ @@ -4758,22 +5372,27 @@ public Builder setNicType(com.google.cloud.notebooks.v1.VirtualMachineConfig.Nic if (value == null) { throw new NullPointerException(); } - + nicType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
      * VirtioNet.
      * 
* - * .google.cloud.notebooks.v1.VirtualMachineConfig.NicType nic_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.VirtualMachineConfig.NicType nic_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearNicType() { - + nicType_ = 0; onChanged(); return this; @@ -4781,6 +5400,8 @@ public Builder clearNicType() { private java.lang.Object reservedIpRange_ = ""; /** + * + * *
      * Optional. Reserved IP Range name is used for VPC Peering.
      * The subnetwork allocation will use the range *name* if it's assigned.
@@ -4797,13 +5418,13 @@ public Builder clearNicType() {
      * 
* * string reserved_ip_range = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The reservedIpRange. */ public java.lang.String getReservedIpRange() { java.lang.Object ref = reservedIpRange_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reservedIpRange_ = s; return s; @@ -4812,6 +5433,8 @@ public java.lang.String getReservedIpRange() { } } /** + * + * *
      * Optional. Reserved IP Range name is used for VPC Peering.
      * The subnetwork allocation will use the range *name* if it's assigned.
@@ -4828,15 +5451,14 @@ public java.lang.String getReservedIpRange() {
      * 
* * string reserved_ip_range = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for reservedIpRange. */ - public com.google.protobuf.ByteString - getReservedIpRangeBytes() { + public com.google.protobuf.ByteString getReservedIpRangeBytes() { java.lang.Object ref = reservedIpRange_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reservedIpRange_ = b; return b; } else { @@ -4844,6 +5466,8 @@ public java.lang.String getReservedIpRange() { } } /** + * + * *
      * Optional. Reserved IP Range name is used for VPC Peering.
      * The subnetwork allocation will use the range *name* if it's assigned.
@@ -4860,20 +5484,22 @@ public java.lang.String getReservedIpRange() {
      * 
* * string reserved_ip_range = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The reservedIpRange to set. * @return This builder for chaining. */ - public Builder setReservedIpRange( - java.lang.String value) { + public Builder setReservedIpRange(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + reservedIpRange_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Reserved IP Range name is used for VPC Peering.
      * The subnetwork allocation will use the range *name* if it's assigned.
@@ -4890,15 +5516,18 @@ public Builder setReservedIpRange(
      * 
* * string reserved_ip_range = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearReservedIpRange() { - + reservedIpRange_ = getDefaultInstance().getReservedIpRange(); onChanged(); return this; } /** + * + * *
      * Optional. Reserved IP Range name is used for VPC Peering.
      * The subnetwork allocation will use the range *name* if it's assigned.
@@ -4915,16 +5544,16 @@ public Builder clearReservedIpRange() {
      * 
* * string reserved_ip_range = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for reservedIpRange to set. * @return This builder for chaining. */ - public Builder setReservedIpRangeBytes( - com.google.protobuf.ByteString value) { + public Builder setReservedIpRangeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reservedIpRange_ = value; onChanged(); return this; @@ -4932,41 +5561,61 @@ public Builder setReservedIpRangeBytes( private com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage bootImage_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage, com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.Builder, com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImageOrBuilder> bootImageBuilder_; + com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage, + com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.Builder, + com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImageOrBuilder> + bootImageBuilder_; /** + * + * *
      * Optional. Boot image metadata used for runtime upgradeability.
      * 
* - * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the bootImage field is set. */ public boolean hasBootImage() { return bootImageBuilder_ != null || bootImage_ != null; } /** + * + * *
      * Optional. Boot image metadata used for runtime upgradeability.
      * 
* - * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bootImage. */ public com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage getBootImage() { if (bootImageBuilder_ == null) { - return bootImage_ == null ? com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.getDefaultInstance() : bootImage_; + return bootImage_ == null + ? com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.getDefaultInstance() + : bootImage_; } else { return bootImageBuilder_.getMessage(); } } /** + * + * *
      * Optional. Boot image metadata used for runtime upgradeability.
      * 
* - * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setBootImage(com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage value) { + public Builder setBootImage( + com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage value) { if (bootImageBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4980,11 +5629,15 @@ public Builder setBootImage(com.google.cloud.notebooks.v1.VirtualMachineConfig.B return this; } /** + * + * *
      * Optional. Boot image metadata used for runtime upgradeability.
      * 
* - * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setBootImage( com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.Builder builderForValue) { @@ -4998,17 +5651,24 @@ public Builder setBootImage( return this; } /** + * + * *
      * Optional. Boot image metadata used for runtime upgradeability.
      * 
* - * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeBootImage(com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage value) { + public Builder mergeBootImage( + com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage value) { if (bootImageBuilder_ == null) { if (bootImage_ != null) { bootImage_ = - com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.newBuilder(bootImage_).mergeFrom(value).buildPartial(); + com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.newBuilder(bootImage_) + .mergeFrom(value) + .buildPartial(); } else { bootImage_ = value; } @@ -5020,11 +5680,15 @@ public Builder mergeBootImage(com.google.cloud.notebooks.v1.VirtualMachineConfig return this; } /** + * + * *
      * Optional. Boot image metadata used for runtime upgradeability.
      * 
* - * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearBootImage() { if (bootImageBuilder_ == null) { @@ -5038,55 +5702,73 @@ public Builder clearBootImage() { return this; } /** + * + * *
      * Optional. Boot image metadata used for runtime upgradeability.
      * 
* - * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.Builder getBootImageBuilder() { - + public com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.Builder + getBootImageBuilder() { + onChanged(); return getBootImageFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Boot image metadata used for runtime upgradeability.
      * 
* - * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImageOrBuilder getBootImageOrBuilder() { + public com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImageOrBuilder + getBootImageOrBuilder() { if (bootImageBuilder_ != null) { return bootImageBuilder_.getMessageOrBuilder(); } else { - return bootImage_ == null ? - com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.getDefaultInstance() : bootImage_; + return bootImage_ == null + ? com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.getDefaultInstance() + : bootImage_; } } /** + * + * *
      * Optional. Boot image metadata used for runtime upgradeability.
      * 
* - * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage, com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.Builder, com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImageOrBuilder> + com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage, + com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.Builder, + com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImageOrBuilder> getBootImageFieldBuilder() { if (bootImageBuilder_ == null) { - bootImageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage, com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.Builder, com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImageOrBuilder>( - getBootImage(), - getParentForChildren(), - isClean()); + bootImageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage, + com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage.Builder, + com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImageOrBuilder>( + getBootImage(), getParentForChildren(), isClean()); bootImage_ = null; } return bootImageBuilder_; } + @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); } @@ -5096,12 +5778,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.VirtualMachineConfig) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.VirtualMachineConfig) private static final com.google.cloud.notebooks.v1.VirtualMachineConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.VirtualMachineConfig(); } @@ -5110,27 +5792,27 @@ public static com.google.cloud.notebooks.v1.VirtualMachineConfig getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VirtualMachineConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VirtualMachineConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -5145,6 +5827,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.VirtualMachineConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachineConfigOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachineConfigOrBuilder.java similarity index 73% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachineConfigOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachineConfigOrBuilder.java index 30454c539477..46106f54883f 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachineConfigOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachineConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/runtime.proto package com.google.cloud.notebooks.v1; -public interface VirtualMachineConfigOrBuilder extends +public interface VirtualMachineConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.VirtualMachineConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The zone where the virtual machine is located.
    * If using regional request, the notebooks service will pick a location
@@ -17,10 +35,13 @@ public interface VirtualMachineConfigOrBuilder extends
    * 
* * string zone = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The zone. */ java.lang.String getZone(); /** + * + * *
    * Output only. The zone where the virtual machine is located.
    * If using regional request, the notebooks service will pick a location
@@ -30,12 +51,14 @@ public interface VirtualMachineConfigOrBuilder extends
    * 
* * string zone = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for zone. */ - com.google.protobuf.ByteString - getZoneBytes(); + com.google.protobuf.ByteString getZoneBytes(); /** + * + * *
    * Required. The Compute Engine machine type used for runtimes.
    * Short name is valid. Examples:
@@ -44,10 +67,13 @@ public interface VirtualMachineConfigOrBuilder extends
    * 
* * string machine_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The machineType. */ java.lang.String getMachineType(); /** + * + * *
    * Required. The Compute Engine machine type used for runtimes.
    * Short name is valid. Examples:
@@ -56,164 +82,241 @@ public interface VirtualMachineConfigOrBuilder extends
    * 
* * string machine_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for machineType. */ - com.google.protobuf.ByteString - getMachineTypeBytes(); + com.google.protobuf.ByteString getMachineTypeBytes(); /** + * + * *
    * Optional. Use a list of container images to use as Kernels in the notebook instance.
    * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List - getContainerImagesList(); + java.util.List getContainerImagesList(); /** + * + * *
    * Optional. Use a list of container images to use as Kernels in the notebook instance.
    * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.notebooks.v1.ContainerImage getContainerImages(int index); /** + * + * *
    * Optional. Use a list of container images to use as Kernels in the notebook instance.
    * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getContainerImagesCount(); /** + * + * *
    * Optional. Use a list of container images to use as Kernels in the notebook instance.
    * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - java.util.List + java.util.List getContainerImagesOrBuilderList(); /** + * + * *
    * Optional. Use a list of container images to use as Kernels in the notebook instance.
    * 
* - * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated .google.cloud.notebooks.v1.ContainerImage container_images = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.notebooks.v1.ContainerImageOrBuilder getContainerImagesOrBuilder( - int index); + com.google.cloud.notebooks.v1.ContainerImageOrBuilder getContainerImagesOrBuilder(int index); /** + * + * *
    * Required. Data disk option configuration settings.
    * 
* - * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the dataDisk field is set. */ boolean hasDataDisk(); /** + * + * *
    * Required. Data disk option configuration settings.
    * 
* - * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The dataDisk. */ com.google.cloud.notebooks.v1.LocalDisk getDataDisk(); /** + * + * *
    * Required. Data disk option configuration settings.
    * 
* - * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1.LocalDisk data_disk = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.notebooks.v1.LocalDiskOrBuilder getDataDiskOrBuilder(); /** + * + * *
    * Optional. Encryption settings for virtual machine data disk.
    * 
* - * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the encryptionConfig field is set. */ boolean hasEncryptionConfig(); /** + * + * *
    * Optional. Encryption settings for virtual machine data disk.
    * 
* - * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The encryptionConfig. */ com.google.cloud.notebooks.v1.EncryptionConfig getEncryptionConfig(); /** + * + * *
    * Optional. Encryption settings for virtual machine data disk.
    * 
* - * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.notebooks.v1.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder(); /** + * + * *
    * Optional. Shielded VM Instance configuration settings.
    * 
* - * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the shieldedInstanceConfig field is set. */ boolean hasShieldedInstanceConfig(); /** + * + * *
    * Optional. Shielded VM Instance configuration settings.
    * 
* - * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The shieldedInstanceConfig. */ com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig getShieldedInstanceConfig(); /** + * + * *
    * Optional. Shielded VM Instance configuration settings.
    * 
* - * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.RuntimeShieldedInstanceConfig shielded_instance_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder(); + com.google.cloud.notebooks.v1.RuntimeShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder(); /** + * + * *
    * Optional. The Compute Engine accelerator configuration for this runtime.
    * 
* - * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the acceleratorConfig field is set. */ boolean hasAcceleratorConfig(); /** + * + * *
    * Optional. The Compute Engine accelerator configuration for this runtime.
    * 
* - * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The acceleratorConfig. */ com.google.cloud.notebooks.v1.RuntimeAcceleratorConfig getAcceleratorConfig(); /** + * + * *
    * Optional. The Compute Engine accelerator configuration for this runtime.
    * 
* - * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.RuntimeAcceleratorConfig accelerator_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.notebooks.v1.RuntimeAcceleratorConfigOrBuilder getAcceleratorConfigOrBuilder(); /** + * + * *
    * Optional. The Compute Engine network to be used for machine
    * communications. Cannot be specified with subnetwork. If neither
@@ -232,10 +335,13 @@ com.google.cloud.notebooks.v1.ContainerImageOrBuilder getContainerImagesOrBuilde
    * 
* * string network = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The network. */ java.lang.String getNetwork(); /** + * + * *
    * Optional. The Compute Engine network to be used for machine
    * communications. Cannot be specified with subnetwork. If neither
@@ -254,12 +360,14 @@ com.google.cloud.notebooks.v1.ContainerImageOrBuilder getContainerImagesOrBuilde
    * 
* * string network = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for network. */ - com.google.protobuf.ByteString - getNetworkBytes(); + com.google.protobuf.ByteString getNetworkBytes(); /** + * + * *
    * Optional. The Compute Engine subnetwork to be used for machine
    * communications. Cannot be specified with network.
@@ -269,10 +377,13 @@ com.google.cloud.notebooks.v1.ContainerImageOrBuilder getContainerImagesOrBuilde
    * 
* * string subnet = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The subnet. */ java.lang.String getSubnet(); /** + * + * *
    * Optional. The Compute Engine subnetwork to be used for machine
    * communications. Cannot be specified with network.
@@ -282,12 +393,14 @@ com.google.cloud.notebooks.v1.ContainerImageOrBuilder getContainerImagesOrBuilde
    * 
* * string subnet = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for subnet. */ - com.google.protobuf.ByteString - getSubnetBytes(); + com.google.protobuf.ByteString getSubnetBytes(); /** + * + * *
    * Optional. If true, runtime will only have internal IP
    * addresses. By default, runtimes are not restricted to internal IP
@@ -298,56 +411,69 @@ com.google.cloud.notebooks.v1.ContainerImageOrBuilder getContainerImagesOrBuilde
    * 
* * bool internal_ip_only = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The internalIpOnly. */ boolean getInternalIpOnly(); /** + * + * *
    * Optional. The Compute Engine tags to add to runtime (see [Tagging
    * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
    * 
* * repeated string tags = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the tags. */ - java.util.List - getTagsList(); + java.util.List getTagsList(); /** + * + * *
    * Optional. The Compute Engine tags to add to runtime (see [Tagging
    * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
    * 
* * repeated string tags = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of tags. */ int getTagsCount(); /** + * + * *
    * Optional. The Compute Engine tags to add to runtime (see [Tagging
    * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
    * 
* * repeated string tags = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The tags at the given index. */ java.lang.String getTags(int index); /** + * + * *
    * Optional. The Compute Engine tags to add to runtime (see [Tagging
    * instances](https://cloud.google.com/compute/docs/label-or-tag-resources#tags)).
    * 
* * repeated string tags = 13 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ - com.google.protobuf.ByteString - getTagsBytes(int index); + com.google.protobuf.ByteString getTagsBytes(int index); /** + * + * *
    * Output only. The Compute Engine guest attributes. (see
    * [Project and instance
@@ -355,10 +481,14 @@ com.google.cloud.notebooks.v1.ContainerImageOrBuilder getContainerImagesOrBuilde
    * attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
    * 
* - * map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getGuestAttributesCount(); /** + * + * *
    * Output only. The Compute Engine guest attributes. (see
    * [Project and instance
@@ -366,17 +496,17 @@ com.google.cloud.notebooks.v1.ContainerImageOrBuilder getContainerImagesOrBuilde
    * attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
    * 
* - * map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - boolean containsGuestAttributes( - java.lang.String key); - /** - * Use {@link #getGuestAttributesMap()} instead. + * + * map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ + boolean containsGuestAttributes(java.lang.String key); + /** Use {@link #getGuestAttributesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getGuestAttributes(); + java.util.Map getGuestAttributes(); /** + * + * *
    * Output only. The Compute Engine guest attributes. (see
    * [Project and instance
@@ -384,11 +514,14 @@ boolean containsGuestAttributes(
    * attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
    * 
* - * map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.Map - getGuestAttributesMap(); + java.util.Map getGuestAttributesMap(); /** + * + * *
    * Output only. The Compute Engine guest attributes. (see
    * [Project and instance
@@ -396,15 +529,19 @@ boolean containsGuestAttributes(
    * attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
    * 
* - * map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ /* nullable */ -java.lang.String getGuestAttributesOrDefault( + java.lang.String getGuestAttributesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Output only. The Compute Engine guest attributes. (see
    * [Project and instance
@@ -412,13 +549,15 @@ java.lang.String getGuestAttributesOrDefault(
    * attributes](https://cloud.google.com/compute/docs/storing-retrieving-metadata#guest_attributes)).
    * 
* - * map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * map<string, string> guest_attributes = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - - java.lang.String getGuestAttributesOrThrow( - java.lang.String key); + java.lang.String getGuestAttributesOrThrow(java.lang.String key); /** + * + * *
    * Optional. The Compute Engine metadata entries to add to virtual machine. (see
    * [Project and instance
@@ -429,6 +568,8 @@ java.lang.String getGuestAttributesOrThrow(
    */
   int getMetadataCount();
   /**
+   *
+   *
    * 
    * Optional. The Compute Engine metadata entries to add to virtual machine. (see
    * [Project and instance
@@ -437,15 +578,13 @@ java.lang.String getGuestAttributesOrThrow(
    *
    * map<string, string> metadata = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
-  boolean containsMetadata(
-      java.lang.String key);
-  /**
-   * Use {@link #getMetadataMap()} instead.
-   */
+  boolean containsMetadata(java.lang.String key);
+  /** Use {@link #getMetadataMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getMetadata();
+  java.util.Map getMetadata();
   /**
+   *
+   *
    * 
    * Optional. The Compute Engine metadata entries to add to virtual machine. (see
    * [Project and instance
@@ -454,9 +593,10 @@ boolean containsMetadata(
    *
    * map<string, string> metadata = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getMetadataMap();
+  java.util.Map getMetadataMap();
   /**
+   *
+   *
    * 
    * Optional. The Compute Engine metadata entries to add to virtual machine. (see
    * [Project and instance
@@ -467,11 +607,13 @@ boolean containsMetadata(
    */
 
   /* nullable */
-java.lang.String getMetadataOrDefault(
+  java.lang.String getMetadataOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The Compute Engine metadata entries to add to virtual machine. (see
    * [Project and instance
@@ -480,11 +622,11 @@ java.lang.String getMetadataOrDefault(
    *
    * map<string, string> metadata = 15 [(.google.api.field_behavior) = OPTIONAL];
    */
-
-  java.lang.String getMetadataOrThrow(
-      java.lang.String key);
+  java.lang.String getMetadataOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this runtime.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -499,6 +641,8 @@ java.lang.String getMetadataOrThrow(
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this runtime.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -511,15 +655,13 @@ java.lang.String getMetadataOrThrow(
    *
    * map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL];
    */
-  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
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this runtime.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -532,9 +674,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this runtime.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -549,11 +692,13 @@ boolean containsLabels(
    */
 
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Optional. The labels to associate with this runtime.
    * Label **keys** must contain 1 to 63 characters, and must conform to
@@ -566,32 +711,42 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL];
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
    * VirtioNet.
    * 
* - * .google.cloud.notebooks.v1.VirtualMachineConfig.NicType nic_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.VirtualMachineConfig.NicType nic_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for nicType. */ int getNicTypeValue(); /** + * + * *
    * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
    * VirtioNet.
    * 
* - * .google.cloud.notebooks.v1.VirtualMachineConfig.NicType nic_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.VirtualMachineConfig.NicType nic_type = 17 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The nicType. */ com.google.cloud.notebooks.v1.VirtualMachineConfig.NicType getNicType(); /** + * + * *
    * Optional. Reserved IP Range name is used for VPC Peering.
    * The subnetwork allocation will use the range *name* if it's assigned.
@@ -608,10 +763,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string reserved_ip_range = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The reservedIpRange. */ java.lang.String getReservedIpRange(); /** + * + * *
    * Optional. Reserved IP Range name is used for VPC Peering.
    * The subnetwork allocation will use the range *name* if it's assigned.
@@ -628,35 +786,49 @@ java.lang.String getLabelsOrThrow(
    * 
* * string reserved_ip_range = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for reservedIpRange. */ - com.google.protobuf.ByteString - getReservedIpRangeBytes(); + com.google.protobuf.ByteString getReservedIpRangeBytes(); /** + * + * *
    * Optional. Boot image metadata used for runtime upgradeability.
    * 
* - * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the bootImage field is set. */ boolean hasBootImage(); /** + * + * *
    * Optional. Boot image metadata used for runtime upgradeability.
    * 
* - * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bootImage. */ com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImage getBootImage(); /** + * + * *
    * Optional. Boot image metadata used for runtime upgradeability.
    * 
* - * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1.VirtualMachineConfig.BootImage boot_image = 19 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.notebooks.v1.VirtualMachineConfig.BootImageOrBuilder getBootImageOrBuilder(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachineOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachineOrBuilder.java similarity index 71% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachineOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachineOrBuilder.java index 0a794c792e6a..2cdaec392bf4 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachineOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachineOrBuilder.java @@ -1,71 +1,105 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/runtime.proto package com.google.cloud.notebooks.v1; -public interface VirtualMachineOrBuilder extends +public interface VirtualMachineOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.VirtualMachine) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The user-friendly name of the Managed Compute Engine instance.
    * 
* * string instance_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The instanceName. */ java.lang.String getInstanceName(); /** + * + * *
    * Output only. The user-friendly name of the Managed Compute Engine instance.
    * 
* * string instance_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for instanceName. */ - com.google.protobuf.ByteString - getInstanceNameBytes(); + com.google.protobuf.ByteString getInstanceNameBytes(); /** + * + * *
    * Output only. The unique identifier of the Managed Compute Engine instance.
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The instanceId. */ java.lang.String getInstanceId(); /** + * + * *
    * Output only. The unique identifier of the Managed Compute Engine instance.
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString - getInstanceIdBytes(); + com.google.protobuf.ByteString getInstanceIdBytes(); /** + * + * *
    * Virtual Machine configuration settings.
    * 
* * .google.cloud.notebooks.v1.VirtualMachineConfig virtual_machine_config = 3; + * * @return Whether the virtualMachineConfig field is set. */ boolean hasVirtualMachineConfig(); /** + * + * *
    * Virtual Machine configuration settings.
    * 
* * .google.cloud.notebooks.v1.VirtualMachineConfig virtual_machine_config = 3; + * * @return The virtualMachineConfig. */ com.google.cloud.notebooks.v1.VirtualMachineConfig getVirtualMachineConfig(); /** + * + * *
    * Virtual Machine configuration settings.
    * 
diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VmImage.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VmImage.java similarity index 69% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VmImage.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VmImage.java index 7672404b2877..ef39565532a9 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VmImage.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VmImage.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/environment.proto package com.google.cloud.notebooks.v1; /** + * + * *
  * Definition of a custom Compute Engine virtual machine image for starting a
  * notebook instance with the environment installed directly on the VM.
@@ -11,53 +28,58 @@
  *
  * Protobuf type {@code google.cloud.notebooks.v1.VmImage}
  */
-public final class VmImage extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class VmImage extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1.VmImage)
     VmImageOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use VmImage.newBuilder() to construct.
   private VmImage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private VmImage() {
     project_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new VmImage();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.notebooks.v1.EnvironmentProto.internal_static_google_cloud_notebooks_v1_VmImage_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.notebooks.v1.EnvironmentProto
+        .internal_static_google_cloud_notebooks_v1_VmImage_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.notebooks.v1.EnvironmentProto.internal_static_google_cloud_notebooks_v1_VmImage_fieldAccessorTable
+    return com.google.cloud.notebooks.v1.EnvironmentProto
+        .internal_static_google_cloud_notebooks_v1_VmImage_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.notebooks.v1.VmImage.class, com.google.cloud.notebooks.v1.VmImage.Builder.class);
+            com.google.cloud.notebooks.v1.VmImage.class,
+            com.google.cloud.notebooks.v1.VmImage.Builder.class);
   }
 
   private int imageCase_ = 0;
   private java.lang.Object image_;
+
   public enum ImageCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     IMAGE_NAME(2),
     IMAGE_FAMILY(3),
     IMAGE_NOT_SET(0);
     private final int value;
+
     private ImageCase(int value) {
       this.value = value;
     }
@@ -73,32 +95,38 @@ public static ImageCase valueOf(int value) {
 
     public static ImageCase forNumber(int value) {
       switch (value) {
-        case 2: return IMAGE_NAME;
-        case 3: return IMAGE_FAMILY;
-        case 0: return IMAGE_NOT_SET;
-        default: return null;
+        case 2:
+          return IMAGE_NAME;
+        case 3:
+          return IMAGE_FAMILY;
+        case 0:
+          return IMAGE_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public ImageCase
-  getImageCase() {
-    return ImageCase.forNumber(
-        imageCase_);
+  public ImageCase getImageCase() {
+    return ImageCase.forNumber(imageCase_);
   }
 
   public static final int PROJECT_FIELD_NUMBER = 1;
   private volatile java.lang.Object project_;
   /**
+   *
+   *
    * 
    * Required. The name of the Google Cloud project that this VM image belongs to.
    * Format: `{project_id}`
    * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The project. */ @java.lang.Override @@ -107,30 +135,30 @@ public java.lang.String getProject() { 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(); project_ = s; return s; } } /** + * + * *
    * Required. The name of the Google Cloud project that this VM image belongs to.
    * Format: `{project_id}`
    * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectBytes() { + public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; 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); project_ = b; return b; } else { @@ -140,22 +168,28 @@ public java.lang.String getProject() { public static final int IMAGE_NAME_FIELD_NUMBER = 2; /** + * + * *
    * Use VM image name to find the image.
    * 
* * string image_name = 2; + * * @return Whether the imageName field is set. */ public boolean hasImageName() { return imageCase_ == 2; } /** + * + * *
    * Use VM image name to find the image.
    * 
* * string image_name = 2; + * * @return The imageName. */ public java.lang.String getImageName() { @@ -166,8 +200,7 @@ public java.lang.String getImageName() { 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 (imageCase_ == 2) { image_ = s; @@ -176,23 +209,24 @@ public java.lang.String getImageName() { } } /** + * + * *
    * Use VM image name to find the image.
    * 
* * string image_name = 2; + * * @return The bytes for imageName. */ - public com.google.protobuf.ByteString - getImageNameBytes() { + public com.google.protobuf.ByteString getImageNameBytes() { java.lang.Object ref = ""; if (imageCase_ == 2) { ref = image_; } 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 (imageCase_ == 2) { image_ = b; } @@ -204,24 +238,30 @@ public java.lang.String getImageName() { public static final int IMAGE_FAMILY_FIELD_NUMBER = 3; /** + * + * *
    * Use this VM image family to find the image; the newest image in this
    * family will be used.
    * 
* * string image_family = 3; + * * @return Whether the imageFamily field is set. */ public boolean hasImageFamily() { return imageCase_ == 3; } /** + * + * *
    * Use this VM image family to find the image; the newest image in this
    * family will be used.
    * 
* * string image_family = 3; + * * @return The imageFamily. */ public java.lang.String getImageFamily() { @@ -232,8 +272,7 @@ public java.lang.String getImageFamily() { 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 (imageCase_ == 3) { image_ = s; @@ -242,24 +281,25 @@ public java.lang.String getImageFamily() { } } /** + * + * *
    * Use this VM image family to find the image; the newest image in this
    * family will be used.
    * 
* * string image_family = 3; + * * @return The bytes for imageFamily. */ - public com.google.protobuf.ByteString - getImageFamilyBytes() { + public com.google.protobuf.ByteString getImageFamilyBytes() { java.lang.Object ref = ""; if (imageCase_ == 3) { ref = image_; } 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 (imageCase_ == 3) { image_ = b; } @@ -270,6 +310,7 @@ public java.lang.String getImageFamily() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -281,8 +322,7 @@ 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(project_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); } @@ -318,24 +358,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.cloud.notebooks.v1.VmImage)) { return super.equals(obj); } com.google.cloud.notebooks.v1.VmImage other = (com.google.cloud.notebooks.v1.VmImage) obj; - if (!getProject() - .equals(other.getProject())) return false; + if (!getProject().equals(other.getProject())) return false; if (!getImageCase().equals(other.getImageCase())) return false; switch (imageCase_) { case 2: - if (!getImageName() - .equals(other.getImageName())) return false; + if (!getImageName().equals(other.getImageName())) return false; break; case 3: - if (!getImageFamily() - .equals(other.getImageFamily())) return false; + if (!getImageFamily().equals(other.getImageFamily())) return false; break; case 0: default: @@ -370,97 +407,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.notebooks.v1.VmImage parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.notebooks.v1.VmImage parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.VmImage 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.cloud.notebooks.v1.VmImage parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.notebooks.v1.VmImage parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.VmImage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1.VmImage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1.VmImage 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.cloud.notebooks.v1.VmImage 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.cloud.notebooks.v1.VmImage 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.cloud.notebooks.v1.VmImage 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.cloud.notebooks.v1.VmImage 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.cloud.notebooks.v1.VmImage 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.cloud.notebooks.v1.VmImage 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.cloud.notebooks.v1.VmImage 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; } /** + * + * *
    * Definition of a custom Compute Engine virtual machine image for starting a
    * notebook instance with the environment installed directly on the VM.
@@ -468,33 +511,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.notebooks.v1.VmImage}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1.VmImage)
       com.google.cloud.notebooks.v1.VmImageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.notebooks.v1.EnvironmentProto.internal_static_google_cloud_notebooks_v1_VmImage_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.notebooks.v1.EnvironmentProto
+          .internal_static_google_cloud_notebooks_v1_VmImage_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.notebooks.v1.EnvironmentProto.internal_static_google_cloud_notebooks_v1_VmImage_fieldAccessorTable
+      return com.google.cloud.notebooks.v1.EnvironmentProto
+          .internal_static_google_cloud_notebooks_v1_VmImage_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.notebooks.v1.VmImage.class, com.google.cloud.notebooks.v1.VmImage.Builder.class);
+              com.google.cloud.notebooks.v1.VmImage.class,
+              com.google.cloud.notebooks.v1.VmImage.Builder.class);
     }
 
     // Construct using com.google.cloud.notebooks.v1.VmImage.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -506,9 +548,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.notebooks.v1.EnvironmentProto.internal_static_google_cloud_notebooks_v1_VmImage_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.notebooks.v1.EnvironmentProto
+          .internal_static_google_cloud_notebooks_v1_VmImage_descriptor;
     }
 
     @java.lang.Override
@@ -527,7 +569,8 @@ public com.google.cloud.notebooks.v1.VmImage build() {
 
     @java.lang.Override
     public com.google.cloud.notebooks.v1.VmImage buildPartial() {
-      com.google.cloud.notebooks.v1.VmImage result = new com.google.cloud.notebooks.v1.VmImage(this);
+      com.google.cloud.notebooks.v1.VmImage result =
+          new com.google.cloud.notebooks.v1.VmImage(this);
       result.project_ = project_;
       if (imageCase_ == 2) {
         result.image_ = image_;
@@ -544,38 +587,39 @@ public com.google.cloud.notebooks.v1.VmImage buildPartial() {
     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.cloud.notebooks.v1.VmImage) {
-        return mergeFrom((com.google.cloud.notebooks.v1.VmImage)other);
+        return mergeFrom((com.google.cloud.notebooks.v1.VmImage) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -589,21 +633,24 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1.VmImage other) {
         onChanged();
       }
       switch (other.getImageCase()) {
-        case IMAGE_NAME: {
-          imageCase_ = 2;
-          image_ = other.image_;
-          onChanged();
-          break;
-        }
-        case IMAGE_FAMILY: {
-          imageCase_ = 3;
-          image_ = other.image_;
-          onChanged();
-          break;
-        }
-        case IMAGE_NOT_SET: {
-          break;
-        }
+        case IMAGE_NAME:
+          {
+            imageCase_ = 2;
+            image_ = other.image_;
+            onChanged();
+            break;
+          }
+        case IMAGE_FAMILY:
+          {
+            imageCase_ = 3;
+            image_ = other.image_;
+            onChanged();
+            break;
+          }
+        case IMAGE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -631,29 +678,33 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              project_ = input.readStringRequireUtf8();
+            case 10:
+              {
+                project_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 10
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
-              imageCase_ = 2;
-              image_ = s;
-              break;
-            } // case 18
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              imageCase_ = 3;
-              image_ = s;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+                break;
+              } // case 10
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                imageCase_ = 2;
+                image_ = s;
+                break;
+              } // case 18
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                imageCase_ = 3;
+                image_ = 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) {
@@ -663,12 +714,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int imageCase_ = 0;
     private java.lang.Object image_;
-    public ImageCase
-        getImageCase() {
-      return ImageCase.forNumber(
-          imageCase_);
+
+    public ImageCase getImageCase() {
+      return ImageCase.forNumber(imageCase_);
     }
 
     public Builder clearImage() {
@@ -678,22 +729,23 @@ public Builder clearImage() {
       return this;
     }
 
-
     private java.lang.Object project_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the Google Cloud project that this VM image belongs to.
      * Format: `{project_id}`
      * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; 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(); project_ = s; return s; @@ -702,21 +754,22 @@ public java.lang.String getProject() { } } /** + * + * *
      * Required. The name of the Google Cloud project that this VM image belongs to.
      * Format: `{project_id}`
      * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for project. */ - public com.google.protobuf.ByteString - getProjectBytes() { + public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; 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); project_ = b; return b; } else { @@ -724,68 +777,78 @@ public java.lang.String getProject() { } } /** + * + * *
      * Required. The name of the Google Cloud project that this VM image belongs to.
      * Format: `{project_id}`
      * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject( - java.lang.String value) { + public Builder setProject(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + project_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the Google Cloud project that this VM image belongs to.
      * Format: `{project_id}`
      * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearProject() { - + project_ = getDefaultInstance().getProject(); onChanged(); return this; } /** + * + * *
      * Required. The name of the Google Cloud project that this VM image belongs to.
      * Format: `{project_id}`
      * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; onChanged(); return this; } /** + * + * *
      * Use VM image name to find the image.
      * 
* * string image_name = 2; + * * @return Whether the imageName field is set. */ @java.lang.Override @@ -793,11 +856,14 @@ public boolean hasImageName() { return imageCase_ == 2; } /** + * + * *
      * Use VM image name to find the image.
      * 
* * string image_name = 2; + * * @return The imageName. */ @java.lang.Override @@ -807,8 +873,7 @@ public java.lang.String getImageName() { ref = image_; } 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 (imageCase_ == 2) { image_ = s; @@ -819,24 +884,25 @@ public java.lang.String getImageName() { } } /** + * + * *
      * Use VM image name to find the image.
      * 
* * string image_name = 2; + * * @return The bytes for imageName. */ @java.lang.Override - public com.google.protobuf.ByteString - getImageNameBytes() { + public com.google.protobuf.ByteString getImageNameBytes() { java.lang.Object ref = ""; if (imageCase_ == 2) { ref = image_; } 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 (imageCase_ == 2) { image_ = b; } @@ -846,30 +912,35 @@ public java.lang.String getImageName() { } } /** + * + * *
      * Use VM image name to find the image.
      * 
* * string image_name = 2; + * * @param value The imageName to set. * @return This builder for chaining. */ - public Builder setImageName( - java.lang.String value) { + public Builder setImageName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - imageCase_ = 2; + throw new NullPointerException(); + } + imageCase_ = 2; image_ = value; onChanged(); return this; } /** + * + * *
      * Use VM image name to find the image.
      * 
* * string image_name = 2; + * * @return This builder for chaining. */ public Builder clearImageName() { @@ -881,20 +952,22 @@ public Builder clearImageName() { return this; } /** + * + * *
      * Use VM image name to find the image.
      * 
* * string image_name = 2; + * * @param value The bytes for imageName to set. * @return This builder for chaining. */ - public Builder setImageNameBytes( - com.google.protobuf.ByteString value) { + public Builder setImageNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); imageCase_ = 2; image_ = value; onChanged(); @@ -902,12 +975,15 @@ public Builder setImageNameBytes( } /** + * + * *
      * Use this VM image family to find the image; the newest image in this
      * family will be used.
      * 
* * string image_family = 3; + * * @return Whether the imageFamily field is set. */ @java.lang.Override @@ -915,12 +991,15 @@ public boolean hasImageFamily() { return imageCase_ == 3; } /** + * + * *
      * Use this VM image family to find the image; the newest image in this
      * family will be used.
      * 
* * string image_family = 3; + * * @return The imageFamily. */ @java.lang.Override @@ -930,8 +1009,7 @@ public java.lang.String getImageFamily() { ref = image_; } 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 (imageCase_ == 3) { image_ = s; @@ -942,25 +1020,26 @@ public java.lang.String getImageFamily() { } } /** + * + * *
      * Use this VM image family to find the image; the newest image in this
      * family will be used.
      * 
* * string image_family = 3; + * * @return The bytes for imageFamily. */ @java.lang.Override - public com.google.protobuf.ByteString - getImageFamilyBytes() { + public com.google.protobuf.ByteString getImageFamilyBytes() { java.lang.Object ref = ""; if (imageCase_ == 3) { ref = image_; } 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 (imageCase_ == 3) { image_ = b; } @@ -970,32 +1049,37 @@ public java.lang.String getImageFamily() { } } /** + * + * *
      * Use this VM image family to find the image; the newest image in this
      * family will be used.
      * 
* * string image_family = 3; + * * @param value The imageFamily to set. * @return This builder for chaining. */ - public Builder setImageFamily( - java.lang.String value) { + public Builder setImageFamily(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - imageCase_ = 3; + throw new NullPointerException(); + } + imageCase_ = 3; image_ = value; onChanged(); return this; } /** + * + * *
      * Use this VM image family to find the image; the newest image in this
      * family will be used.
      * 
* * string image_family = 3; + * * @return This builder for chaining. */ public Builder clearImageFamily() { @@ -1007,29 +1091,31 @@ public Builder clearImageFamily() { return this; } /** + * + * *
      * Use this VM image family to find the image; the newest image in this
      * family will be used.
      * 
* * string image_family = 3; + * * @param value The bytes for imageFamily to set. * @return This builder for chaining. */ - public Builder setImageFamilyBytes( - com.google.protobuf.ByteString value) { + public Builder setImageFamilyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); imageCase_ = 3; image_ = 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); } @@ -1039,12 +1125,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1.VmImage) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1.VmImage) private static final com.google.cloud.notebooks.v1.VmImage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1.VmImage(); } @@ -1053,27 +1139,27 @@ public static com.google.cloud.notebooks.v1.VmImage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VmImage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VmImage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -1088,6 +1174,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1.VmImage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VmImageOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VmImageOrBuilder.java similarity index 70% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VmImageOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VmImageOrBuilder.java index 88a8c7fc0014..1d44db412649 100644 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VmImageOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VmImageOrBuilder.java @@ -1,94 +1,131 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1/environment.proto package com.google.cloud.notebooks.v1; -public interface VmImageOrBuilder extends +public interface VmImageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.VmImage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the Google Cloud project that this VM image belongs to.
    * Format: `{project_id}`
    * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The project. */ java.lang.String getProject(); /** + * + * *
    * Required. The name of the Google Cloud project that this VM image belongs to.
    * Format: `{project_id}`
    * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for project. */ - com.google.protobuf.ByteString - getProjectBytes(); + com.google.protobuf.ByteString getProjectBytes(); /** + * + * *
    * Use VM image name to find the image.
    * 
* * string image_name = 2; + * * @return Whether the imageName field is set. */ boolean hasImageName(); /** + * + * *
    * Use VM image name to find the image.
    * 
* * string image_name = 2; + * * @return The imageName. */ java.lang.String getImageName(); /** + * + * *
    * Use VM image name to find the image.
    * 
* * string image_name = 2; + * * @return The bytes for imageName. */ - com.google.protobuf.ByteString - getImageNameBytes(); + com.google.protobuf.ByteString getImageNameBytes(); /** + * + * *
    * Use this VM image family to find the image; the newest image in this
    * family will be used.
    * 
* * string image_family = 3; + * * @return Whether the imageFamily field is set. */ boolean hasImageFamily(); /** + * + * *
    * Use this VM image family to find the image; the newest image in this
    * family will be used.
    * 
* * string image_family = 3; + * * @return The imageFamily. */ java.lang.String getImageFamily(); /** + * + * *
    * Use this VM image family to find the image; the newest image in this
    * family will be used.
    * 
* * string image_family = 3; + * * @return The bytes for imageFamily. */ - com.google.protobuf.ByteString - getImageFamilyBytes(); + com.google.protobuf.ByteString getImageFamilyBytes(); public com.google.cloud.notebooks.v1.VmImage.ImageCase getImageCase(); } diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/diagnostic_config.proto b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/diagnostic_config.proto similarity index 100% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/diagnostic_config.proto rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/diagnostic_config.proto diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/environment.proto b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/environment.proto similarity index 100% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/environment.proto rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/environment.proto diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/event.proto b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/event.proto similarity index 100% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/event.proto rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/event.proto diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/execution.proto b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/execution.proto similarity index 100% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/execution.proto rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/execution.proto diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/instance.proto b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/instance.proto similarity index 100% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/instance.proto rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/instance.proto diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/instance_config.proto b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/instance_config.proto similarity index 100% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/instance_config.proto rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/instance_config.proto diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/managed_service.proto b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/managed_service.proto similarity index 100% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/managed_service.proto rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/managed_service.proto diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/runtime.proto b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/runtime.proto similarity index 100% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/runtime.proto rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/runtime.proto diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/schedule.proto b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/schedule.proto similarity index 100% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/schedule.proto rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/schedule.proto diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/service.proto b/java-notebooks/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/service.proto similarity index 100% rename from owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/service.proto rename to java-notebooks/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/service.proto diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ContainerImage.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ContainerImage.java similarity index 68% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ContainerImage.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ContainerImage.java index 9e7f5a224210..4e74e47a49a1 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ContainerImage.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ContainerImage.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/environment.proto package com.google.cloud.notebooks.v1beta1; /** + * + * *
  * Definition of a container image for starting a notebook instance with the
  * environment installed in a container.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.notebooks.v1beta1.ContainerImage}
  */
-public final class ContainerImage extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ContainerImage extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1beta1.ContainerImage)
     ContainerImageOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ContainerImage.newBuilder() to construct.
   private ContainerImage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ContainerImage() {
     repository_ = "";
     tag_ = "";
@@ -27,38 +45,42 @@ private ContainerImage() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ContainerImage();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.notebooks.v1beta1.EnvironmentProto.internal_static_google_cloud_notebooks_v1beta1_ContainerImage_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.notebooks.v1beta1.EnvironmentProto
+        .internal_static_google_cloud_notebooks_v1beta1_ContainerImage_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.notebooks.v1beta1.EnvironmentProto.internal_static_google_cloud_notebooks_v1beta1_ContainerImage_fieldAccessorTable
+    return com.google.cloud.notebooks.v1beta1.EnvironmentProto
+        .internal_static_google_cloud_notebooks_v1beta1_ContainerImage_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.notebooks.v1beta1.ContainerImage.class, com.google.cloud.notebooks.v1beta1.ContainerImage.Builder.class);
+            com.google.cloud.notebooks.v1beta1.ContainerImage.class,
+            com.google.cloud.notebooks.v1beta1.ContainerImage.Builder.class);
   }
 
   public static final int REPOSITORY_FIELD_NUMBER = 1;
   private volatile java.lang.Object repository_;
   /**
+   *
+   *
    * 
    * Required. The path to the container image repository. For example:
    * `gcr.io/{project_id}/{image_name}`
    * 
* * string repository = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The repository. */ @java.lang.Override @@ -67,30 +89,30 @@ public java.lang.String getRepository() { 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(); repository_ = s; return s; } } /** + * + * *
    * Required. The path to the container image repository. For example:
    * `gcr.io/{project_id}/{image_name}`
    * 
* * string repository = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for repository. */ @java.lang.Override - public com.google.protobuf.ByteString - getRepositoryBytes() { + public com.google.protobuf.ByteString getRepositoryBytes() { java.lang.Object ref = repository_; 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); repository_ = b; return b; } else { @@ -101,12 +123,15 @@ public java.lang.String getRepository() { public static final int TAG_FIELD_NUMBER = 2; private volatile java.lang.Object tag_; /** + * + * *
    * The tag of the container image. If not specified, this defaults
    * to the latest tag.
    * 
* * string tag = 2; + * * @return The tag. */ @java.lang.Override @@ -115,30 +140,30 @@ 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; } } /** + * + * *
    * The tag of the container image. If not specified, this defaults
    * to the latest tag.
    * 
* * string tag = 2; + * * @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 { @@ -147,6 +172,7 @@ public java.lang.String getTag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -158,8 +184,7 @@ 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(repository_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, repository_); } @@ -189,17 +214,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.cloud.notebooks.v1beta1.ContainerImage)) { return super.equals(obj); } - com.google.cloud.notebooks.v1beta1.ContainerImage other = (com.google.cloud.notebooks.v1beta1.ContainerImage) obj; + com.google.cloud.notebooks.v1beta1.ContainerImage other = + (com.google.cloud.notebooks.v1beta1.ContainerImage) obj; - if (!getRepository() - .equals(other.getRepository())) return false; - if (!getTag() - .equals(other.getTag())) return false; + if (!getRepository().equals(other.getRepository())) return false; + if (!getTag().equals(other.getTag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -221,96 +245,103 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1beta1.ContainerImage 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.cloud.notebooks.v1beta1.ContainerImage 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.cloud.notebooks.v1beta1.ContainerImage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.ContainerImage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1beta1.ContainerImage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.ContainerImage 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.cloud.notebooks.v1beta1.ContainerImage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.ContainerImage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.ContainerImage 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.cloud.notebooks.v1beta1.ContainerImage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.ContainerImage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.ContainerImage 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.cloud.notebooks.v1beta1.ContainerImage 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.cloud.notebooks.v1beta1.ContainerImage 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.cloud.notebooks.v1beta1.ContainerImage 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; } /** + * + * *
    * Definition of a container image for starting a notebook instance with the
    * environment installed in a container.
@@ -318,33 +349,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.notebooks.v1beta1.ContainerImage}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1beta1.ContainerImage)
       com.google.cloud.notebooks.v1beta1.ContainerImageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.notebooks.v1beta1.EnvironmentProto.internal_static_google_cloud_notebooks_v1beta1_ContainerImage_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.notebooks.v1beta1.EnvironmentProto
+          .internal_static_google_cloud_notebooks_v1beta1_ContainerImage_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.notebooks.v1beta1.EnvironmentProto.internal_static_google_cloud_notebooks_v1beta1_ContainerImage_fieldAccessorTable
+      return com.google.cloud.notebooks.v1beta1.EnvironmentProto
+          .internal_static_google_cloud_notebooks_v1beta1_ContainerImage_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.notebooks.v1beta1.ContainerImage.class, com.google.cloud.notebooks.v1beta1.ContainerImage.Builder.class);
+              com.google.cloud.notebooks.v1beta1.ContainerImage.class,
+              com.google.cloud.notebooks.v1beta1.ContainerImage.Builder.class);
     }
 
     // Construct using com.google.cloud.notebooks.v1beta1.ContainerImage.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -356,9 +386,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.notebooks.v1beta1.EnvironmentProto.internal_static_google_cloud_notebooks_v1beta1_ContainerImage_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.notebooks.v1beta1.EnvironmentProto
+          .internal_static_google_cloud_notebooks_v1beta1_ContainerImage_descriptor;
     }
 
     @java.lang.Override
@@ -377,7 +407,8 @@ public com.google.cloud.notebooks.v1beta1.ContainerImage build() {
 
     @java.lang.Override
     public com.google.cloud.notebooks.v1beta1.ContainerImage buildPartial() {
-      com.google.cloud.notebooks.v1beta1.ContainerImage result = new com.google.cloud.notebooks.v1beta1.ContainerImage(this);
+      com.google.cloud.notebooks.v1beta1.ContainerImage result =
+          new com.google.cloud.notebooks.v1beta1.ContainerImage(this);
       result.repository_ = repository_;
       result.tag_ = tag_;
       onBuilt();
@@ -388,38 +419,39 @@ public com.google.cloud.notebooks.v1beta1.ContainerImage buildPartial() {
     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.cloud.notebooks.v1beta1.ContainerImage) {
-        return mergeFrom((com.google.cloud.notebooks.v1beta1.ContainerImage)other);
+        return mergeFrom((com.google.cloud.notebooks.v1beta1.ContainerImage) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -427,7 +459,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.ContainerImage other) {
-      if (other == com.google.cloud.notebooks.v1beta1.ContainerImage.getDefaultInstance()) return this;
+      if (other == com.google.cloud.notebooks.v1beta1.ContainerImage.getDefaultInstance())
+        return this;
       if (!other.getRepository().isEmpty()) {
         repository_ = other.repository_;
         onChanged();
@@ -462,22 +495,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              repository_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            case 18: {
-              tag_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                repository_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            case 18:
+              {
+                tag_ = input.readStringRequireUtf8();
+
+                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) {
@@ -490,19 +526,21 @@ public Builder mergeFrom(
 
     private java.lang.Object repository_ = "";
     /**
+     *
+     *
      * 
      * Required. The path to the container image repository. For example:
      * `gcr.io/{project_id}/{image_name}`
      * 
* * string repository = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The repository. */ public java.lang.String getRepository() { java.lang.Object ref = repository_; 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(); repository_ = s; return s; @@ -511,21 +549,22 @@ public java.lang.String getRepository() { } } /** + * + * *
      * Required. The path to the container image repository. For example:
      * `gcr.io/{project_id}/{image_name}`
      * 
* * string repository = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for repository. */ - public com.google.protobuf.ByteString - getRepositoryBytes() { + public com.google.protobuf.ByteString getRepositoryBytes() { java.lang.Object ref = repository_; 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); repository_ = b; return b; } else { @@ -533,57 +572,64 @@ public java.lang.String getRepository() { } } /** + * + * *
      * Required. The path to the container image repository. For example:
      * `gcr.io/{project_id}/{image_name}`
      * 
* * string repository = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The repository to set. * @return This builder for chaining. */ - public Builder setRepository( - java.lang.String value) { + public Builder setRepository(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + repository_ = value; onChanged(); return this; } /** + * + * *
      * Required. The path to the container image repository. For example:
      * `gcr.io/{project_id}/{image_name}`
      * 
* * string repository = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRepository() { - + repository_ = getDefaultInstance().getRepository(); onChanged(); return this; } /** + * + * *
      * Required. The path to the container image repository. For example:
      * `gcr.io/{project_id}/{image_name}`
      * 
* * string repository = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for repository to set. * @return This builder for chaining. */ - public Builder setRepositoryBytes( - com.google.protobuf.ByteString value) { + public Builder setRepositoryBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + repository_ = value; onChanged(); return this; @@ -591,19 +637,21 @@ public Builder setRepositoryBytes( private java.lang.Object tag_ = ""; /** + * + * *
      * The tag of the container image. If not specified, this defaults
      * to the latest tag.
      * 
* * string tag = 2; + * * @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; @@ -612,21 +660,22 @@ public java.lang.String getTag() { } } /** + * + * *
      * The tag of the container image. If not specified, this defaults
      * to the latest tag.
      * 
* * string tag = 2; + * * @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 { @@ -634,64 +683,71 @@ public java.lang.String getTag() { } } /** + * + * *
      * The tag of the container image. If not specified, this defaults
      * to the latest tag.
      * 
* * string tag = 2; + * * @param value The tag to set. * @return This builder for chaining. */ - public Builder setTag( - java.lang.String value) { + public Builder setTag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + tag_ = value; onChanged(); return this; } /** + * + * *
      * The tag of the container image. If not specified, this defaults
      * to the latest tag.
      * 
* * string tag = 2; + * * @return This builder for chaining. */ public Builder clearTag() { - + tag_ = getDefaultInstance().getTag(); onChanged(); return this; } /** + * + * *
      * The tag of the container image. If not specified, this defaults
      * to the latest tag.
      * 
* * string tag = 2; + * * @param value The bytes for tag to set. * @return This builder for chaining. */ - public Builder setTagBytes( - com.google.protobuf.ByteString value) { + public Builder setTagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tag_ = 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); } @@ -701,12 +757,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1beta1.ContainerImage) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1beta1.ContainerImage) private static final com.google.cloud.notebooks.v1beta1.ContainerImage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1beta1.ContainerImage(); } @@ -715,27 +771,27 @@ public static com.google.cloud.notebooks.v1beta1.ContainerImage getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContainerImage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContainerImage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -750,6 +806,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1beta1.ContainerImage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ContainerImageOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ContainerImageOrBuilder.java similarity index 61% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ContainerImageOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ContainerImageOrBuilder.java index 1a3136fbe4b7..ed5860d2e4e3 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ContainerImageOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ContainerImageOrBuilder.java @@ -1,53 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/environment.proto package com.google.cloud.notebooks.v1beta1; -public interface ContainerImageOrBuilder extends +public interface ContainerImageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1beta1.ContainerImage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The path to the container image repository. For example:
    * `gcr.io/{project_id}/{image_name}`
    * 
* * string repository = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The repository. */ java.lang.String getRepository(); /** + * + * *
    * Required. The path to the container image repository. For example:
    * `gcr.io/{project_id}/{image_name}`
    * 
* * string repository = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for repository. */ - com.google.protobuf.ByteString - getRepositoryBytes(); + com.google.protobuf.ByteString getRepositoryBytes(); /** + * + * *
    * The tag of the container image. If not specified, this defaults
    * to the latest tag.
    * 
* * string tag = 2; + * * @return The tag. */ java.lang.String getTag(); /** + * + * *
    * The tag of the container image. If not specified, this defaults
    * to the latest tag.
    * 
* * string tag = 2; + * * @return The bytes for tag. */ - com.google.protobuf.ByteString - getTagBytes(); + com.google.protobuf.ByteString getTagBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateEnvironmentRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateEnvironmentRequest.java similarity index 66% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateEnvironmentRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateEnvironmentRequest.java index e3a7557eced7..25401fbda93e 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateEnvironmentRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateEnvironmentRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; /** + * + * *
  * Request for creating a notebook environment.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.CreateEnvironmentRequest} */ -public final class CreateEnvironmentRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateEnvironmentRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1beta1.CreateEnvironmentRequest) CreateEnvironmentRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateEnvironmentRequest.newBuilder() to construct. private CreateEnvironmentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateEnvironmentRequest() { parent_ = ""; environmentId_ = ""; @@ -26,37 +44,41 @@ private CreateEnvironmentRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateEnvironmentRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_CreateEnvironmentRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_CreateEnvironmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_CreateEnvironmentRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_CreateEnvironmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest.class, com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest.class, + com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Format: `projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -65,29 +87,29 @@ 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; } } /** + * + * *
    * Required. Format: `projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -98,6 +120,8 @@ public java.lang.String getParent() { public static final int ENVIRONMENT_ID_FIELD_NUMBER = 2; private volatile java.lang.Object environmentId_; /** + * + * *
    * Required. User-defined unique ID of this environment. The `environment_id` must
    * be 1 to 63 characters long and contain only lowercase letters,
@@ -106,6 +130,7 @@ public java.lang.String getParent() {
    * 
* * string environment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The environmentId. */ @java.lang.Override @@ -114,14 +139,15 @@ public java.lang.String getEnvironmentId() { 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(); environmentId_ = s; return s; } } /** + * + * *
    * Required. User-defined unique ID of this environment. The `environment_id` must
    * be 1 to 63 characters long and contain only lowercase letters,
@@ -130,16 +156,15 @@ public java.lang.String getEnvironmentId() {
    * 
* * string environment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for environmentId. */ @java.lang.Override - public com.google.protobuf.ByteString - getEnvironmentIdBytes() { + public com.google.protobuf.ByteString getEnvironmentIdBytes() { java.lang.Object ref = environmentId_; 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); environmentId_ = b; return b; } else { @@ -150,11 +175,16 @@ public java.lang.String getEnvironmentId() { public static final int ENVIRONMENT_FIELD_NUMBER = 3; private com.google.cloud.notebooks.v1beta1.Environment environment_; /** + * + * *
    * Required. The environment to be created.
    * 
* - * .google.cloud.notebooks.v1beta1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the environment field is set. */ @java.lang.Override @@ -162,23 +192,34 @@ public boolean hasEnvironment() { return environment_ != null; } /** + * + * *
    * Required. The environment to be created.
    * 
* - * .google.cloud.notebooks.v1beta1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The environment. */ @java.lang.Override public com.google.cloud.notebooks.v1beta1.Environment getEnvironment() { - return environment_ == null ? com.google.cloud.notebooks.v1beta1.Environment.getDefaultInstance() : environment_; + return environment_ == null + ? com.google.cloud.notebooks.v1beta1.Environment.getDefaultInstance() + : environment_; } /** + * + * *
    * Required. The environment to be created.
    * 
* - * .google.cloud.notebooks.v1beta1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.notebooks.v1beta1.EnvironmentOrBuilder getEnvironmentOrBuilder() { @@ -186,6 +227,7 @@ public com.google.cloud.notebooks.v1beta1.EnvironmentOrBuilder getEnvironmentOrB } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -197,8 +239,7 @@ 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_); } @@ -224,8 +265,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, environmentId_); } if (environment_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getEnvironment()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEnvironment()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -235,21 +275,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.cloud.notebooks.v1beta1.CreateEnvironmentRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest other = (com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest) obj; + com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest other = + (com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getEnvironmentId() - .equals(other.getEnvironmentId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getEnvironmentId().equals(other.getEnvironmentId())) return false; if (hasEnvironment() != other.hasEnvironment()) return false; if (hasEnvironment()) { - if (!getEnvironment() - .equals(other.getEnvironment())) return false; + if (!getEnvironment().equals(other.getEnvironment())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -276,129 +314,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest 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.cloud.notebooks.v1beta1.CreateEnvironmentRequest 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.cloud.notebooks.v1beta1.CreateEnvironmentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest 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.cloud.notebooks.v1beta1.CreateEnvironmentRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest 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.cloud.notebooks.v1beta1.CreateEnvironmentRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest 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.cloud.notebooks.v1beta1.CreateEnvironmentRequest 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.cloud.notebooks.v1beta1.CreateEnvironmentRequest 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.cloud.notebooks.v1beta1.CreateEnvironmentRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest 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; } /** + * + * *
    * Request for creating a notebook environment.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.CreateEnvironmentRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1beta1.CreateEnvironmentRequest) com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_CreateEnvironmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_CreateEnvironmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_CreateEnvironmentRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_CreateEnvironmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest.class, com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest.class, + com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -416,9 +461,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_CreateEnvironmentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_CreateEnvironmentRequest_descriptor; } @java.lang.Override @@ -437,7 +482,8 @@ public com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest buildPartial() { - com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest result = new com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest(this); + com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest result = + new com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest(this); result.parent_ = parent_; result.environmentId_ = environmentId_; if (environmentBuilder_ == null) { @@ -453,38 +499,39 @@ public com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest buildPartial( 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.cloud.notebooks.v1beta1.CreateEnvironmentRequest) { - return mergeFrom((com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest) other); } else { super.mergeFrom(other); return this; @@ -492,7 +539,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest other) { - if (other == com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -530,29 +578,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - environmentId_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + environmentId_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - input.readMessage( - getEnvironmentFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 18 + case 26: + { + input.readMessage(getEnvironmentFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -565,18 +615,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Format: `projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -585,20 +637,21 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Format: `projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -606,54 +659,61 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Format: `projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format: `projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Format: `projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -661,6 +721,8 @@ public Builder setParentBytes( private java.lang.Object environmentId_ = ""; /** + * + * *
      * Required. User-defined unique ID of this environment. The `environment_id` must
      * be 1 to 63 characters long and contain only lowercase letters,
@@ -669,13 +731,13 @@ public Builder setParentBytes(
      * 
* * string environment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The environmentId. */ public java.lang.String getEnvironmentId() { java.lang.Object ref = environmentId_; 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(); environmentId_ = s; return s; @@ -684,6 +746,8 @@ public java.lang.String getEnvironmentId() { } } /** + * + * *
      * Required. User-defined unique ID of this environment. The `environment_id` must
      * be 1 to 63 characters long and contain only lowercase letters,
@@ -692,15 +756,14 @@ public java.lang.String getEnvironmentId() {
      * 
* * string environment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for environmentId. */ - public com.google.protobuf.ByteString - getEnvironmentIdBytes() { + public com.google.protobuf.ByteString getEnvironmentIdBytes() { java.lang.Object ref = environmentId_; 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); environmentId_ = b; return b; } else { @@ -708,6 +771,8 @@ public java.lang.String getEnvironmentId() { } } /** + * + * *
      * Required. User-defined unique ID of this environment. The `environment_id` must
      * be 1 to 63 characters long and contain only lowercase letters,
@@ -716,20 +781,22 @@ public java.lang.String getEnvironmentId() {
      * 
* * string environment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The environmentId to set. * @return This builder for chaining. */ - public Builder setEnvironmentId( - java.lang.String value) { + public Builder setEnvironmentId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + environmentId_ = value; onChanged(); return this; } /** + * + * *
      * Required. User-defined unique ID of this environment. The `environment_id` must
      * be 1 to 63 characters long and contain only lowercase letters,
@@ -738,15 +805,18 @@ public Builder setEnvironmentId(
      * 
* * string environment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearEnvironmentId() { - + environmentId_ = getDefaultInstance().getEnvironmentId(); onChanged(); return this; } /** + * + * *
      * Required. User-defined unique ID of this environment. The `environment_id` must
      * be 1 to 63 characters long and contain only lowercase letters,
@@ -755,16 +825,16 @@ public Builder clearEnvironmentId() {
      * 
* * string environment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for environmentId to set. * @return This builder for chaining. */ - public Builder setEnvironmentIdBytes( - com.google.protobuf.ByteString value) { + public Builder setEnvironmentIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + environmentId_ = value; onChanged(); return this; @@ -772,39 +842,58 @@ public Builder setEnvironmentIdBytes( private com.google.cloud.notebooks.v1beta1.Environment environment_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1beta1.Environment, com.google.cloud.notebooks.v1beta1.Environment.Builder, com.google.cloud.notebooks.v1beta1.EnvironmentOrBuilder> environmentBuilder_; + com.google.cloud.notebooks.v1beta1.Environment, + com.google.cloud.notebooks.v1beta1.Environment.Builder, + com.google.cloud.notebooks.v1beta1.EnvironmentOrBuilder> + environmentBuilder_; /** + * + * *
      * Required. The environment to be created.
      * 
* - * .google.cloud.notebooks.v1beta1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the environment field is set. */ public boolean hasEnvironment() { return environmentBuilder_ != null || environment_ != null; } /** + * + * *
      * Required. The environment to be created.
      * 
* - * .google.cloud.notebooks.v1beta1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The environment. */ public com.google.cloud.notebooks.v1beta1.Environment getEnvironment() { if (environmentBuilder_ == null) { - return environment_ == null ? com.google.cloud.notebooks.v1beta1.Environment.getDefaultInstance() : environment_; + return environment_ == null + ? com.google.cloud.notebooks.v1beta1.Environment.getDefaultInstance() + : environment_; } else { return environmentBuilder_.getMessage(); } } /** + * + * *
      * Required. The environment to be created.
      * 
* - * .google.cloud.notebooks.v1beta1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setEnvironment(com.google.cloud.notebooks.v1beta1.Environment value) { if (environmentBuilder_ == null) { @@ -820,11 +909,15 @@ public Builder setEnvironment(com.google.cloud.notebooks.v1beta1.Environment val return this; } /** + * + * *
      * Required. The environment to be created.
      * 
* - * .google.cloud.notebooks.v1beta1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setEnvironment( com.google.cloud.notebooks.v1beta1.Environment.Builder builderForValue) { @@ -838,17 +931,23 @@ public Builder setEnvironment( return this; } /** + * + * *
      * Required. The environment to be created.
      * 
* - * .google.cloud.notebooks.v1beta1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeEnvironment(com.google.cloud.notebooks.v1beta1.Environment value) { if (environmentBuilder_ == null) { if (environment_ != null) { environment_ = - com.google.cloud.notebooks.v1beta1.Environment.newBuilder(environment_).mergeFrom(value).buildPartial(); + com.google.cloud.notebooks.v1beta1.Environment.newBuilder(environment_) + .mergeFrom(value) + .buildPartial(); } else { environment_ = value; } @@ -860,11 +959,15 @@ public Builder mergeEnvironment(com.google.cloud.notebooks.v1beta1.Environment v return this; } /** + * + * *
      * Required. The environment to be created.
      * 
* - * .google.cloud.notebooks.v1beta1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearEnvironment() { if (environmentBuilder_ == null) { @@ -878,55 +981,71 @@ public Builder clearEnvironment() { return this; } /** + * + * *
      * Required. The environment to be created.
      * 
* - * .google.cloud.notebooks.v1beta1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.notebooks.v1beta1.Environment.Builder getEnvironmentBuilder() { - + onChanged(); return getEnvironmentFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The environment to be created.
      * 
* - * .google.cloud.notebooks.v1beta1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.notebooks.v1beta1.EnvironmentOrBuilder getEnvironmentOrBuilder() { if (environmentBuilder_ != null) { return environmentBuilder_.getMessageOrBuilder(); } else { - return environment_ == null ? - com.google.cloud.notebooks.v1beta1.Environment.getDefaultInstance() : environment_; + return environment_ == null + ? com.google.cloud.notebooks.v1beta1.Environment.getDefaultInstance() + : environment_; } } /** + * + * *
      * Required. The environment to be created.
      * 
* - * .google.cloud.notebooks.v1beta1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1beta1.Environment, com.google.cloud.notebooks.v1beta1.Environment.Builder, com.google.cloud.notebooks.v1beta1.EnvironmentOrBuilder> + com.google.cloud.notebooks.v1beta1.Environment, + com.google.cloud.notebooks.v1beta1.Environment.Builder, + com.google.cloud.notebooks.v1beta1.EnvironmentOrBuilder> getEnvironmentFieldBuilder() { if (environmentBuilder_ == null) { - environmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1beta1.Environment, com.google.cloud.notebooks.v1beta1.Environment.Builder, com.google.cloud.notebooks.v1beta1.EnvironmentOrBuilder>( - getEnvironment(), - getParentForChildren(), - isClean()); + environmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1beta1.Environment, + com.google.cloud.notebooks.v1beta1.Environment.Builder, + com.google.cloud.notebooks.v1beta1.EnvironmentOrBuilder>( + getEnvironment(), getParentForChildren(), isClean()); environment_ = null; } return environmentBuilder_; } + @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 +1055,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1beta1.CreateEnvironmentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1beta1.CreateEnvironmentRequest) private static final com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest(); } @@ -950,27 +1069,27 @@ public static com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateEnvironmentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateEnvironmentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -985,6 +1104,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateEnvironmentRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateEnvironmentRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateEnvironmentRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateEnvironmentRequestOrBuilder.java index 88a4b7c86cbc..4b476a19c814 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateEnvironmentRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateEnvironmentRequestOrBuilder.java @@ -1,33 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; -public interface CreateEnvironmentRequestOrBuilder extends +public interface CreateEnvironmentRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1beta1.CreateEnvironmentRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format: `projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Format: `projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. User-defined unique ID of this environment. The `environment_id` must
    * be 1 to 63 characters long and contain only lowercase letters,
@@ -36,10 +59,13 @@ public interface CreateEnvironmentRequestOrBuilder extends
    * 
* * string environment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The environmentId. */ java.lang.String getEnvironmentId(); /** + * + * *
    * Required. User-defined unique ID of this environment. The `environment_id` must
    * be 1 to 63 characters long and contain only lowercase letters,
@@ -48,35 +74,49 @@ public interface CreateEnvironmentRequestOrBuilder extends
    * 
* * string environment_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for environmentId. */ - com.google.protobuf.ByteString - getEnvironmentIdBytes(); + com.google.protobuf.ByteString getEnvironmentIdBytes(); /** + * + * *
    * Required. The environment to be created.
    * 
* - * .google.cloud.notebooks.v1beta1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the environment field is set. */ boolean hasEnvironment(); /** + * + * *
    * Required. The environment to be created.
    * 
* - * .google.cloud.notebooks.v1beta1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The environment. */ com.google.cloud.notebooks.v1beta1.Environment getEnvironment(); /** + * + * *
    * Required. The environment to be created.
    * 
* - * .google.cloud.notebooks.v1beta1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Environment environment = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.notebooks.v1beta1.EnvironmentOrBuilder getEnvironmentOrBuilder(); } diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateInstanceRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateInstanceRequest.java similarity index 65% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateInstanceRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateInstanceRequest.java index cc2bf58b8195..c1785898a81c 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateInstanceRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateInstanceRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; /** + * + * *
  * Request for creating a notebook instance.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.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_ = ""; @@ -26,38 +44,42 @@ private CreateInstanceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_CreateInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_CreateInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.CreateInstanceRequest.class, com.google.cloud.notebooks.v1beta1.CreateInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.CreateInstanceRequest.class, + com.google.cloud.notebooks.v1beta1.CreateInstanceRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -66,30 +88,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; } } /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -100,11 +122,14 @@ public java.lang.String getParent() { public static final int INSTANCE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object instanceId_; /** + * + * *
    * Required. User-defined unique ID of this instance.
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The instanceId. */ @java.lang.Override @@ -113,29 +138,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; } } /** + * + * *
    * Required. User-defined unique ID of this instance.
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -146,11 +171,16 @@ public java.lang.String getInstanceId() { public static final int INSTANCE_FIELD_NUMBER = 3; private com.google.cloud.notebooks.v1beta1.Instance instance_; /** + * + * *
    * Required. The instance to be created.
    * 
* - * .google.cloud.notebooks.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ @java.lang.Override @@ -158,23 +188,34 @@ public boolean hasInstance() { return instance_ != null; } /** + * + * *
    * Required. The instance to be created.
    * 
* - * .google.cloud.notebooks.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ @java.lang.Override public com.google.cloud.notebooks.v1beta1.Instance getInstance() { - return instance_ == null ? com.google.cloud.notebooks.v1beta1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.notebooks.v1beta1.Instance.getDefaultInstance() + : instance_; } /** + * + * *
    * Required. The instance to be created.
    * 
* - * .google.cloud.notebooks.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.notebooks.v1beta1.InstanceOrBuilder getInstanceOrBuilder() { @@ -182,6 +223,7 @@ public com.google.cloud.notebooks.v1beta1.InstanceOrBuilder getInstanceOrBuilder } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -193,8 +235,7 @@ 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_); } @@ -220,8 +261,7 @@ 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; @@ -231,21 +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.cloud.notebooks.v1beta1.CreateInstanceRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1beta1.CreateInstanceRequest other = (com.google.cloud.notebooks.v1beta1.CreateInstanceRequest) obj; + com.google.cloud.notebooks.v1beta1.CreateInstanceRequest other = + (com.google.cloud.notebooks.v1beta1.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; @@ -272,129 +310,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.CreateInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.CreateInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1beta1.CreateInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.CreateInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.CreateInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.CreateInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.CreateInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.CreateInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1beta1.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; } /** + * + * *
    * Request for creating a notebook instance.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.CreateInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1beta1.CreateInstanceRequest) com.google.cloud.notebooks.v1beta1.CreateInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_CreateInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_CreateInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_CreateInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_CreateInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.CreateInstanceRequest.class, com.google.cloud.notebooks.v1beta1.CreateInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.CreateInstanceRequest.class, + com.google.cloud.notebooks.v1beta1.CreateInstanceRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1beta1.CreateInstanceRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +457,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_CreateInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_CreateInstanceRequest_descriptor; } @java.lang.Override @@ -433,7 +478,8 @@ public com.google.cloud.notebooks.v1beta1.CreateInstanceRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1beta1.CreateInstanceRequest buildPartial() { - com.google.cloud.notebooks.v1beta1.CreateInstanceRequest result = new com.google.cloud.notebooks.v1beta1.CreateInstanceRequest(this); + com.google.cloud.notebooks.v1beta1.CreateInstanceRequest result = + new com.google.cloud.notebooks.v1beta1.CreateInstanceRequest(this); result.parent_ = parent_; result.instanceId_ = instanceId_; if (instanceBuilder_ == null) { @@ -449,38 +495,39 @@ public com.google.cloud.notebooks.v1beta1.CreateInstanceRequest buildPartial() { 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.cloud.notebooks.v1beta1.CreateInstanceRequest) { - return mergeFrom((com.google.cloud.notebooks.v1beta1.CreateInstanceRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1beta1.CreateInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -488,7 +535,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.CreateInstanceRequest other) { - if (other == com.google.cloud.notebooks.v1beta1.CreateInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1beta1.CreateInstanceRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -526,29 +574,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); + case 10: + { + parent_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - instanceId_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + instanceId_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - input.readMessage( - getInstanceFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 18 + case 26: + { + input.readMessage(getInstanceFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -561,19 +611,21 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -582,21 +634,22 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -604,57 +657,64 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -662,18 +722,20 @@ public Builder setParentBytes( private java.lang.Object instanceId_ = ""; /** + * + * *
      * Required. User-defined unique ID of this instance.
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -682,20 +744,21 @@ public java.lang.String getInstanceId() { } } /** + * + * *
      * Required. User-defined unique ID of this instance.
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -703,54 +766,61 @@ public java.lang.String getInstanceId() { } } /** + * + * *
      * Required. User-defined unique ID of this instance.
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId( - java.lang.String value) { + public Builder setInstanceId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instanceId_ = value; onChanged(); return this; } /** + * + * *
      * Required. User-defined unique ID of this instance.
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearInstanceId() { - + instanceId_ = getDefaultInstance().getInstanceId(); onChanged(); return this; } /** + * + * *
      * Required. User-defined unique ID of this instance.
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceIdBytes( - com.google.protobuf.ByteString value) { + public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceId_ = value; onChanged(); return this; @@ -758,39 +828,58 @@ public Builder setInstanceIdBytes( private com.google.cloud.notebooks.v1beta1.Instance instance_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1beta1.Instance, com.google.cloud.notebooks.v1beta1.Instance.Builder, com.google.cloud.notebooks.v1beta1.InstanceOrBuilder> instanceBuilder_; + com.google.cloud.notebooks.v1beta1.Instance, + com.google.cloud.notebooks.v1beta1.Instance.Builder, + com.google.cloud.notebooks.v1beta1.InstanceOrBuilder> + instanceBuilder_; /** + * + * *
      * Required. The instance to be created.
      * 
* - * .google.cloud.notebooks.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ public boolean hasInstance() { return instanceBuilder_ != null || instance_ != null; } /** + * + * *
      * Required. The instance to be created.
      * 
* - * .google.cloud.notebooks.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ public com.google.cloud.notebooks.v1beta1.Instance getInstance() { if (instanceBuilder_ == null) { - return instance_ == null ? com.google.cloud.notebooks.v1beta1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.notebooks.v1beta1.Instance.getDefaultInstance() + : instance_; } else { return instanceBuilder_.getMessage(); } } /** + * + * *
      * Required. The instance to be created.
      * 
* - * .google.cloud.notebooks.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInstance(com.google.cloud.notebooks.v1beta1.Instance value) { if (instanceBuilder_ == null) { @@ -806,11 +895,15 @@ public Builder setInstance(com.google.cloud.notebooks.v1beta1.Instance value) { return this; } /** + * + * *
      * Required. The instance to be created.
      * 
* - * .google.cloud.notebooks.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInstance( com.google.cloud.notebooks.v1beta1.Instance.Builder builderForValue) { @@ -824,17 +917,23 @@ public Builder setInstance( return this; } /** + * + * *
      * Required. The instance to be created.
      * 
* - * .google.cloud.notebooks.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeInstance(com.google.cloud.notebooks.v1beta1.Instance value) { if (instanceBuilder_ == null) { if (instance_ != null) { instance_ = - com.google.cloud.notebooks.v1beta1.Instance.newBuilder(instance_).mergeFrom(value).buildPartial(); + com.google.cloud.notebooks.v1beta1.Instance.newBuilder(instance_) + .mergeFrom(value) + .buildPartial(); } else { instance_ = value; } @@ -846,11 +945,15 @@ public Builder mergeInstance(com.google.cloud.notebooks.v1beta1.Instance value) return this; } /** + * + * *
      * Required. The instance to be created.
      * 
* - * .google.cloud.notebooks.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInstance() { if (instanceBuilder_ == null) { @@ -864,55 +967,71 @@ public Builder clearInstance() { return this; } /** + * + * *
      * Required. The instance to be created.
      * 
* - * .google.cloud.notebooks.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.notebooks.v1beta1.Instance.Builder getInstanceBuilder() { - + onChanged(); return getInstanceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The instance to be created.
      * 
* - * .google.cloud.notebooks.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.notebooks.v1beta1.InstanceOrBuilder getInstanceOrBuilder() { if (instanceBuilder_ != null) { return instanceBuilder_.getMessageOrBuilder(); } else { - return instance_ == null ? - com.google.cloud.notebooks.v1beta1.Instance.getDefaultInstance() : instance_; + return instance_ == null + ? com.google.cloud.notebooks.v1beta1.Instance.getDefaultInstance() + : instance_; } } /** + * + * *
      * Required. The instance to be created.
      * 
* - * .google.cloud.notebooks.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1beta1.Instance, com.google.cloud.notebooks.v1beta1.Instance.Builder, com.google.cloud.notebooks.v1beta1.InstanceOrBuilder> + com.google.cloud.notebooks.v1beta1.Instance, + com.google.cloud.notebooks.v1beta1.Instance.Builder, + com.google.cloud.notebooks.v1beta1.InstanceOrBuilder> getInstanceFieldBuilder() { if (instanceBuilder_ == null) { - instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1beta1.Instance, com.google.cloud.notebooks.v1beta1.Instance.Builder, com.google.cloud.notebooks.v1beta1.InstanceOrBuilder>( - getInstance(), - getParentForChildren(), - isClean()); + instanceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1beta1.Instance, + com.google.cloud.notebooks.v1beta1.Instance.Builder, + com.google.cloud.notebooks.v1beta1.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); } @@ -922,12 +1041,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1beta1.CreateInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1beta1.CreateInstanceRequest) private static final com.google.cloud.notebooks.v1beta1.CreateInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1beta1.CreateInstanceRequest(); } @@ -936,27 +1055,27 @@ public static com.google.cloud.notebooks.v1beta1.CreateInstanceRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @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 PARSER = + new com.google.protobuf.AbstractParser() { + @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 parser() { return PARSER; @@ -971,6 +1090,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1beta1.CreateInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateInstanceRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateInstanceRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateInstanceRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateInstanceRequestOrBuilder.java index ccc075c904ef..c46111abe844 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateInstanceRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateInstanceRequestOrBuilder.java @@ -1,78 +1,118 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; -public interface CreateInstanceRequestOrBuilder extends +public interface CreateInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1beta1.CreateInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. User-defined unique ID of this instance.
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The instanceId. */ java.lang.String getInstanceId(); /** + * + * *
    * Required. User-defined unique ID of this instance.
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString - getInstanceIdBytes(); + com.google.protobuf.ByteString getInstanceIdBytes(); /** + * + * *
    * Required. The instance to be created.
    * 
* - * .google.cloud.notebooks.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instance field is set. */ boolean hasInstance(); /** + * + * *
    * Required. The instance to be created.
    * 
* - * .google.cloud.notebooks.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instance. */ com.google.cloud.notebooks.v1beta1.Instance getInstance(); /** + * + * *
    * Required. The instance to be created.
    * 
* - * .google.cloud.notebooks.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.notebooks.v1beta1.InstanceOrBuilder getInstanceOrBuilder(); } diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteEnvironmentRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteEnvironmentRequest.java similarity index 65% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteEnvironmentRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteEnvironmentRequest.java index 12cf05571314..d8b5f4dae374 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteEnvironmentRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteEnvironmentRequest.java @@ -1,62 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; /** + * + * *
  * Request for deleting a notebook environment.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest} */ -public final class DeleteEnvironmentRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteEnvironmentRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest) DeleteEnvironmentRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteEnvironmentRequest.newBuilder() to construct. private DeleteEnvironmentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteEnvironmentRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteEnvironmentRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_DeleteEnvironmentRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_DeleteEnvironmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_DeleteEnvironmentRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_DeleteEnvironmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest.class, com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest.class, + com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/environments/{environment_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -65,30 +87,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/environments/{environment_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -97,6 +119,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +131,7 @@ 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_); } @@ -133,15 +155,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.cloud.notebooks.v1beta1.DeleteEnvironmentRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest other = (com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest) obj; + com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest other = + (com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,129 +183,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest 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.cloud.notebooks.v1beta1.DeleteEnvironmentRequest 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.cloud.notebooks.v1beta1.DeleteEnvironmentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest 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.cloud.notebooks.v1beta1.DeleteEnvironmentRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest 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.cloud.notebooks.v1beta1.DeleteEnvironmentRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest 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.cloud.notebooks.v1beta1.DeleteEnvironmentRequest 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.cloud.notebooks.v1beta1.DeleteEnvironmentRequest 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.cloud.notebooks.v1beta1.DeleteEnvironmentRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest 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; } /** + * + * *
    * Request for deleting a notebook environment.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest) com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_DeleteEnvironmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_DeleteEnvironmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_DeleteEnvironmentRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_DeleteEnvironmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest.class, com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest.class, + com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +322,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_DeleteEnvironmentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_DeleteEnvironmentRequest_descriptor; } @java.lang.Override @@ -314,7 +343,8 @@ public com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest buildPartial() { - com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest result = new com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest(this); + com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest result = + new com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +354,39 @@ public com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest buildPartial( 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.cloud.notebooks.v1beta1.DeleteEnvironmentRequest) { - return mergeFrom((com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest) other); } else { super.mergeFrom(other); return this; @@ -363,7 +394,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest other) { - if (other == com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -394,17 +426,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -417,19 +451,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/environments/{environment_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -438,21 +474,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/environments/{environment_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -460,64 +497,71 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/environments/{environment_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/environments/{environment_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/environments/{environment_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -527,12 +571,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest) private static final com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest(); } @@ -541,27 +585,27 @@ public static com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteEnvironmentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteEnvironmentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -576,6 +620,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteEnvironmentRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteEnvironmentRequestOrBuilder.java similarity index 53% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteEnvironmentRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteEnvironmentRequestOrBuilder.java index 04a66e251e2d..65e4732b1b01 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteEnvironmentRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteEnvironmentRequestOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; -public interface DeleteEnvironmentRequestOrBuilder extends +public interface DeleteEnvironmentRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/environments/{environment_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/environments/{environment_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteInstanceRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteInstanceRequest.java similarity index 65% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteInstanceRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteInstanceRequest.java index b4a1934b53f2..b0972f938182 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteInstanceRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteInstanceRequest.java @@ -1,62 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; /** + * + * *
  * Request for deleting a notebook instance.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_DeleteInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_DeleteInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest.class, com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest.class, + com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -65,30 +87,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -97,6 +119,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +131,7 @@ 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_); } @@ -133,15 +155,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.cloud.notebooks.v1beta1.DeleteInstanceRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest other = (com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest) obj; + com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest other = + (com.google.cloud.notebooks.v1beta1.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; } @@ -161,129 +183,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.DeleteInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.DeleteInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.DeleteInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.DeleteInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1beta1.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; } /** + * + * *
    * Request for deleting a notebook instance.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.DeleteInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1beta1.DeleteInstanceRequest) com.google.cloud.notebooks.v1beta1.DeleteInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_DeleteInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_DeleteInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_DeleteInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_DeleteInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest.class, com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest.class, + com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +322,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_DeleteInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_DeleteInstanceRequest_descriptor; } @java.lang.Override @@ -314,7 +343,8 @@ public com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest buildPartial() { - com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest result = new com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest(this); + com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest result = + new com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +354,39 @@ public com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest buildPartial() { 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.cloud.notebooks.v1beta1.DeleteInstanceRequest) { - return mergeFrom((com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -363,7 +394,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest other) { - if (other == com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -394,17 +426,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -417,19 +451,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -438,21 +474,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -460,64 +497,71 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -527,12 +571,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1beta1.DeleteInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1beta1.DeleteInstanceRequest) private static final com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest(); } @@ -541,27 +585,27 @@ public static com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @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 PARSER = + new com.google.protobuf.AbstractParser() { + @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 parser() { return PARSER; @@ -576,6 +620,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteInstanceRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteInstanceRequestOrBuilder.java similarity index 52% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteInstanceRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteInstanceRequestOrBuilder.java index 0531589e13a7..2321418c7ded 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteInstanceRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteInstanceRequestOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; -public interface DeleteInstanceRequestOrBuilder extends +public interface DeleteInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1beta1.DeleteInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/Environment.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/Environment.java similarity index 72% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/Environment.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/Environment.java index fb6f33e8a980..c9f95aba901f 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/Environment.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/Environment.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/environment.proto package com.google.cloud.notebooks.v1beta1; /** + * + * *
  * Definition of a software environment that is used to start a notebook
  * instance.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.notebooks.v1beta1.Environment}
  */
-public final class Environment extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Environment extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1beta1.Environment)
     EnvironmentOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Environment.newBuilder() to construct.
   private Environment(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Environment() {
     name_ = "";
     displayName_ = "";
@@ -29,38 +47,42 @@ private Environment() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Environment();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.notebooks.v1beta1.EnvironmentProto.internal_static_google_cloud_notebooks_v1beta1_Environment_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.notebooks.v1beta1.EnvironmentProto
+        .internal_static_google_cloud_notebooks_v1beta1_Environment_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.notebooks.v1beta1.EnvironmentProto.internal_static_google_cloud_notebooks_v1beta1_Environment_fieldAccessorTable
+    return com.google.cloud.notebooks.v1beta1.EnvironmentProto
+        .internal_static_google_cloud_notebooks_v1beta1_Environment_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.notebooks.v1beta1.Environment.class, com.google.cloud.notebooks.v1beta1.Environment.Builder.class);
+            com.google.cloud.notebooks.v1beta1.Environment.class,
+            com.google.cloud.notebooks.v1beta1.Environment.Builder.class);
   }
 
   private int imageTypeCase_ = 0;
   private java.lang.Object imageType_;
+
   public enum ImageTypeCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     VM_IMAGE(6),
     CONTAINER_IMAGE(7),
     IMAGETYPE_NOT_SET(0);
     private final int value;
+
     private ImageTypeCase(int value) {
       this.value = value;
     }
@@ -76,26 +98,31 @@ public static ImageTypeCase valueOf(int value) {
 
     public static ImageTypeCase forNumber(int value) {
       switch (value) {
-        case 6: return VM_IMAGE;
-        case 7: return CONTAINER_IMAGE;
-        case 0: return IMAGETYPE_NOT_SET;
-        default: return null;
+        case 6:
+          return VM_IMAGE;
+        case 7:
+          return CONTAINER_IMAGE;
+        case 0:
+          return IMAGETYPE_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public ImageTypeCase
-  getImageTypeCase() {
-    return ImageTypeCase.forNumber(
-        imageTypeCase_);
+  public ImageTypeCase getImageTypeCase() {
+    return ImageTypeCase.forNumber(imageTypeCase_);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Output only. Name of this environment.
    * Format:
@@ -103,6 +130,7 @@ public int getNumber() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -111,14 +139,15 @@ 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; } } /** + * + * *
    * Output only. Name of this environment.
    * Format:
@@ -126,16 +155,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -146,11 +174,14 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * Display name of this environment for the UI.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -159,29 +190,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; } } /** + * + * *
    * Display name of this environment for the UI.
    * 
* * string display_name = 2; + * * @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 { @@ -192,11 +223,14 @@ public java.lang.String getDisplayName() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * A brief description of this environment.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -205,29 +239,29 @@ public java.lang.String getDescription() { 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(); description_ = s; return s; } } /** + * + * *
    * A brief description of this environment.
    * 
* * string description = 3; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -237,11 +271,14 @@ public java.lang.String getDescription() { public static final int VM_IMAGE_FIELD_NUMBER = 6; /** + * + * *
    * Use a Compute Engine VM image to start the notebook instance.
    * 
* * .google.cloud.notebooks.v1beta1.VmImage vm_image = 6; + * * @return Whether the vmImage field is set. */ @java.lang.Override @@ -249,21 +286,26 @@ public boolean hasVmImage() { return imageTypeCase_ == 6; } /** + * + * *
    * Use a Compute Engine VM image to start the notebook instance.
    * 
* * .google.cloud.notebooks.v1beta1.VmImage vm_image = 6; + * * @return The vmImage. */ @java.lang.Override public com.google.cloud.notebooks.v1beta1.VmImage getVmImage() { if (imageTypeCase_ == 6) { - return (com.google.cloud.notebooks.v1beta1.VmImage) imageType_; + return (com.google.cloud.notebooks.v1beta1.VmImage) imageType_; } return com.google.cloud.notebooks.v1beta1.VmImage.getDefaultInstance(); } /** + * + * *
    * Use a Compute Engine VM image to start the notebook instance.
    * 
@@ -273,18 +315,21 @@ public com.google.cloud.notebooks.v1beta1.VmImage getVmImage() { @java.lang.Override public com.google.cloud.notebooks.v1beta1.VmImageOrBuilder getVmImageOrBuilder() { if (imageTypeCase_ == 6) { - return (com.google.cloud.notebooks.v1beta1.VmImage) imageType_; + return (com.google.cloud.notebooks.v1beta1.VmImage) imageType_; } return com.google.cloud.notebooks.v1beta1.VmImage.getDefaultInstance(); } public static final int CONTAINER_IMAGE_FIELD_NUMBER = 7; /** + * + * *
    * Use a container image to start the notebook instance.
    * 
* * .google.cloud.notebooks.v1beta1.ContainerImage container_image = 7; + * * @return Whether the containerImage field is set. */ @java.lang.Override @@ -292,21 +337,26 @@ public boolean hasContainerImage() { return imageTypeCase_ == 7; } /** + * + * *
    * Use a container image to start the notebook instance.
    * 
* * .google.cloud.notebooks.v1beta1.ContainerImage container_image = 7; + * * @return The containerImage. */ @java.lang.Override public com.google.cloud.notebooks.v1beta1.ContainerImage getContainerImage() { if (imageTypeCase_ == 7) { - return (com.google.cloud.notebooks.v1beta1.ContainerImage) imageType_; + return (com.google.cloud.notebooks.v1beta1.ContainerImage) imageType_; } return com.google.cloud.notebooks.v1beta1.ContainerImage.getDefaultInstance(); } /** + * + * *
    * Use a container image to start the notebook instance.
    * 
@@ -316,7 +366,7 @@ public com.google.cloud.notebooks.v1beta1.ContainerImage getContainerImage() { @java.lang.Override public com.google.cloud.notebooks.v1beta1.ContainerImageOrBuilder getContainerImageOrBuilder() { if (imageTypeCase_ == 7) { - return (com.google.cloud.notebooks.v1beta1.ContainerImage) imageType_; + return (com.google.cloud.notebooks.v1beta1.ContainerImage) imageType_; } return com.google.cloud.notebooks.v1beta1.ContainerImage.getDefaultInstance(); } @@ -324,6 +374,8 @@ public com.google.cloud.notebooks.v1beta1.ContainerImageOrBuilder getContainerIm public static final int POST_STARTUP_SCRIPT_FIELD_NUMBER = 8; private volatile java.lang.Object postStartupScript_; /** + * + * *
    * Path to a Bash script that automatically runs after a notebook instance
    * fully boots up. The path must be a URL or
@@ -331,6 +383,7 @@ public com.google.cloud.notebooks.v1beta1.ContainerImageOrBuilder getContainerIm
    * 
* * string post_startup_script = 8; + * * @return The postStartupScript. */ @java.lang.Override @@ -339,14 +392,15 @@ public java.lang.String getPostStartupScript() { 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(); postStartupScript_ = s; return s; } } /** + * + * *
    * Path to a Bash script that automatically runs after a notebook instance
    * fully boots up. The path must be a URL or
@@ -354,16 +408,15 @@ public java.lang.String getPostStartupScript() {
    * 
* * string post_startup_script = 8; + * * @return The bytes for postStartupScript. */ @java.lang.Override - public com.google.protobuf.ByteString - getPostStartupScriptBytes() { + public com.google.protobuf.ByteString getPostStartupScriptBytes() { java.lang.Object ref = postStartupScript_; 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); postStartupScript_ = b; return b; } else { @@ -374,11 +427,15 @@ public java.lang.String getPostStartupScript() { public static final int CREATE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time at which this environment was created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -386,11 +443,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time at which this environment was created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -398,11 +459,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time at which this environment was created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -410,6 +474,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -421,8 +486,7 @@ 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_); } @@ -463,19 +527,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (imageTypeCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.cloud.notebooks.v1beta1.VmImage) imageType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.notebooks.v1beta1.VmImage) imageType_); } if (imageTypeCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.cloud.notebooks.v1beta1.ContainerImage) imageType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.notebooks.v1beta1.ContainerImage) imageType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postStartupScript_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, postStartupScript_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCreateTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -485,35 +550,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.cloud.notebooks.v1beta1.Environment)) { return super.equals(obj); } - com.google.cloud.notebooks.v1beta1.Environment other = (com.google.cloud.notebooks.v1beta1.Environment) obj; + com.google.cloud.notebooks.v1beta1.Environment other = + (com.google.cloud.notebooks.v1beta1.Environment) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getPostStartupScript() - .equals(other.getPostStartupScript())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getPostStartupScript().equals(other.getPostStartupScript())) 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 (!getImageTypeCase().equals(other.getImageTypeCase())) return false; switch (imageTypeCase_) { case 6: - if (!getVmImage() - .equals(other.getVmImage())) return false; + if (!getVmImage().equals(other.getVmImage())) return false; break; case 7: - if (!getContainerImage() - .equals(other.getContainerImage())) return false; + if (!getContainerImage().equals(other.getContainerImage())) return false; break; case 0: default: @@ -558,97 +617,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.notebooks.v1beta1.Environment parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.notebooks.v1beta1.Environment parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.Environment 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.cloud.notebooks.v1beta1.Environment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.Environment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1beta1.Environment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.Environment 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.cloud.notebooks.v1beta1.Environment 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.cloud.notebooks.v1beta1.Environment 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.cloud.notebooks.v1beta1.Environment parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.Environment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.Environment 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.cloud.notebooks.v1beta1.Environment 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.cloud.notebooks.v1beta1.Environment 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.cloud.notebooks.v1beta1.Environment 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; } /** + * + * *
    * Definition of a software environment that is used to start a notebook
    * instance.
@@ -656,33 +722,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.notebooks.v1beta1.Environment}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1beta1.Environment)
       com.google.cloud.notebooks.v1beta1.EnvironmentOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.notebooks.v1beta1.EnvironmentProto.internal_static_google_cloud_notebooks_v1beta1_Environment_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.notebooks.v1beta1.EnvironmentProto
+          .internal_static_google_cloud_notebooks_v1beta1_Environment_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.notebooks.v1beta1.EnvironmentProto.internal_static_google_cloud_notebooks_v1beta1_Environment_fieldAccessorTable
+      return com.google.cloud.notebooks.v1beta1.EnvironmentProto
+          .internal_static_google_cloud_notebooks_v1beta1_Environment_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.notebooks.v1beta1.Environment.class, com.google.cloud.notebooks.v1beta1.Environment.Builder.class);
+              com.google.cloud.notebooks.v1beta1.Environment.class,
+              com.google.cloud.notebooks.v1beta1.Environment.Builder.class);
     }
 
     // Construct using com.google.cloud.notebooks.v1beta1.Environment.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -712,9 +777,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.notebooks.v1beta1.EnvironmentProto.internal_static_google_cloud_notebooks_v1beta1_Environment_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.notebooks.v1beta1.EnvironmentProto
+          .internal_static_google_cloud_notebooks_v1beta1_Environment_descriptor;
     }
 
     @java.lang.Override
@@ -733,7 +798,8 @@ public com.google.cloud.notebooks.v1beta1.Environment build() {
 
     @java.lang.Override
     public com.google.cloud.notebooks.v1beta1.Environment buildPartial() {
-      com.google.cloud.notebooks.v1beta1.Environment result = new com.google.cloud.notebooks.v1beta1.Environment(this);
+      com.google.cloud.notebooks.v1beta1.Environment result =
+          new com.google.cloud.notebooks.v1beta1.Environment(this);
       result.name_ = name_;
       result.displayName_ = displayName_;
       result.description_ = description_;
@@ -766,38 +832,39 @@ public com.google.cloud.notebooks.v1beta1.Environment buildPartial() {
     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.cloud.notebooks.v1beta1.Environment) {
-        return mergeFrom((com.google.cloud.notebooks.v1beta1.Environment)other);
+        return mergeFrom((com.google.cloud.notebooks.v1beta1.Environment) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -826,17 +893,20 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.Environment other) {
         mergeCreateTime(other.getCreateTime());
       }
       switch (other.getImageTypeCase()) {
-        case VM_IMAGE: {
-          mergeVmImage(other.getVmImage());
-          break;
-        }
-        case CONTAINER_IMAGE: {
-          mergeContainerImage(other.getContainerImage());
-          break;
-        }
-        case IMAGETYPE_NOT_SET: {
-          break;
-        }
+        case VM_IMAGE:
+          {
+            mergeVmImage(other.getVmImage());
+            break;
+          }
+        case CONTAINER_IMAGE:
+          {
+            mergeContainerImage(other.getContainerImage());
+            break;
+          }
+        case IMAGETYPE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -864,53 +934,55 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 10
-            case 18: {
-              displayName_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 18
-            case 26: {
-              description_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 26
-            case 50: {
-              input.readMessage(
-                  getVmImageFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              imageTypeCase_ = 6;
-              break;
-            } // case 50
-            case 58: {
-              input.readMessage(
-                  getContainerImageFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              imageTypeCase_ = 7;
-              break;
-            } // case 58
-            case 66: {
-              postStartupScript_ = input.readStringRequireUtf8();
-
-              break;
-            } // case 66
-            case 74: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-
-              break;
-            } // case 74
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 10
+            case 18:
+              {
+                displayName_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 18
+            case 26:
+              {
+                description_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 26
+            case 50:
+              {
+                input.readMessage(getVmImageFieldBuilder().getBuilder(), extensionRegistry);
+                imageTypeCase_ = 6;
+                break;
+              } // case 50
+            case 58:
+              {
+                input.readMessage(getContainerImageFieldBuilder().getBuilder(), extensionRegistry);
+                imageTypeCase_ = 7;
+                break;
+              } // case 58
+            case 66:
+              {
+                postStartupScript_ = input.readStringRequireUtf8();
+
+                break;
+              } // case 66
+            case 74:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+
+                break;
+              } // case 74
+            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) {
@@ -920,12 +992,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int imageTypeCase_ = 0;
     private java.lang.Object imageType_;
-    public ImageTypeCase
-        getImageTypeCase() {
-      return ImageTypeCase.forNumber(
-          imageTypeCase_);
+
+    public ImageTypeCase getImageTypeCase() {
+      return ImageTypeCase.forNumber(imageTypeCase_);
     }
 
     public Builder clearImageType() {
@@ -935,9 +1007,10 @@ public Builder clearImageType() {
       return this;
     }
 
-
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. Name of this environment.
      * Format:
@@ -945,13 +1018,13 @@ public Builder clearImageType() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -960,6 +1033,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Name of this environment.
      * Format:
@@ -967,15 +1042,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -983,6 +1057,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Name of this environment.
      * Format:
@@ -990,20 +1066,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Name of this environment.
      * Format:
@@ -1011,15 +1089,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. Name of this environment.
      * Format:
@@ -1027,16 +1108,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1044,18 +1125,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Display name of this environment for the UI.
      * 
* * string display_name = 2; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1064,20 +1147,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Display name of this environment for the UI.
      * 
* * string display_name = 2; + * * @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 { @@ -1085,54 +1169,61 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Display name of this environment for the UI.
      * 
* * string display_name = 2; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * Display name of this environment for the UI.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * Display name of this environment for the UI.
      * 
* * string display_name = 2; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1140,18 +1231,20 @@ public Builder setDisplayNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * A brief description of this environment.
      * 
* * string description = 3; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -1160,20 +1253,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A brief description of this environment.
      * 
* * string description = 3; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -1181,67 +1275,80 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A brief description of this environment.
      * 
* * string description = 3; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * A brief description of this environment.
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * A brief description of this environment.
      * 
* * string description = 3; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1beta1.VmImage, com.google.cloud.notebooks.v1beta1.VmImage.Builder, com.google.cloud.notebooks.v1beta1.VmImageOrBuilder> vmImageBuilder_; + com.google.cloud.notebooks.v1beta1.VmImage, + com.google.cloud.notebooks.v1beta1.VmImage.Builder, + com.google.cloud.notebooks.v1beta1.VmImageOrBuilder> + vmImageBuilder_; /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
* * .google.cloud.notebooks.v1beta1.VmImage vm_image = 6; + * * @return Whether the vmImage field is set. */ @java.lang.Override @@ -1249,11 +1356,14 @@ public boolean hasVmImage() { return imageTypeCase_ == 6; } /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
* * .google.cloud.notebooks.v1beta1.VmImage vm_image = 6; + * * @return The vmImage. */ @java.lang.Override @@ -1271,6 +1381,8 @@ public com.google.cloud.notebooks.v1beta1.VmImage getVmImage() { } } /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
@@ -1291,14 +1403,15 @@ public Builder setVmImage(com.google.cloud.notebooks.v1beta1.VmImage value) { return this; } /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
* * .google.cloud.notebooks.v1beta1.VmImage vm_image = 6; */ - public Builder setVmImage( - com.google.cloud.notebooks.v1beta1.VmImage.Builder builderForValue) { + public Builder setVmImage(com.google.cloud.notebooks.v1beta1.VmImage.Builder builderForValue) { if (vmImageBuilder_ == null) { imageType_ = builderForValue.build(); onChanged(); @@ -1309,6 +1422,8 @@ public Builder setVmImage( return this; } /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
@@ -1317,10 +1432,13 @@ public Builder setVmImage( */ public Builder mergeVmImage(com.google.cloud.notebooks.v1beta1.VmImage value) { if (vmImageBuilder_ == null) { - if (imageTypeCase_ == 6 && - imageType_ != com.google.cloud.notebooks.v1beta1.VmImage.getDefaultInstance()) { - imageType_ = com.google.cloud.notebooks.v1beta1.VmImage.newBuilder((com.google.cloud.notebooks.v1beta1.VmImage) imageType_) - .mergeFrom(value).buildPartial(); + if (imageTypeCase_ == 6 + && imageType_ != com.google.cloud.notebooks.v1beta1.VmImage.getDefaultInstance()) { + imageType_ = + com.google.cloud.notebooks.v1beta1.VmImage.newBuilder( + (com.google.cloud.notebooks.v1beta1.VmImage) imageType_) + .mergeFrom(value) + .buildPartial(); } else { imageType_ = value; } @@ -1336,6 +1454,8 @@ public Builder mergeVmImage(com.google.cloud.notebooks.v1beta1.VmImage value) { return this; } /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
@@ -1359,6 +1479,8 @@ public Builder clearVmImage() { return this; } /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
@@ -1369,6 +1491,8 @@ public com.google.cloud.notebooks.v1beta1.VmImage.Builder getVmImageBuilder() { return getVmImageFieldBuilder().getBuilder(); } /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
@@ -1387,6 +1511,8 @@ public com.google.cloud.notebooks.v1beta1.VmImageOrBuilder getVmImageOrBuilder() } } /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
@@ -1394,32 +1520,44 @@ public com.google.cloud.notebooks.v1beta1.VmImageOrBuilder getVmImageOrBuilder() * .google.cloud.notebooks.v1beta1.VmImage vm_image = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1beta1.VmImage, com.google.cloud.notebooks.v1beta1.VmImage.Builder, com.google.cloud.notebooks.v1beta1.VmImageOrBuilder> + com.google.cloud.notebooks.v1beta1.VmImage, + com.google.cloud.notebooks.v1beta1.VmImage.Builder, + com.google.cloud.notebooks.v1beta1.VmImageOrBuilder> getVmImageFieldBuilder() { if (vmImageBuilder_ == null) { if (!(imageTypeCase_ == 6)) { imageType_ = com.google.cloud.notebooks.v1beta1.VmImage.getDefaultInstance(); } - vmImageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1beta1.VmImage, com.google.cloud.notebooks.v1beta1.VmImage.Builder, com.google.cloud.notebooks.v1beta1.VmImageOrBuilder>( + vmImageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1beta1.VmImage, + com.google.cloud.notebooks.v1beta1.VmImage.Builder, + com.google.cloud.notebooks.v1beta1.VmImageOrBuilder>( (com.google.cloud.notebooks.v1beta1.VmImage) imageType_, getParentForChildren(), isClean()); imageType_ = null; } imageTypeCase_ = 6; - onChanged();; + onChanged(); + ; return vmImageBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1beta1.ContainerImage, com.google.cloud.notebooks.v1beta1.ContainerImage.Builder, com.google.cloud.notebooks.v1beta1.ContainerImageOrBuilder> containerImageBuilder_; + com.google.cloud.notebooks.v1beta1.ContainerImage, + com.google.cloud.notebooks.v1beta1.ContainerImage.Builder, + com.google.cloud.notebooks.v1beta1.ContainerImageOrBuilder> + containerImageBuilder_; /** + * + * *
      * Use a container image to start the notebook instance.
      * 
* * .google.cloud.notebooks.v1beta1.ContainerImage container_image = 7; + * * @return Whether the containerImage field is set. */ @java.lang.Override @@ -1427,11 +1565,14 @@ public boolean hasContainerImage() { return imageTypeCase_ == 7; } /** + * + * *
      * Use a container image to start the notebook instance.
      * 
* * .google.cloud.notebooks.v1beta1.ContainerImage container_image = 7; + * * @return The containerImage. */ @java.lang.Override @@ -1449,6 +1590,8 @@ public com.google.cloud.notebooks.v1beta1.ContainerImage getContainerImage() { } } /** + * + * *
      * Use a container image to start the notebook instance.
      * 
@@ -1469,6 +1612,8 @@ public Builder setContainerImage(com.google.cloud.notebooks.v1beta1.ContainerIma return this; } /** + * + * *
      * Use a container image to start the notebook instance.
      * 
@@ -1487,6 +1632,8 @@ public Builder setContainerImage( return this; } /** + * + * *
      * Use a container image to start the notebook instance.
      * 
@@ -1495,10 +1642,14 @@ public Builder setContainerImage( */ public Builder mergeContainerImage(com.google.cloud.notebooks.v1beta1.ContainerImage value) { if (containerImageBuilder_ == null) { - if (imageTypeCase_ == 7 && - imageType_ != com.google.cloud.notebooks.v1beta1.ContainerImage.getDefaultInstance()) { - imageType_ = com.google.cloud.notebooks.v1beta1.ContainerImage.newBuilder((com.google.cloud.notebooks.v1beta1.ContainerImage) imageType_) - .mergeFrom(value).buildPartial(); + if (imageTypeCase_ == 7 + && imageType_ + != com.google.cloud.notebooks.v1beta1.ContainerImage.getDefaultInstance()) { + imageType_ = + com.google.cloud.notebooks.v1beta1.ContainerImage.newBuilder( + (com.google.cloud.notebooks.v1beta1.ContainerImage) imageType_) + .mergeFrom(value) + .buildPartial(); } else { imageType_ = value; } @@ -1514,6 +1665,8 @@ public Builder mergeContainerImage(com.google.cloud.notebooks.v1beta1.ContainerI return this; } /** + * + * *
      * Use a container image to start the notebook instance.
      * 
@@ -1537,6 +1690,8 @@ public Builder clearContainerImage() { return this; } /** + * + * *
      * Use a container image to start the notebook instance.
      * 
@@ -1547,6 +1702,8 @@ public com.google.cloud.notebooks.v1beta1.ContainerImage.Builder getContainerIma return getContainerImageFieldBuilder().getBuilder(); } /** + * + * *
      * Use a container image to start the notebook instance.
      * 
@@ -1565,6 +1722,8 @@ public com.google.cloud.notebooks.v1beta1.ContainerImageOrBuilder getContainerIm } } /** + * + * *
      * Use a container image to start the notebook instance.
      * 
@@ -1572,26 +1731,34 @@ public com.google.cloud.notebooks.v1beta1.ContainerImageOrBuilder getContainerIm * .google.cloud.notebooks.v1beta1.ContainerImage container_image = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1beta1.ContainerImage, com.google.cloud.notebooks.v1beta1.ContainerImage.Builder, com.google.cloud.notebooks.v1beta1.ContainerImageOrBuilder> + com.google.cloud.notebooks.v1beta1.ContainerImage, + com.google.cloud.notebooks.v1beta1.ContainerImage.Builder, + com.google.cloud.notebooks.v1beta1.ContainerImageOrBuilder> getContainerImageFieldBuilder() { if (containerImageBuilder_ == null) { if (!(imageTypeCase_ == 7)) { imageType_ = com.google.cloud.notebooks.v1beta1.ContainerImage.getDefaultInstance(); } - containerImageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1beta1.ContainerImage, com.google.cloud.notebooks.v1beta1.ContainerImage.Builder, com.google.cloud.notebooks.v1beta1.ContainerImageOrBuilder>( + containerImageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1beta1.ContainerImage, + com.google.cloud.notebooks.v1beta1.ContainerImage.Builder, + com.google.cloud.notebooks.v1beta1.ContainerImageOrBuilder>( (com.google.cloud.notebooks.v1beta1.ContainerImage) imageType_, getParentForChildren(), isClean()); imageType_ = null; } imageTypeCase_ = 7; - onChanged();; + onChanged(); + ; return containerImageBuilder_; } private java.lang.Object postStartupScript_ = ""; /** + * + * *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
@@ -1599,13 +1766,13 @@ public com.google.cloud.notebooks.v1beta1.ContainerImageOrBuilder getContainerIm
      * 
* * string post_startup_script = 8; + * * @return The postStartupScript. */ public java.lang.String getPostStartupScript() { java.lang.Object ref = postStartupScript_; 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(); postStartupScript_ = s; return s; @@ -1614,6 +1781,8 @@ public java.lang.String getPostStartupScript() { } } /** + * + * *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
@@ -1621,15 +1790,14 @@ public java.lang.String getPostStartupScript() {
      * 
* * string post_startup_script = 8; + * * @return The bytes for postStartupScript. */ - public com.google.protobuf.ByteString - getPostStartupScriptBytes() { + public com.google.protobuf.ByteString getPostStartupScriptBytes() { java.lang.Object ref = postStartupScript_; 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); postStartupScript_ = b; return b; } else { @@ -1637,6 +1805,8 @@ public java.lang.String getPostStartupScript() { } } /** + * + * *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
@@ -1644,20 +1814,22 @@ public java.lang.String getPostStartupScript() {
      * 
* * string post_startup_script = 8; + * * @param value The postStartupScript to set. * @return This builder for chaining. */ - public Builder setPostStartupScript( - java.lang.String value) { + public Builder setPostStartupScript(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + postStartupScript_ = value; onChanged(); return this; } /** + * + * *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
@@ -1665,15 +1837,18 @@ public Builder setPostStartupScript(
      * 
* * string post_startup_script = 8; + * * @return This builder for chaining. */ public Builder clearPostStartupScript() { - + postStartupScript_ = getDefaultInstance().getPostStartupScript(); onChanged(); return this; } /** + * + * *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
@@ -1681,16 +1856,16 @@ public Builder clearPostStartupScript() {
      * 
* * string post_startup_script = 8; + * * @param value The bytes for postStartupScript to set. * @return This builder for chaining. */ - public Builder setPostStartupScriptBytes( - com.google.protobuf.ByteString value) { + public Builder setPostStartupScriptBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + postStartupScript_ = value; onChanged(); return this; @@ -1698,39 +1873,58 @@ public Builder setPostStartupScriptBytes( 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_; /** + * + * *
      * Output only. The time at which this environment was created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. The time at which this environment was created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time at which this environment was created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1746,14 +1940,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this environment was created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1764,17 +1961,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time at which this environment was created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1786,11 +1987,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time at which this environment was created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1804,55 +2009,71 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time at which this environment was created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time at which this environment was created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time at which this environment was created.
      * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; } + @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); } @@ -1862,12 +2083,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1beta1.Environment) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1beta1.Environment) private static final com.google.cloud.notebooks.v1beta1.Environment DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1beta1.Environment(); } @@ -1876,27 +2097,27 @@ public static com.google.cloud.notebooks.v1beta1.Environment getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Environment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Environment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -1911,6 +2132,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1beta1.Environment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/EnvironmentOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/EnvironmentOrBuilder.java similarity index 79% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/EnvironmentOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/EnvironmentOrBuilder.java index 8ff57599c4d6..7098ea673505 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/EnvironmentOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/EnvironmentOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/environment.proto package com.google.cloud.notebooks.v1beta1; -public interface EnvironmentOrBuilder extends +public interface EnvironmentOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1beta1.Environment) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Name of this environment.
    * Format:
@@ -15,10 +33,13 @@ public interface EnvironmentOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Name of this environment.
    * Format:
@@ -26,70 +47,88 @@ public interface EnvironmentOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Display name of this environment for the UI.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Display name of this environment for the UI.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * A brief description of this environment.
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * A brief description of this environment.
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Use a Compute Engine VM image to start the notebook instance.
    * 
* * .google.cloud.notebooks.v1beta1.VmImage vm_image = 6; + * * @return Whether the vmImage field is set. */ boolean hasVmImage(); /** + * + * *
    * Use a Compute Engine VM image to start the notebook instance.
    * 
* * .google.cloud.notebooks.v1beta1.VmImage vm_image = 6; + * * @return The vmImage. */ com.google.cloud.notebooks.v1beta1.VmImage getVmImage(); /** + * + * *
    * Use a Compute Engine VM image to start the notebook instance.
    * 
@@ -99,24 +138,32 @@ public interface EnvironmentOrBuilder extends com.google.cloud.notebooks.v1beta1.VmImageOrBuilder getVmImageOrBuilder(); /** + * + * *
    * Use a container image to start the notebook instance.
    * 
* * .google.cloud.notebooks.v1beta1.ContainerImage container_image = 7; + * * @return Whether the containerImage field is set. */ boolean hasContainerImage(); /** + * + * *
    * Use a container image to start the notebook instance.
    * 
* * .google.cloud.notebooks.v1beta1.ContainerImage container_image = 7; + * * @return The containerImage. */ com.google.cloud.notebooks.v1beta1.ContainerImage getContainerImage(); /** + * + * *
    * Use a container image to start the notebook instance.
    * 
@@ -126,6 +173,8 @@ public interface EnvironmentOrBuilder extends com.google.cloud.notebooks.v1beta1.ContainerImageOrBuilder getContainerImageOrBuilder(); /** + * + * *
    * Path to a Bash script that automatically runs after a notebook instance
    * fully boots up. The path must be a URL or
@@ -133,10 +182,13 @@ public interface EnvironmentOrBuilder extends
    * 
* * string post_startup_script = 8; + * * @return The postStartupScript. */ java.lang.String getPostStartupScript(); /** + * + * *
    * Path to a Bash script that automatically runs after a notebook instance
    * fully boots up. The path must be a URL or
@@ -144,35 +196,46 @@ public interface EnvironmentOrBuilder extends
    * 
* * string post_startup_script = 8; + * * @return The bytes for postStartupScript. */ - com.google.protobuf.ByteString - getPostStartupScriptBytes(); + com.google.protobuf.ByteString getPostStartupScriptBytes(); /** + * + * *
    * Output only. The time at which this environment was created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time at which this environment was created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time at which this environment was created.
    * 
* - * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); diff --git a/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/EnvironmentProto.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/EnvironmentProto.java new file mode 100644 index 000000000000..34ec96fb0b8c --- /dev/null +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/EnvironmentProto.java @@ -0,0 +1,128 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/notebooks/v1beta1/environment.proto + +package com.google.cloud.notebooks.v1beta1; + +public final class EnvironmentProto { + private EnvironmentProto() {} + + 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_cloud_notebooks_v1beta1_Environment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_Environment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1beta1_VmImage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_VmImage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1beta1_ContainerImage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_ContainerImage_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/notebooks/v1beta1/environ" + + "ment.proto\022\036google.cloud.notebooks.v1bet" + + "a1\032\037google/api/field_behavior.proto\032\031goo" + + "gle/api/resource.proto\032\037google/protobuf/" + + "timestamp.proto\"\216\003\n\013Environment\022\021\n\004name\030" + + "\001 \001(\tB\003\340A\003\022\024\n\014display_name\030\002 \001(\t\022\023\n\013desc" + + "ription\030\003 \001(\t\022;\n\010vm_image\030\006 \001(\0132\'.google" + + ".cloud.notebooks.v1beta1.VmImageH\000\022I\n\017co" + + "ntainer_image\030\007 \001(\0132..google.cloud.noteb" + + "ooks.v1beta1.ContainerImageH\000\022\033\n\023post_st" + + "artup_script\030\010 \001(\t\0224\n\013create_time\030\t \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003:X\352AU\n$n" + + "otebooks.googleapis.com/Environment\022-pro" + + "jects/{project}/environments/{environmen" + + "t}B\014\n\nimage_type\"V\n\007VmImage\022\024\n\007project\030\001" + + " \001(\tB\003\340A\002\022\024\n\nimage_name\030\002 \001(\tH\000\022\026\n\014image" + + "_family\030\003 \001(\tH\000B\007\n\005image\"6\n\016ContainerIma" + + "ge\022\027\n\nrepository\030\001 \001(\tB\003\340A\002\022\013\n\003tag\030\002 \001(\t" + + "B\347\001\n\"com.google.cloud.notebooks.v1beta1B" + + "\020EnvironmentProtoP\001ZGgoogle.golang.org/g" + + "enproto/googleapis/cloud/notebooks/v1bet" + + "a1;notebooks\252\002\036Google.Cloud.Notebooks.V1" + + "Beta1\312\002\036Google\\Cloud\\Notebooks\\V1beta1\352\002" + + "!Google::Cloud::Notebooks::V1beta1b\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(), + }); + internal_static_google_cloud_notebooks_v1beta1_Environment_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_notebooks_v1beta1_Environment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_Environment_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "VmImage", + "ContainerImage", + "PostStartupScript", + "CreateTime", + "ImageType", + }); + internal_static_google_cloud_notebooks_v1beta1_VmImage_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_notebooks_v1beta1_VmImage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_VmImage_descriptor, + new java.lang.String[] { + "Project", "ImageName", "ImageFamily", "Image", + }); + internal_static_google_cloud_notebooks_v1beta1_ContainerImage_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_notebooks_v1beta1_ContainerImage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_ContainerImage_descriptor, + new java.lang.String[] { + "Repository", "Tag", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetEnvironmentRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetEnvironmentRequest.java similarity index 65% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetEnvironmentRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetEnvironmentRequest.java index 9eb1915e407b..5ccde16bf890 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetEnvironmentRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetEnvironmentRequest.java @@ -1,62 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; /** + * + * *
  * Request for getting a notebook environment.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.GetEnvironmentRequest} */ -public final class GetEnvironmentRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetEnvironmentRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1beta1.GetEnvironmentRequest) GetEnvironmentRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetEnvironmentRequest.newBuilder() to construct. private GetEnvironmentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetEnvironmentRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetEnvironmentRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_GetEnvironmentRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_GetEnvironmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_GetEnvironmentRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_GetEnvironmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest.class, com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest.class, + com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/environments/{environment_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -65,30 +87,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/environments/{environment_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -97,6 +119,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +131,7 @@ 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_); } @@ -133,15 +155,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.cloud.notebooks.v1beta1.GetEnvironmentRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest other = (com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest) obj; + com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest other = + (com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,129 +183,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest 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.cloud.notebooks.v1beta1.GetEnvironmentRequest 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.cloud.notebooks.v1beta1.GetEnvironmentRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest 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.cloud.notebooks.v1beta1.GetEnvironmentRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest 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.cloud.notebooks.v1beta1.GetEnvironmentRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest 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.cloud.notebooks.v1beta1.GetEnvironmentRequest 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.cloud.notebooks.v1beta1.GetEnvironmentRequest 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.cloud.notebooks.v1beta1.GetEnvironmentRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest 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; } /** + * + * *
    * Request for getting a notebook environment.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.GetEnvironmentRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1beta1.GetEnvironmentRequest) com.google.cloud.notebooks.v1beta1.GetEnvironmentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_GetEnvironmentRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_GetEnvironmentRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_GetEnvironmentRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_GetEnvironmentRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest.class, com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest.class, + com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +322,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_GetEnvironmentRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_GetEnvironmentRequest_descriptor; } @java.lang.Override @@ -314,7 +343,8 @@ public com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest buildPartial() { - com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest result = new com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest(this); + com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest result = + new com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +354,39 @@ public com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest buildPartial() { 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.cloud.notebooks.v1beta1.GetEnvironmentRequest) { - return mergeFrom((com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest) other); } else { super.mergeFrom(other); return this; @@ -363,7 +394,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest other) { - if (other == com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -394,17 +426,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -417,19 +451,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/environments/{environment_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -438,21 +474,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/environments/{environment_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -460,64 +497,71 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/environments/{environment_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/environments/{environment_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/environments/{environment_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -527,12 +571,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1beta1.GetEnvironmentRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1beta1.GetEnvironmentRequest) private static final com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest(); } @@ -541,27 +585,27 @@ public static com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetEnvironmentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetEnvironmentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -576,6 +620,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetEnvironmentRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetEnvironmentRequestOrBuilder.java similarity index 53% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetEnvironmentRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetEnvironmentRequestOrBuilder.java index f4d503ea2bb9..6fe1c28f2a77 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetEnvironmentRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetEnvironmentRequestOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; -public interface GetEnvironmentRequestOrBuilder extends +public interface GetEnvironmentRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1beta1.GetEnvironmentRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/environments/{environment_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/environments/{environment_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetInstanceRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetInstanceRequest.java similarity index 65% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetInstanceRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetInstanceRequest.java index ddff694912a5..db45364bd879 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetInstanceRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetInstanceRequest.java @@ -1,62 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; /** + * + * *
  * Request for getting a notebook instance.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_GetInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.GetInstanceRequest.class, com.google.cloud.notebooks.v1beta1.GetInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.GetInstanceRequest.class, + com.google.cloud.notebooks.v1beta1.GetInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -65,30 +87,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -97,6 +119,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +131,7 @@ 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_); } @@ -133,15 +155,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.cloud.notebooks.v1beta1.GetInstanceRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1beta1.GetInstanceRequest other = (com.google.cloud.notebooks.v1beta1.GetInstanceRequest) obj; + com.google.cloud.notebooks.v1beta1.GetInstanceRequest other = + (com.google.cloud.notebooks.v1beta1.GetInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,129 +183,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.GetInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1beta1.GetInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.GetInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.GetInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.GetInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.GetInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.GetInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1beta1.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; } /** + * + * *
    * Request for getting a notebook instance.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.GetInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1beta1.GetInstanceRequest) com.google.cloud.notebooks.v1beta1.GetInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_GetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_GetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_GetInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_GetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.GetInstanceRequest.class, com.google.cloud.notebooks.v1beta1.GetInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.GetInstanceRequest.class, + com.google.cloud.notebooks.v1beta1.GetInstanceRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1beta1.GetInstanceRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +322,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_GetInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_GetInstanceRequest_descriptor; } @java.lang.Override @@ -314,7 +343,8 @@ public com.google.cloud.notebooks.v1beta1.GetInstanceRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1beta1.GetInstanceRequest buildPartial() { - com.google.cloud.notebooks.v1beta1.GetInstanceRequest result = new com.google.cloud.notebooks.v1beta1.GetInstanceRequest(this); + com.google.cloud.notebooks.v1beta1.GetInstanceRequest result = + new com.google.cloud.notebooks.v1beta1.GetInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +354,39 @@ public com.google.cloud.notebooks.v1beta1.GetInstanceRequest buildPartial() { 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.cloud.notebooks.v1beta1.GetInstanceRequest) { - return mergeFrom((com.google.cloud.notebooks.v1beta1.GetInstanceRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1beta1.GetInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -363,7 +394,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.GetInstanceRequest other) { - if (other == com.google.cloud.notebooks.v1beta1.GetInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1beta1.GetInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -394,17 +426,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -417,19 +451,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -438,21 +474,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -460,64 +497,71 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -527,12 +571,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1beta1.GetInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1beta1.GetInstanceRequest) private static final com.google.cloud.notebooks.v1beta1.GetInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1beta1.GetInstanceRequest(); } @@ -541,27 +585,27 @@ public static com.google.cloud.notebooks.v1beta1.GetInstanceRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @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 PARSER = + new com.google.protobuf.AbstractParser() { + @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 parser() { return PARSER; @@ -576,6 +620,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1beta1.GetInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetInstanceRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetInstanceRequestOrBuilder.java similarity index 52% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetInstanceRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetInstanceRequestOrBuilder.java index 7cc011ff535a..419586acd990 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetInstanceRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetInstanceRequestOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; -public interface GetInstanceRequestOrBuilder extends +public interface GetInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1beta1.GetInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/Instance.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/Instance.java similarity index 71% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/Instance.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/Instance.java index 38b68841f131..681b359a4a8f 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/Instance.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/Instance.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/instance.proto package com.google.cloud.notebooks.v1beta1; /** + * + * *
  * The definition of a notebook instance.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.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_ = ""; postStartupScript_ = ""; @@ -39,44 +57,46 @@ private Instance() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Instance(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.InstanceProto.internal_static_google_cloud_notebooks_v1beta1_Instance_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.InstanceProto + .internal_static_google_cloud_notebooks_v1beta1_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 21: return internalGetLabels(); case 22: return internalGetMetadata(); 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.cloud.notebooks.v1beta1.InstanceProto.internal_static_google_cloud_notebooks_v1beta1_Instance_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.InstanceProto + .internal_static_google_cloud_notebooks_v1beta1_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.Instance.class, com.google.cloud.notebooks.v1beta1.Instance.Builder.class); + com.google.cloud.notebooks.v1beta1.Instance.class, + com.google.cloud.notebooks.v1beta1.Instance.Builder.class); } /** + * + * *
    * Definition of the types of hardware accelerators that can be used on this
    * instance.
@@ -84,9 +104,10 @@ protected com.google.protobuf.MapField internalGetMapField(
    *
    * Protobuf enum {@code google.cloud.notebooks.v1beta1.Instance.AcceleratorType}
    */
-  public enum AcceleratorType
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum AcceleratorType implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Accelerator type is not specified.
      * 
@@ -95,6 +116,8 @@ public enum AcceleratorType */ ACCELERATOR_TYPE_UNSPECIFIED(0), /** + * + * *
      * Accelerator type is Nvidia Tesla K80.
      * 
@@ -103,6 +126,8 @@ public enum AcceleratorType */ NVIDIA_TESLA_K80(1), /** + * + * *
      * Accelerator type is Nvidia Tesla P100.
      * 
@@ -111,6 +136,8 @@ public enum AcceleratorType */ NVIDIA_TESLA_P100(2), /** + * + * *
      * Accelerator type is Nvidia Tesla V100.
      * 
@@ -119,6 +146,8 @@ public enum AcceleratorType */ NVIDIA_TESLA_V100(3), /** + * + * *
      * Accelerator type is Nvidia Tesla P4.
      * 
@@ -127,6 +156,8 @@ public enum AcceleratorType */ NVIDIA_TESLA_P4(4), /** + * + * *
      * Accelerator type is Nvidia Tesla T4.
      * 
@@ -135,6 +166,8 @@ public enum AcceleratorType */ NVIDIA_TESLA_T4(5), /** + * + * *
      * Accelerator type is NVIDIA Tesla T4 Virtual Workstations.
      * 
@@ -143,6 +176,8 @@ public enum AcceleratorType */ NVIDIA_TESLA_T4_VWS(8), /** + * + * *
      * Accelerator type is NVIDIA Tesla P100 Virtual Workstations.
      * 
@@ -151,6 +186,8 @@ public enum AcceleratorType */ NVIDIA_TESLA_P100_VWS(9), /** + * + * *
      * Accelerator type is NVIDIA Tesla P4 Virtual Workstations.
      * 
@@ -159,6 +196,8 @@ public enum AcceleratorType */ NVIDIA_TESLA_P4_VWS(10), /** + * + * *
      * (Coming soon) Accelerator type is TPU V2.
      * 
@@ -167,6 +206,8 @@ public enum AcceleratorType */ TPU_V2(6), /** + * + * *
      * (Coming soon) Accelerator type is TPU V3.
      * 
@@ -178,6 +219,8 @@ public enum AcceleratorType ; /** + * + * *
      * Accelerator type is not specified.
      * 
@@ -186,6 +229,8 @@ public enum AcceleratorType */ public static final int ACCELERATOR_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Accelerator type is Nvidia Tesla K80.
      * 
@@ -194,6 +239,8 @@ public enum AcceleratorType */ public static final int NVIDIA_TESLA_K80_VALUE = 1; /** + * + * *
      * Accelerator type is Nvidia Tesla P100.
      * 
@@ -202,6 +249,8 @@ public enum AcceleratorType */ public static final int NVIDIA_TESLA_P100_VALUE = 2; /** + * + * *
      * Accelerator type is Nvidia Tesla V100.
      * 
@@ -210,6 +259,8 @@ public enum AcceleratorType */ public static final int NVIDIA_TESLA_V100_VALUE = 3; /** + * + * *
      * Accelerator type is Nvidia Tesla P4.
      * 
@@ -218,6 +269,8 @@ public enum AcceleratorType */ public static final int NVIDIA_TESLA_P4_VALUE = 4; /** + * + * *
      * Accelerator type is Nvidia Tesla T4.
      * 
@@ -226,6 +279,8 @@ public enum AcceleratorType */ public static final int NVIDIA_TESLA_T4_VALUE = 5; /** + * + * *
      * Accelerator type is NVIDIA Tesla T4 Virtual Workstations.
      * 
@@ -234,6 +289,8 @@ public enum AcceleratorType */ public static final int NVIDIA_TESLA_T4_VWS_VALUE = 8; /** + * + * *
      * Accelerator type is NVIDIA Tesla P100 Virtual Workstations.
      * 
@@ -242,6 +299,8 @@ public enum AcceleratorType */ public static final int NVIDIA_TESLA_P100_VWS_VALUE = 9; /** + * + * *
      * Accelerator type is NVIDIA Tesla P4 Virtual Workstations.
      * 
@@ -250,6 +309,8 @@ public enum AcceleratorType */ public static final int NVIDIA_TESLA_P4_VWS_VALUE = 10; /** + * + * *
      * (Coming soon) Accelerator type is TPU V2.
      * 
@@ -258,6 +319,8 @@ public enum AcceleratorType */ public static final int TPU_V2_VALUE = 6; /** + * + * *
      * (Coming soon) Accelerator type is TPU V3.
      * 
@@ -266,7 +329,6 @@ public enum AcceleratorType */ public static final int TPU_V3_VALUE = 7; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -291,47 +353,58 @@ public static AcceleratorType valueOf(int value) { */ public static AcceleratorType forNumber(int value) { switch (value) { - case 0: return ACCELERATOR_TYPE_UNSPECIFIED; - case 1: return NVIDIA_TESLA_K80; - case 2: return NVIDIA_TESLA_P100; - case 3: return NVIDIA_TESLA_V100; - case 4: return NVIDIA_TESLA_P4; - case 5: return NVIDIA_TESLA_T4; - case 8: return NVIDIA_TESLA_T4_VWS; - case 9: return NVIDIA_TESLA_P100_VWS; - case 10: return NVIDIA_TESLA_P4_VWS; - case 6: return TPU_V2; - case 7: return TPU_V3; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + case 0: + return ACCELERATOR_TYPE_UNSPECIFIED; + case 1: + return NVIDIA_TESLA_K80; + case 2: + return NVIDIA_TESLA_P100; + case 3: + return NVIDIA_TESLA_V100; + case 4: + return NVIDIA_TESLA_P4; + case 5: + return NVIDIA_TESLA_T4; + case 8: + return NVIDIA_TESLA_T4_VWS; + case 9: + return NVIDIA_TESLA_P100_VWS; + case 10: + return NVIDIA_TESLA_P4_VWS; + case 6: + return TPU_V2; + case 7: + return TPU_V3; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - AcceleratorType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AcceleratorType findValueByNumber(int number) { - return AcceleratorType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AcceleratorType findValueByNumber(int number) { + return AcceleratorType.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.cloud.notebooks.v1beta1.Instance.getDescriptor().getEnumTypes().get(0); } @@ -340,8 +413,7 @@ public AcceleratorType findValueByNumber(int number) { public static AcceleratorType 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; @@ -359,15 +431,18 @@ private AcceleratorType(int value) { } /** + * + * *
    * The definition of the states of this instance.
    * 
* * Protobuf enum {@code google.cloud.notebooks.v1beta1.Instance.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * State is not specified.
      * 
@@ -376,6 +451,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The control logic is starting the instance.
      * 
@@ -384,6 +461,8 @@ public enum State */ STARTING(1), /** + * + * *
      * The control logic is installing required frameworks and registering the
      * instance with notebook proxy
@@ -393,6 +472,8 @@ public enum State
      */
     PROVISIONING(2),
     /**
+     *
+     *
      * 
      * The instance is running.
      * 
@@ -401,6 +482,8 @@ public enum State */ ACTIVE(3), /** + * + * *
      * The control logic is stopping the instance.
      * 
@@ -409,6 +492,8 @@ public enum State */ STOPPING(4), /** + * + * *
      * The instance is stopped.
      * 
@@ -417,6 +502,8 @@ public enum State */ STOPPED(5), /** + * + * *
      * The instance is deleted.
      * 
@@ -425,6 +512,8 @@ public enum State */ DELETED(6), /** + * + * *
      * The instance is upgrading.
      * 
@@ -433,6 +522,8 @@ public enum State */ UPGRADING(7), /** + * + * *
      * The instance is being created.
      * 
@@ -441,6 +532,8 @@ public enum State */ INITIALIZING(8), /** + * + * *
      * The instance is getting registered.
      * 
@@ -449,6 +542,8 @@ public enum State */ REGISTERING(9), /** + * + * *
      * The instance is suspending.
      * 
@@ -457,6 +552,8 @@ public enum State */ SUSPENDING(10), /** + * + * *
      * The instance is suspended.
      * 
@@ -468,6 +565,8 @@ public enum State ; /** + * + * *
      * State is not specified.
      * 
@@ -476,6 +575,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The control logic is starting the instance.
      * 
@@ -484,6 +585,8 @@ public enum State */ public static final int STARTING_VALUE = 1; /** + * + * *
      * The control logic is installing required frameworks and registering the
      * instance with notebook proxy
@@ -493,6 +596,8 @@ public enum State
      */
     public static final int PROVISIONING_VALUE = 2;
     /**
+     *
+     *
      * 
      * The instance is running.
      * 
@@ -501,6 +606,8 @@ public enum State */ public static final int ACTIVE_VALUE = 3; /** + * + * *
      * The control logic is stopping the instance.
      * 
@@ -509,6 +616,8 @@ public enum State */ public static final int STOPPING_VALUE = 4; /** + * + * *
      * The instance is stopped.
      * 
@@ -517,6 +626,8 @@ public enum State */ public static final int STOPPED_VALUE = 5; /** + * + * *
      * The instance is deleted.
      * 
@@ -525,6 +636,8 @@ public enum State */ public static final int DELETED_VALUE = 6; /** + * + * *
      * The instance is upgrading.
      * 
@@ -533,6 +646,8 @@ public enum State */ public static final int UPGRADING_VALUE = 7; /** + * + * *
      * The instance is being created.
      * 
@@ -541,6 +656,8 @@ public enum State */ public static final int INITIALIZING_VALUE = 8; /** + * + * *
      * The instance is getting registered.
      * 
@@ -549,6 +666,8 @@ public enum State */ public static final int REGISTERING_VALUE = 9; /** + * + * *
      * The instance is suspending.
      * 
@@ -557,6 +676,8 @@ public enum State */ public static final int SUSPENDING_VALUE = 10; /** + * + * *
      * The instance is suspended.
      * 
@@ -565,7 +686,6 @@ public enum State */ public static final int SUSPENDED_VALUE = 11; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -590,58 +710,67 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return STARTING; - case 2: return PROVISIONING; - case 3: return ACTIVE; - case 4: return STOPPING; - case 5: return STOPPED; - case 6: return DELETED; - case 7: return UPGRADING; - case 8: return INITIALIZING; - case 9: return REGISTERING; - case 10: return SUSPENDING; - case 11: return SUSPENDED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + case 0: + return STATE_UNSPECIFIED; + case 1: + return STARTING; + case 2: + return PROVISIONING; + case 3: + return ACTIVE; + case 4: + return STOPPING; + case 5: + return STOPPED; + case 6: + return DELETED; + case 7: + return UPGRADING; + case 8: + return INITIALIZING; + case 9: + return REGISTERING; + case 10: + return SUSPENDING; + case 11: + return SUSPENDED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.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.cloud.notebooks.v1beta1.Instance.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; @@ -659,15 +788,18 @@ private State(int value) { } /** + * + * *
    * Possible disk types for notebook instances.
    * 
* * Protobuf enum {@code google.cloud.notebooks.v1beta1.Instance.DiskType} */ - public enum DiskType - implements com.google.protobuf.ProtocolMessageEnum { + public enum DiskType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Disk type not set.
      * 
@@ -676,6 +808,8 @@ public enum DiskType */ DISK_TYPE_UNSPECIFIED(0), /** + * + * *
      * Standard persistent disk type.
      * 
@@ -684,6 +818,8 @@ public enum DiskType */ PD_STANDARD(1), /** + * + * *
      * SSD persistent disk type.
      * 
@@ -692,6 +828,8 @@ public enum DiskType */ PD_SSD(2), /** + * + * *
      * Balanced persistent disk type.
      * 
@@ -703,6 +841,8 @@ public enum DiskType ; /** + * + * *
      * Disk type not set.
      * 
@@ -711,6 +851,8 @@ public enum DiskType */ public static final int DISK_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Standard persistent disk type.
      * 
@@ -719,6 +861,8 @@ public enum DiskType */ public static final int PD_STANDARD_VALUE = 1; /** + * + * *
      * SSD persistent disk type.
      * 
@@ -727,6 +871,8 @@ public enum DiskType */ public static final int PD_SSD_VALUE = 2; /** + * + * *
      * Balanced persistent disk type.
      * 
@@ -735,7 +881,6 @@ public enum DiskType */ public static final int PD_BALANCED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -760,50 +905,51 @@ public static DiskType valueOf(int value) { */ public static DiskType forNumber(int value) { switch (value) { - case 0: return DISK_TYPE_UNSPECIFIED; - case 1: return PD_STANDARD; - case 2: return PD_SSD; - case 3: return PD_BALANCED; - default: return null; + case 0: + return DISK_TYPE_UNSPECIFIED; + case 1: + return PD_STANDARD; + case 2: + return PD_SSD; + case 3: + return PD_BALANCED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - DiskType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DiskType findValueByNumber(int number) { - return DiskType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DiskType findValueByNumber(int number) { + return DiskType.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.cloud.notebooks.v1beta1.Instance.getDescriptor().getEnumTypes().get(2); } private static final DiskType[] VALUES = values(); - public static DiskType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static DiskType 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; @@ -821,15 +967,18 @@ private DiskType(int value) { } /** + * + * *
    * Definition of the disk encryption options.
    * 
* * Protobuf enum {@code google.cloud.notebooks.v1beta1.Instance.DiskEncryption} */ - public enum DiskEncryption - implements com.google.protobuf.ProtocolMessageEnum { + public enum DiskEncryption implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Disk encryption is not specified.
      * 
@@ -838,6 +987,8 @@ public enum DiskEncryption */ DISK_ENCRYPTION_UNSPECIFIED(0), /** + * + * *
      * Use Google managed encryption keys to encrypt the boot disk.
      * 
@@ -846,6 +997,8 @@ public enum DiskEncryption */ GMEK(1), /** + * + * *
      * Use customer managed encryption keys to encrypt the boot disk.
      * 
@@ -857,6 +1010,8 @@ public enum DiskEncryption ; /** + * + * *
      * Disk encryption is not specified.
      * 
@@ -865,6 +1020,8 @@ public enum DiskEncryption */ public static final int DISK_ENCRYPTION_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Use Google managed encryption keys to encrypt the boot disk.
      * 
@@ -873,6 +1030,8 @@ public enum DiskEncryption */ public static final int GMEK_VALUE = 1; /** + * + * *
      * Use customer managed encryption keys to encrypt the boot disk.
      * 
@@ -881,7 +1040,6 @@ public enum DiskEncryption */ public static final int CMEK_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -906,49 +1064,49 @@ public static DiskEncryption valueOf(int value) { */ public static DiskEncryption forNumber(int value) { switch (value) { - case 0: return DISK_ENCRYPTION_UNSPECIFIED; - case 1: return GMEK; - case 2: return CMEK; - default: return null; + case 0: + return DISK_ENCRYPTION_UNSPECIFIED; + case 1: + return GMEK; + case 2: + return CMEK; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - DiskEncryption> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DiskEncryption findValueByNumber(int number) { - return DiskEncryption.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DiskEncryption findValueByNumber(int number) { + return DiskEncryption.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.cloud.notebooks.v1beta1.Instance.getDescriptor().getEnumTypes().get(3); } private static final DiskEncryption[] VALUES = values(); - public static DiskEncryption valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static DiskEncryption 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; @@ -966,15 +1124,18 @@ private DiskEncryption(int value) { } /** + * + * *
    * The type of vNIC driver.
    * 
* * Protobuf enum {@code google.cloud.notebooks.v1beta1.Instance.NicType} */ - public enum NicType - implements com.google.protobuf.ProtocolMessageEnum { + public enum NicType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * No type specified. Default should be UNSPECIFIED_NIC_TYPE.
      * 
@@ -983,6 +1144,8 @@ public enum NicType */ UNSPECIFIED_NIC_TYPE(0), /** + * + * *
      * VIRTIO. Default in Notebooks DLVM.
      * 
@@ -991,6 +1154,8 @@ public enum NicType */ VIRTIO_NET(1), /** + * + * *
      * GVNIC. Alternative to VIRTIO.
      * https://github.com/GoogleCloudPlatform/compute-virtual-ethernet-linux
@@ -1003,6 +1168,8 @@ public enum NicType
     ;
 
     /**
+     *
+     *
      * 
      * No type specified. Default should be UNSPECIFIED_NIC_TYPE.
      * 
@@ -1011,6 +1178,8 @@ public enum NicType */ public static final int UNSPECIFIED_NIC_TYPE_VALUE = 0; /** + * + * *
      * VIRTIO. Default in Notebooks DLVM.
      * 
@@ -1019,6 +1188,8 @@ public enum NicType */ public static final int VIRTIO_NET_VALUE = 1; /** + * + * *
      * GVNIC. Alternative to VIRTIO.
      * https://github.com/GoogleCloudPlatform/compute-virtual-ethernet-linux
@@ -1028,7 +1199,6 @@ public enum NicType
      */
     public static final int GVNIC_VALUE = 2;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -1053,49 +1223,49 @@ public static NicType valueOf(int value) {
      */
     public static NicType forNumber(int value) {
       switch (value) {
-        case 0: return UNSPECIFIED_NIC_TYPE;
-        case 1: return VIRTIO_NET;
-        case 2: return GVNIC;
-        default: return null;
+        case 0:
+          return UNSPECIFIED_NIC_TYPE;
+        case 1:
+          return VIRTIO_NET;
+        case 2:
+          return GVNIC;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        NicType> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public NicType findValueByNumber(int number) {
-              return NicType.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public NicType findValueByNumber(int number) {
+            return NicType.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.cloud.notebooks.v1beta1.Instance.getDescriptor().getEnumTypes().get(4);
     }
 
     private static final NicType[] VALUES = values();
 
-    public static NicType valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static NicType 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;
@@ -1112,40 +1282,52 @@ private NicType(int value) {
     // @@protoc_insertion_point(enum_scope:google.cloud.notebooks.v1beta1.Instance.NicType)
   }
 
-  public interface AcceleratorConfigOrBuilder extends
+  public interface AcceleratorConfigOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Type of this accelerator.
      * 
* * .google.cloud.notebooks.v1beta1.Instance.AcceleratorType type = 1; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
      * Type of this accelerator.
      * 
* * .google.cloud.notebooks.v1beta1.Instance.AcceleratorType type = 1; + * * @return The type. */ com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType getType(); /** + * + * *
      * Count of cores of this accelerator.
      * 
* * int64 core_count = 2; + * * @return The coreCount. */ long getCoreCount(); } /** + * + * *
    * Definition of a hardware accelerator. Note that not all combinations
    * of `type` and `core_count` are valid. Check [GPUs on
@@ -1155,79 +1337,95 @@ public interface AcceleratorConfigOrBuilder extends
    *
    * Protobuf type {@code google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig}
    */
-  public static final class AcceleratorConfig extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class AcceleratorConfig extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig)
       AcceleratorConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use AcceleratorConfig.newBuilder() to construct.
     private AcceleratorConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private AcceleratorConfig() {
       type_ = 0;
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new AcceleratorConfig();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.notebooks.v1beta1.InstanceProto.internal_static_google_cloud_notebooks_v1beta1_Instance_AcceleratorConfig_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.notebooks.v1beta1.InstanceProto
+          .internal_static_google_cloud_notebooks_v1beta1_Instance_AcceleratorConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.notebooks.v1beta1.InstanceProto.internal_static_google_cloud_notebooks_v1beta1_Instance_AcceleratorConfig_fieldAccessorTable
+      return com.google.cloud.notebooks.v1beta1.InstanceProto
+          .internal_static_google_cloud_notebooks_v1beta1_Instance_AcceleratorConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.class, com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.Builder.class);
+              com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.class,
+              com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.Builder.class);
     }
 
     public static final int TYPE_FIELD_NUMBER = 1;
     private int type_;
     /**
+     *
+     *
      * 
      * Type of this accelerator.
      * 
* * .google.cloud.notebooks.v1beta1.Instance.AcceleratorType type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Type of this accelerator.
      * 
* * .google.cloud.notebooks.v1beta1.Instance.AcceleratorType type = 1; + * * @return The type. */ - @java.lang.Override public com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType getType() { + @java.lang.Override + public com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType getType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType result = com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType.valueOf(type_); - return result == null ? com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType result = + com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType.valueOf(type_); + return result == null + ? com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType.UNRECOGNIZED + : result; } public static final int CORE_COUNT_FIELD_NUMBER = 2; private long coreCount_; /** + * + * *
      * Count of cores of this accelerator.
      * 
* * int64 core_count = 2; + * * @return The coreCount. */ @java.lang.Override @@ -1236,6 +1434,7 @@ public long getCoreCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1247,9 +1446,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (type_ != com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType.ACCELERATOR_TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (type_ + != com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType + .ACCELERATOR_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, type_); } if (coreCount_ != 0L) { @@ -1264,13 +1465,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (type_ != com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType.ACCELERATOR_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); + if (type_ + != com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType + .ACCELERATOR_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); } if (coreCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, coreCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, coreCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1280,16 +1482,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.cloud.notebooks.v1beta1.Instance.AcceleratorConfig)) { return super.equals(obj); } - com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig other = (com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig) obj; + com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig other = + (com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig) obj; if (type_ != other.type_) return false; - if (getCoreCount() - != other.getCoreCount()) return false; + if (getCoreCount() != other.getCoreCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1304,95 +1506,101 @@ public int hashCode() { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + CORE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCoreCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCoreCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig 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.cloud.notebooks.v1beta1.Instance.AcceleratorConfig 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.cloud.notebooks.v1beta1.Instance.AcceleratorConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig 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.cloud.notebooks.v1beta1.Instance.AcceleratorConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig 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.cloud.notebooks.v1beta1.Instance.AcceleratorConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig 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.cloud.notebooks.v1beta1.Instance.AcceleratorConfig 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.cloud.notebooks.v1beta1.Instance.AcceleratorConfig 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.cloud.notebooks.v1beta1.Instance.AcceleratorConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig 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 @@ -1402,6 +1610,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Definition of a hardware accelerator. Note that not all combinations
      * of `type` and `core_count` are valid. Check [GPUs on
@@ -1411,33 +1621,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig)
         com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfigOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.notebooks.v1beta1.InstanceProto.internal_static_google_cloud_notebooks_v1beta1_Instance_AcceleratorConfig_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.notebooks.v1beta1.InstanceProto
+            .internal_static_google_cloud_notebooks_v1beta1_Instance_AcceleratorConfig_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.notebooks.v1beta1.InstanceProto.internal_static_google_cloud_notebooks_v1beta1_Instance_AcceleratorConfig_fieldAccessorTable
+        return com.google.cloud.notebooks.v1beta1.InstanceProto
+            .internal_static_google_cloud_notebooks_v1beta1_Instance_AcceleratorConfig_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.class, com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.Builder.class);
+                com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.class,
+                com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.Builder.class);
       }
 
       // Construct using com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.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();
@@ -1449,13 +1659,14 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.notebooks.v1beta1.InstanceProto.internal_static_google_cloud_notebooks_v1beta1_Instance_AcceleratorConfig_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.notebooks.v1beta1.InstanceProto
+            .internal_static_google_cloud_notebooks_v1beta1_Instance_AcceleratorConfig_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig getDefaultInstanceForType() {
+      public com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig
+          getDefaultInstanceForType() {
         return com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.getDefaultInstance();
       }
 
@@ -1470,7 +1681,8 @@ public com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig build() {
 
       @java.lang.Override
       public com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig buildPartial() {
-        com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig result = new com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig(this);
+        com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig result =
+            new com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig(this);
         result.type_ = type_;
         result.coreCount_ = coreCount_;
         onBuilt();
@@ -1481,46 +1693,52 @@ public com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig buildPartia
       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.cloud.notebooks.v1beta1.Instance.AcceleratorConfig) {
-          return mergeFrom((com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig)other);
+          return mergeFrom((com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig other) {
-        if (other == com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig other) {
+        if (other
+            == com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.getDefaultInstance())
+          return this;
         if (other.type_ != 0) {
           setTypeValue(other.getTypeValue());
         }
@@ -1553,22 +1771,25 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 8: {
-                type_ = input.readEnum();
-
-                break;
-              } // case 8
-              case 16: {
-                coreCount_ = input.readInt64();
-
-                break;
-              } // case 16
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 8:
+                {
+                  type_ = input.readEnum();
+
+                  break;
+                } // case 8
+              case 16:
+                {
+                  coreCount_ = input.readInt64();
+
+                  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) {
@@ -1581,51 +1802,67 @@ public Builder mergeFrom(
 
       private int type_ = 0;
       /**
+       *
+       *
        * 
        * Type of this accelerator.
        * 
* * .google.cloud.notebooks.v1beta1.Instance.AcceleratorType type = 1; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
        * Type of this accelerator.
        * 
* * .google.cloud.notebooks.v1beta1.Instance.AcceleratorType type = 1; + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
        * Type of this accelerator.
        * 
* * .google.cloud.notebooks.v1beta1.Instance.AcceleratorType type = 1; + * * @return The type. */ @java.lang.Override public com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType getType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType result = com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType.valueOf(type_); - return result == null ? com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType result = + com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType.valueOf(type_); + return result == null + ? com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType.UNRECOGNIZED + : result; } /** + * + * *
        * Type of this accelerator.
        * 
* * .google.cloud.notebooks.v1beta1.Instance.AcceleratorType type = 1; + * * @param value The type to set. * @return This builder for chaining. */ @@ -1633,33 +1870,39 @@ public Builder setType(com.google.cloud.notebooks.v1beta1.Instance.AcceleratorTy if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
        * Type of this accelerator.
        * 
* * .google.cloud.notebooks.v1beta1.Instance.AcceleratorType type = 1; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private long coreCount_ ; + private long coreCount_; /** + * + * *
        * Count of cores of this accelerator.
        * 
* * int64 core_count = 2; + * * @return The coreCount. */ @java.lang.Override @@ -1667,34 +1910,41 @@ public long getCoreCount() { return coreCount_; } /** + * + * *
        * Count of cores of this accelerator.
        * 
* * int64 core_count = 2; + * * @param value The coreCount to set. * @return This builder for chaining. */ public Builder setCoreCount(long value) { - + coreCount_ = value; onChanged(); return this; } /** + * + * *
        * Count of cores of this accelerator.
        * 
* * int64 core_count = 2; + * * @return This builder for chaining. */ public Builder clearCoreCount() { - + coreCount_ = 0L; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1707,41 +1957,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig) - private static final com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig DEFAULT_INSTANCE; + private static final com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig(); } - public static com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig getDefaultInstance() { + public static com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AcceleratorConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AcceleratorConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -1753,21 +2006,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig getDefaultInstanceForType() { + public com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int environmentCase_ = 0; private java.lang.Object environment_; + public enum EnvironmentCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { VM_IMAGE(2), CONTAINER_IMAGE(3), ENVIRONMENT_NOT_SET(0); private final int value; + private EnvironmentCase(int value) { this.value = value; } @@ -1783,32 +2039,38 @@ public static EnvironmentCase valueOf(int value) { public static EnvironmentCase forNumber(int value) { switch (value) { - case 2: return VM_IMAGE; - case 3: return CONTAINER_IMAGE; - case 0: return ENVIRONMENT_NOT_SET; - default: return null; + case 2: + return VM_IMAGE; + case 3: + return CONTAINER_IMAGE; + case 0: + return ENVIRONMENT_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public EnvironmentCase - getEnvironmentCase() { - return EnvironmentCase.forNumber( - environmentCase_); + public EnvironmentCase getEnvironmentCase() { + return EnvironmentCase.forNumber(environmentCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The name of this notebook instance. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -1817,30 +2079,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; } } /** + * + * *
    * Output only. The name of this notebook instance. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -1850,11 +2112,14 @@ public java.lang.String getName() { public static final int VM_IMAGE_FIELD_NUMBER = 2; /** + * + * *
    * Use a Compute Engine VM image to start the notebook instance.
    * 
* * .google.cloud.notebooks.v1beta1.VmImage vm_image = 2; + * * @return Whether the vmImage field is set. */ @java.lang.Override @@ -1862,21 +2127,26 @@ public boolean hasVmImage() { return environmentCase_ == 2; } /** + * + * *
    * Use a Compute Engine VM image to start the notebook instance.
    * 
* * .google.cloud.notebooks.v1beta1.VmImage vm_image = 2; + * * @return The vmImage. */ @java.lang.Override public com.google.cloud.notebooks.v1beta1.VmImage getVmImage() { if (environmentCase_ == 2) { - return (com.google.cloud.notebooks.v1beta1.VmImage) environment_; + return (com.google.cloud.notebooks.v1beta1.VmImage) environment_; } return com.google.cloud.notebooks.v1beta1.VmImage.getDefaultInstance(); } /** + * + * *
    * Use a Compute Engine VM image to start the notebook instance.
    * 
@@ -1886,18 +2156,21 @@ public com.google.cloud.notebooks.v1beta1.VmImage getVmImage() { @java.lang.Override public com.google.cloud.notebooks.v1beta1.VmImageOrBuilder getVmImageOrBuilder() { if (environmentCase_ == 2) { - return (com.google.cloud.notebooks.v1beta1.VmImage) environment_; + return (com.google.cloud.notebooks.v1beta1.VmImage) environment_; } return com.google.cloud.notebooks.v1beta1.VmImage.getDefaultInstance(); } public static final int CONTAINER_IMAGE_FIELD_NUMBER = 3; /** + * + * *
    * Use a container image to start the notebook instance.
    * 
* * .google.cloud.notebooks.v1beta1.ContainerImage container_image = 3; + * * @return Whether the containerImage field is set. */ @java.lang.Override @@ -1905,21 +2178,26 @@ public boolean hasContainerImage() { return environmentCase_ == 3; } /** + * + * *
    * Use a container image to start the notebook instance.
    * 
* * .google.cloud.notebooks.v1beta1.ContainerImage container_image = 3; + * * @return The containerImage. */ @java.lang.Override public com.google.cloud.notebooks.v1beta1.ContainerImage getContainerImage() { if (environmentCase_ == 3) { - return (com.google.cloud.notebooks.v1beta1.ContainerImage) environment_; + return (com.google.cloud.notebooks.v1beta1.ContainerImage) environment_; } return com.google.cloud.notebooks.v1beta1.ContainerImage.getDefaultInstance(); } /** + * + * *
    * Use a container image to start the notebook instance.
    * 
@@ -1929,7 +2207,7 @@ public com.google.cloud.notebooks.v1beta1.ContainerImage getContainerImage() { @java.lang.Override public com.google.cloud.notebooks.v1beta1.ContainerImageOrBuilder getContainerImageOrBuilder() { if (environmentCase_ == 3) { - return (com.google.cloud.notebooks.v1beta1.ContainerImage) environment_; + return (com.google.cloud.notebooks.v1beta1.ContainerImage) environment_; } return com.google.cloud.notebooks.v1beta1.ContainerImage.getDefaultInstance(); } @@ -1937,6 +2215,8 @@ public com.google.cloud.notebooks.v1beta1.ContainerImageOrBuilder getContainerIm public static final int POST_STARTUP_SCRIPT_FIELD_NUMBER = 4; private volatile java.lang.Object postStartupScript_; /** + * + * *
    * Path to a Bash script that automatically runs after a notebook instance
    * fully boots up. The path must be a URL or
@@ -1944,6 +2224,7 @@ public com.google.cloud.notebooks.v1beta1.ContainerImageOrBuilder getContainerIm
    * 
* * string post_startup_script = 4; + * * @return The postStartupScript. */ @java.lang.Override @@ -1952,14 +2233,15 @@ public java.lang.String getPostStartupScript() { 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(); postStartupScript_ = s; return s; } } /** + * + * *
    * Path to a Bash script that automatically runs after a notebook instance
    * fully boots up. The path must be a URL or
@@ -1967,16 +2249,15 @@ public java.lang.String getPostStartupScript() {
    * 
* * string post_startup_script = 4; + * * @return The bytes for postStartupScript. */ @java.lang.Override - public com.google.protobuf.ByteString - getPostStartupScriptBytes() { + public com.google.protobuf.ByteString getPostStartupScriptBytes() { java.lang.Object ref = postStartupScript_; 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); postStartupScript_ = b; return b; } else { @@ -1987,11 +2268,14 @@ public java.lang.String getPostStartupScript() { public static final int PROXY_URI_FIELD_NUMBER = 5; private volatile java.lang.Object proxyUri_; /** + * + * *
    * Output only. The proxy endpoint that is used to access the Jupyter notebook.
    * 
* * string proxy_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The proxyUri. */ @java.lang.Override @@ -2000,29 +2284,29 @@ public java.lang.String getProxyUri() { 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(); proxyUri_ = s; return s; } } /** + * + * *
    * Output only. The proxy endpoint that is used to access the Jupyter notebook.
    * 
* * string proxy_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for proxyUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getProxyUriBytes() { + public com.google.protobuf.ByteString getProxyUriBytes() { java.lang.Object ref = proxyUri_; 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); proxyUri_ = b; return b; } else { @@ -2033,6 +2317,8 @@ public java.lang.String getProxyUri() { public static final int INSTANCE_OWNERS_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList instanceOwners_; /** + * + * *
    * Input only. The owner of this instance after creation. Format: `alias@example.com`
    * Currently supports one owner only. If not specified, all of the service
@@ -2041,13 +2327,15 @@ public java.lang.String getProxyUri() {
    * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return A list containing the instanceOwners. */ - public com.google.protobuf.ProtocolStringList - getInstanceOwnersList() { + public com.google.protobuf.ProtocolStringList getInstanceOwnersList() { return instanceOwners_; } /** + * + * *
    * Input only. The owner of this instance after creation. Format: `alias@example.com`
    * Currently supports one owner only. If not specified, all of the service
@@ -2056,12 +2344,15 @@ public java.lang.String getProxyUri() {
    * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The count of instanceOwners. */ public int getInstanceOwnersCount() { return instanceOwners_.size(); } /** + * + * *
    * Input only. The owner of this instance after creation. Format: `alias@example.com`
    * Currently supports one owner only. If not specified, all of the service
@@ -2070,6 +2361,7 @@ public int getInstanceOwnersCount() {
    * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param index The index of the element to return. * @return The instanceOwners at the given index. */ @@ -2077,6 +2369,8 @@ public java.lang.String getInstanceOwners(int index) { return instanceOwners_.get(index); } /** + * + * *
    * Input only. The owner of this instance after creation. Format: `alias@example.com`
    * Currently supports one owner only. If not specified, all of the service
@@ -2085,17 +2379,19 @@ public java.lang.String getInstanceOwners(int index) {
    * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the instanceOwners at the given index. */ - public com.google.protobuf.ByteString - getInstanceOwnersBytes(int index) { + public com.google.protobuf.ByteString getInstanceOwnersBytes(int index) { return instanceOwners_.getByteString(index); } public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 7; private volatile java.lang.Object serviceAccount_; /** + * + * *
    * The service account on this instance, giving access to other Google
    * Cloud services.
@@ -2107,6 +2403,7 @@ public java.lang.String getInstanceOwners(int index) {
    * 
* * string service_account = 7; + * * @return The serviceAccount. */ @java.lang.Override @@ -2115,14 +2412,15 @@ public java.lang.String getServiceAccount() { 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(); serviceAccount_ = s; return s; } } /** + * + * *
    * The service account on this instance, giving access to other Google
    * Cloud services.
@@ -2134,16 +2432,15 @@ public java.lang.String getServiceAccount() {
    * 
* * string service_account = 7; + * * @return The bytes for serviceAccount. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountBytes() { + public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; 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); serviceAccount_ = b; return b; } else { @@ -2154,12 +2451,15 @@ public java.lang.String getServiceAccount() { public static final int MACHINE_TYPE_FIELD_NUMBER = 8; private volatile java.lang.Object machineType_; /** + * + * *
    * Required. The [Compute Engine machine type](/compute/docs/machine-types) of this
    * instance.
    * 
* * string machine_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The machineType. */ @java.lang.Override @@ -2168,30 +2468,30 @@ public java.lang.String getMachineType() { 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(); machineType_ = s; return s; } } /** + * + * *
    * Required. The [Compute Engine machine type](/compute/docs/machine-types) of this
    * instance.
    * 
* * string machine_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for machineType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMachineTypeBytes() { + public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; 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); machineType_ = b; return b; } else { @@ -2202,6 +2502,8 @@ public java.lang.String getMachineType() { public static final int ACCELERATOR_CONFIG_FIELD_NUMBER = 9; private com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig acceleratorConfig_; /** + * + * *
    * The hardware accelerator used on this instance. If you use
    * accelerators, make sure that your configuration has
@@ -2210,6 +2512,7 @@ public java.lang.String getMachineType() {
    * 
* * .google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig accelerator_config = 9; + * * @return Whether the acceleratorConfig field is set. */ @java.lang.Override @@ -2217,6 +2520,8 @@ public boolean hasAcceleratorConfig() { return acceleratorConfig_ != null; } /** + * + * *
    * The hardware accelerator used on this instance. If you use
    * accelerators, make sure that your configuration has
@@ -2225,13 +2530,18 @@ public boolean hasAcceleratorConfig() {
    * 
* * .google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig accelerator_config = 9; + * * @return The acceleratorConfig. */ @java.lang.Override public com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig getAcceleratorConfig() { - return acceleratorConfig_ == null ? com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.getDefaultInstance() : acceleratorConfig_; + return acceleratorConfig_ == null + ? com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.getDefaultInstance() + : acceleratorConfig_; } /** + * + * *
    * The hardware accelerator used on this instance. If you use
    * accelerators, make sure that your configuration has
@@ -2242,40 +2552,56 @@ public com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig getAccelera
    * .google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig accelerator_config = 9;
    */
   @java.lang.Override
-  public com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfigOrBuilder getAcceleratorConfigOrBuilder() {
+  public com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfigOrBuilder
+      getAcceleratorConfigOrBuilder() {
     return getAcceleratorConfig();
   }
 
   public static final int STATE_FIELD_NUMBER = 10;
   private int state_;
   /**
+   *
+   *
    * 
    * Output only. The state of this instance.
    * 
* - * .google.cloud.notebooks.v1beta1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The state of this instance.
    * 
* - * .google.cloud.notebooks.v1beta1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.notebooks.v1beta1.Instance.State getState() { + @java.lang.Override + public com.google.cloud.notebooks.v1beta1.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1beta1.Instance.State result = com.google.cloud.notebooks.v1beta1.Instance.State.valueOf(state_); + com.google.cloud.notebooks.v1beta1.Instance.State result = + com.google.cloud.notebooks.v1beta1.Instance.State.valueOf(state_); return result == null ? com.google.cloud.notebooks.v1beta1.Instance.State.UNRECOGNIZED : result; } public static final int INSTALL_GPU_DRIVER_FIELD_NUMBER = 11; private boolean installGpuDriver_; /** + * + * *
    * Whether the end user authorizes Google Cloud to install GPU driver
    * on this instance.
@@ -2284,6 +2610,7 @@ public com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfigOrBuilder ge
    * 
* * bool install_gpu_driver = 11; + * * @return The installGpuDriver. */ @java.lang.Override @@ -2294,12 +2621,15 @@ public boolean getInstallGpuDriver() { public static final int CUSTOM_GPU_DRIVER_PATH_FIELD_NUMBER = 12; private volatile java.lang.Object customGpuDriverPath_; /** + * + * *
    * Specify a custom Cloud Storage path where the GPU driver is stored.
    * If not specified, we'll automatically choose from official GPU drivers.
    * 
* * string custom_gpu_driver_path = 12; + * * @return The customGpuDriverPath. */ @java.lang.Override @@ -2308,30 +2638,30 @@ public java.lang.String getCustomGpuDriverPath() { 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(); customGpuDriverPath_ = s; return s; } } /** + * + * *
    * Specify a custom Cloud Storage path where the GPU driver is stored.
    * If not specified, we'll automatically choose from official GPU drivers.
    * 
* * string custom_gpu_driver_path = 12; + * * @return The bytes for customGpuDriverPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getCustomGpuDriverPathBytes() { + public com.google.protobuf.ByteString getCustomGpuDriverPathBytes() { java.lang.Object ref = customGpuDriverPath_; 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); customGpuDriverPath_ = b; return b; } else { @@ -2342,35 +2672,52 @@ public java.lang.String getCustomGpuDriverPath() { public static final int BOOT_DISK_TYPE_FIELD_NUMBER = 13; private int bootDiskType_; /** + * + * *
    * Input only. The type of the boot disk attached to this instance, defaults to
    * standard persistent disk (`PD_STANDARD`).
    * 
* - * .google.cloud.notebooks.v1beta1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The enum numeric value on the wire for bootDiskType. */ - @java.lang.Override public int getBootDiskTypeValue() { + @java.lang.Override + public int getBootDiskTypeValue() { return bootDiskType_; } /** + * + * *
    * Input only. The type of the boot disk attached to this instance, defaults to
    * standard persistent disk (`PD_STANDARD`).
    * 
* - * .google.cloud.notebooks.v1beta1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bootDiskType. */ - @java.lang.Override public com.google.cloud.notebooks.v1beta1.Instance.DiskType getBootDiskType() { + @java.lang.Override + public com.google.cloud.notebooks.v1beta1.Instance.DiskType getBootDiskType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1beta1.Instance.DiskType result = com.google.cloud.notebooks.v1beta1.Instance.DiskType.valueOf(bootDiskType_); - return result == null ? com.google.cloud.notebooks.v1beta1.Instance.DiskType.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1beta1.Instance.DiskType result = + com.google.cloud.notebooks.v1beta1.Instance.DiskType.valueOf(bootDiskType_); + return result == null + ? com.google.cloud.notebooks.v1beta1.Instance.DiskType.UNRECOGNIZED + : result; } public static final int BOOT_DISK_SIZE_GB_FIELD_NUMBER = 14; private long bootDiskSizeGb_; /** + * + * *
    * Input only. The size of the boot disk in GB attached to this instance, up to a maximum
    * of 64000&nbsp;GB (64&nbsp;TB). The minimum recommended value is
@@ -2378,6 +2725,7 @@ public java.lang.String getCustomGpuDriverPath() {
    * 
* * int64 boot_disk_size_gb = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bootDiskSizeGb. */ @java.lang.Override @@ -2388,35 +2736,52 @@ public long getBootDiskSizeGb() { public static final int DATA_DISK_TYPE_FIELD_NUMBER = 25; private int dataDiskType_; /** + * + * *
    * Input only. The type of the data disk attached to this instance, defaults to
    * standard persistent disk (`PD_STANDARD`).
    * 
* - * .google.cloud.notebooks.v1beta1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The enum numeric value on the wire for dataDiskType. */ - @java.lang.Override public int getDataDiskTypeValue() { + @java.lang.Override + public int getDataDiskTypeValue() { return dataDiskType_; } /** + * + * *
    * Input only. The type of the data disk attached to this instance, defaults to
    * standard persistent disk (`PD_STANDARD`).
    * 
* - * .google.cloud.notebooks.v1beta1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The dataDiskType. */ - @java.lang.Override public com.google.cloud.notebooks.v1beta1.Instance.DiskType getDataDiskType() { + @java.lang.Override + public com.google.cloud.notebooks.v1beta1.Instance.DiskType getDataDiskType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1beta1.Instance.DiskType result = com.google.cloud.notebooks.v1beta1.Instance.DiskType.valueOf(dataDiskType_); - return result == null ? com.google.cloud.notebooks.v1beta1.Instance.DiskType.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1beta1.Instance.DiskType result = + com.google.cloud.notebooks.v1beta1.Instance.DiskType.valueOf(dataDiskType_); + return result == null + ? com.google.cloud.notebooks.v1beta1.Instance.DiskType.UNRECOGNIZED + : result; } public static final int DATA_DISK_SIZE_GB_FIELD_NUMBER = 26; private long dataDiskSizeGb_; /** + * + * *
    * Input only. The size of the data disk in GB attached to this instance, up to a maximum
    * of 64000&nbsp;GB (64&nbsp;TB). You can choose the size of the data disk
@@ -2425,6 +2790,7 @@ public long getBootDiskSizeGb() {
    * 
* * int64 data_disk_size_gb = 26 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The dataDiskSizeGb. */ @java.lang.Override @@ -2435,11 +2801,14 @@ public long getDataDiskSizeGb() { public static final int NO_REMOVE_DATA_DISK_FIELD_NUMBER = 27; private boolean noRemoveDataDisk_; /** + * + * *
    * Input only. If true, the data disk will not be auto deleted when deleting the instance.
    * 
* * bool no_remove_data_disk = 27 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The noRemoveDataDisk. */ @java.lang.Override @@ -2450,33 +2819,50 @@ public boolean getNoRemoveDataDisk() { public static final int DISK_ENCRYPTION_FIELD_NUMBER = 15; private int diskEncryption_; /** + * + * *
    * Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
    * 
* - * .google.cloud.notebooks.v1beta1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The enum numeric value on the wire for diskEncryption. */ - @java.lang.Override public int getDiskEncryptionValue() { + @java.lang.Override + public int getDiskEncryptionValue() { return diskEncryption_; } /** + * + * *
    * Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
    * 
* - * .google.cloud.notebooks.v1beta1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The diskEncryption. */ - @java.lang.Override public com.google.cloud.notebooks.v1beta1.Instance.DiskEncryption getDiskEncryption() { + @java.lang.Override + public com.google.cloud.notebooks.v1beta1.Instance.DiskEncryption getDiskEncryption() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1beta1.Instance.DiskEncryption result = com.google.cloud.notebooks.v1beta1.Instance.DiskEncryption.valueOf(diskEncryption_); - return result == null ? com.google.cloud.notebooks.v1beta1.Instance.DiskEncryption.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1beta1.Instance.DiskEncryption result = + com.google.cloud.notebooks.v1beta1.Instance.DiskEncryption.valueOf(diskEncryption_); + return result == null + ? com.google.cloud.notebooks.v1beta1.Instance.DiskEncryption.UNRECOGNIZED + : result; } public static final int KMS_KEY_FIELD_NUMBER = 16; private volatile java.lang.Object kmsKey_; /** + * + * *
    * Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption
    * is CMEK.
@@ -2486,6 +2872,7 @@ public boolean getNoRemoveDataDisk() {
    * 
* * string kms_key = 16 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The kmsKey. */ @java.lang.Override @@ -2494,14 +2881,15 @@ public java.lang.String getKmsKey() { 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(); kmsKey_ = s; return s; } } /** + * + * *
    * Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption
    * is CMEK.
@@ -2511,16 +2899,15 @@ public java.lang.String getKmsKey() {
    * 
* * string kms_key = 16 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for kmsKey. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyBytes() { + public com.google.protobuf.ByteString getKmsKeyBytes() { java.lang.Object ref = kmsKey_; 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); kmsKey_ = b; return b; } else { @@ -2531,11 +2918,14 @@ public java.lang.String getKmsKey() { public static final int NO_PUBLIC_IP_FIELD_NUMBER = 17; private boolean noPublicIp_; /** + * + * *
    * If true, no public IP will be assigned to this instance.
    * 
* * bool no_public_ip = 17; + * * @return The noPublicIp. */ @java.lang.Override @@ -2546,11 +2936,14 @@ public boolean getNoPublicIp() { public static final int NO_PROXY_ACCESS_FIELD_NUMBER = 18; private boolean noProxyAccess_; /** + * + * *
    * If true, the notebook instance will not register with the proxy.
    * 
* * bool no_proxy_access = 18; + * * @return The noProxyAccess. */ @java.lang.Override @@ -2561,6 +2954,8 @@ public boolean getNoProxyAccess() { public static final int NETWORK_FIELD_NUMBER = 19; private volatile java.lang.Object network_; /** + * + * *
    * The name of the VPC that this instance is in.
    * Format:
@@ -2568,6 +2963,7 @@ public boolean getNoProxyAccess() {
    * 
* * string network = 19; + * * @return The network. */ @java.lang.Override @@ -2576,14 +2972,15 @@ public java.lang.String getNetwork() { 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(); network_ = s; return s; } } /** + * + * *
    * The name of the VPC that this instance is in.
    * Format:
@@ -2591,16 +2988,15 @@ public java.lang.String getNetwork() {
    * 
* * string network = 19; + * * @return The bytes for network. */ @java.lang.Override - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; 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); network_ = b; return b; } else { @@ -2611,6 +3007,8 @@ public java.lang.String getNetwork() { public static final int SUBNET_FIELD_NUMBER = 20; private volatile java.lang.Object subnet_; /** + * + * *
    * The name of the subnet that this instance is in.
    * Format:
@@ -2618,6 +3016,7 @@ public java.lang.String getNetwork() {
    * 
* * string subnet = 20; + * * @return The subnet. */ @java.lang.Override @@ -2626,14 +3025,15 @@ public java.lang.String getSubnet() { 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(); subnet_ = s; return s; } } /** + * + * *
    * The name of the subnet that this instance is in.
    * Format:
@@ -2641,16 +3041,15 @@ public java.lang.String getSubnet() {
    * 
* * string subnet = 20; + * * @return The bytes for subnet. */ @java.lang.Override - public com.google.protobuf.ByteString - getSubnetBytes() { + public com.google.protobuf.ByteString getSubnetBytes() { java.lang.Object ref = subnet_; 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); subnet_ = b; return b; } else { @@ -2659,24 +3058,23 @@ public java.lang.String getSubnet() { } public static final int LABELS_FIELD_NUMBER = 21; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.notebooks.v1beta1.InstanceProto.internal_static_google_cloud_notebooks_v1beta1_Instance_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.notebooks.v1beta1.InstanceProto + .internal_static_google_cloud_notebooks_v1beta1_Instance_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -2685,6 +3083,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method.
@@ -2692,22 +3092,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 21;
    */
-
   @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 getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method.
@@ -2716,11 +3116,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 21;
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method.
@@ -2729,16 +3130,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 21;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method.
@@ -2747,12 +3148,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 21;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -2760,24 +3160,23 @@ public java.lang.String getLabelsOrThrow(
   }
 
   public static final int METADATA_FIELD_NUMBER = 22;
+
   private static final class MetadataDefaultEntryHolder {
-    static final com.google.protobuf.MapEntry<
-        java.lang.String, java.lang.String> defaultEntry =
-            com.google.protobuf.MapEntry
-            .newDefaultInstance(
-                com.google.cloud.notebooks.v1beta1.InstanceProto.internal_static_google_cloud_notebooks_v1beta1_Instance_MetadataEntry_descriptor, 
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "",
-                com.google.protobuf.WireFormat.FieldType.STRING,
-                "");
+    static final com.google.protobuf.MapEntry defaultEntry =
+        com.google.protobuf.MapEntry.newDefaultInstance(
+            com.google.cloud.notebooks.v1beta1.InstanceProto
+                .internal_static_google_cloud_notebooks_v1beta1_Instance_MetadataEntry_descriptor,
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "",
+            com.google.protobuf.WireFormat.FieldType.STRING,
+            "");
   }
-  private com.google.protobuf.MapField<
-      java.lang.String, java.lang.String> metadata_;
-  private com.google.protobuf.MapField
-  internalGetMetadata() {
+
+  private com.google.protobuf.MapField metadata_;
+
+  private com.google.protobuf.MapField internalGetMetadata() {
     if (metadata_ == null) {
-      return com.google.protobuf.MapField.emptyMapField(
-          MetadataDefaultEntryHolder.defaultEntry);
+      return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry);
     }
     return metadata_;
   }
@@ -2786,28 +3185,30 @@ public int getMetadataCount() {
     return internalGetMetadata().getMap().size();
   }
   /**
+   *
+   *
    * 
    * Custom metadata to apply to this instance.
    * 
* * map<string, string> metadata = 22; */ - @java.lang.Override - public boolean containsMetadata( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetMetadata().getMap().containsKey(key); } - /** - * Use {@link #getMetadataMap()} instead. - */ + /** Use {@link #getMetadataMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMetadata() { return getMetadataMap(); } /** + * + * *
    * Custom metadata to apply to this instance.
    * 
@@ -2815,11 +3216,12 @@ public java.util.Map getMetadata() { * map<string, string> metadata = 22; */ @java.lang.Override - public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** + * + * *
    * Custom metadata to apply to this instance.
    * 
@@ -2827,16 +3229,17 @@ public java.util.Map getMetadataMap() { * map<string, string> metadata = 22; */ @java.lang.Override - public java.lang.String getMetadataOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMetadata().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Custom metadata to apply to this instance.
    * 
@@ -2844,12 +3247,11 @@ public java.lang.String getMetadataOrDefault( * map<string, string> metadata = 22; */ @java.lang.Override - - public java.lang.String getMetadataOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMetadata().getMap(); + public java.lang.String getMetadataOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2859,35 +3261,52 @@ public java.lang.String getMetadataOrThrow( public static final int NIC_TYPE_FIELD_NUMBER = 28; private int nicType_; /** + * + * *
    * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
    * VirtioNet.
    * 
* - * .google.cloud.notebooks.v1beta1.Instance.NicType nic_type = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.Instance.NicType nic_type = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for nicType. */ - @java.lang.Override public int getNicTypeValue() { + @java.lang.Override + public int getNicTypeValue() { return nicType_; } /** + * + * *
    * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
    * VirtioNet.
    * 
* - * .google.cloud.notebooks.v1beta1.Instance.NicType nic_type = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.Instance.NicType nic_type = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The nicType. */ - @java.lang.Override public com.google.cloud.notebooks.v1beta1.Instance.NicType getNicType() { + @java.lang.Override + public com.google.cloud.notebooks.v1beta1.Instance.NicType getNicType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1beta1.Instance.NicType result = com.google.cloud.notebooks.v1beta1.Instance.NicType.valueOf(nicType_); - return result == null ? com.google.cloud.notebooks.v1beta1.Instance.NicType.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1beta1.Instance.NicType result = + com.google.cloud.notebooks.v1beta1.Instance.NicType.valueOf(nicType_); + return result == null + ? com.google.cloud.notebooks.v1beta1.Instance.NicType.UNRECOGNIZED + : result; } public static final int RESERVATION_AFFINITY_FIELD_NUMBER = 29; private com.google.cloud.notebooks.v1beta1.ReservationAffinity reservationAffinity_; /** + * + * *
    * Optional. The optional reservation affinity. Setting this field will apply
    * the specified [Zonal Compute
@@ -2895,7 +3314,10 @@ public java.lang.String getMetadataOrThrow(
    * to this notebook instance.
    * 
* - * .google.cloud.notebooks.v1beta1.ReservationAffinity reservation_affinity = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.ReservationAffinity reservation_affinity = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the reservationAffinity field is set. */ @java.lang.Override @@ -2903,6 +3325,8 @@ public boolean hasReservationAffinity() { return reservationAffinity_ != null; } /** + * + * *
    * Optional. The optional reservation affinity. Setting this field will apply
    * the specified [Zonal Compute
@@ -2910,14 +3334,21 @@ public boolean hasReservationAffinity() {
    * to this notebook instance.
    * 
* - * .google.cloud.notebooks.v1beta1.ReservationAffinity reservation_affinity = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.ReservationAffinity reservation_affinity = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The reservationAffinity. */ @java.lang.Override public com.google.cloud.notebooks.v1beta1.ReservationAffinity getReservationAffinity() { - return reservationAffinity_ == null ? com.google.cloud.notebooks.v1beta1.ReservationAffinity.getDefaultInstance() : reservationAffinity_; + return reservationAffinity_ == null + ? com.google.cloud.notebooks.v1beta1.ReservationAffinity.getDefaultInstance() + : reservationAffinity_; } /** + * + * *
    * Optional. The optional reservation affinity. Setting this field will apply
    * the specified [Zonal Compute
@@ -2925,22 +3356,28 @@ public com.google.cloud.notebooks.v1beta1.ReservationAffinity getReservationAffi
    * to this notebook instance.
    * 
* - * .google.cloud.notebooks.v1beta1.ReservationAffinity reservation_affinity = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.ReservationAffinity reservation_affinity = 29 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.notebooks.v1beta1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder() { + public com.google.cloud.notebooks.v1beta1.ReservationAffinityOrBuilder + getReservationAffinityOrBuilder() { return getReservationAffinity(); } public static final int CAN_IP_FORWARD_FIELD_NUMBER = 31; private boolean canIpForward_; /** + * + * *
    * Optional. Flag to enable ip forwarding or not, default false/off.
    * https://cloud.google.com/vpc/docs/using-routes#canipforward
    * 
* * bool can_ip_forward = 31 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The canIpForward. */ @java.lang.Override @@ -2951,11 +3388,15 @@ public boolean getCanIpForward() { public static final int CREATE_TIME_FIELD_NUMBER = 23; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Instance creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -2963,11 +3404,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Instance creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -2975,11 +3420,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Instance creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -2989,11 +3437,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 24; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. Instance update time.
    * 
* - * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -3001,11 +3453,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Instance update time.
    * 
* - * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -3013,11 +3469,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. Instance update time.
    * 
* - * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -3025,6 +3484,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3036,8 +3496,7 @@ 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_); } @@ -3074,13 +3533,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customGpuDriverPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, customGpuDriverPath_); } - if (bootDiskType_ != com.google.cloud.notebooks.v1beta1.Instance.DiskType.DISK_TYPE_UNSPECIFIED.getNumber()) { + if (bootDiskType_ + != com.google.cloud.notebooks.v1beta1.Instance.DiskType.DISK_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(13, bootDiskType_); } if (bootDiskSizeGb_ != 0L) { output.writeInt64(14, bootDiskSizeGb_); } - if (diskEncryption_ != com.google.cloud.notebooks.v1beta1.Instance.DiskEncryption.DISK_ENCRYPTION_UNSPECIFIED.getNumber()) { + if (diskEncryption_ + != com.google.cloud.notebooks.v1beta1.Instance.DiskEncryption.DISK_ENCRYPTION_UNSPECIFIED + .getNumber()) { output.writeEnum(15, diskEncryption_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { @@ -3098,25 +3560,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnet_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 20, subnet_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 21); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetMetadata(), - MetadataDefaultEntryHolder.defaultEntry, - 22); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 21); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 22); if (createTime_ != null) { output.writeMessage(23, getCreateTime()); } if (updateTime_ != null) { output.writeMessage(24, getUpdateTime()); } - if (dataDiskType_ != com.google.cloud.notebooks.v1beta1.Instance.DiskType.DISK_TYPE_UNSPECIFIED.getNumber()) { + if (dataDiskType_ + != com.google.cloud.notebooks.v1beta1.Instance.DiskType.DISK_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(25, dataDiskType_); } if (dataDiskSizeGb_ != 0L) { @@ -3125,7 +3580,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (noRemoveDataDisk_ != false) { output.writeBool(27, noRemoveDataDisk_); } - if (nicType_ != com.google.cloud.notebooks.v1beta1.Instance.NicType.UNSPECIFIED_NIC_TYPE.getNumber()) { + if (nicType_ + != com.google.cloud.notebooks.v1beta1.Instance.NicType.UNSPECIFIED_NIC_TYPE.getNumber()) { output.writeEnum(28, nicType_); } if (reservationAffinity_ != null) { @@ -3147,12 +3603,14 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (environmentCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.notebooks.v1beta1.VmImage) environment_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.notebooks.v1beta1.VmImage) environment_); } if (environmentCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.notebooks.v1beta1.ContainerImage) environment_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.notebooks.v1beta1.ContainerImage) environment_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postStartupScript_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, postStartupScript_); @@ -3175,42 +3633,37 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, machineType_); } if (acceleratorConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getAcceleratorConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getAcceleratorConfig()); } if (state_ != com.google.cloud.notebooks.v1beta1.Instance.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, state_); } if (installGpuDriver_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(11, installGpuDriver_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, installGpuDriver_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customGpuDriverPath_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, customGpuDriverPath_); } - if (bootDiskType_ != com.google.cloud.notebooks.v1beta1.Instance.DiskType.DISK_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(13, bootDiskType_); + if (bootDiskType_ + != com.google.cloud.notebooks.v1beta1.Instance.DiskType.DISK_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, bootDiskType_); } if (bootDiskSizeGb_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(14, bootDiskSizeGb_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(14, bootDiskSizeGb_); } - if (diskEncryption_ != com.google.cloud.notebooks.v1beta1.Instance.DiskEncryption.DISK_ENCRYPTION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(15, diskEncryption_); + if (diskEncryption_ + != com.google.cloud.notebooks.v1beta1.Instance.DiskEncryption.DISK_ENCRYPTION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, diskEncryption_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, kmsKey_); } if (noPublicIp_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(17, noPublicIp_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(17, noPublicIp_); } if (noProxyAccess_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(18, noProxyAccess_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, noProxyAccess_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, network_); @@ -3218,57 +3671,52 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnet_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, subnet_); } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, labels__); - } - for (java.util.Map.Entry entry - : internalGetMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry - metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, metadata__); + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, labels__); + } + for (java.util.Map.Entry entry : + internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry metadata__ = + MetadataDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, metadata__); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(24, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getUpdateTime()); } - if (dataDiskType_ != com.google.cloud.notebooks.v1beta1.Instance.DiskType.DISK_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(25, dataDiskType_); + if (dataDiskType_ + != com.google.cloud.notebooks.v1beta1.Instance.DiskType.DISK_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(25, dataDiskType_); } if (dataDiskSizeGb_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(26, dataDiskSizeGb_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(26, dataDiskSizeGb_); } if (noRemoveDataDisk_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(27, noRemoveDataDisk_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(27, noRemoveDataDisk_); } - if (nicType_ != com.google.cloud.notebooks.v1beta1.Instance.NicType.UNSPECIFIED_NIC_TYPE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(28, nicType_); + if (nicType_ + != com.google.cloud.notebooks.v1beta1.Instance.NicType.UNSPECIFIED_NIC_TYPE.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(28, nicType_); } if (reservationAffinity_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(29, getReservationAffinity()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(29, getReservationAffinity()); } if (canIpForward_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(31, canIpForward_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(31, canIpForward_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3278,85 +3726,61 @@ 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.cloud.notebooks.v1beta1.Instance)) { return super.equals(obj); } - com.google.cloud.notebooks.v1beta1.Instance other = (com.google.cloud.notebooks.v1beta1.Instance) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getPostStartupScript() - .equals(other.getPostStartupScript())) return false; - if (!getProxyUri() - .equals(other.getProxyUri())) return false; - if (!getInstanceOwnersList() - .equals(other.getInstanceOwnersList())) return false; - if (!getServiceAccount() - .equals(other.getServiceAccount())) return false; - if (!getMachineType() - .equals(other.getMachineType())) return false; + com.google.cloud.notebooks.v1beta1.Instance other = + (com.google.cloud.notebooks.v1beta1.Instance) obj; + + if (!getName().equals(other.getName())) return false; + if (!getPostStartupScript().equals(other.getPostStartupScript())) return false; + if (!getProxyUri().equals(other.getProxyUri())) return false; + if (!getInstanceOwnersList().equals(other.getInstanceOwnersList())) return false; + if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (!getMachineType().equals(other.getMachineType())) return false; if (hasAcceleratorConfig() != other.hasAcceleratorConfig()) return false; if (hasAcceleratorConfig()) { - if (!getAcceleratorConfig() - .equals(other.getAcceleratorConfig())) return false; + if (!getAcceleratorConfig().equals(other.getAcceleratorConfig())) return false; } if (state_ != other.state_) return false; - if (getInstallGpuDriver() - != other.getInstallGpuDriver()) return false; - if (!getCustomGpuDriverPath() - .equals(other.getCustomGpuDriverPath())) return false; + if (getInstallGpuDriver() != other.getInstallGpuDriver()) return false; + if (!getCustomGpuDriverPath().equals(other.getCustomGpuDriverPath())) return false; if (bootDiskType_ != other.bootDiskType_) return false; - if (getBootDiskSizeGb() - != other.getBootDiskSizeGb()) return false; + if (getBootDiskSizeGb() != other.getBootDiskSizeGb()) return false; if (dataDiskType_ != other.dataDiskType_) return false; - if (getDataDiskSizeGb() - != other.getDataDiskSizeGb()) return false; - if (getNoRemoveDataDisk() - != other.getNoRemoveDataDisk()) return false; + if (getDataDiskSizeGb() != other.getDataDiskSizeGb()) return false; + if (getNoRemoveDataDisk() != other.getNoRemoveDataDisk()) return false; if (diskEncryption_ != other.diskEncryption_) return false; - if (!getKmsKey() - .equals(other.getKmsKey())) return false; - if (getNoPublicIp() - != other.getNoPublicIp()) return false; - if (getNoProxyAccess() - != other.getNoProxyAccess()) return false; - if (!getNetwork() - .equals(other.getNetwork())) return false; - if (!getSubnet() - .equals(other.getSubnet())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!internalGetMetadata().equals( - other.internalGetMetadata())) return false; + if (!getKmsKey().equals(other.getKmsKey())) return false; + if (getNoPublicIp() != other.getNoPublicIp()) return false; + if (getNoProxyAccess() != other.getNoProxyAccess()) return false; + if (!getNetwork().equals(other.getNetwork())) return false; + if (!getSubnet().equals(other.getSubnet())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; if (nicType_ != other.nicType_) return false; if (hasReservationAffinity() != other.hasReservationAffinity()) return false; if (hasReservationAffinity()) { - if (!getReservationAffinity() - .equals(other.getReservationAffinity())) return false; + if (!getReservationAffinity().equals(other.getReservationAffinity())) return false; } - if (getCanIpForward() - != other.getCanIpForward()) return false; + if (getCanIpForward() != other.getCanIpForward()) 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 (!getEnvironmentCase().equals(other.getEnvironmentCase())) return false; switch (environmentCase_) { case 2: - if (!getVmImage() - .equals(other.getVmImage())) return false; + if (!getVmImage().equals(other.getVmImage())) return false; break; case 3: - if (!getContainerImage() - .equals(other.getContainerImage())) return false; + if (!getContainerImage().equals(other.getContainerImage())) return false; break; case 0: default: @@ -3393,33 +3817,27 @@ public int hashCode() { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; hash = (37 * hash) + INSTALL_GPU_DRIVER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInstallGpuDriver()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInstallGpuDriver()); hash = (37 * hash) + CUSTOM_GPU_DRIVER_PATH_FIELD_NUMBER; hash = (53 * hash) + getCustomGpuDriverPath().hashCode(); hash = (37 * hash) + BOOT_DISK_TYPE_FIELD_NUMBER; hash = (53 * hash) + bootDiskType_; hash = (37 * hash) + BOOT_DISK_SIZE_GB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBootDiskSizeGb()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBootDiskSizeGb()); hash = (37 * hash) + DATA_DISK_TYPE_FIELD_NUMBER; hash = (53 * hash) + dataDiskType_; hash = (37 * hash) + DATA_DISK_SIZE_GB_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDataDiskSizeGb()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDataDiskSizeGb()); hash = (37 * hash) + NO_REMOVE_DATA_DISK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getNoRemoveDataDisk()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNoRemoveDataDisk()); hash = (37 * hash) + DISK_ENCRYPTION_FIELD_NUMBER; hash = (53 * hash) + diskEncryption_; hash = (37 * hash) + KMS_KEY_FIELD_NUMBER; hash = (53 * hash) + getKmsKey().hashCode(); hash = (37 * hash) + NO_PUBLIC_IP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getNoPublicIp()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNoPublicIp()); hash = (37 * hash) + NO_PROXY_ACCESS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getNoProxyAccess()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNoProxyAccess()); hash = (37 * hash) + NETWORK_FIELD_NUMBER; hash = (53 * hash) + getNetwork().hashCode(); hash = (37 * hash) + SUBNET_FIELD_NUMBER; @@ -3439,8 +3857,7 @@ public int hashCode() { hash = (53 * hash) + getReservationAffinity().hashCode(); } hash = (37 * hash) + CAN_IP_FORWARD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCanIpForward()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCanIpForward()); if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); @@ -3466,156 +3883,160 @@ public int hashCode() { return hash; } - public static com.google.cloud.notebooks.v1beta1.Instance parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.notebooks.v1beta1.Instance parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.Instance parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.Instance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.Instance parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.Instance parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.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; } /** + * + * *
    * The definition of a notebook instance.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.Instance} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1beta1.Instance) com.google.cloud.notebooks.v1beta1.InstanceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.InstanceProto.internal_static_google_cloud_notebooks_v1beta1_Instance_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.InstanceProto + .internal_static_google_cloud_notebooks_v1beta1_Instance_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 21: return internalGetLabels(); case 22: return internalGetMetadata(); 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 21: return internalGetMutableLabels(); case 22: return internalGetMutableMetadata(); 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.cloud.notebooks.v1beta1.InstanceProto.internal_static_google_cloud_notebooks_v1beta1_Instance_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.InstanceProto + .internal_static_google_cloud_notebooks_v1beta1_Instance_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.Instance.class, com.google.cloud.notebooks.v1beta1.Instance.Builder.class); + com.google.cloud.notebooks.v1beta1.Instance.class, + com.google.cloud.notebooks.v1beta1.Instance.Builder.class); } // Construct using com.google.cloud.notebooks.v1beta1.Instance.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -3701,9 +4122,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1beta1.InstanceProto.internal_static_google_cloud_notebooks_v1beta1_Instance_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1beta1.InstanceProto + .internal_static_google_cloud_notebooks_v1beta1_Instance_descriptor; } @java.lang.Override @@ -3722,7 +4143,8 @@ public com.google.cloud.notebooks.v1beta1.Instance build() { @java.lang.Override public com.google.cloud.notebooks.v1beta1.Instance buildPartial() { - com.google.cloud.notebooks.v1beta1.Instance result = new com.google.cloud.notebooks.v1beta1.Instance(this); + com.google.cloud.notebooks.v1beta1.Instance result = + new com.google.cloud.notebooks.v1beta1.Instance(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (environmentCase_ == 2) { @@ -3797,38 +4219,39 @@ public com.google.cloud.notebooks.v1beta1.Instance buildPartial() { 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.cloud.notebooks.v1beta1.Instance) { - return mergeFrom((com.google.cloud.notebooks.v1beta1.Instance)other); + return mergeFrom((com.google.cloud.notebooks.v1beta1.Instance) other); } else { super.mergeFrom(other); return this; @@ -3916,10 +4339,8 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.Instance other) { subnet_ = other.subnet_; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); - internalGetMutableMetadata().mergeFrom( - other.internalGetMetadata()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); if (other.nicType_ != 0) { setNicTypeValue(other.getNicTypeValue()); } @@ -3936,17 +4357,20 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.Instance other) { mergeUpdateTime(other.getUpdateTime()); } switch (other.getEnvironmentCase()) { - case VM_IMAGE: { - mergeVmImage(other.getVmImage()); - break; - } - case CONTAINER_IMAGE: { - mergeContainerImage(other.getContainerImage()); - break; - } - case ENVIRONMENT_NOT_SET: { - break; - } + case VM_IMAGE: + { + mergeVmImage(other.getVmImage()); + break; + } + case CONTAINER_IMAGE: + { + mergeContainerImage(other.getContainerImage()); + break; + } + case ENVIRONMENT_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -3974,181 +4398,206 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); + case 10: + { + name_ = input.readStringRequireUtf8(); - break; - } // case 10 - case 18: { - input.readMessage( - getVmImageFieldBuilder().getBuilder(), - extensionRegistry); - environmentCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getContainerImageFieldBuilder().getBuilder(), - extensionRegistry); - environmentCase_ = 3; - break; - } // case 26 - case 34: { - postStartupScript_ = input.readStringRequireUtf8(); + break; + } // case 10 + case 18: + { + input.readMessage(getVmImageFieldBuilder().getBuilder(), extensionRegistry); + environmentCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getContainerImageFieldBuilder().getBuilder(), extensionRegistry); + environmentCase_ = 3; + break; + } // case 26 + case 34: + { + postStartupScript_ = input.readStringRequireUtf8(); - break; - } // case 34 - case 42: { - proxyUri_ = input.readStringRequireUtf8(); + break; + } // case 34 + case 42: + { + proxyUri_ = input.readStringRequireUtf8(); - break; - } // case 42 - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - ensureInstanceOwnersIsMutable(); - instanceOwners_.add(s); - break; - } // case 50 - case 58: { - serviceAccount_ = input.readStringRequireUtf8(); + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureInstanceOwnersIsMutable(); + instanceOwners_.add(s); + break; + } // case 50 + case 58: + { + serviceAccount_ = input.readStringRequireUtf8(); - break; - } // case 58 - case 66: { - machineType_ = input.readStringRequireUtf8(); + break; + } // case 58 + case 66: + { + machineType_ = input.readStringRequireUtf8(); - break; - } // case 66 - case 74: { - input.readMessage( - getAcceleratorConfigFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 66 + case 74: + { + input.readMessage( + getAcceleratorConfigFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 74 - case 80: { - state_ = input.readEnum(); + break; + } // case 74 + case 80: + { + state_ = input.readEnum(); - break; - } // case 80 - case 88: { - installGpuDriver_ = input.readBool(); + break; + } // case 80 + case 88: + { + installGpuDriver_ = input.readBool(); - break; - } // case 88 - case 98: { - customGpuDriverPath_ = input.readStringRequireUtf8(); + break; + } // case 88 + case 98: + { + customGpuDriverPath_ = input.readStringRequireUtf8(); - break; - } // case 98 - case 104: { - bootDiskType_ = input.readEnum(); + break; + } // case 98 + case 104: + { + bootDiskType_ = input.readEnum(); - break; - } // case 104 - case 112: { - bootDiskSizeGb_ = input.readInt64(); + break; + } // case 104 + case 112: + { + bootDiskSizeGb_ = input.readInt64(); - break; - } // case 112 - case 120: { - diskEncryption_ = input.readEnum(); + break; + } // case 112 + case 120: + { + diskEncryption_ = input.readEnum(); - break; - } // case 120 - case 130: { - kmsKey_ = input.readStringRequireUtf8(); + break; + } // case 120 + case 130: + { + kmsKey_ = input.readStringRequireUtf8(); - break; - } // case 130 - case 136: { - noPublicIp_ = input.readBool(); + break; + } // case 130 + case 136: + { + noPublicIp_ = input.readBool(); - break; - } // case 136 - case 144: { - noProxyAccess_ = input.readBool(); + break; + } // case 136 + case 144: + { + noProxyAccess_ = input.readBool(); - break; - } // case 144 - case 154: { - network_ = input.readStringRequireUtf8(); + break; + } // case 144 + case 154: + { + network_ = input.readStringRequireUtf8(); - break; - } // case 154 - case 162: { - subnet_ = input.readStringRequireUtf8(); + break; + } // case 154 + case 162: + { + subnet_ = input.readStringRequireUtf8(); - break; - } // case 162 - case 170: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } // case 170 - case 178: { - com.google.protobuf.MapEntry - metadata__ = input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableMetadata().getMutableMap().put( - metadata__.getKey(), metadata__.getValue()); - break; - } // case 178 - case 186: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 162 + case 170: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + break; + } // case 170 + case 178: + { + com.google.protobuf.MapEntry metadata__ = + input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableMetadata() + .getMutableMap() + .put(metadata__.getKey(), metadata__.getValue()); + break; + } // case 178 + case 186: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 186 - case 194: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 186 + case 194: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 194 - case 200: { - dataDiskType_ = input.readEnum(); + break; + } // case 194 + case 200: + { + dataDiskType_ = input.readEnum(); - break; - } // case 200 - case 208: { - dataDiskSizeGb_ = input.readInt64(); + break; + } // case 200 + case 208: + { + dataDiskSizeGb_ = input.readInt64(); - break; - } // case 208 - case 216: { - noRemoveDataDisk_ = input.readBool(); + break; + } // case 208 + case 216: + { + noRemoveDataDisk_ = input.readBool(); - break; - } // case 216 - case 224: { - nicType_ = input.readEnum(); + break; + } // case 216 + case 224: + { + nicType_ = input.readEnum(); - break; - } // case 224 - case 234: { - input.readMessage( - getReservationAffinityFieldBuilder().getBuilder(), - extensionRegistry); + break; + } // case 224 + case 234: + { + input.readMessage( + getReservationAffinityFieldBuilder().getBuilder(), extensionRegistry); - break; - } // case 234 - case 248: { - canIpForward_ = input.readBool(); + break; + } // case 234 + case 248: + { + canIpForward_ = input.readBool(); - break; - } // case 248 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 248 + 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) { @@ -4158,12 +4607,12 @@ public Builder mergeFrom( } // finally return this; } + private int environmentCase_ = 0; private java.lang.Object environment_; - public EnvironmentCase - getEnvironmentCase() { - return EnvironmentCase.forNumber( - environmentCase_); + + public EnvironmentCase getEnvironmentCase() { + return EnvironmentCase.forNumber(environmentCase_); } public Builder clearEnvironment() { @@ -4177,19 +4626,21 @@ public Builder clearEnvironment() { private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The name of this notebook instance. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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; @@ -4198,21 +4649,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The name of this notebook instance. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @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 { @@ -4220,70 +4672,83 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The name of this notebook instance. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The name of this notebook instance. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The name of this notebook instance. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1beta1.VmImage, com.google.cloud.notebooks.v1beta1.VmImage.Builder, com.google.cloud.notebooks.v1beta1.VmImageOrBuilder> vmImageBuilder_; + com.google.cloud.notebooks.v1beta1.VmImage, + com.google.cloud.notebooks.v1beta1.VmImage.Builder, + com.google.cloud.notebooks.v1beta1.VmImageOrBuilder> + vmImageBuilder_; /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
* * .google.cloud.notebooks.v1beta1.VmImage vm_image = 2; + * * @return Whether the vmImage field is set. */ @java.lang.Override @@ -4291,11 +4756,14 @@ public boolean hasVmImage() { return environmentCase_ == 2; } /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
* * .google.cloud.notebooks.v1beta1.VmImage vm_image = 2; + * * @return The vmImage. */ @java.lang.Override @@ -4313,6 +4781,8 @@ public com.google.cloud.notebooks.v1beta1.VmImage getVmImage() { } } /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
@@ -4333,14 +4803,15 @@ public Builder setVmImage(com.google.cloud.notebooks.v1beta1.VmImage value) { return this; } /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
* * .google.cloud.notebooks.v1beta1.VmImage vm_image = 2; */ - public Builder setVmImage( - com.google.cloud.notebooks.v1beta1.VmImage.Builder builderForValue) { + public Builder setVmImage(com.google.cloud.notebooks.v1beta1.VmImage.Builder builderForValue) { if (vmImageBuilder_ == null) { environment_ = builderForValue.build(); onChanged(); @@ -4351,6 +4822,8 @@ public Builder setVmImage( return this; } /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
@@ -4359,10 +4832,13 @@ public Builder setVmImage( */ public Builder mergeVmImage(com.google.cloud.notebooks.v1beta1.VmImage value) { if (vmImageBuilder_ == null) { - if (environmentCase_ == 2 && - environment_ != com.google.cloud.notebooks.v1beta1.VmImage.getDefaultInstance()) { - environment_ = com.google.cloud.notebooks.v1beta1.VmImage.newBuilder((com.google.cloud.notebooks.v1beta1.VmImage) environment_) - .mergeFrom(value).buildPartial(); + if (environmentCase_ == 2 + && environment_ != com.google.cloud.notebooks.v1beta1.VmImage.getDefaultInstance()) { + environment_ = + com.google.cloud.notebooks.v1beta1.VmImage.newBuilder( + (com.google.cloud.notebooks.v1beta1.VmImage) environment_) + .mergeFrom(value) + .buildPartial(); } else { environment_ = value; } @@ -4378,6 +4854,8 @@ public Builder mergeVmImage(com.google.cloud.notebooks.v1beta1.VmImage value) { return this; } /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
@@ -4401,6 +4879,8 @@ public Builder clearVmImage() { return this; } /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
@@ -4411,6 +4891,8 @@ public com.google.cloud.notebooks.v1beta1.VmImage.Builder getVmImageBuilder() { return getVmImageFieldBuilder().getBuilder(); } /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
@@ -4429,6 +4911,8 @@ public com.google.cloud.notebooks.v1beta1.VmImageOrBuilder getVmImageOrBuilder() } } /** + * + * *
      * Use a Compute Engine VM image to start the notebook instance.
      * 
@@ -4436,32 +4920,44 @@ public com.google.cloud.notebooks.v1beta1.VmImageOrBuilder getVmImageOrBuilder() * .google.cloud.notebooks.v1beta1.VmImage vm_image = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1beta1.VmImage, com.google.cloud.notebooks.v1beta1.VmImage.Builder, com.google.cloud.notebooks.v1beta1.VmImageOrBuilder> + com.google.cloud.notebooks.v1beta1.VmImage, + com.google.cloud.notebooks.v1beta1.VmImage.Builder, + com.google.cloud.notebooks.v1beta1.VmImageOrBuilder> getVmImageFieldBuilder() { if (vmImageBuilder_ == null) { if (!(environmentCase_ == 2)) { environment_ = com.google.cloud.notebooks.v1beta1.VmImage.getDefaultInstance(); } - vmImageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1beta1.VmImage, com.google.cloud.notebooks.v1beta1.VmImage.Builder, com.google.cloud.notebooks.v1beta1.VmImageOrBuilder>( + vmImageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1beta1.VmImage, + com.google.cloud.notebooks.v1beta1.VmImage.Builder, + com.google.cloud.notebooks.v1beta1.VmImageOrBuilder>( (com.google.cloud.notebooks.v1beta1.VmImage) environment_, getParentForChildren(), isClean()); environment_ = null; } environmentCase_ = 2; - onChanged();; + onChanged(); + ; return vmImageBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1beta1.ContainerImage, com.google.cloud.notebooks.v1beta1.ContainerImage.Builder, com.google.cloud.notebooks.v1beta1.ContainerImageOrBuilder> containerImageBuilder_; + com.google.cloud.notebooks.v1beta1.ContainerImage, + com.google.cloud.notebooks.v1beta1.ContainerImage.Builder, + com.google.cloud.notebooks.v1beta1.ContainerImageOrBuilder> + containerImageBuilder_; /** + * + * *
      * Use a container image to start the notebook instance.
      * 
* * .google.cloud.notebooks.v1beta1.ContainerImage container_image = 3; + * * @return Whether the containerImage field is set. */ @java.lang.Override @@ -4469,11 +4965,14 @@ public boolean hasContainerImage() { return environmentCase_ == 3; } /** + * + * *
      * Use a container image to start the notebook instance.
      * 
* * .google.cloud.notebooks.v1beta1.ContainerImage container_image = 3; + * * @return The containerImage. */ @java.lang.Override @@ -4491,6 +4990,8 @@ public com.google.cloud.notebooks.v1beta1.ContainerImage getContainerImage() { } } /** + * + * *
      * Use a container image to start the notebook instance.
      * 
@@ -4511,6 +5012,8 @@ public Builder setContainerImage(com.google.cloud.notebooks.v1beta1.ContainerIma return this; } /** + * + * *
      * Use a container image to start the notebook instance.
      * 
@@ -4529,6 +5032,8 @@ public Builder setContainerImage( return this; } /** + * + * *
      * Use a container image to start the notebook instance.
      * 
@@ -4537,10 +5042,14 @@ public Builder setContainerImage( */ public Builder mergeContainerImage(com.google.cloud.notebooks.v1beta1.ContainerImage value) { if (containerImageBuilder_ == null) { - if (environmentCase_ == 3 && - environment_ != com.google.cloud.notebooks.v1beta1.ContainerImage.getDefaultInstance()) { - environment_ = com.google.cloud.notebooks.v1beta1.ContainerImage.newBuilder((com.google.cloud.notebooks.v1beta1.ContainerImage) environment_) - .mergeFrom(value).buildPartial(); + if (environmentCase_ == 3 + && environment_ + != com.google.cloud.notebooks.v1beta1.ContainerImage.getDefaultInstance()) { + environment_ = + com.google.cloud.notebooks.v1beta1.ContainerImage.newBuilder( + (com.google.cloud.notebooks.v1beta1.ContainerImage) environment_) + .mergeFrom(value) + .buildPartial(); } else { environment_ = value; } @@ -4556,6 +5065,8 @@ public Builder mergeContainerImage(com.google.cloud.notebooks.v1beta1.ContainerI return this; } /** + * + * *
      * Use a container image to start the notebook instance.
      * 
@@ -4579,6 +5090,8 @@ public Builder clearContainerImage() { return this; } /** + * + * *
      * Use a container image to start the notebook instance.
      * 
@@ -4589,6 +5102,8 @@ public com.google.cloud.notebooks.v1beta1.ContainerImage.Builder getContainerIma return getContainerImageFieldBuilder().getBuilder(); } /** + * + * *
      * Use a container image to start the notebook instance.
      * 
@@ -4607,6 +5122,8 @@ public com.google.cloud.notebooks.v1beta1.ContainerImageOrBuilder getContainerIm } } /** + * + * *
      * Use a container image to start the notebook instance.
      * 
@@ -4614,26 +5131,34 @@ public com.google.cloud.notebooks.v1beta1.ContainerImageOrBuilder getContainerIm * .google.cloud.notebooks.v1beta1.ContainerImage container_image = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1beta1.ContainerImage, com.google.cloud.notebooks.v1beta1.ContainerImage.Builder, com.google.cloud.notebooks.v1beta1.ContainerImageOrBuilder> + com.google.cloud.notebooks.v1beta1.ContainerImage, + com.google.cloud.notebooks.v1beta1.ContainerImage.Builder, + com.google.cloud.notebooks.v1beta1.ContainerImageOrBuilder> getContainerImageFieldBuilder() { if (containerImageBuilder_ == null) { if (!(environmentCase_ == 3)) { environment_ = com.google.cloud.notebooks.v1beta1.ContainerImage.getDefaultInstance(); } - containerImageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1beta1.ContainerImage, com.google.cloud.notebooks.v1beta1.ContainerImage.Builder, com.google.cloud.notebooks.v1beta1.ContainerImageOrBuilder>( + containerImageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1beta1.ContainerImage, + com.google.cloud.notebooks.v1beta1.ContainerImage.Builder, + com.google.cloud.notebooks.v1beta1.ContainerImageOrBuilder>( (com.google.cloud.notebooks.v1beta1.ContainerImage) environment_, getParentForChildren(), isClean()); environment_ = null; } environmentCase_ = 3; - onChanged();; + onChanged(); + ; return containerImageBuilder_; } private java.lang.Object postStartupScript_ = ""; /** + * + * *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
@@ -4641,13 +5166,13 @@ public com.google.cloud.notebooks.v1beta1.ContainerImageOrBuilder getContainerIm
      * 
* * string post_startup_script = 4; + * * @return The postStartupScript. */ public java.lang.String getPostStartupScript() { java.lang.Object ref = postStartupScript_; 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(); postStartupScript_ = s; return s; @@ -4656,6 +5181,8 @@ public java.lang.String getPostStartupScript() { } } /** + * + * *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
@@ -4663,15 +5190,14 @@ public java.lang.String getPostStartupScript() {
      * 
* * string post_startup_script = 4; + * * @return The bytes for postStartupScript. */ - public com.google.protobuf.ByteString - getPostStartupScriptBytes() { + public com.google.protobuf.ByteString getPostStartupScriptBytes() { java.lang.Object ref = postStartupScript_; 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); postStartupScript_ = b; return b; } else { @@ -4679,6 +5205,8 @@ public java.lang.String getPostStartupScript() { } } /** + * + * *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
@@ -4686,20 +5214,22 @@ public java.lang.String getPostStartupScript() {
      * 
* * string post_startup_script = 4; + * * @param value The postStartupScript to set. * @return This builder for chaining. */ - public Builder setPostStartupScript( - java.lang.String value) { + public Builder setPostStartupScript(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + postStartupScript_ = value; onChanged(); return this; } /** + * + * *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
@@ -4707,15 +5237,18 @@ public Builder setPostStartupScript(
      * 
* * string post_startup_script = 4; + * * @return This builder for chaining. */ public Builder clearPostStartupScript() { - + postStartupScript_ = getDefaultInstance().getPostStartupScript(); onChanged(); return this; } /** + * + * *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
@@ -4723,16 +5256,16 @@ public Builder clearPostStartupScript() {
      * 
* * string post_startup_script = 4; + * * @param value The bytes for postStartupScript to set. * @return This builder for chaining. */ - public Builder setPostStartupScriptBytes( - com.google.protobuf.ByteString value) { + public Builder setPostStartupScriptBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + postStartupScript_ = value; onChanged(); return this; @@ -4740,18 +5273,20 @@ public Builder setPostStartupScriptBytes( private java.lang.Object proxyUri_ = ""; /** + * + * *
      * Output only. The proxy endpoint that is used to access the Jupyter notebook.
      * 
* * string proxy_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The proxyUri. */ public java.lang.String getProxyUri() { java.lang.Object ref = proxyUri_; 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(); proxyUri_ = s; return s; @@ -4760,20 +5295,21 @@ public java.lang.String getProxyUri() { } } /** + * + * *
      * Output only. The proxy endpoint that is used to access the Jupyter notebook.
      * 
* * string proxy_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for proxyUri. */ - public com.google.protobuf.ByteString - getProxyUriBytes() { + public com.google.protobuf.ByteString getProxyUriBytes() { java.lang.Object ref = proxyUri_; 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); proxyUri_ = b; return b; } else { @@ -4781,67 +5317,78 @@ public java.lang.String getProxyUri() { } } /** + * + * *
      * Output only. The proxy endpoint that is used to access the Jupyter notebook.
      * 
* * string proxy_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The proxyUri to set. * @return This builder for chaining. */ - public Builder setProxyUri( - java.lang.String value) { + public Builder setProxyUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + proxyUri_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The proxy endpoint that is used to access the Jupyter notebook.
      * 
* * string proxy_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearProxyUri() { - + proxyUri_ = getDefaultInstance().getProxyUri(); onChanged(); return this; } /** + * + * *
      * Output only. The proxy endpoint that is used to access the Jupyter notebook.
      * 
* * string proxy_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for proxyUri to set. * @return This builder for chaining. */ - public Builder setProxyUriBytes( - com.google.protobuf.ByteString value) { + public Builder setProxyUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + proxyUri_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList instanceOwners_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList instanceOwners_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureInstanceOwnersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { instanceOwners_ = new com.google.protobuf.LazyStringArrayList(instanceOwners_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Input only. The owner of this instance after creation. Format: `alias@example.com`
      * Currently supports one owner only. If not specified, all of the service
@@ -4850,13 +5397,15 @@ private void ensureInstanceOwnersIsMutable() {
      * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return A list containing the instanceOwners. */ - public com.google.protobuf.ProtocolStringList - getInstanceOwnersList() { + public com.google.protobuf.ProtocolStringList getInstanceOwnersList() { return instanceOwners_.getUnmodifiableView(); } /** + * + * *
      * Input only. The owner of this instance after creation. Format: `alias@example.com`
      * Currently supports one owner only. If not specified, all of the service
@@ -4865,12 +5414,15 @@ private void ensureInstanceOwnersIsMutable() {
      * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The count of instanceOwners. */ public int getInstanceOwnersCount() { return instanceOwners_.size(); } /** + * + * *
      * Input only. The owner of this instance after creation. Format: `alias@example.com`
      * Currently supports one owner only. If not specified, all of the service
@@ -4879,6 +5431,7 @@ public int getInstanceOwnersCount() {
      * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param index The index of the element to return. * @return The instanceOwners at the given index. */ @@ -4886,6 +5439,8 @@ public java.lang.String getInstanceOwners(int index) { return instanceOwners_.get(index); } /** + * + * *
      * Input only. The owner of this instance after creation. Format: `alias@example.com`
      * Currently supports one owner only. If not specified, all of the service
@@ -4894,14 +5449,16 @@ public java.lang.String getInstanceOwners(int index) {
      * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the instanceOwners at the given index. */ - public com.google.protobuf.ByteString - getInstanceOwnersBytes(int index) { + public com.google.protobuf.ByteString getInstanceOwnersBytes(int index) { return instanceOwners_.getByteString(index); } /** + * + * *
      * Input only. The owner of this instance after creation. Format: `alias@example.com`
      * Currently supports one owner only. If not specified, all of the service
@@ -4910,21 +5467,23 @@ public java.lang.String getInstanceOwners(int index) {
      * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param index The index to set the value at. * @param value The instanceOwners to set. * @return This builder for chaining. */ - public Builder setInstanceOwners( - int index, java.lang.String value) { + public Builder setInstanceOwners(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInstanceOwnersIsMutable(); + throw new NullPointerException(); + } + ensureInstanceOwnersIsMutable(); instanceOwners_.set(index, value); onChanged(); return this; } /** + * + * *
      * Input only. The owner of this instance after creation. Format: `alias@example.com`
      * Currently supports one owner only. If not specified, all of the service
@@ -4933,20 +5492,22 @@ public Builder setInstanceOwners(
      * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The instanceOwners to add. * @return This builder for chaining. */ - public Builder addInstanceOwners( - java.lang.String value) { + public Builder addInstanceOwners(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureInstanceOwnersIsMutable(); + throw new NullPointerException(); + } + ensureInstanceOwnersIsMutable(); instanceOwners_.add(value); onChanged(); return this; } /** + * + * *
      * Input only. The owner of this instance after creation. Format: `alias@example.com`
      * Currently supports one owner only. If not specified, all of the service
@@ -4955,18 +5516,19 @@ public Builder addInstanceOwners(
      * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param values The instanceOwners to add. * @return This builder for chaining. */ - public Builder addAllInstanceOwners( - java.lang.Iterable values) { + public Builder addAllInstanceOwners(java.lang.Iterable values) { ensureInstanceOwnersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, instanceOwners_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instanceOwners_); onChanged(); return this; } /** + * + * *
      * Input only. The owner of this instance after creation. Format: `alias@example.com`
      * Currently supports one owner only. If not specified, all of the service
@@ -4975,6 +5537,7 @@ public Builder addAllInstanceOwners(
      * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearInstanceOwners() { @@ -4984,6 +5547,8 @@ public Builder clearInstanceOwners() { return this; } /** + * + * *
      * Input only. The owner of this instance after creation. Format: `alias@example.com`
      * Currently supports one owner only. If not specified, all of the service
@@ -4992,15 +5557,15 @@ public Builder clearInstanceOwners() {
      * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The bytes of the instanceOwners to add. * @return This builder for chaining. */ - public Builder addInstanceOwnersBytes( - com.google.protobuf.ByteString value) { + public Builder addInstanceOwnersBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureInstanceOwnersIsMutable(); instanceOwners_.add(value); onChanged(); @@ -5009,6 +5574,8 @@ public Builder addInstanceOwnersBytes( private java.lang.Object serviceAccount_ = ""; /** + * + * *
      * The service account on this instance, giving access to other Google
      * Cloud services.
@@ -5020,13 +5587,13 @@ public Builder addInstanceOwnersBytes(
      * 
* * string service_account = 7; + * * @return The serviceAccount. */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; 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(); serviceAccount_ = s; return s; @@ -5035,6 +5602,8 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
      * The service account on this instance, giving access to other Google
      * Cloud services.
@@ -5046,15 +5615,14 @@ public java.lang.String getServiceAccount() {
      * 
* * string service_account = 7; + * * @return The bytes for serviceAccount. */ - public com.google.protobuf.ByteString - getServiceAccountBytes() { + public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; 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); serviceAccount_ = b; return b; } else { @@ -5062,6 +5630,8 @@ public java.lang.String getServiceAccount() { } } /** + * + * *
      * The service account on this instance, giving access to other Google
      * Cloud services.
@@ -5073,20 +5643,22 @@ public java.lang.String getServiceAccount() {
      * 
* * string service_account = 7; + * * @param value The serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccount( - java.lang.String value) { + public Builder setServiceAccount(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccount_ = value; onChanged(); return this; } /** + * + * *
      * The service account on this instance, giving access to other Google
      * Cloud services.
@@ -5098,15 +5670,18 @@ public Builder setServiceAccount(
      * 
* * string service_account = 7; + * * @return This builder for chaining. */ public Builder clearServiceAccount() { - + serviceAccount_ = getDefaultInstance().getServiceAccount(); onChanged(); return this; } /** + * + * *
      * The service account on this instance, giving access to other Google
      * Cloud services.
@@ -5118,16 +5693,16 @@ public Builder clearServiceAccount() {
      * 
* * string service_account = 7; + * * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ - public Builder setServiceAccountBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccount_ = value; onChanged(); return this; @@ -5135,19 +5710,21 @@ public Builder setServiceAccountBytes( private java.lang.Object machineType_ = ""; /** + * + * *
      * Required. The [Compute Engine machine type](/compute/docs/machine-types) of this
      * instance.
      * 
* * string machine_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The machineType. */ public java.lang.String getMachineType() { java.lang.Object ref = machineType_; 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(); machineType_ = s; return s; @@ -5156,21 +5733,22 @@ public java.lang.String getMachineType() { } } /** + * + * *
      * Required. The [Compute Engine machine type](/compute/docs/machine-types) of this
      * instance.
      * 
* * string machine_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for machineType. */ - public com.google.protobuf.ByteString - getMachineTypeBytes() { + public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; 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); machineType_ = b; return b; } else { @@ -5178,57 +5756,64 @@ public java.lang.String getMachineType() { } } /** + * + * *
      * Required. The [Compute Engine machine type](/compute/docs/machine-types) of this
      * instance.
      * 
* * string machine_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The machineType to set. * @return This builder for chaining. */ - public Builder setMachineType( - java.lang.String value) { + public Builder setMachineType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + machineType_ = value; onChanged(); return this; } /** + * + * *
      * Required. The [Compute Engine machine type](/compute/docs/machine-types) of this
      * instance.
      * 
* * string machine_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearMachineType() { - + machineType_ = getDefaultInstance().getMachineType(); onChanged(); return this; } /** + * + * *
      * Required. The [Compute Engine machine type](/compute/docs/machine-types) of this
      * instance.
      * 
* * string machine_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for machineType to set. * @return This builder for chaining. */ - public Builder setMachineTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + machineType_ = value; onChanged(); return this; @@ -5236,8 +5821,13 @@ public Builder setMachineTypeBytes( private com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig acceleratorConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig, com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.Builder, com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfigOrBuilder> acceleratorConfigBuilder_; + com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig, + com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.Builder, + com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfigOrBuilder> + acceleratorConfigBuilder_; /** + * + * *
      * The hardware accelerator used on this instance. If you use
      * accelerators, make sure that your configuration has
@@ -5245,13 +5835,17 @@ public Builder setMachineTypeBytes(
      * have selected](/compute/docs/gpus/#gpus-list).
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig accelerator_config = 9; + * .google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig accelerator_config = 9; + * + * * @return Whether the acceleratorConfig field is set. */ public boolean hasAcceleratorConfig() { return acceleratorConfigBuilder_ != null || acceleratorConfig_ != null; } /** + * + * *
      * The hardware accelerator used on this instance. If you use
      * accelerators, make sure that your configuration has
@@ -5259,17 +5853,23 @@ public boolean hasAcceleratorConfig() {
      * have selected](/compute/docs/gpus/#gpus-list).
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig accelerator_config = 9; + * .google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig accelerator_config = 9; + * + * * @return The acceleratorConfig. */ public com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig getAcceleratorConfig() { if (acceleratorConfigBuilder_ == null) { - return acceleratorConfig_ == null ? com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.getDefaultInstance() : acceleratorConfig_; + return acceleratorConfig_ == null + ? com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.getDefaultInstance() + : acceleratorConfig_; } else { return acceleratorConfigBuilder_.getMessage(); } } /** + * + * *
      * The hardware accelerator used on this instance. If you use
      * accelerators, make sure that your configuration has
@@ -5277,9 +5877,11 @@ public com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig getAccelera
      * have selected](/compute/docs/gpus/#gpus-list).
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig accelerator_config = 9; + * .google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig accelerator_config = 9; + * */ - public Builder setAcceleratorConfig(com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig value) { + public Builder setAcceleratorConfig( + com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig value) { if (acceleratorConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5293,6 +5895,8 @@ public Builder setAcceleratorConfig(com.google.cloud.notebooks.v1beta1.Instance. return this; } /** + * + * *
      * The hardware accelerator used on this instance. If you use
      * accelerators, make sure that your configuration has
@@ -5300,7 +5904,8 @@ public Builder setAcceleratorConfig(com.google.cloud.notebooks.v1beta1.Instance.
      * have selected](/compute/docs/gpus/#gpus-list).
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig accelerator_config = 9; + * .google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig accelerator_config = 9; + * */ public Builder setAcceleratorConfig( com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.Builder builderForValue) { @@ -5314,6 +5919,8 @@ public Builder setAcceleratorConfig( return this; } /** + * + * *
      * The hardware accelerator used on this instance. If you use
      * accelerators, make sure that your configuration has
@@ -5321,13 +5928,18 @@ public Builder setAcceleratorConfig(
      * have selected](/compute/docs/gpus/#gpus-list).
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig accelerator_config = 9; + * .google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig accelerator_config = 9; + * */ - public Builder mergeAcceleratorConfig(com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig value) { + public Builder mergeAcceleratorConfig( + com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig value) { if (acceleratorConfigBuilder_ == null) { if (acceleratorConfig_ != null) { acceleratorConfig_ = - com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.newBuilder(acceleratorConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.newBuilder( + acceleratorConfig_) + .mergeFrom(value) + .buildPartial(); } else { acceleratorConfig_ = value; } @@ -5339,6 +5951,8 @@ public Builder mergeAcceleratorConfig(com.google.cloud.notebooks.v1beta1.Instanc return this; } /** + * + * *
      * The hardware accelerator used on this instance. If you use
      * accelerators, make sure that your configuration has
@@ -5346,7 +5960,8 @@ public Builder mergeAcceleratorConfig(com.google.cloud.notebooks.v1beta1.Instanc
      * have selected](/compute/docs/gpus/#gpus-list).
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig accelerator_config = 9; + * .google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig accelerator_config = 9; + * */ public Builder clearAcceleratorConfig() { if (acceleratorConfigBuilder_ == null) { @@ -5360,6 +5975,8 @@ public Builder clearAcceleratorConfig() { return this; } /** + * + * *
      * The hardware accelerator used on this instance. If you use
      * accelerators, make sure that your configuration has
@@ -5367,14 +5984,18 @@ public Builder clearAcceleratorConfig() {
      * have selected](/compute/docs/gpus/#gpus-list).
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig accelerator_config = 9; + * .google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig accelerator_config = 9; + * */ - public com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.Builder getAcceleratorConfigBuilder() { - + public com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.Builder + getAcceleratorConfigBuilder() { + onChanged(); return getAcceleratorConfigFieldBuilder().getBuilder(); } /** + * + * *
      * The hardware accelerator used on this instance. If you use
      * accelerators, make sure that your configuration has
@@ -5382,17 +6003,22 @@ public com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.Builder get
      * have selected](/compute/docs/gpus/#gpus-list).
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig accelerator_config = 9; + * .google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig accelerator_config = 9; + * */ - public com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfigOrBuilder getAcceleratorConfigOrBuilder() { + public com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfigOrBuilder + getAcceleratorConfigOrBuilder() { if (acceleratorConfigBuilder_ != null) { return acceleratorConfigBuilder_.getMessageOrBuilder(); } else { - return acceleratorConfig_ == null ? - com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.getDefaultInstance() : acceleratorConfig_; + return acceleratorConfig_ == null + ? com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.getDefaultInstance() + : acceleratorConfig_; } } /** + * + * *
      * The hardware accelerator used on this instance. If you use
      * accelerators, make sure that your configuration has
@@ -5400,17 +6026,21 @@ public com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfigOrBuilder ge
      * have selected](/compute/docs/gpus/#gpus-list).
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig accelerator_config = 9; + * .google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig accelerator_config = 9; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig, com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.Builder, com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfigOrBuilder> + com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig, + com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.Builder, + com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfigOrBuilder> getAcceleratorConfigFieldBuilder() { if (acceleratorConfigBuilder_ == null) { - acceleratorConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig, com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.Builder, com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfigOrBuilder>( - getAcceleratorConfig(), - getParentForChildren(), - isClean()); + acceleratorConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig, + com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig.Builder, + com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfigOrBuilder>( + getAcceleratorConfig(), getParentForChildren(), isClean()); acceleratorConfig_ = null; } return acceleratorConfigBuilder_; @@ -5418,51 +6048,75 @@ public com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfigOrBuilder ge private int state_ = 0; /** + * + * *
      * Output only. The state of this instance.
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The state of this instance.
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The state of this instance.
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.notebooks.v1beta1.Instance.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1beta1.Instance.State result = com.google.cloud.notebooks.v1beta1.Instance.State.valueOf(state_); - return result == null ? com.google.cloud.notebooks.v1beta1.Instance.State.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1beta1.Instance.State result = + com.google.cloud.notebooks.v1beta1.Instance.State.valueOf(state_); + return result == null + ? com.google.cloud.notebooks.v1beta1.Instance.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The state of this instance.
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -5470,28 +6124,35 @@ public Builder setState(com.google.cloud.notebooks.v1beta1.Instance.State value) if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The state of this instance.
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } - private boolean installGpuDriver_ ; + private boolean installGpuDriver_; /** + * + * *
      * Whether the end user authorizes Google Cloud to install GPU driver
      * on this instance.
@@ -5500,6 +6161,7 @@ public Builder clearState() {
      * 
* * bool install_gpu_driver = 11; + * * @return The installGpuDriver. */ @java.lang.Override @@ -5507,6 +6169,8 @@ public boolean getInstallGpuDriver() { return installGpuDriver_; } /** + * + * *
      * Whether the end user authorizes Google Cloud to install GPU driver
      * on this instance.
@@ -5515,16 +6179,19 @@ public boolean getInstallGpuDriver() {
      * 
* * bool install_gpu_driver = 11; + * * @param value The installGpuDriver to set. * @return This builder for chaining. */ public Builder setInstallGpuDriver(boolean value) { - + installGpuDriver_ = value; onChanged(); return this; } /** + * + * *
      * Whether the end user authorizes Google Cloud to install GPU driver
      * on this instance.
@@ -5533,10 +6200,11 @@ public Builder setInstallGpuDriver(boolean value) {
      * 
* * bool install_gpu_driver = 11; + * * @return This builder for chaining. */ public Builder clearInstallGpuDriver() { - + installGpuDriver_ = false; onChanged(); return this; @@ -5544,19 +6212,21 @@ public Builder clearInstallGpuDriver() { private java.lang.Object customGpuDriverPath_ = ""; /** + * + * *
      * Specify a custom Cloud Storage path where the GPU driver is stored.
      * If not specified, we'll automatically choose from official GPU drivers.
      * 
* * string custom_gpu_driver_path = 12; + * * @return The customGpuDriverPath. */ public java.lang.String getCustomGpuDriverPath() { java.lang.Object ref = customGpuDriverPath_; 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(); customGpuDriverPath_ = s; return s; @@ -5565,21 +6235,22 @@ public java.lang.String getCustomGpuDriverPath() { } } /** + * + * *
      * Specify a custom Cloud Storage path where the GPU driver is stored.
      * If not specified, we'll automatically choose from official GPU drivers.
      * 
* * string custom_gpu_driver_path = 12; + * * @return The bytes for customGpuDriverPath. */ - public com.google.protobuf.ByteString - getCustomGpuDriverPathBytes() { + public com.google.protobuf.ByteString getCustomGpuDriverPathBytes() { java.lang.Object ref = customGpuDriverPath_; 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); customGpuDriverPath_ = b; return b; } else { @@ -5587,57 +6258,64 @@ public java.lang.String getCustomGpuDriverPath() { } } /** + * + * *
      * Specify a custom Cloud Storage path where the GPU driver is stored.
      * If not specified, we'll automatically choose from official GPU drivers.
      * 
* * string custom_gpu_driver_path = 12; + * * @param value The customGpuDriverPath to set. * @return This builder for chaining. */ - public Builder setCustomGpuDriverPath( - java.lang.String value) { + public Builder setCustomGpuDriverPath(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + customGpuDriverPath_ = value; onChanged(); return this; } /** + * + * *
      * Specify a custom Cloud Storage path where the GPU driver is stored.
      * If not specified, we'll automatically choose from official GPU drivers.
      * 
* * string custom_gpu_driver_path = 12; + * * @return This builder for chaining. */ public Builder clearCustomGpuDriverPath() { - + customGpuDriverPath_ = getDefaultInstance().getCustomGpuDriverPath(); onChanged(); return this; } /** + * + * *
      * Specify a custom Cloud Storage path where the GPU driver is stored.
      * If not specified, we'll automatically choose from official GPU drivers.
      * 
* * string custom_gpu_driver_path = 12; + * * @param value The bytes for customGpuDriverPath to set. * @return This builder for chaining. */ - public Builder setCustomGpuDriverPathBytes( - com.google.protobuf.ByteString value) { + public Builder setCustomGpuDriverPathBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customGpuDriverPath_ = value; onChanged(); return this; @@ -5645,55 +6323,79 @@ public Builder setCustomGpuDriverPathBytes( private int bootDiskType_ = 0; /** + * + * *
      * Input only. The type of the boot disk attached to this instance, defaults to
      * standard persistent disk (`PD_STANDARD`).
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The enum numeric value on the wire for bootDiskType. */ - @java.lang.Override public int getBootDiskTypeValue() { + @java.lang.Override + public int getBootDiskTypeValue() { return bootDiskType_; } /** + * + * *
      * Input only. The type of the boot disk attached to this instance, defaults to
      * standard persistent disk (`PD_STANDARD`).
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for bootDiskType to set. * @return This builder for chaining. */ public Builder setBootDiskTypeValue(int value) { - + bootDiskType_ = value; onChanged(); return this; } /** + * + * *
      * Input only. The type of the boot disk attached to this instance, defaults to
      * standard persistent disk (`PD_STANDARD`).
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bootDiskType. */ @java.lang.Override public com.google.cloud.notebooks.v1beta1.Instance.DiskType getBootDiskType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1beta1.Instance.DiskType result = com.google.cloud.notebooks.v1beta1.Instance.DiskType.valueOf(bootDiskType_); - return result == null ? com.google.cloud.notebooks.v1beta1.Instance.DiskType.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1beta1.Instance.DiskType result = + com.google.cloud.notebooks.v1beta1.Instance.DiskType.valueOf(bootDiskType_); + return result == null + ? com.google.cloud.notebooks.v1beta1.Instance.DiskType.UNRECOGNIZED + : result; } /** + * + * *
      * Input only. The type of the boot disk attached to this instance, defaults to
      * standard persistent disk (`PD_STANDARD`).
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The bootDiskType to set. * @return This builder for chaining. */ @@ -5701,29 +6403,36 @@ public Builder setBootDiskType(com.google.cloud.notebooks.v1beta1.Instance.DiskT if (value == null) { throw new NullPointerException(); } - + bootDiskType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Input only. The type of the boot disk attached to this instance, defaults to
      * standard persistent disk (`PD_STANDARD`).
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearBootDiskType() { - + bootDiskType_ = 0; onChanged(); return this; } - private long bootDiskSizeGb_ ; + private long bootDiskSizeGb_; /** + * + * *
      * Input only. The size of the boot disk in GB attached to this instance, up to a maximum
      * of 64000&nbsp;GB (64&nbsp;TB). The minimum recommended value is
@@ -5731,6 +6440,7 @@ public Builder clearBootDiskType() {
      * 
* * int64 boot_disk_size_gb = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bootDiskSizeGb. */ @java.lang.Override @@ -5738,6 +6448,8 @@ public long getBootDiskSizeGb() { return bootDiskSizeGb_; } /** + * + * *
      * Input only. The size of the boot disk in GB attached to this instance, up to a maximum
      * of 64000&nbsp;GB (64&nbsp;TB). The minimum recommended value is
@@ -5745,16 +6457,19 @@ public long getBootDiskSizeGb() {
      * 
* * int64 boot_disk_size_gb = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The bootDiskSizeGb to set. * @return This builder for chaining. */ public Builder setBootDiskSizeGb(long value) { - + bootDiskSizeGb_ = value; onChanged(); return this; } /** + * + * *
      * Input only. The size of the boot disk in GB attached to this instance, up to a maximum
      * of 64000&nbsp;GB (64&nbsp;TB). The minimum recommended value is
@@ -5762,10 +6477,11 @@ public Builder setBootDiskSizeGb(long value) {
      * 
* * int64 boot_disk_size_gb = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearBootDiskSizeGb() { - + bootDiskSizeGb_ = 0L; onChanged(); return this; @@ -5773,55 +6489,79 @@ public Builder clearBootDiskSizeGb() { private int dataDiskType_ = 0; /** + * + * *
      * Input only. The type of the data disk attached to this instance, defaults to
      * standard persistent disk (`PD_STANDARD`).
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The enum numeric value on the wire for dataDiskType. */ - @java.lang.Override public int getDataDiskTypeValue() { + @java.lang.Override + public int getDataDiskTypeValue() { return dataDiskType_; } /** + * + * *
      * Input only. The type of the data disk attached to this instance, defaults to
      * standard persistent disk (`PD_STANDARD`).
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for dataDiskType to set. * @return This builder for chaining. */ public Builder setDataDiskTypeValue(int value) { - + dataDiskType_ = value; onChanged(); return this; } /** + * + * *
      * Input only. The type of the data disk attached to this instance, defaults to
      * standard persistent disk (`PD_STANDARD`).
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The dataDiskType. */ @java.lang.Override public com.google.cloud.notebooks.v1beta1.Instance.DiskType getDataDiskType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1beta1.Instance.DiskType result = com.google.cloud.notebooks.v1beta1.Instance.DiskType.valueOf(dataDiskType_); - return result == null ? com.google.cloud.notebooks.v1beta1.Instance.DiskType.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1beta1.Instance.DiskType result = + com.google.cloud.notebooks.v1beta1.Instance.DiskType.valueOf(dataDiskType_); + return result == null + ? com.google.cloud.notebooks.v1beta1.Instance.DiskType.UNRECOGNIZED + : result; } /** + * + * *
      * Input only. The type of the data disk attached to this instance, defaults to
      * standard persistent disk (`PD_STANDARD`).
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The dataDiskType to set. * @return This builder for chaining. */ @@ -5829,29 +6569,36 @@ public Builder setDataDiskType(com.google.cloud.notebooks.v1beta1.Instance.DiskT if (value == null) { throw new NullPointerException(); } - + dataDiskType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Input only. The type of the data disk attached to this instance, defaults to
      * standard persistent disk (`PD_STANDARD`).
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearDataDiskType() { - + dataDiskType_ = 0; onChanged(); return this; } - private long dataDiskSizeGb_ ; + private long dataDiskSizeGb_; /** + * + * *
      * Input only. The size of the data disk in GB attached to this instance, up to a maximum
      * of 64000&nbsp;GB (64&nbsp;TB). You can choose the size of the data disk
@@ -5860,6 +6607,7 @@ public Builder clearDataDiskType() {
      * 
* * int64 data_disk_size_gb = 26 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The dataDiskSizeGb. */ @java.lang.Override @@ -5867,6 +6615,8 @@ public long getDataDiskSizeGb() { return dataDiskSizeGb_; } /** + * + * *
      * Input only. The size of the data disk in GB attached to this instance, up to a maximum
      * of 64000&nbsp;GB (64&nbsp;TB). You can choose the size of the data disk
@@ -5875,16 +6625,19 @@ public long getDataDiskSizeGb() {
      * 
* * int64 data_disk_size_gb = 26 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The dataDiskSizeGb to set. * @return This builder for chaining. */ public Builder setDataDiskSizeGb(long value) { - + dataDiskSizeGb_ = value; onChanged(); return this; } /** + * + * *
      * Input only. The size of the data disk in GB attached to this instance, up to a maximum
      * of 64000&nbsp;GB (64&nbsp;TB). You can choose the size of the data disk
@@ -5893,22 +6646,26 @@ public Builder setDataDiskSizeGb(long value) {
      * 
* * int64 data_disk_size_gb = 26 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearDataDiskSizeGb() { - + dataDiskSizeGb_ = 0L; onChanged(); return this; } - private boolean noRemoveDataDisk_ ; + private boolean noRemoveDataDisk_; /** + * + * *
      * Input only. If true, the data disk will not be auto deleted when deleting the instance.
      * 
* * bool no_remove_data_disk = 27 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The noRemoveDataDisk. */ @java.lang.Override @@ -5916,30 +6673,36 @@ public boolean getNoRemoveDataDisk() { return noRemoveDataDisk_; } /** + * + * *
      * Input only. If true, the data disk will not be auto deleted when deleting the instance.
      * 
* * bool no_remove_data_disk = 27 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The noRemoveDataDisk to set. * @return This builder for chaining. */ public Builder setNoRemoveDataDisk(boolean value) { - + noRemoveDataDisk_ = value; onChanged(); return this; } /** + * + * *
      * Input only. If true, the data disk will not be auto deleted when deleting the instance.
      * 
* * bool no_remove_data_disk = 27 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearNoRemoveDataDisk() { - + noRemoveDataDisk_ = false; onChanged(); return this; @@ -5947,73 +6710,103 @@ public Builder clearNoRemoveDataDisk() { private int diskEncryption_ = 0; /** + * + * *
      * Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The enum numeric value on the wire for diskEncryption. */ - @java.lang.Override public int getDiskEncryptionValue() { + @java.lang.Override + public int getDiskEncryptionValue() { return diskEncryption_; } /** + * + * *
      * Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for diskEncryption to set. * @return This builder for chaining. */ public Builder setDiskEncryptionValue(int value) { - + diskEncryption_ = value; onChanged(); return this; } /** + * + * *
      * Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The diskEncryption. */ @java.lang.Override public com.google.cloud.notebooks.v1beta1.Instance.DiskEncryption getDiskEncryption() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1beta1.Instance.DiskEncryption result = com.google.cloud.notebooks.v1beta1.Instance.DiskEncryption.valueOf(diskEncryption_); - return result == null ? com.google.cloud.notebooks.v1beta1.Instance.DiskEncryption.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1beta1.Instance.DiskEncryption result = + com.google.cloud.notebooks.v1beta1.Instance.DiskEncryption.valueOf(diskEncryption_); + return result == null + ? com.google.cloud.notebooks.v1beta1.Instance.DiskEncryption.UNRECOGNIZED + : result; } /** + * + * *
      * Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The diskEncryption to set. * @return This builder for chaining. */ - public Builder setDiskEncryption(com.google.cloud.notebooks.v1beta1.Instance.DiskEncryption value) { + public Builder setDiskEncryption( + com.google.cloud.notebooks.v1beta1.Instance.DiskEncryption value) { if (value == null) { throw new NullPointerException(); } - + diskEncryption_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearDiskEncryption() { - + diskEncryption_ = 0; onChanged(); return this; @@ -6021,6 +6814,8 @@ public Builder clearDiskEncryption() { private java.lang.Object kmsKey_ = ""; /** + * + * *
      * Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption
      * is CMEK.
@@ -6030,13 +6825,13 @@ public Builder clearDiskEncryption() {
      * 
* * string kms_key = 16 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The kmsKey. */ public java.lang.String getKmsKey() { java.lang.Object ref = kmsKey_; 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(); kmsKey_ = s; return s; @@ -6045,6 +6840,8 @@ public java.lang.String getKmsKey() { } } /** + * + * *
      * Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption
      * is CMEK.
@@ -6054,15 +6851,14 @@ public java.lang.String getKmsKey() {
      * 
* * string kms_key = 16 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for kmsKey. */ - public com.google.protobuf.ByteString - getKmsKeyBytes() { + public com.google.protobuf.ByteString getKmsKeyBytes() { java.lang.Object ref = kmsKey_; 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); kmsKey_ = b; return b; } else { @@ -6070,6 +6866,8 @@ public java.lang.String getKmsKey() { } } /** + * + * *
      * Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption
      * is CMEK.
@@ -6079,20 +6877,22 @@ public java.lang.String getKmsKey() {
      * 
* * string kms_key = 16 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The kmsKey to set. * @return This builder for chaining. */ - public Builder setKmsKey( - java.lang.String value) { + public Builder setKmsKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kmsKey_ = value; onChanged(); return this; } /** + * + * *
      * Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption
      * is CMEK.
@@ -6102,15 +6902,18 @@ public Builder setKmsKey(
      * 
* * string kms_key = 16 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearKmsKey() { - + kmsKey_ = getDefaultInstance().getKmsKey(); onChanged(); return this; } /** + * + * *
      * Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption
      * is CMEK.
@@ -6120,28 +6923,31 @@ public Builder clearKmsKey() {
      * 
* * string kms_key = 16 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The bytes for kmsKey to set. * @return This builder for chaining. */ - public Builder setKmsKeyBytes( - com.google.protobuf.ByteString value) { + public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKey_ = value; onChanged(); return this; } - private boolean noPublicIp_ ; + private boolean noPublicIp_; /** + * + * *
      * If true, no public IP will be assigned to this instance.
      * 
* * bool no_public_ip = 17; + * * @return The noPublicIp. */ @java.lang.Override @@ -6149,42 +6955,51 @@ public boolean getNoPublicIp() { return noPublicIp_; } /** + * + * *
      * If true, no public IP will be assigned to this instance.
      * 
* * bool no_public_ip = 17; + * * @param value The noPublicIp to set. * @return This builder for chaining. */ public Builder setNoPublicIp(boolean value) { - + noPublicIp_ = value; onChanged(); return this; } /** + * + * *
      * If true, no public IP will be assigned to this instance.
      * 
* * bool no_public_ip = 17; + * * @return This builder for chaining. */ public Builder clearNoPublicIp() { - + noPublicIp_ = false; onChanged(); return this; } - private boolean noProxyAccess_ ; + private boolean noProxyAccess_; /** + * + * *
      * If true, the notebook instance will not register with the proxy.
      * 
* * bool no_proxy_access = 18; + * * @return The noProxyAccess. */ @java.lang.Override @@ -6192,30 +7007,36 @@ public boolean getNoProxyAccess() { return noProxyAccess_; } /** + * + * *
      * If true, the notebook instance will not register with the proxy.
      * 
* * bool no_proxy_access = 18; + * * @param value The noProxyAccess to set. * @return This builder for chaining. */ public Builder setNoProxyAccess(boolean value) { - + noProxyAccess_ = value; onChanged(); return this; } /** + * + * *
      * If true, the notebook instance will not register with the proxy.
      * 
* * bool no_proxy_access = 18; + * * @return This builder for chaining. */ public Builder clearNoProxyAccess() { - + noProxyAccess_ = false; onChanged(); return this; @@ -6223,6 +7044,8 @@ public Builder clearNoProxyAccess() { private java.lang.Object network_ = ""; /** + * + * *
      * The name of the VPC that this instance is in.
      * Format:
@@ -6230,13 +7053,13 @@ public Builder clearNoProxyAccess() {
      * 
* * string network = 19; + * * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; 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(); network_ = s; return s; @@ -6245,6 +7068,8 @@ public java.lang.String getNetwork() { } } /** + * + * *
      * The name of the VPC that this instance is in.
      * Format:
@@ -6252,15 +7077,14 @@ public java.lang.String getNetwork() {
      * 
* * string network = 19; + * * @return The bytes for network. */ - public com.google.protobuf.ByteString - getNetworkBytes() { + public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; 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); network_ = b; return b; } else { @@ -6268,6 +7092,8 @@ public java.lang.String getNetwork() { } } /** + * + * *
      * The name of the VPC that this instance is in.
      * Format:
@@ -6275,20 +7101,22 @@ public java.lang.String getNetwork() {
      * 
* * string network = 19; + * * @param value The network to set. * @return This builder for chaining. */ - public Builder setNetwork( - java.lang.String value) { + public Builder setNetwork(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + network_ = value; onChanged(); return this; } /** + * + * *
      * The name of the VPC that this instance is in.
      * Format:
@@ -6296,15 +7124,18 @@ public Builder setNetwork(
      * 
* * string network = 19; + * * @return This builder for chaining. */ public Builder clearNetwork() { - + network_ = getDefaultInstance().getNetwork(); onChanged(); return this; } /** + * + * *
      * The name of the VPC that this instance is in.
      * Format:
@@ -6312,16 +7143,16 @@ public Builder clearNetwork() {
      * 
* * string network = 19; + * * @param value The bytes for network to set. * @return This builder for chaining. */ - public Builder setNetworkBytes( - com.google.protobuf.ByteString value) { + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + network_ = value; onChanged(); return this; @@ -6329,6 +7160,8 @@ public Builder setNetworkBytes( private java.lang.Object subnet_ = ""; /** + * + * *
      * The name of the subnet that this instance is in.
      * Format:
@@ -6336,13 +7169,13 @@ public Builder setNetworkBytes(
      * 
* * string subnet = 20; + * * @return The subnet. */ public java.lang.String getSubnet() { java.lang.Object ref = subnet_; 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(); subnet_ = s; return s; @@ -6351,6 +7184,8 @@ public java.lang.String getSubnet() { } } /** + * + * *
      * The name of the subnet that this instance is in.
      * Format:
@@ -6358,15 +7193,14 @@ public java.lang.String getSubnet() {
      * 
* * string subnet = 20; + * * @return The bytes for subnet. */ - public com.google.protobuf.ByteString - getSubnetBytes() { + public com.google.protobuf.ByteString getSubnetBytes() { java.lang.Object ref = subnet_; 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); subnet_ = b; return b; } else { @@ -6374,6 +7208,8 @@ public java.lang.String getSubnet() { } } /** + * + * *
      * The name of the subnet that this instance is in.
      * Format:
@@ -6381,20 +7217,22 @@ public java.lang.String getSubnet() {
      * 
* * string subnet = 20; + * * @param value The subnet to set. * @return This builder for chaining. */ - public Builder setSubnet( - java.lang.String value) { + public Builder setSubnet(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subnet_ = value; onChanged(); return this; } /** + * + * *
      * The name of the subnet that this instance is in.
      * Format:
@@ -6402,15 +7240,18 @@ public Builder setSubnet(
      * 
* * string subnet = 20; + * * @return This builder for chaining. */ public Builder clearSubnet() { - + subnet_ = getDefaultInstance().getSubnet(); onChanged(); return this; } /** + * + * *
      * The name of the subnet that this instance is in.
      * Format:
@@ -6418,37 +7259,36 @@ public Builder clearSubnet() {
      * 
* * string subnet = 20; + * * @param value The bytes for subnet to set. * @return This builder for chaining. */ - public Builder setSubnetBytes( - com.google.protobuf.ByteString value) { + public Builder setSubnetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subnet_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField 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 - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -6460,6 +7300,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels to apply to this instance.
      * These can be later modified by the setLabels method.
@@ -6467,22 +7309,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 21;
      */
-
     @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 getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Labels to apply to this instance.
      * These can be later modified by the setLabels method.
@@ -6491,11 +7333,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 21;
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Labels to apply to this instance.
      * These can be later modified by the setLabels method.
@@ -6504,16 +7347,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 21;
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Labels to apply to this instance.
      * These can be later modified by the setLabels method.
@@ -6522,12 +7366,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 21;
      */
     @java.lang.Override
-
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -6535,11 +7378,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Labels to apply to this instance.
      * These can be later modified by the setLabels method.
@@ -6547,23 +7391,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 21;
      */
-
-    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
-    getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Labels to apply to this instance.
      * These can be later modified by the setLabels method.
@@ -6571,19 +7413,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 21;
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    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");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Labels to apply to this instance.
      * These can be later modified by the setLabels method.
@@ -6591,30 +7434,27 @@ public Builder putLabels(
      *
      * map<string, string> labels = 21;
      */
-
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       return this;
     }
 
-    private com.google.protobuf.MapField<
-        java.lang.String, java.lang.String> metadata_;
-    private com.google.protobuf.MapField
-    internalGetMetadata() {
+    private com.google.protobuf.MapField metadata_;
+
+    private com.google.protobuf.MapField internalGetMetadata() {
       if (metadata_ == null) {
-        return com.google.protobuf.MapField.emptyMapField(
-            MetadataDefaultEntryHolder.defaultEntry);
+        return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry);
       }
       return metadata_;
     }
+
     private com.google.protobuf.MapField
-    internalGetMutableMetadata() {
-      onChanged();;
+        internalGetMutableMetadata() {
+      onChanged();
+      ;
       if (metadata_ == null) {
-        metadata_ = com.google.protobuf.MapField.newMapField(
-            MetadataDefaultEntryHolder.defaultEntry);
+        metadata_ =
+            com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry);
       }
       if (!metadata_.isMutable()) {
         metadata_ = metadata_.copy();
@@ -6626,28 +7466,30 @@ public int getMetadataCount() {
       return internalGetMetadata().getMap().size();
     }
     /**
+     *
+     *
      * 
      * Custom metadata to apply to this instance.
      * 
* * map<string, string> metadata = 22; */ - @java.lang.Override - public boolean containsMetadata( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetMetadata().getMap().containsKey(key); } - /** - * Use {@link #getMetadataMap()} instead. - */ + /** Use {@link #getMetadataMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMetadata() { return getMetadataMap(); } /** + * + * *
      * Custom metadata to apply to this instance.
      * 
@@ -6655,11 +7497,12 @@ public java.util.Map getMetadata() { * map<string, string> metadata = 22; */ @java.lang.Override - public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** + * + * *
      * Custom metadata to apply to this instance.
      * 
@@ -6667,16 +7510,17 @@ public java.util.Map getMetadataMap() { * map<string, string> metadata = 22; */ @java.lang.Override - public java.lang.String getMetadataOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMetadata().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Custom metadata to apply to this instance.
      * 
@@ -6684,12 +7528,11 @@ public java.lang.String getMetadataOrDefault( * map<string, string> metadata = 22; */ @java.lang.Override - - public java.lang.String getMetadataOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMetadata().getMap(); + public java.lang.String getMetadataOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -6697,118 +7540,139 @@ public java.lang.String getMetadataOrThrow( } public Builder clearMetadata() { - internalGetMutableMetadata().getMutableMap() - .clear(); + internalGetMutableMetadata().getMutableMap().clear(); return this; } /** + * + * *
      * Custom metadata to apply to this instance.
      * 
* * map<string, string> metadata = 22; */ - - public Builder removeMetadata( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableMetadata().getMutableMap() - .remove(key); + public Builder removeMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableMetadata().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableMetadata() { + public java.util.Map getMutableMetadata() { return internalGetMutableMetadata().getMutableMap(); } /** + * + * *
      * Custom metadata to apply to this instance.
      * 
* * map<string, string> metadata = 22; */ - public Builder putMetadata( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } + public Builder putMetadata(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableMetadata().getMutableMap() - .put(key, value); + internalGetMutableMetadata().getMutableMap().put(key, value); return this; } /** + * + * *
      * Custom metadata to apply to this instance.
      * 
* * map<string, string> metadata = 22; */ - - public Builder putAllMetadata( - java.util.Map values) { - internalGetMutableMetadata().getMutableMap() - .putAll(values); + public Builder putAllMetadata(java.util.Map values) { + internalGetMutableMetadata().getMutableMap().putAll(values); return this; } private int nicType_ = 0; /** + * + * *
      * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
      * VirtioNet.
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.NicType nic_type = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.Instance.NicType nic_type = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for nicType. */ - @java.lang.Override public int getNicTypeValue() { + @java.lang.Override + public int getNicTypeValue() { return nicType_; } /** + * + * *
      * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
      * VirtioNet.
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.NicType nic_type = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.Instance.NicType nic_type = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for nicType to set. * @return This builder for chaining. */ public Builder setNicTypeValue(int value) { - + nicType_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
      * VirtioNet.
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.NicType nic_type = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.Instance.NicType nic_type = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The nicType. */ @java.lang.Override public com.google.cloud.notebooks.v1beta1.Instance.NicType getNicType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1beta1.Instance.NicType result = com.google.cloud.notebooks.v1beta1.Instance.NicType.valueOf(nicType_); - return result == null ? com.google.cloud.notebooks.v1beta1.Instance.NicType.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1beta1.Instance.NicType result = + com.google.cloud.notebooks.v1beta1.Instance.NicType.valueOf(nicType_); + return result == null + ? com.google.cloud.notebooks.v1beta1.Instance.NicType.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
      * VirtioNet.
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.NicType nic_type = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.Instance.NicType nic_type = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The nicType to set. * @return This builder for chaining. */ @@ -6816,22 +7680,27 @@ public Builder setNicType(com.google.cloud.notebooks.v1beta1.Instance.NicType va if (value == null) { throw new NullPointerException(); } - + nicType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
      * VirtioNet.
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.NicType nic_type = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.Instance.NicType nic_type = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearNicType() { - + nicType_ = 0; onChanged(); return this; @@ -6839,8 +7708,13 @@ public Builder clearNicType() { private com.google.cloud.notebooks.v1beta1.ReservationAffinity reservationAffinity_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1beta1.ReservationAffinity, com.google.cloud.notebooks.v1beta1.ReservationAffinity.Builder, com.google.cloud.notebooks.v1beta1.ReservationAffinityOrBuilder> reservationAffinityBuilder_; + com.google.cloud.notebooks.v1beta1.ReservationAffinity, + com.google.cloud.notebooks.v1beta1.ReservationAffinity.Builder, + com.google.cloud.notebooks.v1beta1.ReservationAffinityOrBuilder> + reservationAffinityBuilder_; /** + * + * *
      * Optional. The optional reservation affinity. Setting this field will apply
      * the specified [Zonal Compute
@@ -6848,13 +7722,18 @@ public Builder clearNicType() {
      * to this notebook instance.
      * 
* - * .google.cloud.notebooks.v1beta1.ReservationAffinity reservation_affinity = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.ReservationAffinity reservation_affinity = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the reservationAffinity field is set. */ public boolean hasReservationAffinity() { return reservationAffinityBuilder_ != null || reservationAffinity_ != null; } /** + * + * *
      * Optional. The optional reservation affinity. Setting this field will apply
      * the specified [Zonal Compute
@@ -6862,17 +7741,24 @@ public boolean hasReservationAffinity() {
      * to this notebook instance.
      * 
* - * .google.cloud.notebooks.v1beta1.ReservationAffinity reservation_affinity = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.ReservationAffinity reservation_affinity = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The reservationAffinity. */ public com.google.cloud.notebooks.v1beta1.ReservationAffinity getReservationAffinity() { if (reservationAffinityBuilder_ == null) { - return reservationAffinity_ == null ? com.google.cloud.notebooks.v1beta1.ReservationAffinity.getDefaultInstance() : reservationAffinity_; + return reservationAffinity_ == null + ? com.google.cloud.notebooks.v1beta1.ReservationAffinity.getDefaultInstance() + : reservationAffinity_; } else { return reservationAffinityBuilder_.getMessage(); } } /** + * + * *
      * Optional. The optional reservation affinity. Setting this field will apply
      * the specified [Zonal Compute
@@ -6880,9 +7766,12 @@ public com.google.cloud.notebooks.v1beta1.ReservationAffinity getReservationAffi
      * to this notebook instance.
      * 
* - * .google.cloud.notebooks.v1beta1.ReservationAffinity reservation_affinity = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.ReservationAffinity reservation_affinity = 29 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setReservationAffinity(com.google.cloud.notebooks.v1beta1.ReservationAffinity value) { + public Builder setReservationAffinity( + com.google.cloud.notebooks.v1beta1.ReservationAffinity value) { if (reservationAffinityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -6896,6 +7785,8 @@ public Builder setReservationAffinity(com.google.cloud.notebooks.v1beta1.Reserva return this; } /** + * + * *
      * Optional. The optional reservation affinity. Setting this field will apply
      * the specified [Zonal Compute
@@ -6903,7 +7794,9 @@ public Builder setReservationAffinity(com.google.cloud.notebooks.v1beta1.Reserva
      * to this notebook instance.
      * 
* - * .google.cloud.notebooks.v1beta1.ReservationAffinity reservation_affinity = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.ReservationAffinity reservation_affinity = 29 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setReservationAffinity( com.google.cloud.notebooks.v1beta1.ReservationAffinity.Builder builderForValue) { @@ -6917,6 +7810,8 @@ public Builder setReservationAffinity( return this; } /** + * + * *
      * Optional. The optional reservation affinity. Setting this field will apply
      * the specified [Zonal Compute
@@ -6924,13 +7819,19 @@ public Builder setReservationAffinity(
      * to this notebook instance.
      * 
* - * .google.cloud.notebooks.v1beta1.ReservationAffinity reservation_affinity = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.ReservationAffinity reservation_affinity = 29 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeReservationAffinity(com.google.cloud.notebooks.v1beta1.ReservationAffinity value) { + public Builder mergeReservationAffinity( + com.google.cloud.notebooks.v1beta1.ReservationAffinity value) { if (reservationAffinityBuilder_ == null) { if (reservationAffinity_ != null) { reservationAffinity_ = - com.google.cloud.notebooks.v1beta1.ReservationAffinity.newBuilder(reservationAffinity_).mergeFrom(value).buildPartial(); + com.google.cloud.notebooks.v1beta1.ReservationAffinity.newBuilder( + reservationAffinity_) + .mergeFrom(value) + .buildPartial(); } else { reservationAffinity_ = value; } @@ -6942,6 +7843,8 @@ public Builder mergeReservationAffinity(com.google.cloud.notebooks.v1beta1.Reser return this; } /** + * + * *
      * Optional. The optional reservation affinity. Setting this field will apply
      * the specified [Zonal Compute
@@ -6949,7 +7852,9 @@ public Builder mergeReservationAffinity(com.google.cloud.notebooks.v1beta1.Reser
      * to this notebook instance.
      * 
* - * .google.cloud.notebooks.v1beta1.ReservationAffinity reservation_affinity = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.ReservationAffinity reservation_affinity = 29 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearReservationAffinity() { if (reservationAffinityBuilder_ == null) { @@ -6963,6 +7868,8 @@ public Builder clearReservationAffinity() { return this; } /** + * + * *
      * Optional. The optional reservation affinity. Setting this field will apply
      * the specified [Zonal Compute
@@ -6970,14 +7877,19 @@ public Builder clearReservationAffinity() {
      * to this notebook instance.
      * 
* - * .google.cloud.notebooks.v1beta1.ReservationAffinity reservation_affinity = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.ReservationAffinity reservation_affinity = 29 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.notebooks.v1beta1.ReservationAffinity.Builder getReservationAffinityBuilder() { - + public com.google.cloud.notebooks.v1beta1.ReservationAffinity.Builder + getReservationAffinityBuilder() { + onChanged(); return getReservationAffinityFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The optional reservation affinity. Setting this field will apply
      * the specified [Zonal Compute
@@ -6985,17 +7897,23 @@ public com.google.cloud.notebooks.v1beta1.ReservationAffinity.Builder getReserva
      * to this notebook instance.
      * 
* - * .google.cloud.notebooks.v1beta1.ReservationAffinity reservation_affinity = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.ReservationAffinity reservation_affinity = 29 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.notebooks.v1beta1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder() { + public com.google.cloud.notebooks.v1beta1.ReservationAffinityOrBuilder + getReservationAffinityOrBuilder() { if (reservationAffinityBuilder_ != null) { return reservationAffinityBuilder_.getMessageOrBuilder(); } else { - return reservationAffinity_ == null ? - com.google.cloud.notebooks.v1beta1.ReservationAffinity.getDefaultInstance() : reservationAffinity_; + return reservationAffinity_ == null + ? com.google.cloud.notebooks.v1beta1.ReservationAffinity.getDefaultInstance() + : reservationAffinity_; } } /** + * + * *
      * Optional. The optional reservation affinity. Setting this field will apply
      * the specified [Zonal Compute
@@ -7003,30 +7921,38 @@ public com.google.cloud.notebooks.v1beta1.ReservationAffinityOrBuilder getReserv
      * to this notebook instance.
      * 
* - * .google.cloud.notebooks.v1beta1.ReservationAffinity reservation_affinity = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.ReservationAffinity reservation_affinity = 29 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1beta1.ReservationAffinity, com.google.cloud.notebooks.v1beta1.ReservationAffinity.Builder, com.google.cloud.notebooks.v1beta1.ReservationAffinityOrBuilder> + com.google.cloud.notebooks.v1beta1.ReservationAffinity, + com.google.cloud.notebooks.v1beta1.ReservationAffinity.Builder, + com.google.cloud.notebooks.v1beta1.ReservationAffinityOrBuilder> getReservationAffinityFieldBuilder() { if (reservationAffinityBuilder_ == null) { - reservationAffinityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.notebooks.v1beta1.ReservationAffinity, com.google.cloud.notebooks.v1beta1.ReservationAffinity.Builder, com.google.cloud.notebooks.v1beta1.ReservationAffinityOrBuilder>( - getReservationAffinity(), - getParentForChildren(), - isClean()); + reservationAffinityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.notebooks.v1beta1.ReservationAffinity, + com.google.cloud.notebooks.v1beta1.ReservationAffinity.Builder, + com.google.cloud.notebooks.v1beta1.ReservationAffinityOrBuilder>( + getReservationAffinity(), getParentForChildren(), isClean()); reservationAffinity_ = null; } return reservationAffinityBuilder_; } - private boolean canIpForward_ ; + private boolean canIpForward_; /** + * + * *
      * Optional. Flag to enable ip forwarding or not, default false/off.
      * https://cloud.google.com/vpc/docs/using-routes#canipforward
      * 
* * bool can_ip_forward = 31 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The canIpForward. */ @java.lang.Override @@ -7034,32 +7960,38 @@ public boolean getCanIpForward() { return canIpForward_; } /** + * + * *
      * Optional. Flag to enable ip forwarding or not, default false/off.
      * https://cloud.google.com/vpc/docs/using-routes#canipforward
      * 
* * bool can_ip_forward = 31 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The canIpForward to set. * @return This builder for chaining. */ public Builder setCanIpForward(boolean value) { - + canIpForward_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Flag to enable ip forwarding or not, default false/off.
      * https://cloud.google.com/vpc/docs/using-routes#canipforward
      * 
* * bool can_ip_forward = 31 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearCanIpForward() { - + canIpForward_ = false; onChanged(); return this; @@ -7067,39 +7999,58 @@ public Builder clearCanIpForward() { 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_; /** + * + * *
      * Output only. Instance creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. Instance creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Instance creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -7115,14 +8066,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Instance creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -7133,17 +8087,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Instance creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -7155,11 +8113,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Instance creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -7173,48 +8135,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Instance creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Instance creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Instance creation time.
      * 
* - * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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_; @@ -7222,39 +8200,58 @@ 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_; /** + * + * *
      * Output only. Instance update time.
      * 
* - * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. Instance update time.
      * 
* - * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Instance update time.
      * 
* - * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -7270,14 +8267,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Instance update time.
      * 
* - * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -7288,17 +8288,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Instance update time.
      * 
* - * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -7310,11 +8314,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Instance update time.
      * 
* - * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -7328,55 +8336,71 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Instance update time.
      * 
* - * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Instance update time.
      * 
* - * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. Instance update time.
      * 
* - * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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); } @@ -7386,12 +8410,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1beta1.Instance) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1beta1.Instance) private static final com.google.cloud.notebooks.v1beta1.Instance DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1beta1.Instance(); } @@ -7400,27 +8424,27 @@ public static com.google.cloud.notebooks.v1beta1.Instance getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @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 PARSER = + new com.google.protobuf.AbstractParser() { + @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 parser() { return PARSER; @@ -7435,6 +8459,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1beta1.Instance getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/InstanceOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/InstanceOrBuilder.java similarity index 80% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/InstanceOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/InstanceOrBuilder.java index b6c5c90d2c04..bb9e610d342d 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/InstanceOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/InstanceOrBuilder.java @@ -1,53 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/instance.proto package com.google.cloud.notebooks.v1beta1; -public interface InstanceOrBuilder extends +public interface InstanceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1beta1.Instance) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The name of this notebook instance. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The name of this notebook instance. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Use a Compute Engine VM image to start the notebook instance.
    * 
* * .google.cloud.notebooks.v1beta1.VmImage vm_image = 2; + * * @return Whether the vmImage field is set. */ boolean hasVmImage(); /** + * + * *
    * Use a Compute Engine VM image to start the notebook instance.
    * 
* * .google.cloud.notebooks.v1beta1.VmImage vm_image = 2; + * * @return The vmImage. */ com.google.cloud.notebooks.v1beta1.VmImage getVmImage(); /** + * + * *
    * Use a Compute Engine VM image to start the notebook instance.
    * 
@@ -57,24 +86,32 @@ public interface InstanceOrBuilder extends com.google.cloud.notebooks.v1beta1.VmImageOrBuilder getVmImageOrBuilder(); /** + * + * *
    * Use a container image to start the notebook instance.
    * 
* * .google.cloud.notebooks.v1beta1.ContainerImage container_image = 3; + * * @return Whether the containerImage field is set. */ boolean hasContainerImage(); /** + * + * *
    * Use a container image to start the notebook instance.
    * 
* * .google.cloud.notebooks.v1beta1.ContainerImage container_image = 3; + * * @return The containerImage. */ com.google.cloud.notebooks.v1beta1.ContainerImage getContainerImage(); /** + * + * *
    * Use a container image to start the notebook instance.
    * 
@@ -84,6 +121,8 @@ public interface InstanceOrBuilder extends com.google.cloud.notebooks.v1beta1.ContainerImageOrBuilder getContainerImageOrBuilder(); /** + * + * *
    * Path to a Bash script that automatically runs after a notebook instance
    * fully boots up. The path must be a URL or
@@ -91,10 +130,13 @@ public interface InstanceOrBuilder extends
    * 
* * string post_startup_script = 4; + * * @return The postStartupScript. */ java.lang.String getPostStartupScript(); /** + * + * *
    * Path to a Bash script that automatically runs after a notebook instance
    * fully boots up. The path must be a URL or
@@ -102,32 +144,39 @@ public interface InstanceOrBuilder extends
    * 
* * string post_startup_script = 4; + * * @return The bytes for postStartupScript. */ - com.google.protobuf.ByteString - getPostStartupScriptBytes(); + com.google.protobuf.ByteString getPostStartupScriptBytes(); /** + * + * *
    * Output only. The proxy endpoint that is used to access the Jupyter notebook.
    * 
* * string proxy_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The proxyUri. */ java.lang.String getProxyUri(); /** + * + * *
    * Output only. The proxy endpoint that is used to access the Jupyter notebook.
    * 
* * string proxy_uri = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for proxyUri. */ - com.google.protobuf.ByteString - getProxyUriBytes(); + com.google.protobuf.ByteString getProxyUriBytes(); /** + * + * *
    * Input only. The owner of this instance after creation. Format: `alias@example.com`
    * Currently supports one owner only. If not specified, all of the service
@@ -136,11 +185,13 @@ public interface InstanceOrBuilder extends
    * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return A list containing the instanceOwners. */ - java.util.List - getInstanceOwnersList(); + java.util.List getInstanceOwnersList(); /** + * + * *
    * Input only. The owner of this instance after creation. Format: `alias@example.com`
    * Currently supports one owner only. If not specified, all of the service
@@ -149,10 +200,13 @@ public interface InstanceOrBuilder extends
    * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The count of instanceOwners. */ int getInstanceOwnersCount(); /** + * + * *
    * Input only. The owner of this instance after creation. Format: `alias@example.com`
    * Currently supports one owner only. If not specified, all of the service
@@ -161,11 +215,14 @@ public interface InstanceOrBuilder extends
    * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param index The index of the element to return. * @return The instanceOwners at the given index. */ java.lang.String getInstanceOwners(int index); /** + * + * *
    * Input only. The owner of this instance after creation. Format: `alias@example.com`
    * Currently supports one owner only. If not specified, all of the service
@@ -174,13 +231,15 @@ public interface InstanceOrBuilder extends
    * 
* * repeated string instance_owners = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the instanceOwners at the given index. */ - com.google.protobuf.ByteString - getInstanceOwnersBytes(int index); + com.google.protobuf.ByteString getInstanceOwnersBytes(int index); /** + * + * *
    * The service account on this instance, giving access to other Google
    * Cloud services.
@@ -192,10 +251,13 @@ public interface InstanceOrBuilder extends
    * 
* * string service_account = 7; + * * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** + * + * *
    * The service account on this instance, giving access to other Google
    * Cloud services.
@@ -207,34 +269,41 @@ public interface InstanceOrBuilder extends
    * 
* * string service_account = 7; + * * @return The bytes for serviceAccount. */ - com.google.protobuf.ByteString - getServiceAccountBytes(); + com.google.protobuf.ByteString getServiceAccountBytes(); /** + * + * *
    * Required. The [Compute Engine machine type](/compute/docs/machine-types) of this
    * instance.
    * 
* * string machine_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The machineType. */ java.lang.String getMachineType(); /** + * + * *
    * Required. The [Compute Engine machine type](/compute/docs/machine-types) of this
    * instance.
    * 
* * string machine_type = 8 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for machineType. */ - com.google.protobuf.ByteString - getMachineTypeBytes(); + com.google.protobuf.ByteString getMachineTypeBytes(); /** + * + * *
    * The hardware accelerator used on this instance. If you use
    * accelerators, make sure that your configuration has
@@ -243,10 +312,13 @@ public interface InstanceOrBuilder extends
    * 
* * .google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig accelerator_config = 9; + * * @return Whether the acceleratorConfig field is set. */ boolean hasAcceleratorConfig(); /** + * + * *
    * The hardware accelerator used on this instance. If you use
    * accelerators, make sure that your configuration has
@@ -255,10 +327,13 @@ public interface InstanceOrBuilder extends
    * 
* * .google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig accelerator_config = 9; + * * @return The acceleratorConfig. */ com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig getAcceleratorConfig(); /** + * + * *
    * The hardware accelerator used on this instance. If you use
    * accelerators, make sure that your configuration has
@@ -268,28 +343,41 @@ public interface InstanceOrBuilder extends
    *
    * .google.cloud.notebooks.v1beta1.Instance.AcceleratorConfig accelerator_config = 9;
    */
-  com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfigOrBuilder getAcceleratorConfigOrBuilder();
+  com.google.cloud.notebooks.v1beta1.Instance.AcceleratorConfigOrBuilder
+      getAcceleratorConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. The state of this instance.
    * 
* - * .google.cloud.notebooks.v1beta1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The state of this instance.
    * 
* - * .google.cloud.notebooks.v1beta1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.notebooks.v1beta1.Instance.State getState(); /** + * + * *
    * Whether the end user authorizes Google Cloud to install GPU driver
    * on this instance.
@@ -298,54 +386,72 @@ public interface InstanceOrBuilder extends
    * 
* * bool install_gpu_driver = 11; + * * @return The installGpuDriver. */ boolean getInstallGpuDriver(); /** + * + * *
    * Specify a custom Cloud Storage path where the GPU driver is stored.
    * If not specified, we'll automatically choose from official GPU drivers.
    * 
* * string custom_gpu_driver_path = 12; + * * @return The customGpuDriverPath. */ java.lang.String getCustomGpuDriverPath(); /** + * + * *
    * Specify a custom Cloud Storage path where the GPU driver is stored.
    * If not specified, we'll automatically choose from official GPU drivers.
    * 
* * string custom_gpu_driver_path = 12; + * * @return The bytes for customGpuDriverPath. */ - com.google.protobuf.ByteString - getCustomGpuDriverPathBytes(); + com.google.protobuf.ByteString getCustomGpuDriverPathBytes(); /** + * + * *
    * Input only. The type of the boot disk attached to this instance, defaults to
    * standard persistent disk (`PD_STANDARD`).
    * 
* - * .google.cloud.notebooks.v1beta1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The enum numeric value on the wire for bootDiskType. */ int getBootDiskTypeValue(); /** + * + * *
    * Input only. The type of the boot disk attached to this instance, defaults to
    * standard persistent disk (`PD_STANDARD`).
    * 
* - * .google.cloud.notebooks.v1beta1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.DiskType boot_disk_type = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bootDiskType. */ com.google.cloud.notebooks.v1beta1.Instance.DiskType getBootDiskType(); /** + * + * *
    * Input only. The size of the boot disk in GB attached to this instance, up to a maximum
    * of 64000&nbsp;GB (64&nbsp;TB). The minimum recommended value is
@@ -353,32 +459,45 @@ public interface InstanceOrBuilder extends
    * 
* * int64 boot_disk_size_gb = 14 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bootDiskSizeGb. */ long getBootDiskSizeGb(); /** + * + * *
    * Input only. The type of the data disk attached to this instance, defaults to
    * standard persistent disk (`PD_STANDARD`).
    * 
* - * .google.cloud.notebooks.v1beta1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The enum numeric value on the wire for dataDiskType. */ int getDataDiskTypeValue(); /** + * + * *
    * Input only. The type of the data disk attached to this instance, defaults to
    * standard persistent disk (`PD_STANDARD`).
    * 
* - * .google.cloud.notebooks.v1beta1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.DiskType data_disk_type = 25 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The dataDiskType. */ com.google.cloud.notebooks.v1beta1.Instance.DiskType getDataDiskType(); /** + * + * *
    * Input only. The size of the data disk in GB attached to this instance, up to a maximum
    * of 64000&nbsp;GB (64&nbsp;TB). You can choose the size of the data disk
@@ -387,40 +506,56 @@ public interface InstanceOrBuilder extends
    * 
* * int64 data_disk_size_gb = 26 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The dataDiskSizeGb. */ long getDataDiskSizeGb(); /** + * + * *
    * Input only. If true, the data disk will not be auto deleted when deleting the instance.
    * 
* * bool no_remove_data_disk = 27 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The noRemoveDataDisk. */ boolean getNoRemoveDataDisk(); /** + * + * *
    * Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
    * 
* - * .google.cloud.notebooks.v1beta1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The enum numeric value on the wire for diskEncryption. */ int getDiskEncryptionValue(); /** + * + * *
    * Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
    * 
* - * .google.cloud.notebooks.v1beta1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * .google.cloud.notebooks.v1beta1.Instance.DiskEncryption disk_encryption = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The diskEncryption. */ com.google.cloud.notebooks.v1beta1.Instance.DiskEncryption getDiskEncryption(); /** + * + * *
    * Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption
    * is CMEK.
@@ -430,10 +565,13 @@ public interface InstanceOrBuilder extends
    * 
* * string kms_key = 16 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The kmsKey. */ java.lang.String getKmsKey(); /** + * + * *
    * Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption
    * is CMEK.
@@ -443,32 +581,40 @@ public interface InstanceOrBuilder extends
    * 
* * string kms_key = 16 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for kmsKey. */ - com.google.protobuf.ByteString - getKmsKeyBytes(); + com.google.protobuf.ByteString getKmsKeyBytes(); /** + * + * *
    * If true, no public IP will be assigned to this instance.
    * 
* * bool no_public_ip = 17; + * * @return The noPublicIp. */ boolean getNoPublicIp(); /** + * + * *
    * If true, the notebook instance will not register with the proxy.
    * 
* * bool no_proxy_access = 18; + * * @return The noProxyAccess. */ boolean getNoProxyAccess(); /** + * + * *
    * The name of the VPC that this instance is in.
    * Format:
@@ -476,10 +622,13 @@ public interface InstanceOrBuilder extends
    * 
* * string network = 19; + * * @return The network. */ java.lang.String getNetwork(); /** + * + * *
    * The name of the VPC that this instance is in.
    * Format:
@@ -487,12 +636,14 @@ public interface InstanceOrBuilder extends
    * 
* * string network = 19; + * * @return The bytes for network. */ - com.google.protobuf.ByteString - getNetworkBytes(); + com.google.protobuf.ByteString getNetworkBytes(); /** + * + * *
    * The name of the subnet that this instance is in.
    * Format:
@@ -500,10 +651,13 @@ public interface InstanceOrBuilder extends
    * 
* * string subnet = 20; + * * @return The subnet. */ java.lang.String getSubnet(); /** + * + * *
    * The name of the subnet that this instance is in.
    * Format:
@@ -511,12 +665,14 @@ public interface InstanceOrBuilder extends
    * 
* * string subnet = 20; + * * @return The bytes for subnet. */ - com.google.protobuf.ByteString - getSubnetBytes(); + com.google.protobuf.ByteString getSubnetBytes(); /** + * + * *
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method.
@@ -526,6 +682,8 @@ public interface InstanceOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method.
@@ -533,15 +691,13 @@ public interface InstanceOrBuilder extends
    *
    * map<string, string> labels = 21;
    */
-  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
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method.
@@ -549,9 +705,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 21;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method.
@@ -561,11 +718,13 @@ boolean containsLabels(
    */
 
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method.
@@ -573,11 +732,11 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 21;
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Custom metadata to apply to this instance.
    * 
@@ -586,30 +745,31 @@ java.lang.String getLabelsOrThrow( */ int getMetadataCount(); /** + * + * *
    * Custom metadata to apply to this instance.
    * 
* * map<string, string> metadata = 22; */ - boolean containsMetadata( - java.lang.String key); - /** - * Use {@link #getMetadataMap()} instead. - */ + boolean containsMetadata(java.lang.String key); + /** Use {@link #getMetadataMap()} instead. */ @java.lang.Deprecated - java.util.Map - getMetadata(); + java.util.Map getMetadata(); /** + * + * *
    * Custom metadata to apply to this instance.
    * 
* * map<string, string> metadata = 22; */ - java.util.Map - getMetadataMap(); + java.util.Map getMetadataMap(); /** + * + * *
    * Custom metadata to apply to this instance.
    * 
@@ -618,43 +778,55 @@ boolean containsMetadata( */ /* nullable */ -java.lang.String getMetadataOrDefault( + java.lang.String getMetadataOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Custom metadata to apply to this instance.
    * 
* * map<string, string> metadata = 22; */ - - java.lang.String getMetadataOrThrow( - java.lang.String key); + java.lang.String getMetadataOrThrow(java.lang.String key); /** + * + * *
    * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
    * VirtioNet.
    * 
* - * .google.cloud.notebooks.v1beta1.Instance.NicType nic_type = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.Instance.NicType nic_type = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for nicType. */ int getNicTypeValue(); /** + * + * *
    * Optional. The type of vNIC to be used on this interface. This may be gVNIC or
    * VirtioNet.
    * 
* - * .google.cloud.notebooks.v1beta1.Instance.NicType nic_type = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.Instance.NicType nic_type = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The nicType. */ com.google.cloud.notebooks.v1beta1.Instance.NicType getNicType(); /** + * + * *
    * Optional. The optional reservation affinity. Setting this field will apply
    * the specified [Zonal Compute
@@ -662,11 +834,16 @@ java.lang.String getMetadataOrThrow(
    * to this notebook instance.
    * 
* - * .google.cloud.notebooks.v1beta1.ReservationAffinity reservation_affinity = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.ReservationAffinity reservation_affinity = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the reservationAffinity field is set. */ boolean hasReservationAffinity(); /** + * + * *
    * Optional. The optional reservation affinity. Setting this field will apply
    * the specified [Zonal Compute
@@ -674,11 +851,16 @@ java.lang.String getMetadataOrThrow(
    * to this notebook instance.
    * 
* - * .google.cloud.notebooks.v1beta1.ReservationAffinity reservation_affinity = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.ReservationAffinity reservation_affinity = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The reservationAffinity. */ com.google.cloud.notebooks.v1beta1.ReservationAffinity getReservationAffinity(); /** + * + * *
    * Optional. The optional reservation affinity. Setting this field will apply
    * the specified [Zonal Compute
@@ -686,72 +868,99 @@ java.lang.String getMetadataOrThrow(
    * to this notebook instance.
    * 
* - * .google.cloud.notebooks.v1beta1.ReservationAffinity reservation_affinity = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.ReservationAffinity reservation_affinity = 29 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.notebooks.v1beta1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder(); /** + * + * *
    * Optional. Flag to enable ip forwarding or not, default false/off.
    * https://cloud.google.com/vpc/docs/using-routes#canipforward
    * 
* * bool can_ip_forward = 31 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The canIpForward. */ boolean getCanIpForward(); /** + * + * *
    * Output only. Instance creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Instance creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Instance creation time.
    * 
* - * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Instance update time.
    * 
* - * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. Instance update time.
    * 
* - * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. Instance update time.
    * 
* - * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); diff --git a/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/InstanceProto.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/InstanceProto.java new file mode 100644 index 000000000000..694168574021 --- /dev/null +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/InstanceProto.java @@ -0,0 +1,230 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/notebooks/v1beta1/instance.proto + +package com.google.cloud.notebooks.v1beta1; + +public final class InstanceProto { + private InstanceProto() {} + + 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_cloud_notebooks_v1beta1_ReservationAffinity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_ReservationAffinity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1beta1_Instance_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_Instance_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1beta1_Instance_AcceleratorConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_Instance_AcceleratorConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1beta1_Instance_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_Instance_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1beta1_Instance_MetadataEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_Instance_MetadataEntry_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/cloud/notebooks/v1beta1/instanc" + + "e.proto\022\036google.cloud.notebooks.v1beta1\032" + + "\037google/api/field_behavior.proto\032\031google" + + "/api/resource.proto\0320google/cloud/notebo" + + "oks/v1beta1/environment.proto\032\037google/pr" + + "otobuf/timestamp.proto\"\376\001\n\023ReservationAf" + + "finity\022_\n\030consume_reservation_type\030\001 \001(\016" + + "28.google.cloud.notebooks.v1beta1.Reserv" + + "ationAffinity.TypeB\003\340A\001\022\020\n\003key\030\002 \001(\tB\003\340A" + + "\001\022\023\n\006values\030\003 \003(\tB\003\340A\001\"_\n\004Type\022\024\n\020TYPE_U" + + "NSPECIFIED\020\000\022\022\n\016NO_RESERVATION\020\001\022\023\n\017ANY_" + + "RESERVATION\020\002\022\030\n\024SPECIFIC_RESERVATION\020\003\"" + + "\331\022\n\010Instance\022\021\n\004name\030\001 \001(\tB\003\340A\003\022;\n\010vm_im" + + "age\030\002 \001(\0132\'.google.cloud.notebooks.v1bet" + + "a1.VmImageH\000\022I\n\017container_image\030\003 \001(\0132.." + + "google.cloud.notebooks.v1beta1.Container" + + "ImageH\000\022\033\n\023post_startup_script\030\004 \001(\t\022\026\n\t" + + "proxy_uri\030\005 \001(\tB\003\340A\003\022\034\n\017instance_owners\030" + + "\006 \003(\tB\003\340A\004\022\027\n\017service_account\030\007 \001(\t\022\031\n\014m" + + "achine_type\030\010 \001(\tB\003\340A\002\022V\n\022accelerator_co" + + "nfig\030\t \001(\0132:.google.cloud.notebooks.v1be" + + "ta1.Instance.AcceleratorConfig\022B\n\005state\030" + + "\n \001(\0162..google.cloud.notebooks.v1beta1.I" + + "nstance.StateB\003\340A\003\022\032\n\022install_gpu_driver" + + "\030\013 \001(\010\022\036\n\026custom_gpu_driver_path\030\014 \001(\t\022N" + + "\n\016boot_disk_type\030\r \001(\01621.google.cloud.no" + + "tebooks.v1beta1.Instance.DiskTypeB\003\340A\004\022\036" + + "\n\021boot_disk_size_gb\030\016 \001(\003B\003\340A\004\022N\n\016data_d" + + "isk_type\030\031 \001(\01621.google.cloud.notebooks." + + "v1beta1.Instance.DiskTypeB\003\340A\004\022\036\n\021data_d" + + "isk_size_gb\030\032 \001(\003B\003\340A\004\022 \n\023no_remove_data" + + "_disk\030\033 \001(\010B\003\340A\004\022U\n\017disk_encryption\030\017 \001(" + + "\01627.google.cloud.notebooks.v1beta1.Insta" + + "nce.DiskEncryptionB\003\340A\004\022\024\n\007kms_key\030\020 \001(\t" + + "B\003\340A\004\022\024\n\014no_public_ip\030\021 \001(\010\022\027\n\017no_proxy_" + + "access\030\022 \001(\010\022\017\n\007network\030\023 \001(\t\022\016\n\006subnet\030" + + "\024 \001(\t\022D\n\006labels\030\025 \003(\01324.google.cloud.not" + + "ebooks.v1beta1.Instance.LabelsEntry\022H\n\010m" + + "etadata\030\026 \003(\01326.google.cloud.notebooks.v" + + "1beta1.Instance.MetadataEntry\022G\n\010nic_typ" + + "e\030\034 \001(\01620.google.cloud.notebooks.v1beta1" + + ".Instance.NicTypeB\003\340A\001\022V\n\024reservation_af" + + "finity\030\035 \001(\01323.google.cloud.notebooks.v1" + + "beta1.ReservationAffinityB\003\340A\001\022\033\n\016can_ip" + + "_forward\030\037 \001(\010B\003\340A\001\0224\n\013create_time\030\027 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upd" + + "ate_time\030\030 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\032o\n\021AcceleratorConfig\022F\n\004type\030\001 \001" + + "(\01628.google.cloud.notebooks.v1beta1.Inst" + + "ance.AcceleratorType\022\022\n\ncore_count\030\002 \001(\003" + + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"\206\002\n\017AcceleratorType\022 \n\034" + + "ACCELERATOR_TYPE_UNSPECIFIED\020\000\022\024\n\020NVIDIA" + + "_TESLA_K80\020\001\022\025\n\021NVIDIA_TESLA_P100\020\002\022\025\n\021N" + + "VIDIA_TESLA_V100\020\003\022\023\n\017NVIDIA_TESLA_P4\020\004\022" + + "\023\n\017NVIDIA_TESLA_T4\020\005\022\027\n\023NVIDIA_TESLA_T4_" + + "VWS\020\010\022\031\n\025NVIDIA_TESLA_P100_VWS\020\t\022\027\n\023NVID" + + "IA_TESLA_P4_VWS\020\n\022\n\n\006TPU_V2\020\006\022\n\n\006TPU_V3\020" + + "\007\"\303\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010ST" + + "ARTING\020\001\022\020\n\014PROVISIONING\020\002\022\n\n\006ACTIVE\020\003\022\014" + + "\n\010STOPPING\020\004\022\013\n\007STOPPED\020\005\022\013\n\007DELETED\020\006\022\r" + + "\n\tUPGRADING\020\007\022\020\n\014INITIALIZING\020\010\022\017\n\013REGIS" + + "TERING\020\t\022\016\n\nSUSPENDING\020\n\022\r\n\tSUSPENDED\020\013\"" + + "S\n\010DiskType\022\031\n\025DISK_TYPE_UNSPECIFIED\020\000\022\017" + + "\n\013PD_STANDARD\020\001\022\n\n\006PD_SSD\020\002\022\017\n\013PD_BALANC" + + "ED\020\003\"E\n\016DiskEncryption\022\037\n\033DISK_ENCRYPTIO" + + "N_UNSPECIFIED\020\000\022\010\n\004GMEK\020\001\022\010\n\004CMEK\020\002\">\n\007N" + + "icType\022\030\n\024UNSPECIFIED_NIC_TYPE\020\000\022\016\n\nVIRT" + + "IO_NET\020\001\022\t\n\005GVNIC\020\002:O\352AL\n!notebooks.goog" + + "leapis.com/Instance\022\'projects/{project}/" + + "instances/{instance}B\r\n\013environmentB\344\001\n\"" + + "com.google.cloud.notebooks.v1beta1B\rInst" + + "anceProtoP\001ZGgoogle.golang.org/genproto/" + + "googleapis/cloud/notebooks/v1beta1;noteb" + + "ooks\252\002\036Google.Cloud.Notebooks.V1Beta1\312\002\036" + + "Google\\Cloud\\Notebooks\\V1beta1\352\002!Google:" + + ":Cloud::Notebooks::V1beta1b\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.cloud.notebooks.v1beta1.EnvironmentProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_notebooks_v1beta1_ReservationAffinity_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_notebooks_v1beta1_ReservationAffinity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_ReservationAffinity_descriptor, + new java.lang.String[] { + "ConsumeReservationType", "Key", "Values", + }); + internal_static_google_cloud_notebooks_v1beta1_Instance_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_notebooks_v1beta1_Instance_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_Instance_descriptor, + new java.lang.String[] { + "Name", + "VmImage", + "ContainerImage", + "PostStartupScript", + "ProxyUri", + "InstanceOwners", + "ServiceAccount", + "MachineType", + "AcceleratorConfig", + "State", + "InstallGpuDriver", + "CustomGpuDriverPath", + "BootDiskType", + "BootDiskSizeGb", + "DataDiskType", + "DataDiskSizeGb", + "NoRemoveDataDisk", + "DiskEncryption", + "KmsKey", + "NoPublicIp", + "NoProxyAccess", + "Network", + "Subnet", + "Labels", + "Metadata", + "NicType", + "ReservationAffinity", + "CanIpForward", + "CreateTime", + "UpdateTime", + "Environment", + }); + internal_static_google_cloud_notebooks_v1beta1_Instance_AcceleratorConfig_descriptor = + internal_static_google_cloud_notebooks_v1beta1_Instance_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_notebooks_v1beta1_Instance_AcceleratorConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_Instance_AcceleratorConfig_descriptor, + new java.lang.String[] { + "Type", "CoreCount", + }); + internal_static_google_cloud_notebooks_v1beta1_Instance_LabelsEntry_descriptor = + internal_static_google_cloud_notebooks_v1beta1_Instance_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_notebooks_v1beta1_Instance_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_Instance_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_notebooks_v1beta1_Instance_MetadataEntry_descriptor = + internal_static_google_cloud_notebooks_v1beta1_Instance_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_notebooks_v1beta1_Instance_MetadataEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_Instance_MetadataEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.notebooks.v1beta1.EnvironmentProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableRequest.java similarity index 63% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableRequest.java index 46e6308b292b..2e8dc4629d25 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableRequest.java @@ -1,62 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; /** + * + * *
  * Request for checking if a notebook instance is upgradeable.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest} */ -public final class IsInstanceUpgradeableRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class IsInstanceUpgradeableRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest) IsInstanceUpgradeableRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IsInstanceUpgradeableRequest.newBuilder() to construct. private IsInstanceUpgradeableRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private IsInstanceUpgradeableRequest() { notebookInstance_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IsInstanceUpgradeableRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest.class, com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest.class, + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest.Builder.class); } public static final int NOTEBOOK_INSTANCE_FIELD_NUMBER = 1; private volatile java.lang.Object notebookInstance_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string notebook_instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The notebookInstance. */ @java.lang.Override @@ -65,30 +87,30 @@ public java.lang.String getNotebookInstance() { 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(); notebookInstance_ = s; return s; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string notebook_instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for notebookInstance. */ @java.lang.Override - public com.google.protobuf.ByteString - getNotebookInstanceBytes() { + public com.google.protobuf.ByteString getNotebookInstanceBytes() { java.lang.Object ref = notebookInstance_; 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); notebookInstance_ = b; return b; } else { @@ -97,6 +119,7 @@ public java.lang.String getNotebookInstance() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +131,7 @@ 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(notebookInstance_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, notebookInstance_); } @@ -133,15 +155,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.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest other = (com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest) obj; + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest other = + (com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest) obj; - if (!getNotebookInstance() - .equals(other.getNotebookInstance())) return false; + if (!getNotebookInstance().equals(other.getNotebookInstance())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,129 +183,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest 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.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest 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.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest 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.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest 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.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest 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.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest 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.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest 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.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest 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; } /** + * + * *
    * Request for checking if a notebook instance is upgradeable.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest) com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest.class, com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest.class, + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,13 +322,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableRequest_descriptor; } @java.lang.Override - public com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest getDefaultInstanceForType() { + public com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest + getDefaultInstanceForType() { return com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest.getDefaultInstance(); } @@ -314,7 +344,8 @@ public com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest buildPartial() { - com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest result = new com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest(this); + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest result = + new com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest(this); result.notebookInstance_ = notebookInstance_; onBuilt(); return result; @@ -324,46 +355,50 @@ public com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest buildPart 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.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest) { - return mergeFrom((com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest other) { - if (other == com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest other) { + if (other + == com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest.getDefaultInstance()) + return this; if (!other.getNotebookInstance().isEmpty()) { notebookInstance_ = other.notebookInstance_; onChanged(); @@ -394,17 +429,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - notebookInstance_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + notebookInstance_ = input.readStringRequireUtf8(); + + 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) { @@ -417,19 +454,21 @@ public Builder mergeFrom( private java.lang.Object notebookInstance_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string notebook_instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The notebookInstance. */ public java.lang.String getNotebookInstance() { java.lang.Object ref = notebookInstance_; 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(); notebookInstance_ = s; return s; @@ -438,21 +477,22 @@ public java.lang.String getNotebookInstance() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string notebook_instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for notebookInstance. */ - public com.google.protobuf.ByteString - getNotebookInstanceBytes() { + public com.google.protobuf.ByteString getNotebookInstanceBytes() { java.lang.Object ref = notebookInstance_; 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); notebookInstance_ = b; return b; } else { @@ -460,64 +500,71 @@ public java.lang.String getNotebookInstance() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string notebook_instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The notebookInstance to set. * @return This builder for chaining. */ - public Builder setNotebookInstance( - java.lang.String value) { + public Builder setNotebookInstance(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + notebookInstance_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string notebook_instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearNotebookInstance() { - + notebookInstance_ = getDefaultInstance().getNotebookInstance(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string notebook_instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for notebookInstance to set. * @return This builder for chaining. */ - public Builder setNotebookInstanceBytes( - com.google.protobuf.ByteString value) { + public Builder setNotebookInstanceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + notebookInstance_ = 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); } @@ -527,41 +574,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest) - private static final com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest DEFAULT_INSTANCE; + private static final com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest(); } - public static com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest getDefaultInstance() { + public static com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IsInstanceUpgradeableRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IsInstanceUpgradeableRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -573,9 +622,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest getDefaultInstanceForType() { + public com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableRequestOrBuilder.java similarity index 54% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableRequestOrBuilder.java index 9ca2200db1c1..452ffcafa982 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableRequestOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; -public interface IsInstanceUpgradeableRequestOrBuilder extends +public interface IsInstanceUpgradeableRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string notebook_instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The notebookInstance. */ java.lang.String getNotebookInstance(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string notebook_instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for notebookInstance. */ - com.google.protobuf.ByteString - getNotebookInstanceBytes(); + com.google.protobuf.ByteString getNotebookInstanceBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableResponse.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableResponse.java similarity index 68% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableResponse.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableResponse.java index c00faf16ea34..924323d3be99 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableResponse.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; /** + * + * *
  * Response for checking if a notebook instance is upgradeable.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse} */ -public final class IsInstanceUpgradeableResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class IsInstanceUpgradeableResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse) IsInstanceUpgradeableResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use IsInstanceUpgradeableResponse.newBuilder() to construct. private IsInstanceUpgradeableResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private IsInstanceUpgradeableResponse() { upgradeVersion_ = ""; upgradeInfo_ = ""; @@ -27,37 +45,41 @@ private IsInstanceUpgradeableResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new IsInstanceUpgradeableResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableResponse_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse.class, com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse.Builder.class); + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse.class, + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse.Builder.class); } public static final int UPGRADEABLE_FIELD_NUMBER = 1; private boolean upgradeable_; /** + * + * *
    * If an instance is upgradeable.
    * 
* * bool upgradeable = 1; + * * @return The upgradeable. */ @java.lang.Override @@ -68,12 +90,15 @@ public boolean getUpgradeable() { public static final int UPGRADE_VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object upgradeVersion_; /** + * + * *
    * The version this instance will be upgraded to if calling the upgrade
    * endpoint. This field will only be populated if field upgradeable is true.
    * 
* * string upgrade_version = 2; + * * @return The upgradeVersion. */ @java.lang.Override @@ -82,30 +107,30 @@ public java.lang.String getUpgradeVersion() { 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(); upgradeVersion_ = s; return s; } } /** + * + * *
    * The version this instance will be upgraded to if calling the upgrade
    * endpoint. This field will only be populated if field upgradeable is true.
    * 
* * string upgrade_version = 2; + * * @return The bytes for upgradeVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getUpgradeVersionBytes() { + public com.google.protobuf.ByteString getUpgradeVersionBytes() { java.lang.Object ref = upgradeVersion_; 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); upgradeVersion_ = b; return b; } else { @@ -116,11 +141,14 @@ public java.lang.String getUpgradeVersion() { public static final int UPGRADE_INFO_FIELD_NUMBER = 3; private volatile java.lang.Object upgradeInfo_; /** + * + * *
    * Additional information about upgrade.
    * 
* * string upgrade_info = 3; + * * @return The upgradeInfo. */ @java.lang.Override @@ -129,29 +157,29 @@ public java.lang.String getUpgradeInfo() { 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(); upgradeInfo_ = s; return s; } } /** + * + * *
    * Additional information about upgrade.
    * 
* * string upgrade_info = 3; + * * @return The bytes for upgradeInfo. */ @java.lang.Override - public com.google.protobuf.ByteString - getUpgradeInfoBytes() { + public com.google.protobuf.ByteString getUpgradeInfoBytes() { java.lang.Object ref = upgradeInfo_; 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); upgradeInfo_ = b; return b; } else { @@ -162,6 +190,8 @@ public java.lang.String getUpgradeInfo() { public static final int UPGRADE_IMAGE_FIELD_NUMBER = 4; private volatile java.lang.Object upgradeImage_; /** + * + * *
    * The new image self link this instance will be upgraded to if calling the
    * upgrade endpoint. This field will only be populated if field upgradeable
@@ -169,6 +199,7 @@ public java.lang.String getUpgradeInfo() {
    * 
* * string upgrade_image = 4; + * * @return The upgradeImage. */ @java.lang.Override @@ -177,14 +208,15 @@ public java.lang.String getUpgradeImage() { 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(); upgradeImage_ = s; return s; } } /** + * + * *
    * The new image self link this instance will be upgraded to if calling the
    * upgrade endpoint. This field will only be populated if field upgradeable
@@ -192,16 +224,15 @@ public java.lang.String getUpgradeImage() {
    * 
* * string upgrade_image = 4; + * * @return The bytes for upgradeImage. */ @java.lang.Override - public com.google.protobuf.ByteString - getUpgradeImageBytes() { + public com.google.protobuf.ByteString getUpgradeImageBytes() { java.lang.Object ref = upgradeImage_; 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); upgradeImage_ = b; return b; } else { @@ -210,6 +241,7 @@ public java.lang.String getUpgradeImage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -221,8 +253,7 @@ 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 (upgradeable_ != false) { output.writeBool(1, upgradeable_); } @@ -245,8 +276,7 @@ public int getSerializedSize() { size = 0; if (upgradeable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, upgradeable_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, upgradeable_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(upgradeVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, upgradeVersion_); @@ -265,21 +295,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.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse)) { return super.equals(obj); } - com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse other = (com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse) obj; + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse other = + (com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse) obj; - if (getUpgradeable() - != other.getUpgradeable()) return false; - if (!getUpgradeVersion() - .equals(other.getUpgradeVersion())) return false; - if (!getUpgradeInfo() - .equals(other.getUpgradeInfo())) return false; - if (!getUpgradeImage() - .equals(other.getUpgradeImage())) return false; + if (getUpgradeable() != other.getUpgradeable()) return false; + if (!getUpgradeVersion().equals(other.getUpgradeVersion())) return false; + if (!getUpgradeInfo().equals(other.getUpgradeInfo())) return false; + if (!getUpgradeImage().equals(other.getUpgradeImage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -292,8 +319,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + UPGRADEABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUpgradeable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUpgradeable()); hash = (37 * hash) + UPGRADE_VERSION_FIELD_NUMBER; hash = (53 * hash) + getUpgradeVersion().hashCode(); hash = (37 * hash) + UPGRADE_INFO_FIELD_NUMBER; @@ -306,129 +332,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse 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.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse 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.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse 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.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse 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.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse 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.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse 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.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse 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.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse 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; } /** + * + * *
    * Response for checking if a notebook instance is upgradeable.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse) com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableResponse_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse.class, com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse.Builder.class); + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse.class, + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse.Builder.class); } // Construct using com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -444,13 +477,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableResponse_descriptor; } @java.lang.Override - public com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse getDefaultInstanceForType() { + public com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse + getDefaultInstanceForType() { return com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse.getDefaultInstance(); } @@ -465,7 +499,8 @@ public com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse build() @java.lang.Override public com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse buildPartial() { - com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse result = new com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse(this); + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse result = + new com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse(this); result.upgradeable_ = upgradeable_; result.upgradeVersion_ = upgradeVersion_; result.upgradeInfo_ = upgradeInfo_; @@ -478,46 +513,50 @@ public com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse buildPar 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.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse) { - return mergeFrom((com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse)other); + return mergeFrom((com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse other) { - if (other == com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse other) { + if (other + == com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse.getDefaultInstance()) + return this; if (other.getUpgradeable() != false) { setUpgradeable(other.getUpgradeable()); } @@ -559,32 +598,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - upgradeable_ = input.readBool(); + case 8: + { + upgradeable_ = input.readBool(); - break; - } // case 8 - case 18: { - upgradeVersion_ = input.readStringRequireUtf8(); + break; + } // case 8 + case 18: + { + upgradeVersion_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - upgradeInfo_ = input.readStringRequireUtf8(); + break; + } // case 18 + case 26: + { + upgradeInfo_ = input.readStringRequireUtf8(); - break; - } // case 26 - case 34: { - upgradeImage_ = input.readStringRequireUtf8(); + break; + } // case 26 + case 34: + { + upgradeImage_ = input.readStringRequireUtf8(); - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + 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) { @@ -595,13 +639,16 @@ public Builder mergeFrom( return this; } - private boolean upgradeable_ ; + private boolean upgradeable_; /** + * + * *
      * If an instance is upgradeable.
      * 
* * bool upgradeable = 1; + * * @return The upgradeable. */ @java.lang.Override @@ -609,30 +656,36 @@ public boolean getUpgradeable() { return upgradeable_; } /** + * + * *
      * If an instance is upgradeable.
      * 
* * bool upgradeable = 1; + * * @param value The upgradeable to set. * @return This builder for chaining. */ public Builder setUpgradeable(boolean value) { - + upgradeable_ = value; onChanged(); return this; } /** + * + * *
      * If an instance is upgradeable.
      * 
* * bool upgradeable = 1; + * * @return This builder for chaining. */ public Builder clearUpgradeable() { - + upgradeable_ = false; onChanged(); return this; @@ -640,19 +693,21 @@ public Builder clearUpgradeable() { private java.lang.Object upgradeVersion_ = ""; /** + * + * *
      * The version this instance will be upgraded to if calling the upgrade
      * endpoint. This field will only be populated if field upgradeable is true.
      * 
* * string upgrade_version = 2; + * * @return The upgradeVersion. */ public java.lang.String getUpgradeVersion() { java.lang.Object ref = upgradeVersion_; 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(); upgradeVersion_ = s; return s; @@ -661,21 +716,22 @@ public java.lang.String getUpgradeVersion() { } } /** + * + * *
      * The version this instance will be upgraded to if calling the upgrade
      * endpoint. This field will only be populated if field upgradeable is true.
      * 
* * string upgrade_version = 2; + * * @return The bytes for upgradeVersion. */ - public com.google.protobuf.ByteString - getUpgradeVersionBytes() { + public com.google.protobuf.ByteString getUpgradeVersionBytes() { java.lang.Object ref = upgradeVersion_; 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); upgradeVersion_ = b; return b; } else { @@ -683,57 +739,64 @@ public java.lang.String getUpgradeVersion() { } } /** + * + * *
      * The version this instance will be upgraded to if calling the upgrade
      * endpoint. This field will only be populated if field upgradeable is true.
      * 
* * string upgrade_version = 2; + * * @param value The upgradeVersion to set. * @return This builder for chaining. */ - public Builder setUpgradeVersion( - java.lang.String value) { + public Builder setUpgradeVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + upgradeVersion_ = value; onChanged(); return this; } /** + * + * *
      * The version this instance will be upgraded to if calling the upgrade
      * endpoint. This field will only be populated if field upgradeable is true.
      * 
* * string upgrade_version = 2; + * * @return This builder for chaining. */ public Builder clearUpgradeVersion() { - + upgradeVersion_ = getDefaultInstance().getUpgradeVersion(); onChanged(); return this; } /** + * + * *
      * The version this instance will be upgraded to if calling the upgrade
      * endpoint. This field will only be populated if field upgradeable is true.
      * 
* * string upgrade_version = 2; + * * @param value The bytes for upgradeVersion to set. * @return This builder for chaining. */ - public Builder setUpgradeVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setUpgradeVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + upgradeVersion_ = value; onChanged(); return this; @@ -741,18 +804,20 @@ public Builder setUpgradeVersionBytes( private java.lang.Object upgradeInfo_ = ""; /** + * + * *
      * Additional information about upgrade.
      * 
* * string upgrade_info = 3; + * * @return The upgradeInfo. */ public java.lang.String getUpgradeInfo() { java.lang.Object ref = upgradeInfo_; 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(); upgradeInfo_ = s; return s; @@ -761,20 +826,21 @@ public java.lang.String getUpgradeInfo() { } } /** + * + * *
      * Additional information about upgrade.
      * 
* * string upgrade_info = 3; + * * @return The bytes for upgradeInfo. */ - public com.google.protobuf.ByteString - getUpgradeInfoBytes() { + public com.google.protobuf.ByteString getUpgradeInfoBytes() { java.lang.Object ref = upgradeInfo_; 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); upgradeInfo_ = b; return b; } else { @@ -782,54 +848,61 @@ public java.lang.String getUpgradeInfo() { } } /** + * + * *
      * Additional information about upgrade.
      * 
* * string upgrade_info = 3; + * * @param value The upgradeInfo to set. * @return This builder for chaining. */ - public Builder setUpgradeInfo( - java.lang.String value) { + public Builder setUpgradeInfo(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + upgradeInfo_ = value; onChanged(); return this; } /** + * + * *
      * Additional information about upgrade.
      * 
* * string upgrade_info = 3; + * * @return This builder for chaining. */ public Builder clearUpgradeInfo() { - + upgradeInfo_ = getDefaultInstance().getUpgradeInfo(); onChanged(); return this; } /** + * + * *
      * Additional information about upgrade.
      * 
* * string upgrade_info = 3; + * * @param value The bytes for upgradeInfo to set. * @return This builder for chaining. */ - public Builder setUpgradeInfoBytes( - com.google.protobuf.ByteString value) { + public Builder setUpgradeInfoBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + upgradeInfo_ = value; onChanged(); return this; @@ -837,6 +910,8 @@ public Builder setUpgradeInfoBytes( private java.lang.Object upgradeImage_ = ""; /** + * + * *
      * The new image self link this instance will be upgraded to if calling the
      * upgrade endpoint. This field will only be populated if field upgradeable
@@ -844,13 +919,13 @@ public Builder setUpgradeInfoBytes(
      * 
* * string upgrade_image = 4; + * * @return The upgradeImage. */ public java.lang.String getUpgradeImage() { java.lang.Object ref = upgradeImage_; 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(); upgradeImage_ = s; return s; @@ -859,6 +934,8 @@ public java.lang.String getUpgradeImage() { } } /** + * + * *
      * The new image self link this instance will be upgraded to if calling the
      * upgrade endpoint. This field will only be populated if field upgradeable
@@ -866,15 +943,14 @@ public java.lang.String getUpgradeImage() {
      * 
* * string upgrade_image = 4; + * * @return The bytes for upgradeImage. */ - public com.google.protobuf.ByteString - getUpgradeImageBytes() { + public com.google.protobuf.ByteString getUpgradeImageBytes() { java.lang.Object ref = upgradeImage_; 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); upgradeImage_ = b; return b; } else { @@ -882,6 +958,8 @@ public java.lang.String getUpgradeImage() { } } /** + * + * *
      * The new image self link this instance will be upgraded to if calling the
      * upgrade endpoint. This field will only be populated if field upgradeable
@@ -889,20 +967,22 @@ public java.lang.String getUpgradeImage() {
      * 
* * string upgrade_image = 4; + * * @param value The upgradeImage to set. * @return This builder for chaining. */ - public Builder setUpgradeImage( - java.lang.String value) { + public Builder setUpgradeImage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + upgradeImage_ = value; onChanged(); return this; } /** + * + * *
      * The new image self link this instance will be upgraded to if calling the
      * upgrade endpoint. This field will only be populated if field upgradeable
@@ -910,15 +990,18 @@ public Builder setUpgradeImage(
      * 
* * string upgrade_image = 4; + * * @return This builder for chaining. */ public Builder clearUpgradeImage() { - + upgradeImage_ = getDefaultInstance().getUpgradeImage(); onChanged(); return this; } /** + * + * *
      * The new image self link this instance will be upgraded to if calling the
      * upgrade endpoint. This field will only be populated if field upgradeable
@@ -926,23 +1009,23 @@ public Builder clearUpgradeImage() {
      * 
* * string upgrade_image = 4; + * * @param value The bytes for upgradeImage to set. * @return This builder for chaining. */ - public Builder setUpgradeImageBytes( - com.google.protobuf.ByteString value) { + public Builder setUpgradeImageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + upgradeImage_ = 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); } @@ -952,41 +1035,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse) - private static final com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse DEFAULT_INSTANCE; + private static final com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse(); } - public static com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse getDefaultInstance() { + public static com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IsInstanceUpgradeableResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IsInstanceUpgradeableResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -998,9 +1083,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse getDefaultInstanceForType() { + public com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableResponseOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableResponseOrBuilder.java similarity index 68% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableResponseOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableResponseOrBuilder.java index 2d96993f3fd3..56f315912388 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableResponseOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableResponseOrBuilder.java @@ -1,65 +1,96 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; -public interface IsInstanceUpgradeableResponseOrBuilder extends +public interface IsInstanceUpgradeableResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * If an instance is upgradeable.
    * 
* * bool upgradeable = 1; + * * @return The upgradeable. */ boolean getUpgradeable(); /** + * + * *
    * The version this instance will be upgraded to if calling the upgrade
    * endpoint. This field will only be populated if field upgradeable is true.
    * 
* * string upgrade_version = 2; + * * @return The upgradeVersion. */ java.lang.String getUpgradeVersion(); /** + * + * *
    * The version this instance will be upgraded to if calling the upgrade
    * endpoint. This field will only be populated if field upgradeable is true.
    * 
* * string upgrade_version = 2; + * * @return The bytes for upgradeVersion. */ - com.google.protobuf.ByteString - getUpgradeVersionBytes(); + com.google.protobuf.ByteString getUpgradeVersionBytes(); /** + * + * *
    * Additional information about upgrade.
    * 
* * string upgrade_info = 3; + * * @return The upgradeInfo. */ java.lang.String getUpgradeInfo(); /** + * + * *
    * Additional information about upgrade.
    * 
* * string upgrade_info = 3; + * * @return The bytes for upgradeInfo. */ - com.google.protobuf.ByteString - getUpgradeInfoBytes(); + com.google.protobuf.ByteString getUpgradeInfoBytes(); /** + * + * *
    * The new image self link this instance will be upgraded to if calling the
    * upgrade endpoint. This field will only be populated if field upgradeable
@@ -67,10 +98,13 @@ public interface IsInstanceUpgradeableResponseOrBuilder extends
    * 
* * string upgrade_image = 4; + * * @return The upgradeImage. */ java.lang.String getUpgradeImage(); /** + * + * *
    * The new image self link this instance will be upgraded to if calling the
    * upgrade endpoint. This field will only be populated if field upgradeable
@@ -78,8 +112,8 @@ public interface IsInstanceUpgradeableResponseOrBuilder extends
    * 
* * string upgrade_image = 4; + * * @return The bytes for upgradeImage. */ - com.google.protobuf.ByteString - getUpgradeImageBytes(); + com.google.protobuf.ByteString getUpgradeImageBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsRequest.java similarity index 68% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsRequest.java index ce82ee2723dd..1b426f2e8ffe 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; /** + * + * *
  * Request for listing environments.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.ListEnvironmentsRequest} */ -public final class ListEnvironmentsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListEnvironmentsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1beta1.ListEnvironmentsRequest) ListEnvironmentsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListEnvironmentsRequest.newBuilder() to construct. private ListEnvironmentsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListEnvironmentsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,37 +44,41 @@ private ListEnvironmentsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListEnvironmentsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest.class, com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest.class, + com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Format: `projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -65,29 +87,29 @@ 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; } } /** + * + * *
    * Required. Format: `projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -98,11 +120,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Maximum return size of the list call.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -113,12 +138,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A previous returned page token that can be used to continue listing from
    * the last result.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -127,30 +155,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; } } /** + * + * *
    * A previous returned page token that can be used to continue listing from
    * the last result.
    * 
* * string page_token = 3; + * * @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 { @@ -159,6 +187,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,8 +199,7 @@ 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_); } @@ -194,8 +222,7 @@ 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_); @@ -208,19 +235,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.cloud.notebooks.v1beta1.ListEnvironmentsRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest other = (com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest) obj; + com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest other = + (com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest) 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; } @@ -244,129 +269,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest 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.cloud.notebooks.v1beta1.ListEnvironmentsRequest 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.cloud.notebooks.v1beta1.ListEnvironmentsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest 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.cloud.notebooks.v1beta1.ListEnvironmentsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest 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.cloud.notebooks.v1beta1.ListEnvironmentsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest 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.cloud.notebooks.v1beta1.ListEnvironmentsRequest 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.cloud.notebooks.v1beta1.ListEnvironmentsRequest 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.cloud.notebooks.v1beta1.ListEnvironmentsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest 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; } /** + * + * *
    * Request for listing environments.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.ListEnvironmentsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1beta1.ListEnvironmentsRequest) com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest.class, com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest.class, + com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -380,9 +412,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsRequest_descriptor; } @java.lang.Override @@ -401,7 +433,8 @@ public com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest buildPartial() { - com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest result = new com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest(this); + com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest result = + new com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -413,38 +446,39 @@ public com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest buildPartial() 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.cloud.notebooks.v1beta1.ListEnvironmentsRequest) { - return mergeFrom((com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest) other); } else { super.mergeFrom(other); return this; @@ -452,7 +486,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest other) { - if (other == com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -490,27 +525,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + 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) { @@ -523,18 +562,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Format: `projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -543,20 +584,21 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Format: `projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -564,66 +606,76 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Format: `projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format: `projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Format: `projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum return size of the list call.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -631,30 +683,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum return size of the list call.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Maximum return size of the list call.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -662,19 +720,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A previous returned page token that can be used to continue listing from
      * the last result.
      * 
* * string page_token = 3; + * * @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; @@ -683,21 +743,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A previous returned page token that can be used to continue listing from
      * the last result.
      * 
* * string page_token = 3; + * * @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 { @@ -705,64 +766,71 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A previous returned page token that can be used to continue listing from
      * the last result.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A previous returned page token that can be used to continue listing from
      * the last result.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A previous returned page token that can be used to continue listing from
      * the last result.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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); } @@ -772,12 +840,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1beta1.ListEnvironmentsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1beta1.ListEnvironmentsRequest) private static final com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest(); } @@ -786,27 +854,27 @@ public static com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEnvironmentsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEnvironmentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -821,6 +889,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsRequestOrBuilder.java index 677add8b16dc..945bf4f472c3 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsRequestOrBuilder.java @@ -1,61 +1,90 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; -public interface ListEnvironmentsRequestOrBuilder extends +public interface ListEnvironmentsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1beta1.ListEnvironmentsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format: `projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Format: `projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Maximum return size of the list call.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A previous returned page token that can be used to continue listing from
    * the last result.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A previous returned page token that can be used to continue listing from
    * the last result.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsResponse.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsResponse.java similarity index 73% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsResponse.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsResponse.java index dc75cef9c5f7..2629a362500b 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsResponse.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; /** + * + * *
  * Response for listing environments.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.ListEnvironmentsResponse} */ -public final class ListEnvironmentsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListEnvironmentsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1beta1.ListEnvironmentsResponse) ListEnvironmentsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListEnvironmentsResponse.newBuilder() to construct. private ListEnvironmentsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListEnvironmentsResponse() { environments_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,32 +45,35 @@ private ListEnvironmentsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListEnvironmentsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsResponse_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse.class, com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse.Builder.class); + com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse.class, + com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse.Builder.class); } public static final int ENVIRONMENTS_FIELD_NUMBER = 1; private java.util.List environments_; /** + * + * *
    * A list of returned environments.
    * 
@@ -64,6 +85,8 @@ public java.util.List getEnviron return environments_; } /** + * + * *
    * A list of returned environments.
    * 
@@ -71,11 +94,13 @@ public java.util.List getEnviron * repeated .google.cloud.notebooks.v1beta1.Environment environments = 1; */ @java.lang.Override - public java.util.List + public java.util.List getEnvironmentsOrBuilderList() { return environments_; } /** + * + * *
    * A list of returned environments.
    * 
@@ -87,6 +112,8 @@ public int getEnvironmentsCount() { return environments_.size(); } /** + * + * *
    * A list of returned environments.
    * 
@@ -98,6 +125,8 @@ public com.google.cloud.notebooks.v1beta1.Environment getEnvironments(int index) return environments_.get(index); } /** + * + * *
    * A list of returned environments.
    * 
@@ -113,12 +142,15 @@ public com.google.cloud.notebooks.v1beta1.EnvironmentOrBuilder getEnvironmentsOr public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A page token that can be used to continue listing from the last result
    * in the next list call.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -127,30 +159,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; } } /** + * + * *
    * A page token that can be used to continue listing from the last result
    * in the next list call.
    * 
* * string next_page_token = 2; + * * @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 { @@ -161,34 +193,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -196,20 +236,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -221,8 +264,7 @@ 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 < environments_.size(); i++) { output.writeMessage(1, environments_.get(i)); } @@ -242,8 +284,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < environments_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, environments_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, environments_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -264,19 +305,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.cloud.notebooks.v1beta1.ListEnvironmentsResponse)) { return super.equals(obj); } - com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse other = (com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse) obj; + com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse other = + (com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse) obj; - if (!getEnvironmentsList() - .equals(other.getEnvironmentsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getEnvironmentsList().equals(other.getEnvironmentsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -304,129 +343,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse 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.cloud.notebooks.v1beta1.ListEnvironmentsResponse 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.cloud.notebooks.v1beta1.ListEnvironmentsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse 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.cloud.notebooks.v1beta1.ListEnvironmentsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse 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.cloud.notebooks.v1beta1.ListEnvironmentsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse 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.cloud.notebooks.v1beta1.ListEnvironmentsResponse 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.cloud.notebooks.v1beta1.ListEnvironmentsResponse 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.cloud.notebooks.v1beta1.ListEnvironmentsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse 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; } /** + * + * *
    * Response for listing environments.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.ListEnvironmentsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1beta1.ListEnvironmentsResponse) com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsResponse_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse.class, com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse.Builder.class); + com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse.class, + com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse.Builder.class); } // Construct using com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -445,9 +491,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsResponse_descriptor; } @java.lang.Override @@ -466,7 +512,8 @@ public com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse build() { @java.lang.Override public com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse buildPartial() { - com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse result = new com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse(this); + com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse result = + new com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse(this); int from_bitField0_ = bitField0_; if (environmentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -491,38 +538,39 @@ public com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse buildPartial( 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.cloud.notebooks.v1beta1.ListEnvironmentsResponse) { - return mergeFrom((com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse)other); + return mergeFrom((com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse) other); } else { super.mergeFrom(other); return this; @@ -530,7 +578,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse other) { - if (other == com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse.getDefaultInstance()) + return this; if (environmentsBuilder_ == null) { if (!other.environments_.isEmpty()) { if (environments_.isEmpty()) { @@ -549,9 +598,10 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.ListEnvironmentsResp environmentsBuilder_ = null; environments_ = other.environments_; bitField0_ = (bitField0_ & ~0x00000001); - environmentsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEnvironmentsFieldBuilder() : null; + environmentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEnvironmentsFieldBuilder() + : null; } else { environmentsBuilder_.addAllMessages(other.environments_); } @@ -597,36 +647,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.notebooks.v1beta1.Environment m = - input.readMessage( - com.google.cloud.notebooks.v1beta1.Environment.parser(), - extensionRegistry); - if (environmentsBuilder_ == null) { - ensureEnvironmentsIsMutable(); - environments_.add(m); - } else { - environmentsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.notebooks.v1beta1.Environment m = + input.readMessage( + com.google.cloud.notebooks.v1beta1.Environment.parser(), extensionRegistry); + if (environmentsBuilder_ == null) { + ensureEnvironmentsIsMutable(); + environments_.add(m); + } else { + environmentsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.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) { @@ -636,21 +689,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List environments_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureEnvironmentsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - environments_ = new java.util.ArrayList(environments_); + environments_ = + new java.util.ArrayList(environments_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1beta1.Environment, com.google.cloud.notebooks.v1beta1.Environment.Builder, com.google.cloud.notebooks.v1beta1.EnvironmentOrBuilder> environmentsBuilder_; + com.google.cloud.notebooks.v1beta1.Environment, + com.google.cloud.notebooks.v1beta1.Environment.Builder, + com.google.cloud.notebooks.v1beta1.EnvironmentOrBuilder> + environmentsBuilder_; /** + * + * *
      * A list of returned environments.
      * 
@@ -665,6 +726,8 @@ public java.util.List getEnviron } } /** + * + * *
      * A list of returned environments.
      * 
@@ -679,6 +742,8 @@ public int getEnvironmentsCount() { } } /** + * + * *
      * A list of returned environments.
      * 
@@ -693,6 +758,8 @@ public com.google.cloud.notebooks.v1beta1.Environment getEnvironments(int index) } } /** + * + * *
      * A list of returned environments.
      * 
@@ -714,6 +781,8 @@ public Builder setEnvironments( return this; } /** + * + * *
      * A list of returned environments.
      * 
@@ -732,6 +801,8 @@ public Builder setEnvironments( return this; } /** + * + * *
      * A list of returned environments.
      * 
@@ -752,6 +823,8 @@ public Builder addEnvironments(com.google.cloud.notebooks.v1beta1.Environment va return this; } /** + * + * *
      * A list of returned environments.
      * 
@@ -773,6 +846,8 @@ public Builder addEnvironments( return this; } /** + * + * *
      * A list of returned environments.
      * 
@@ -791,6 +866,8 @@ public Builder addEnvironments( return this; } /** + * + * *
      * A list of returned environments.
      * 
@@ -809,6 +886,8 @@ public Builder addEnvironments( return this; } /** + * + * *
      * A list of returned environments.
      * 
@@ -819,8 +898,7 @@ public Builder addAllEnvironments( java.lang.Iterable values) { if (environmentsBuilder_ == null) { ensureEnvironmentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, environments_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, environments_); onChanged(); } else { environmentsBuilder_.addAllMessages(values); @@ -828,6 +906,8 @@ public Builder addAllEnvironments( return this; } /** + * + * *
      * A list of returned environments.
      * 
@@ -845,6 +925,8 @@ public Builder clearEnvironments() { return this; } /** + * + * *
      * A list of returned environments.
      * 
@@ -862,6 +944,8 @@ public Builder removeEnvironments(int index) { return this; } /** + * + * *
      * A list of returned environments.
      * 
@@ -873,6 +957,8 @@ public com.google.cloud.notebooks.v1beta1.Environment.Builder getEnvironmentsBui return getEnvironmentsFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of returned environments.
      * 
@@ -882,19 +968,22 @@ public com.google.cloud.notebooks.v1beta1.Environment.Builder getEnvironmentsBui public com.google.cloud.notebooks.v1beta1.EnvironmentOrBuilder getEnvironmentsOrBuilder( int index) { if (environmentsBuilder_ == null) { - return environments_.get(index); } else { + return environments_.get(index); + } else { return environmentsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of returned environments.
      * 
* * repeated .google.cloud.notebooks.v1beta1.Environment environments = 1; */ - public java.util.List - getEnvironmentsOrBuilderList() { + public java.util.List + getEnvironmentsOrBuilderList() { if (environmentsBuilder_ != null) { return environmentsBuilder_.getMessageOrBuilderList(); } else { @@ -902,6 +991,8 @@ public com.google.cloud.notebooks.v1beta1.EnvironmentOrBuilder getEnvironmentsOr } } /** + * + * *
      * A list of returned environments.
      * 
@@ -909,10 +1000,12 @@ public com.google.cloud.notebooks.v1beta1.EnvironmentOrBuilder getEnvironmentsOr * repeated .google.cloud.notebooks.v1beta1.Environment environments = 1; */ public com.google.cloud.notebooks.v1beta1.Environment.Builder addEnvironmentsBuilder() { - return getEnvironmentsFieldBuilder().addBuilder( - com.google.cloud.notebooks.v1beta1.Environment.getDefaultInstance()); + return getEnvironmentsFieldBuilder() + .addBuilder(com.google.cloud.notebooks.v1beta1.Environment.getDefaultInstance()); } /** + * + * *
      * A list of returned environments.
      * 
@@ -921,30 +1014,35 @@ public com.google.cloud.notebooks.v1beta1.Environment.Builder addEnvironmentsBui */ public com.google.cloud.notebooks.v1beta1.Environment.Builder addEnvironmentsBuilder( int index) { - return getEnvironmentsFieldBuilder().addBuilder( - index, com.google.cloud.notebooks.v1beta1.Environment.getDefaultInstance()); + return getEnvironmentsFieldBuilder() + .addBuilder(index, com.google.cloud.notebooks.v1beta1.Environment.getDefaultInstance()); } /** + * + * *
      * A list of returned environments.
      * 
* * repeated .google.cloud.notebooks.v1beta1.Environment environments = 1; */ - public java.util.List - getEnvironmentsBuilderList() { + public java.util.List + getEnvironmentsBuilderList() { return getEnvironmentsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1beta1.Environment, com.google.cloud.notebooks.v1beta1.Environment.Builder, com.google.cloud.notebooks.v1beta1.EnvironmentOrBuilder> + com.google.cloud.notebooks.v1beta1.Environment, + com.google.cloud.notebooks.v1beta1.Environment.Builder, + com.google.cloud.notebooks.v1beta1.EnvironmentOrBuilder> getEnvironmentsFieldBuilder() { if (environmentsBuilder_ == null) { - environmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1beta1.Environment, com.google.cloud.notebooks.v1beta1.Environment.Builder, com.google.cloud.notebooks.v1beta1.EnvironmentOrBuilder>( - environments_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + environmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.notebooks.v1beta1.Environment, + com.google.cloud.notebooks.v1beta1.Environment.Builder, + com.google.cloud.notebooks.v1beta1.EnvironmentOrBuilder>( + environments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); environments_ = null; } return environmentsBuilder_; @@ -952,19 +1050,21 @@ public com.google.cloud.notebooks.v1beta1.Environment.Builder addEnvironmentsBui private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A page token that can be used to continue listing from the last result
      * in the next list call.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -973,21 +1073,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A page token that can be used to continue listing from the last result
      * in the next list call.
      * 
* * string next_page_token = 2; + * * @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 { @@ -995,98 +1096,115 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A page token that can be used to continue listing from the last result
      * in the next list call.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A page token that can be used to continue listing from the last result
      * in the next list call.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A page token that can be used to continue listing from the last result
      * in the next list call.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1094,80 +1212,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1177,28 +1305,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(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); } @@ -1208,12 +1338,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1beta1.ListEnvironmentsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1beta1.ListEnvironmentsResponse) private static final com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse(); } @@ -1222,27 +1352,27 @@ public static com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEnvironmentsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEnvironmentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -1257,6 +1387,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsResponseOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsResponseOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsResponseOrBuilder.java index 920a42d603c0..1134a556a668 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsResponseOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; -public interface ListEnvironmentsResponseOrBuilder extends +public interface ListEnvironmentsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1beta1.ListEnvironmentsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of returned environments.
    * 
* * repeated .google.cloud.notebooks.v1beta1.Environment environments = 1; */ - java.util.List - getEnvironmentsList(); + java.util.List getEnvironmentsList(); /** + * + * *
    * A list of returned environments.
    * 
@@ -25,6 +44,8 @@ public interface ListEnvironmentsResponseOrBuilder extends */ com.google.cloud.notebooks.v1beta1.Environment getEnvironments(int index); /** + * + * *
    * A list of returned environments.
    * 
@@ -33,84 +54,102 @@ public interface ListEnvironmentsResponseOrBuilder extends */ int getEnvironmentsCount(); /** + * + * *
    * A list of returned environments.
    * 
* * repeated .google.cloud.notebooks.v1beta1.Environment environments = 1; */ - java.util.List + java.util.List getEnvironmentsOrBuilderList(); /** + * + * *
    * A list of returned environments.
    * 
* * repeated .google.cloud.notebooks.v1beta1.Environment environments = 1; */ - com.google.cloud.notebooks.v1beta1.EnvironmentOrBuilder getEnvironmentsOrBuilder( - int index); + com.google.cloud.notebooks.v1beta1.EnvironmentOrBuilder getEnvironmentsOrBuilder(int index); /** + * + * *
    * A page token that can be used to continue listing from the last result
    * in the next list call.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A page token that can be used to continue listing from the last result
    * in the next list call.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesRequest.java similarity index 68% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesRequest.java index cedf7bf13daf..6ecb17a26649 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; /** + * + * *
  * Request for listing notebook instances.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.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_ = ""; @@ -26,38 +44,42 @@ private ListInstancesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListInstancesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_ListInstancesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.ListInstancesRequest.class, com.google.cloud.notebooks.v1beta1.ListInstancesRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.ListInstancesRequest.class, + com.google.cloud.notebooks.v1beta1.ListInstancesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -66,30 +88,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; } } /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -100,11 +122,14 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Maximum return size of the list call.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -115,12 +140,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A previous returned page token that can be used to continue listing
    * from the last result.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -129,30 +157,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; } } /** + * + * *
    * A previous returned page token that can be used to continue listing
    * from the last result.
    * 
* * string page_token = 3; + * * @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 { @@ -161,6 +189,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +201,7 @@ 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_); } @@ -196,8 +224,7 @@ 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_); @@ -210,19 +237,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.cloud.notebooks.v1beta1.ListInstancesRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1beta1.ListInstancesRequest other = (com.google.cloud.notebooks.v1beta1.ListInstancesRequest) obj; + com.google.cloud.notebooks.v1beta1.ListInstancesRequest other = + (com.google.cloud.notebooks.v1beta1.ListInstancesRequest) 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; } @@ -246,129 +271,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.ListInstancesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1beta1.ListInstancesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.ListInstancesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.ListInstancesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.ListInstancesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.ListInstancesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.ListInstancesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1beta1.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; } /** + * + * *
    * Request for listing notebook instances.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.ListInstancesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1beta1.ListInstancesRequest) com.google.cloud.notebooks.v1beta1.ListInstancesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_ListInstancesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_ListInstancesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_ListInstancesRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_ListInstancesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.ListInstancesRequest.class, com.google.cloud.notebooks.v1beta1.ListInstancesRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.ListInstancesRequest.class, + com.google.cloud.notebooks.v1beta1.ListInstancesRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1beta1.ListInstancesRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -382,9 +414,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_ListInstancesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_ListInstancesRequest_descriptor; } @java.lang.Override @@ -403,7 +435,8 @@ public com.google.cloud.notebooks.v1beta1.ListInstancesRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1beta1.ListInstancesRequest buildPartial() { - com.google.cloud.notebooks.v1beta1.ListInstancesRequest result = new com.google.cloud.notebooks.v1beta1.ListInstancesRequest(this); + com.google.cloud.notebooks.v1beta1.ListInstancesRequest result = + new com.google.cloud.notebooks.v1beta1.ListInstancesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -415,38 +448,39 @@ public com.google.cloud.notebooks.v1beta1.ListInstancesRequest buildPartial() { 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.cloud.notebooks.v1beta1.ListInstancesRequest) { - return mergeFrom((com.google.cloud.notebooks.v1beta1.ListInstancesRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1beta1.ListInstancesRequest) other); } else { super.mergeFrom(other); return this; @@ -454,7 +488,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.ListInstancesRequest other) { - if (other == com.google.cloud.notebooks.v1beta1.ListInstancesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1beta1.ListInstancesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -492,27 +527,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + + 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) { @@ -525,19 +564,21 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -546,21 +587,22 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -568,69 +610,79 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum return size of the list call.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -638,30 +690,36 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum return size of the list call.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Maximum return size of the list call.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -669,19 +727,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A previous returned page token that can be used to continue listing
      * from the last result.
      * 
* * string page_token = 3; + * * @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; @@ -690,21 +750,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A previous returned page token that can be used to continue listing
      * from the last result.
      * 
* * string page_token = 3; + * * @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 { @@ -712,64 +773,71 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A previous returned page token that can be used to continue listing
      * from the last result.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A previous returned page token that can be used to continue listing
      * from the last result.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A previous returned page token that can be used to continue listing
      * from the last result.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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); } @@ -779,12 +847,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1beta1.ListInstancesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1beta1.ListInstancesRequest) private static final com.google.cloud.notebooks.v1beta1.ListInstancesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1beta1.ListInstancesRequest(); } @@ -793,27 +861,27 @@ public static com.google.cloud.notebooks.v1beta1.ListInstancesRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @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 PARSER = + new com.google.protobuf.AbstractParser() { + @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 parser() { return PARSER; @@ -828,6 +896,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1beta1.ListInstancesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesRequestOrBuilder.java index 0078f934ee4d..b6dd792d7542 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesRequestOrBuilder.java @@ -1,63 +1,92 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; -public interface ListInstancesRequestOrBuilder extends +public interface ListInstancesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1beta1.ListInstancesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Maximum return size of the list call.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A previous returned page token that can be used to continue listing
    * from the last result.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A previous returned page token that can be used to continue listing
    * from the last result.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesResponse.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesResponse.java similarity index 73% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesResponse.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesResponse.java index c5cdbb81a035..aad611133590 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesResponse.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; /** + * + * *
  * Response for listing notebook instances.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.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_ = ""; @@ -27,32 +45,35 @@ private ListInstancesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListInstancesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_ListInstancesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.ListInstancesResponse.class, com.google.cloud.notebooks.v1beta1.ListInstancesResponse.Builder.class); + com.google.cloud.notebooks.v1beta1.ListInstancesResponse.class, + com.google.cloud.notebooks.v1beta1.ListInstancesResponse.Builder.class); } public static final int INSTANCES_FIELD_NUMBER = 1; private java.util.List instances_; /** + * + * *
    * A list of returned instances.
    * 
@@ -64,6 +85,8 @@ public java.util.List getInstancesL return instances_; } /** + * + * *
    * A list of returned instances.
    * 
@@ -71,11 +94,13 @@ public java.util.List getInstancesL * repeated .google.cloud.notebooks.v1beta1.Instance instances = 1; */ @java.lang.Override - public java.util.List + public java.util.List getInstancesOrBuilderList() { return instances_; } /** + * + * *
    * A list of returned instances.
    * 
@@ -87,6 +112,8 @@ public int getInstancesCount() { return instances_.size(); } /** + * + * *
    * A list of returned instances.
    * 
@@ -98,6 +125,8 @@ public com.google.cloud.notebooks.v1beta1.Instance getInstances(int index) { return instances_.get(index); } /** + * + * *
    * A list of returned instances.
    * 
@@ -105,20 +134,22 @@ public com.google.cloud.notebooks.v1beta1.Instance getInstances(int index) { * repeated .google.cloud.notebooks.v1beta1.Instance instances = 1; */ @java.lang.Override - public com.google.cloud.notebooks.v1beta1.InstanceOrBuilder getInstancesOrBuilder( - int index) { + public com.google.cloud.notebooks.v1beta1.InstanceOrBuilder getInstancesOrBuilder(int index) { return instances_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * Page token that can be used to continue listing from the last result in the
    * next list call.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -127,30 +158,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; } } /** + * + * *
    * Page token that can be used to continue listing from the last result in the
    * next list call.
    * 
* * string next_page_token = 2; + * * @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 { @@ -161,6 +192,8 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached. For example,
    * ['us-west1-a', 'us-central1-b'].
@@ -168,13 +201,15 @@ public java.lang.String getNextPageToken() {
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached. For example,
    * ['us-west1-a', 'us-central1-b'].
@@ -182,12 +217,15 @@ public java.lang.String getNextPageToken() {
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached. For example,
    * ['us-west1-a', 'us-central1-b'].
@@ -195,6 +233,7 @@ public int getUnreachableCount() {
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -202,6 +241,8 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached. For example,
    * ['us-west1-a', 'us-central1-b'].
@@ -209,15 +250,16 @@ public java.lang.String getUnreachable(int index) {
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +271,7 @@ 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)); } @@ -250,8 +291,7 @@ 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_); @@ -272,19 +312,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.cloud.notebooks.v1beta1.ListInstancesResponse)) { return super.equals(obj); } - com.google.cloud.notebooks.v1beta1.ListInstancesResponse other = (com.google.cloud.notebooks.v1beta1.ListInstancesResponse) obj; + com.google.cloud.notebooks.v1beta1.ListInstancesResponse other = + (com.google.cloud.notebooks.v1beta1.ListInstancesResponse) obj; - if (!getInstancesList() - .equals(other.getInstancesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getInstancesList().equals(other.getInstancesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -312,129 +350,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.ListInstancesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1beta1.ListInstancesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.ListInstancesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.ListInstancesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.ListInstancesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.ListInstancesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.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.cloud.notebooks.v1beta1.ListInstancesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1beta1.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; } /** + * + * *
    * Response for listing notebook instances.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.ListInstancesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1beta1.ListInstancesResponse) com.google.cloud.notebooks.v1beta1.ListInstancesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_ListInstancesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_ListInstancesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_ListInstancesResponse_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_ListInstancesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.ListInstancesResponse.class, com.google.cloud.notebooks.v1beta1.ListInstancesResponse.Builder.class); + com.google.cloud.notebooks.v1beta1.ListInstancesResponse.class, + com.google.cloud.notebooks.v1beta1.ListInstancesResponse.Builder.class); } // Construct using com.google.cloud.notebooks.v1beta1.ListInstancesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -453,9 +498,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_ListInstancesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_ListInstancesResponse_descriptor; } @java.lang.Override @@ -474,7 +519,8 @@ public com.google.cloud.notebooks.v1beta1.ListInstancesResponse build() { @java.lang.Override public com.google.cloud.notebooks.v1beta1.ListInstancesResponse buildPartial() { - com.google.cloud.notebooks.v1beta1.ListInstancesResponse result = new com.google.cloud.notebooks.v1beta1.ListInstancesResponse(this); + com.google.cloud.notebooks.v1beta1.ListInstancesResponse result = + new com.google.cloud.notebooks.v1beta1.ListInstancesResponse(this); int from_bitField0_ = bitField0_; if (instancesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -499,38 +545,39 @@ public com.google.cloud.notebooks.v1beta1.ListInstancesResponse buildPartial() { 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.cloud.notebooks.v1beta1.ListInstancesResponse) { - return mergeFrom((com.google.cloud.notebooks.v1beta1.ListInstancesResponse)other); + return mergeFrom((com.google.cloud.notebooks.v1beta1.ListInstancesResponse) other); } else { super.mergeFrom(other); return this; @@ -538,7 +585,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.ListInstancesResponse other) { - if (other == com.google.cloud.notebooks.v1beta1.ListInstancesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1beta1.ListInstancesResponse.getDefaultInstance()) + return this; if (instancesBuilder_ == null) { if (!other.instances_.isEmpty()) { if (instances_.isEmpty()) { @@ -557,9 +605,10 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.ListInstancesRespons 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_); } @@ -605,36 +654,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.notebooks.v1beta1.Instance m = - input.readMessage( - com.google.cloud.notebooks.v1beta1.Instance.parser(), - extensionRegistry); - if (instancesBuilder_ == null) { - ensureInstancesIsMutable(); - instances_.add(m); - } else { - instancesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); + case 10: + { + com.google.cloud.notebooks.v1beta1.Instance m = + input.readMessage( + com.google.cloud.notebooks.v1beta1.Instance.parser(), extensionRegistry); + if (instancesBuilder_ == null) { + ensureInstancesIsMutable(); + instances_.add(m); + } else { + instancesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.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) { @@ -644,21 +696,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List instances_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureInstancesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - instances_ = new java.util.ArrayList(instances_); + instances_ = + new java.util.ArrayList(instances_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1beta1.Instance, com.google.cloud.notebooks.v1beta1.Instance.Builder, com.google.cloud.notebooks.v1beta1.InstanceOrBuilder> instancesBuilder_; + com.google.cloud.notebooks.v1beta1.Instance, + com.google.cloud.notebooks.v1beta1.Instance.Builder, + com.google.cloud.notebooks.v1beta1.InstanceOrBuilder> + instancesBuilder_; /** + * + * *
      * A list of returned instances.
      * 
@@ -673,6 +733,8 @@ public java.util.List getInstancesL } } /** + * + * *
      * A list of returned instances.
      * 
@@ -687,6 +749,8 @@ public int getInstancesCount() { } } /** + * + * *
      * A list of returned instances.
      * 
@@ -701,14 +765,15 @@ public com.google.cloud.notebooks.v1beta1.Instance getInstances(int index) { } } /** + * + * *
      * A list of returned instances.
      * 
* * repeated .google.cloud.notebooks.v1beta1.Instance instances = 1; */ - public Builder setInstances( - int index, com.google.cloud.notebooks.v1beta1.Instance value) { + public Builder setInstances(int index, com.google.cloud.notebooks.v1beta1.Instance value) { if (instancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -722,6 +787,8 @@ public Builder setInstances( return this; } /** + * + * *
      * A list of returned instances.
      * 
@@ -740,6 +807,8 @@ public Builder setInstances( return this; } /** + * + * *
      * A list of returned instances.
      * 
@@ -760,14 +829,15 @@ public Builder addInstances(com.google.cloud.notebooks.v1beta1.Instance value) { return this; } /** + * + * *
      * A list of returned instances.
      * 
* * repeated .google.cloud.notebooks.v1beta1.Instance instances = 1; */ - public Builder addInstances( - int index, com.google.cloud.notebooks.v1beta1.Instance value) { + public Builder addInstances(int index, com.google.cloud.notebooks.v1beta1.Instance value) { if (instancesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -781,6 +851,8 @@ public Builder addInstances( return this; } /** + * + * *
      * A list of returned instances.
      * 
@@ -799,6 +871,8 @@ public Builder addInstances( return this; } /** + * + * *
      * A list of returned instances.
      * 
@@ -817,6 +891,8 @@ public Builder addInstances( return this; } /** + * + * *
      * A list of returned instances.
      * 
@@ -827,8 +903,7 @@ public Builder addAllInstances( java.lang.Iterable 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); @@ -836,6 +911,8 @@ public Builder addAllInstances( return this; } /** + * + * *
      * A list of returned instances.
      * 
@@ -853,6 +930,8 @@ public Builder clearInstances() { return this; } /** + * + * *
      * A list of returned instances.
      * 
@@ -870,39 +949,44 @@ public Builder removeInstances(int index) { return this; } /** + * + * *
      * A list of returned instances.
      * 
* * repeated .google.cloud.notebooks.v1beta1.Instance instances = 1; */ - public com.google.cloud.notebooks.v1beta1.Instance.Builder getInstancesBuilder( - int index) { + public com.google.cloud.notebooks.v1beta1.Instance.Builder getInstancesBuilder(int index) { return getInstancesFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of returned instances.
      * 
* * repeated .google.cloud.notebooks.v1beta1.Instance instances = 1; */ - public com.google.cloud.notebooks.v1beta1.InstanceOrBuilder getInstancesOrBuilder( - int index) { + public com.google.cloud.notebooks.v1beta1.InstanceOrBuilder getInstancesOrBuilder(int index) { if (instancesBuilder_ == null) { - return instances_.get(index); } else { + return instances_.get(index); + } else { return instancesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of returned instances.
      * 
* * repeated .google.cloud.notebooks.v1beta1.Instance instances = 1; */ - public java.util.List - getInstancesOrBuilderList() { + public java.util.List + getInstancesOrBuilderList() { if (instancesBuilder_ != null) { return instancesBuilder_.getMessageOrBuilderList(); } else { @@ -910,6 +994,8 @@ public com.google.cloud.notebooks.v1beta1.InstanceOrBuilder getInstancesOrBuilde } } /** + * + * *
      * A list of returned instances.
      * 
@@ -917,42 +1003,48 @@ public com.google.cloud.notebooks.v1beta1.InstanceOrBuilder getInstancesOrBuilde * repeated .google.cloud.notebooks.v1beta1.Instance instances = 1; */ public com.google.cloud.notebooks.v1beta1.Instance.Builder addInstancesBuilder() { - return getInstancesFieldBuilder().addBuilder( - com.google.cloud.notebooks.v1beta1.Instance.getDefaultInstance()); + return getInstancesFieldBuilder() + .addBuilder(com.google.cloud.notebooks.v1beta1.Instance.getDefaultInstance()); } /** + * + * *
      * A list of returned instances.
      * 
* * repeated .google.cloud.notebooks.v1beta1.Instance instances = 1; */ - public com.google.cloud.notebooks.v1beta1.Instance.Builder addInstancesBuilder( - int index) { - return getInstancesFieldBuilder().addBuilder( - index, com.google.cloud.notebooks.v1beta1.Instance.getDefaultInstance()); + public com.google.cloud.notebooks.v1beta1.Instance.Builder addInstancesBuilder(int index) { + return getInstancesFieldBuilder() + .addBuilder(index, com.google.cloud.notebooks.v1beta1.Instance.getDefaultInstance()); } /** + * + * *
      * A list of returned instances.
      * 
* * repeated .google.cloud.notebooks.v1beta1.Instance instances = 1; */ - public java.util.List - getInstancesBuilderList() { + public java.util.List + getInstancesBuilderList() { return getInstancesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1beta1.Instance, com.google.cloud.notebooks.v1beta1.Instance.Builder, com.google.cloud.notebooks.v1beta1.InstanceOrBuilder> + com.google.cloud.notebooks.v1beta1.Instance, + com.google.cloud.notebooks.v1beta1.Instance.Builder, + com.google.cloud.notebooks.v1beta1.InstanceOrBuilder> getInstancesFieldBuilder() { if (instancesBuilder_ == null) { - instancesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.notebooks.v1beta1.Instance, com.google.cloud.notebooks.v1beta1.Instance.Builder, com.google.cloud.notebooks.v1beta1.InstanceOrBuilder>( - instances_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + instancesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.notebooks.v1beta1.Instance, + com.google.cloud.notebooks.v1beta1.Instance.Builder, + com.google.cloud.notebooks.v1beta1.InstanceOrBuilder>( + instances_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); instances_ = null; } return instancesBuilder_; @@ -960,19 +1052,21 @@ public com.google.cloud.notebooks.v1beta1.Instance.Builder addInstancesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * Page token that can be used to continue listing from the last result in the
      * next list call.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -981,21 +1075,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Page token that can be used to continue listing from the last result in the
      * next list call.
      * 
* * string next_page_token = 2; + * * @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 { @@ -1003,70 +1098,81 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * Page token that can be used to continue listing from the last result in the
      * next list call.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * Page token that can be used to continue listing from the last result in the
      * next list call.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * Page token that can be used to continue listing from the last result in the
      * next list call.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached. For example,
      * ['us-west1-a', 'us-central1-b'].
@@ -1074,13 +1180,15 @@ private void ensureUnreachableIsMutable() {
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached. For example,
      * ['us-west1-a', 'us-central1-b'].
@@ -1088,12 +1196,15 @@ private void ensureUnreachableIsMutable() {
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached. For example,
      * ['us-west1-a', 'us-central1-b'].
@@ -1101,6 +1212,7 @@ public int getUnreachableCount() {
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1108,6 +1220,8 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached. For example,
      * ['us-west1-a', 'us-central1-b'].
@@ -1115,14 +1229,16 @@ public java.lang.String getUnreachable(int index) {
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached. For example,
      * ['us-west1-a', 'us-central1-b'].
@@ -1130,21 +1246,23 @@ public java.lang.String getUnreachable(int index) {
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached. For example,
      * ['us-west1-a', 'us-central1-b'].
@@ -1152,20 +1270,22 @@ public Builder setUnreachable(
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached. For example,
      * ['us-west1-a', 'us-central1-b'].
@@ -1173,18 +1293,19 @@ public Builder addUnreachable(
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached. For example,
      * ['us-west1-a', 'us-central1-b'].
@@ -1192,6 +1313,7 @@ public Builder addAllUnreachable(
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1201,6 +1323,8 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached. For example,
      * ['us-west1-a', 'us-central1-b'].
@@ -1208,23 +1332,23 @@ public Builder clearUnreachable() {
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(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); } @@ -1234,12 +1358,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1beta1.ListInstancesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1beta1.ListInstancesResponse) private static final com.google.cloud.notebooks.v1beta1.ListInstancesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1beta1.ListInstancesResponse(); } @@ -1248,27 +1372,27 @@ public static com.google.cloud.notebooks.v1beta1.ListInstancesResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @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 PARSER = + new com.google.protobuf.AbstractParser() { + @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 parser() { return PARSER; @@ -1283,6 +1407,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1beta1.ListInstancesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesResponseOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesResponseOrBuilder.java similarity index 74% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesResponseOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesResponseOrBuilder.java index 47595ebd9b94..c0429010aa25 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesResponseOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; -public interface ListInstancesResponseOrBuilder extends +public interface ListInstancesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1beta1.ListInstancesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of returned instances.
    * 
* * repeated .google.cloud.notebooks.v1beta1.Instance instances = 1; */ - java.util.List - getInstancesList(); + java.util.List getInstancesList(); /** + * + * *
    * A list of returned instances.
    * 
@@ -25,6 +44,8 @@ public interface ListInstancesResponseOrBuilder extends */ com.google.cloud.notebooks.v1beta1.Instance getInstances(int index); /** + * + * *
    * A list of returned instances.
    * 
@@ -33,47 +54,57 @@ public interface ListInstancesResponseOrBuilder extends */ int getInstancesCount(); /** + * + * *
    * A list of returned instances.
    * 
* * repeated .google.cloud.notebooks.v1beta1.Instance instances = 1; */ - java.util.List + java.util.List getInstancesOrBuilderList(); /** + * + * *
    * A list of returned instances.
    * 
* * repeated .google.cloud.notebooks.v1beta1.Instance instances = 1; */ - com.google.cloud.notebooks.v1beta1.InstanceOrBuilder getInstancesOrBuilder( - int index); + com.google.cloud.notebooks.v1beta1.InstanceOrBuilder getInstancesOrBuilder(int index); /** + * + * *
    * Page token that can be used to continue listing from the last result in the
    * next list call.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * Page token that can be used to continue listing from the last result in the
    * next list call.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached. For example,
    * ['us-west1-a', 'us-central1-b'].
@@ -81,11 +112,13 @@ com.google.cloud.notebooks.v1beta1.InstanceOrBuilder getInstancesOrBuilder(
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached. For example,
    * ['us-west1-a', 'us-central1-b'].
@@ -93,10 +126,13 @@ com.google.cloud.notebooks.v1beta1.InstanceOrBuilder getInstancesOrBuilder(
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached. For example,
    * ['us-west1-a', 'us-central1-b'].
@@ -104,11 +140,14 @@ com.google.cloud.notebooks.v1beta1.InstanceOrBuilder getInstancesOrBuilder(
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached. For example,
    * ['us-west1-a', 'us-central1-b'].
@@ -116,9 +155,9 @@ com.google.cloud.notebooks.v1beta1.InstanceOrBuilder getInstancesOrBuilder(
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/NotebooksProto.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/NotebooksProto.java new file mode 100644 index 000000000000..817408b72456 --- /dev/null +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/NotebooksProto.java @@ -0,0 +1,556 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/notebooks/v1beta1/service.proto + +package com.google.cloud.notebooks.v1beta1; + +public final class NotebooksProto { + private NotebooksProto() {} + + 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_cloud_notebooks_v1beta1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1beta1_ListInstancesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_ListInstancesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1beta1_ListInstancesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_ListInstancesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1beta1_GetInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_GetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1beta1_CreateInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_CreateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1beta1_RegisterInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_RegisterInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1beta1_SetInstanceAcceleratorRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_SetInstanceAcceleratorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1beta1_SetInstanceMachineTypeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_SetInstanceMachineTypeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1beta1_DeleteInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_DeleteInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1beta1_StartInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_StartInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1beta1_StopInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_StopInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1beta1_ResetInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_ResetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_MetadataEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_MetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceInternalRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceInternalRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1beta1_GetEnvironmentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_GetEnvironmentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1beta1_CreateEnvironmentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_CreateEnvironmentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_notebooks_v1beta1_DeleteEnvironmentRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_notebooks_v1beta1_DeleteEnvironmentRequest_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/cloud/notebooks/v1beta1/service" + + ".proto\022\036google.cloud.notebooks.v1beta1\032\034" + + "google/api/annotations.proto\032\027google/api" + + "/client.proto\032\037google/api/field_behavior" + + ".proto\0320google/cloud/notebooks/v1beta1/e" + + "nvironment.proto\032-google/cloud/notebooks" + + "/v1beta1/instance.proto\032#google/longrunn" + + "ing/operations.proto\032\037google/protobuf/ti" + + "mestamp.proto\"\357\001\n\021OperationMetadata\022/\n\013c" + + "reate_time\030\001 \001(\0132\032.google.protobuf.Times" + + "tamp\022,\n\010end_time\030\002 \001(\0132\032.google.protobuf" + + ".Timestamp\022\016\n\006target\030\003 \001(\t\022\014\n\004verb\030\004 \001(\t" + + "\022\026\n\016status_message\030\005 \001(\t\022\036\n\026requested_ca" + + "ncellation\030\006 \001(\010\022\023\n\013api_version\030\007 \001(\t\022\020\n" + + "\010endpoint\030\010 \001(\t\"R\n\024ListInstancesRequest\022" + + "\023\n\006parent\030\001 \001(\tB\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022" + + "\022\n\npage_token\030\003 \001(\t\"\202\001\n\025ListInstancesRes" + + "ponse\022;\n\tinstances\030\001 \003(\0132(.google.cloud." + + "notebooks.v1beta1.Instance\022\027\n\017next_page_" + + "token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\'\n\022GetI" + + "nstanceRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\"\207\001\n\025Cr" + + "eateInstanceRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002" + + "\022\030\n\013instance_id\030\002 \001(\tB\003\340A\002\022?\n\010instance\030\003" + + " \001(\0132(.google.cloud.notebooks.v1beta1.In" + + "stanceB\003\340A\002\"H\n\027RegisterInstanceRequest\022\023" + + "\n\006parent\030\001 \001(\tB\003\340A\002\022\030\n\013instance_id\030\002 \001(\t" + + "B\003\340A\002\"\230\001\n\035SetInstanceAcceleratorRequest\022" + + "\021\n\004name\030\001 \001(\tB\003\340A\002\022K\n\004type\030\002 \001(\01628.googl" + + "e.cloud.notebooks.v1beta1.Instance.Accel" + + "eratorTypeB\003\340A\002\022\027\n\ncore_count\030\003 \001(\003B\003\340A\002" + + "\"M\n\035SetInstanceMachineTypeRequest\022\021\n\004nam" + + "e\030\001 \001(\tB\003\340A\002\022\031\n\014machine_type\030\002 \001(\tB\003\340A\002\"" + + "\262\001\n\030SetInstanceLabelsRequest\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\002\022T\n\006labels\030\002 \003(\0132D.google.cloud.n" + + "otebooks.v1beta1.SetInstanceLabelsReques" + + "t.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"*\n\025DeleteInstanceRe" + + "quest\022\021\n\004name\030\001 \001(\tB\003\340A\002\")\n\024StartInstanc" + + "eRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\"(\n\023StopInsta" + + "nceRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\")\n\024ResetIn" + + "stanceRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\"\316\001\n\031Rep" + + "ortInstanceInfoRequest\022\021\n\004name\030\001 \001(\tB\003\340A" + + "\002\022\022\n\005vm_id\030\002 \001(\tB\003\340A\002\022Y\n\010metadata\030\003 \003(\0132" + + "G.google.cloud.notebooks.v1beta1.ReportI" + + "nstanceInfoRequest.MetadataEntry\032/\n\rMeta" + + "dataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\">\n\034IsInstanceUpgradeableRequest\022\036\n\021not" + + "ebook_instance\030\001 \001(\tB\003\340A\002\"z\n\035IsInstanceU" + + "pgradeableResponse\022\023\n\013upgradeable\030\001 \001(\010\022" + + "\027\n\017upgrade_version\030\002 \001(\t\022\024\n\014upgrade_info" + + "\030\003 \001(\t\022\025\n\rupgrade_image\030\004 \001(\t\"+\n\026Upgrade" + + "InstanceRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\"G\n\036Up" + + "gradeInstanceInternalRequest\022\021\n\004name\030\001 \001" + + "(\tB\003\340A\002\022\022\n\005vm_id\030\002 \001(\tB\003\340A\002\"U\n\027ListEnvir" + + "onmentsRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\021\n\tp" + + "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\213\001\n\030L" + + "istEnvironmentsResponse\022A\n\014environments\030" + + "\001 \003(\0132+.google.cloud.notebooks.v1beta1.E" + + "nvironment\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013u" + + "nreachable\030\003 \003(\t\"*\n\025GetEnvironmentReques" + + "t\022\021\n\004name\030\001 \001(\tB\003\340A\002\"\223\001\n\030CreateEnvironme" + + "ntRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\033\n\016enviro" + + "nment_id\030\002 \001(\tB\003\340A\002\022E\n\013environment\030\003 \001(\013" + + "2+.google.cloud.notebooks.v1beta1.Enviro" + + "nmentB\003\340A\002\"-\n\030DeleteEnvironmentRequest\022\021" + + "\n\004name\030\001 \001(\tB\003\340A\0022\201 \n\017NotebookService\022\270\001" + + "\n\rListInstances\0224.google.cloud.notebooks" + + ".v1beta1.ListInstancesRequest\0325.google.c" + + "loud.notebooks.v1beta1.ListInstancesResp" + + "onse\":\202\323\344\223\0024\0222/v1beta1/{parent=projects/" + + "*/locations/*}/instances\022\247\001\n\013GetInstance" + + "\0222.google.cloud.notebooks.v1beta1.GetIns" + + "tanceRequest\032(.google.cloud.notebooks.v1" + + "beta1.Instance\":\202\323\344\223\0024\0222/v1beta1/{name=p" + + "rojects/*/locations/*/instances/*}\022\314\001\n\016C" + + "reateInstance\0225.google.cloud.notebooks.v" + + "1beta1.CreateInstanceRequest\032\035.google.lo" + + "ngrunning.Operation\"d\202\323\344\223\002>\"2/v1beta1/{p" + + "arent=projects/*/locations/*}/instances:" + + "\010instance\312A\035\n\010Instance\022\021OperationMetadat" + + "a\022\322\001\n\020RegisterInstance\0227.google.cloud.no" + + "tebooks.v1beta1.RegisterInstanceRequest\032" + + "\035.google.longrunning.Operation\"f\202\323\344\223\002@\";" + + "/v1beta1/{parent=projects/*/locations/*}" + + "/instances:register:\001*\312A\035\n\010Instance\022\021Ope" + + "rationMetadata\022\344\001\n\026SetInstanceAccelerato" + + "r\022=.google.cloud.notebooks.v1beta1.SetIn" + + "stanceAcceleratorRequest\032\035.google.longru" + + "nning.Operation\"l\202\323\344\223\002F2A/v1beta1/{name=" + + "projects/*/locations/*/instances/*}:setA" + + "ccelerator:\001*\312A\035\n\010Instance\022\021OperationMet" + + "adata\022\344\001\n\026SetInstanceMachineType\022=.googl" + + "e.cloud.notebooks.v1beta1.SetInstanceMac" + + "hineTypeRequest\032\035.google.longrunning.Ope" + + "ration\"l\202\323\344\223\002F2A/v1beta1/{name=projects/" + + "*/locations/*/instances/*}:setMachineTyp" + + "e:\001*\312A\035\n\010Instance\022\021OperationMetadata\022\325\001\n" + + "\021SetInstanceLabels\0228.google.cloud.notebo" + + "oks.v1beta1.SetInstanceLabelsRequest\032\035.g" + + "oogle.longrunning.Operation\"g\202\323\344\223\002A2\"9/v1bet" + + "a1/{name=projects/*/locations/*/instance" + + "s/*}:report:\001*\312A\035\n\010Instance\022\021OperationMe" + + "tadata\022\356\001\n\025IsInstanceUpgradeable\022<.googl" + + "e.cloud.notebooks.v1beta1.IsInstanceUpgr" + + "adeableRequest\032=.google.cloud.notebooks." + + "v1beta1.IsInstanceUpgradeableResponse\"X\210" + + "\002\001\202\323\344\223\002O\022M/v1beta1/{notebook_instance=pr" + + "ojects/*/locations/*/instances/*}:isUpgr" + + "adeable\022\322\001\n\017UpgradeInstance\0226.google.clo" + + "ud.notebooks.v1beta1.UpgradeInstanceRequ" + + "est\032\035.google.longrunning.Operation\"h\210\002\001\202" + + "\323\344\223\002?\":/v1beta1/{name=projects/*/locatio" + + "ns/*/instances/*}:upgrade:\001*\312A\035\n\010Instanc" + + "e\022\021OperationMetadata\022\352\001\n\027UpgradeInstance" + + "Internal\022>.google.cloud.notebooks.v1beta" + + "1.UpgradeInstanceInternalRequest\032\035.googl" + + "e.longrunning.Operation\"p\210\002\001\202\323\344\223\002G\"B/v1b" + + "eta1/{name=projects/*/locations/*/instan" + + "ces/*}:upgradeInternal:\001*\312A\035\n\010Instance\022\021" + + "OperationMetadata\022\304\001\n\020ListEnvironments\0227" + + ".google.cloud.notebooks.v1beta1.ListEnvi" + + "ronmentsRequest\0328.google.cloud.notebooks" + + ".v1beta1.ListEnvironmentsResponse\"=\202\323\344\223\002" + + "7\0225/v1beta1/{parent=projects/*/locations" + + "/*}/environments\022\263\001\n\016GetEnvironment\0225.go" + + "ogle.cloud.notebooks.v1beta1.GetEnvironm" + + "entRequest\032+.google.cloud.notebooks.v1be" + + "ta1.Environment\"=\202\323\344\223\0027\0225/v1beta1/{name=" + + "projects/*/locations/*/environments/*}\022\333" + + "\001\n\021CreateEnvironment\0228.google.cloud.note" + + "books.v1beta1.CreateEnvironmentRequest\032\035" + + ".google.longrunning.Operation\"m\202\323\344\223\002D\"5/" + + "v1beta1/{parent=projects/*/locations/*}/" + + "environments:\013environment\312A \n\013Environmen" + + "t\022\021OperationMetadata\022\330\001\n\021DeleteEnvironme" + + "nt\0228.google.cloud.notebooks.v1beta1.Dele" + + "teEnvironmentRequest\032\035.google.longrunnin" + + "g.Operation\"j\202\323\344\223\0027*5/v1beta1/{name=proj" + + "ects/*/locations/*/environments/*}\312A*\n\025g" + + "oogle.protobuf.Empty\022\021OperationMetadata\032" + + "L\312A\030notebooks.googleapis.com\322A.https://w" + + "ww.googleapis.com/auth/cloud-platformB\345\001" + + "\n\"com.google.cloud.notebooks.v1beta1B\016No" + + "tebooksProtoP\001ZGgoogle.golang.org/genpro" + + "to/googleapis/cloud/notebooks/v1beta1;no" + + "tebooks\252\002\036Google.Cloud.Notebooks.V1Beta1" + + "\312\002\036Google\\Cloud\\Notebooks\\V1beta1\352\002!Goog" + + "le::Cloud::Notebooks::V1beta1b\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.cloud.notebooks.v1beta1.EnvironmentProto.getDescriptor(), + com.google.cloud.notebooks.v1beta1.InstanceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_notebooks_v1beta1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_notebooks_v1beta1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusMessage", + "RequestedCancellation", + "ApiVersion", + "Endpoint", + }); + internal_static_google_cloud_notebooks_v1beta1_ListInstancesRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_notebooks_v1beta1_ListInstancesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_ListInstancesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_notebooks_v1beta1_ListInstancesResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_notebooks_v1beta1_ListInstancesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_ListInstancesResponse_descriptor, + new java.lang.String[] { + "Instances", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_notebooks_v1beta1_GetInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_notebooks_v1beta1_GetInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_GetInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_notebooks_v1beta1_CreateInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_notebooks_v1beta1_CreateInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_CreateInstanceRequest_descriptor, + new java.lang.String[] { + "Parent", "InstanceId", "Instance", + }); + internal_static_google_cloud_notebooks_v1beta1_RegisterInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_notebooks_v1beta1_RegisterInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_RegisterInstanceRequest_descriptor, + new java.lang.String[] { + "Parent", "InstanceId", + }); + internal_static_google_cloud_notebooks_v1beta1_SetInstanceAcceleratorRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_notebooks_v1beta1_SetInstanceAcceleratorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_SetInstanceAcceleratorRequest_descriptor, + new java.lang.String[] { + "Name", "Type", "CoreCount", + }); + internal_static_google_cloud_notebooks_v1beta1_SetInstanceMachineTypeRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_notebooks_v1beta1_SetInstanceMachineTypeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_SetInstanceMachineTypeRequest_descriptor, + new java.lang.String[] { + "Name", "MachineType", + }); + internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_descriptor, + new java.lang.String[] { + "Name", "Labels", + }); + internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_LabelsEntry_descriptor = + internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_notebooks_v1beta1_DeleteInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_notebooks_v1beta1_DeleteInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_DeleteInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_notebooks_v1beta1_StartInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_notebooks_v1beta1_StartInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_StartInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_notebooks_v1beta1_StopInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_notebooks_v1beta1_StopInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_StopInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_notebooks_v1beta1_ResetInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_notebooks_v1beta1_ResetInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_ResetInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_descriptor, + new java.lang.String[] { + "Name", "VmId", "Metadata", + }); + internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_MetadataEntry_descriptor = + internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_MetadataEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_MetadataEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableRequest_descriptor, + new java.lang.String[] { + "NotebookInstance", + }); + internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableResponse_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableResponse_descriptor, + new java.lang.String[] { + "Upgradeable", "UpgradeVersion", "UpgradeInfo", "UpgradeImage", + }); + internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceInternalRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceInternalRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceInternalRequest_descriptor, + new java.lang.String[] { + "Name", "VmId", + }); + internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsResponse_descriptor, + new java.lang.String[] { + "Environments", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_notebooks_v1beta1_GetEnvironmentRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_notebooks_v1beta1_GetEnvironmentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_GetEnvironmentRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_notebooks_v1beta1_CreateEnvironmentRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_notebooks_v1beta1_CreateEnvironmentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_CreateEnvironmentRequest_descriptor, + new java.lang.String[] { + "Parent", "EnvironmentId", "Environment", + }); + internal_static_google_cloud_notebooks_v1beta1_DeleteEnvironmentRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_notebooks_v1beta1_DeleteEnvironmentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_notebooks_v1beta1_DeleteEnvironmentRequest_descriptor, + new java.lang.String[] { + "Name", + }); + 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.oauthScopes); + 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.cloud.notebooks.v1beta1.EnvironmentProto.getDescriptor(); + com.google.cloud.notebooks.v1beta1.InstanceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/OperationMetadata.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/OperationMetadata.java similarity index 72% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/OperationMetadata.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/OperationMetadata.java index 1ebc89918d08..01d82f79537a 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/OperationMetadata.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; /** + * + * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1beta1.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -29,37 +47,41 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_OperationMetadata_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.OperationMetadata.class, com.google.cloud.notebooks.v1beta1.OperationMetadata.Builder.class); + com.google.cloud.notebooks.v1beta1.OperationMetadata.class, + com.google.cloud.notebooks.v1beta1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -67,11 +89,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ @java.lang.Override @@ -79,6 +104,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The time the operation was created.
    * 
@@ -93,11 +120,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -105,11 +135,14 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -117,6 +150,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The time the operation finished running.
    * 
@@ -131,11 +166,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; private volatile java.lang.Object target_; /** + * + * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3; + * * @return The target. */ @java.lang.Override @@ -144,29 +182,29 @@ public java.lang.String getTarget() { 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(); target_ = s; return s; } } /** + * + * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -177,11 +215,14 @@ public java.lang.String getTarget() { public static final int VERB_FIELD_NUMBER = 4; private volatile java.lang.Object verb_; /** + * + * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; + * * @return The verb. */ @java.lang.Override @@ -190,29 +231,29 @@ public java.lang.String getVerb() { 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(); verb_ = s; return s; } } /** + * + * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -223,11 +264,14 @@ public java.lang.String getVerb() { public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; private volatile java.lang.Object statusMessage_; /** + * + * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5; + * * @return The statusMessage. */ @java.lang.Override @@ -236,29 +280,29 @@ public java.lang.String getStatusMessage() { 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(); statusMessage_ = s; return s; } } /** + * + * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5; + * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -269,6 +313,8 @@ public java.lang.String getStatusMessage() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_; /** + * + * *
    * Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -277,6 +323,7 @@ public java.lang.String getStatusMessage() {
    * 
* * bool requested_cancellation = 6; + * * @return The requestedCancellation. */ @java.lang.Override @@ -287,11 +334,14 @@ public boolean getRequestedCancellation() { public static final int API_VERSION_FIELD_NUMBER = 7; private volatile java.lang.Object apiVersion_; /** + * + * *
    * API version used to start the operation.
    * 
* * string api_version = 7; + * * @return The apiVersion. */ @java.lang.Override @@ -300,29 +350,29 @@ public java.lang.String getApiVersion() { 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(); apiVersion_ = s; return s; } } /** + * + * *
    * API version used to start the operation.
    * 
* * string api_version = 7; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -333,11 +383,14 @@ public java.lang.String getApiVersion() { public static final int ENDPOINT_FIELD_NUMBER = 8; private volatile java.lang.Object endpoint_; /** + * + * *
    * API endpoint name of this operation.
    * 
* * string endpoint = 8; + * * @return The endpoint. */ @java.lang.Override @@ -346,29 +399,29 @@ public java.lang.String getEndpoint() { 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(); endpoint_ = s; return s; } } /** + * + * *
    * API endpoint name of this operation.
    * 
* * string endpoint = 8; + * * @return The bytes for endpoint. */ @java.lang.Override - public com.google.protobuf.ByteString - getEndpointBytes() { + public com.google.protobuf.ByteString getEndpointBytes() { java.lang.Object ref = endpoint_; 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); endpoint_ = b; return b; } else { @@ -377,6 +430,7 @@ public java.lang.String getEndpoint() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -388,8 +442,7 @@ 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 (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -424,12 +477,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -441,8 +492,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); @@ -458,35 +508,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.cloud.notebooks.v1beta1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.notebooks.v1beta1.OperationMetadata other = (com.google.cloud.notebooks.v1beta1.OperationMetadata) obj; + com.google.cloud.notebooks.v1beta1.OperationMetadata other = + (com.google.cloud.notebooks.v1beta1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getStatusMessage() - .equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() - != other.getRequestedCancellation()) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; - if (!getEndpoint() - .equals(other.getEndpoint())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() != other.getRequestedCancellation()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getEndpoint().equals(other.getEndpoint())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -513,8 +556,7 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); hash = (37 * hash) + ENDPOINT_FIELD_NUMBER; @@ -525,129 +567,135 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1beta1.OperationMetadata 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.cloud.notebooks.v1beta1.OperationMetadata 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.cloud.notebooks.v1beta1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1beta1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.OperationMetadata 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.cloud.notebooks.v1beta1.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.OperationMetadata 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.cloud.notebooks.v1beta1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.OperationMetadata 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.cloud.notebooks.v1beta1.OperationMetadata 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.cloud.notebooks.v1beta1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + 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.cloud.notebooks.v1beta1.OperationMetadata 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; } /** + * + * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1beta1.OperationMetadata) com.google.cloud.notebooks.v1beta1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_OperationMetadata_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.OperationMetadata.class, com.google.cloud.notebooks.v1beta1.OperationMetadata.Builder.class); + com.google.cloud.notebooks.v1beta1.OperationMetadata.class, + com.google.cloud.notebooks.v1beta1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.notebooks.v1beta1.OperationMetadata.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -679,9 +727,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_OperationMetadata_descriptor; } @java.lang.Override @@ -700,7 +748,8 @@ public com.google.cloud.notebooks.v1beta1.OperationMetadata build() { @java.lang.Override public com.google.cloud.notebooks.v1beta1.OperationMetadata buildPartial() { - com.google.cloud.notebooks.v1beta1.OperationMetadata result = new com.google.cloud.notebooks.v1beta1.OperationMetadata(this); + com.google.cloud.notebooks.v1beta1.OperationMetadata result = + new com.google.cloud.notebooks.v1beta1.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -725,38 +774,39 @@ public com.google.cloud.notebooks.v1beta1.OperationMetadata buildPartial() { 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.cloud.notebooks.v1beta1.OperationMetadata) { - return mergeFrom((com.google.cloud.notebooks.v1beta1.OperationMetadata)other); + return mergeFrom((com.google.cloud.notebooks.v1beta1.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -764,7 +814,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.OperationMetadata other) { - if (other == com.google.cloud.notebooks.v1beta1.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1beta1.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -820,56 +871,61 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 18 - case 26: { - target_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: { - verb_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: { - statusMessage_ = input.readStringRequireUtf8(); - - break; - } // case 42 - case 48: { - requestedCancellation_ = input.readBool(); - - break; - } // case 48 - case 58: { - apiVersion_ = input.readStringRequireUtf8(); - - break; - } // case 58 - case 66: { - endpoint_ = input.readStringRequireUtf8(); - - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + statusMessage_ = input.readStringRequireUtf8(); + + break; + } // case 42 + case 48: + { + requestedCancellation_ = input.readBool(); + + break; + } // case 48 + case 58: + { + apiVersion_ = input.readStringRequireUtf8(); + + break; + } // case 58 + case 66: + { + endpoint_ = input.readStringRequireUtf8(); + + 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) { @@ -882,34 +938,47 @@ public Builder mergeFrom( 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_; /** + * + * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; + * * @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(); } } /** + * + * *
      * The time the operation was created.
      * 
@@ -930,14 +999,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation was created.
      * 
* * .google.protobuf.Timestamp create_time = 1; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -948,6 +1018,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -958,7 +1030,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -970,6 +1042,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -988,6 +1062,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The time the operation was created.
      * 
@@ -995,11 +1071,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 1; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time the operation was created.
      * 
@@ -1010,11 +1088,14 @@ 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_; } } /** + * + * *
      * The time the operation was created.
      * 
@@ -1022,14 +1103,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 1; */ 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_; @@ -1037,24 +1121,33 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { 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_; /** + * + * *
      * The time the operation finished running.
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * The time the operation finished running.
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1065,6 +1158,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The time the operation finished running.
      * 
@@ -1085,14 +1180,15 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation finished running.
      * 
* * .google.protobuf.Timestamp end_time = 2; */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1103,6 +1199,8 @@ public Builder setEndTime( return this; } /** + * + * *
      * The time the operation finished running.
      * 
@@ -1113,7 +1211,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1125,6 +1223,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time the operation finished running.
      * 
@@ -1143,6 +1243,8 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * The time the operation finished running.
      * 
@@ -1150,11 +1252,13 @@ public Builder clearEndTime() { * .google.protobuf.Timestamp end_time = 2; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time the operation finished running.
      * 
@@ -1165,11 +1269,12 @@ 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_; } } /** + * + * *
      * The time the operation finished running.
      * 
@@ -1177,14 +1282,17 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * .google.protobuf.Timestamp end_time = 2; */ 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_; @@ -1192,18 +1300,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1212,20 +1322,21 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1233,54 +1344,61 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { + public Builder setTarget(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; onChanged(); return this; } /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; + * * @return This builder for chaining. */ public Builder clearTarget() { - + target_ = getDefaultInstance().getTarget(); onChanged(); return this; } /** + * + * *
      * Server-defined resource path for the target of the operation.
      * 
* * string target = 3; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1288,18 +1406,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1308,20 +1428,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1329,54 +1450,61 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { + public Builder setVerb(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; onChanged(); return this; } /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @return This builder for chaining. */ public Builder clearVerb() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); return this; } /** + * + * *
      * Name of the verb executed by the operation.
      * 
* * string verb = 4; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { + public Builder setVerbBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1384,18 +1512,20 @@ public Builder setVerbBytes( private java.lang.Object statusMessage_ = ""; /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5; + * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1404,20 +1534,21 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5; + * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1425,61 +1556,70 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5; + * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage( - java.lang.String value) { + public Builder setStatusMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusMessage_ = value; onChanged(); return this; } /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5; + * * @return This builder for chaining. */ public Builder clearStatusMessage() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } /** + * + * *
      * Human-readable status of the operation, if any.
      * 
* * string status_message = 5; + * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; onChanged(); return this; } - private boolean requestedCancellation_ ; + private boolean requestedCancellation_; /** + * + * *
      * Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1488,6 +1628,7 @@ public Builder setStatusMessageBytes(
      * 
* * bool requested_cancellation = 6; + * * @return The requestedCancellation. */ @java.lang.Override @@ -1495,6 +1636,8 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** + * + * *
      * Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1503,16 +1646,19 @@ public boolean getRequestedCancellation() {
      * 
* * bool requested_cancellation = 6; + * * @param value The requestedCancellation to set. * @return This builder for chaining. */ public Builder setRequestedCancellation(boolean value) { - + requestedCancellation_ = value; onChanged(); return this; } /** + * + * *
      * Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1521,10 +1667,11 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6; + * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { - + requestedCancellation_ = false; onChanged(); return this; @@ -1532,18 +1679,20 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * API version used to start the operation.
      * 
* * string api_version = 7; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1552,20 +1701,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * API version used to start the operation.
      * 
* * string api_version = 7; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1573,54 +1723,61 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * API version used to start the operation.
      * 
* * string api_version = 7; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { + public Builder setApiVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; onChanged(); return this; } /** + * + * *
      * API version used to start the operation.
      * 
* * string api_version = 7; + * * @return This builder for chaining. */ public Builder clearApiVersion() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); return this; } /** + * + * *
      * API version used to start the operation.
      * 
* * string api_version = 7; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; @@ -1628,18 +1785,20 @@ public Builder setApiVersionBytes( private java.lang.Object endpoint_ = ""; /** + * + * *
      * API endpoint name of this operation.
      * 
* * string endpoint = 8; + * * @return The endpoint. */ public java.lang.String getEndpoint() { java.lang.Object ref = endpoint_; 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(); endpoint_ = s; return s; @@ -1648,20 +1807,21 @@ public java.lang.String getEndpoint() { } } /** + * + * *
      * API endpoint name of this operation.
      * 
* * string endpoint = 8; + * * @return The bytes for endpoint. */ - public com.google.protobuf.ByteString - getEndpointBytes() { + public com.google.protobuf.ByteString getEndpointBytes() { java.lang.Object ref = endpoint_; 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); endpoint_ = b; return b; } else { @@ -1669,61 +1829,68 @@ public java.lang.String getEndpoint() { } } /** + * + * *
      * API endpoint name of this operation.
      * 
* * string endpoint = 8; + * * @param value The endpoint to set. * @return This builder for chaining. */ - public Builder setEndpoint( - java.lang.String value) { + public Builder setEndpoint(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + endpoint_ = value; onChanged(); return this; } /** + * + * *
      * API endpoint name of this operation.
      * 
* * string endpoint = 8; + * * @return This builder for chaining. */ public Builder clearEndpoint() { - + endpoint_ = getDefaultInstance().getEndpoint(); onChanged(); return this; } /** + * + * *
      * API endpoint name of this operation.
      * 
* * string endpoint = 8; + * * @param value The bytes for endpoint to set. * @return This builder for chaining. */ - public Builder setEndpointBytes( - com.google.protobuf.ByteString value) { + public Builder setEndpointBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + endpoint_ = 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); } @@ -1733,12 +1900,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1beta1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1beta1.OperationMetadata) private static final com.google.cloud.notebooks.v1beta1.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1beta1.OperationMetadata(); } @@ -1747,27 +1914,27 @@ public static com.google.cloud.notebooks.v1beta1.OperationMetadata getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -1782,6 +1949,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1beta1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/OperationMetadataOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/OperationMetadataOrBuilder.java similarity index 76% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/OperationMetadataOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/OperationMetadataOrBuilder.java index 714adb4a2f08..a7607817fa6f 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/OperationMetadataOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/OperationMetadataOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1beta1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The time the operation was created.
    * 
* * .google.protobuf.Timestamp create_time = 1; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The time the operation was created.
    * 
@@ -35,24 +59,32 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * The time the operation finished running.
    * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * The time the operation finished running.
    * 
@@ -62,66 +94,83 @@ public interface OperationMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Server-defined resource path for the target of the operation.
    * 
* * string target = 3; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Name of the verb executed by the operation.
    * 
* * string verb = 4; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5; + * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** + * + * *
    * Human-readable status of the operation, if any.
    * 
* * string status_message = 5; + * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString - getStatusMessageBytes(); + com.google.protobuf.ByteString getStatusMessageBytes(); /** + * + * *
    * Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -130,47 +179,58 @@ public interface OperationMetadataOrBuilder extends
    * 
* * bool requested_cancellation = 6; + * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** + * + * *
    * API version used to start the operation.
    * 
* * string api_version = 7; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * API version used to start the operation.
    * 
* * string api_version = 7; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); /** + * + * *
    * API endpoint name of this operation.
    * 
* * string endpoint = 8; + * * @return The endpoint. */ java.lang.String getEndpoint(); /** + * + * *
    * API endpoint name of this operation.
    * 
* * string endpoint = 8; + * * @return The bytes for endpoint. */ - com.google.protobuf.ByteString - getEndpointBytes(); + com.google.protobuf.ByteString getEndpointBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/RegisterInstanceRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/RegisterInstanceRequest.java similarity index 69% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/RegisterInstanceRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/RegisterInstanceRequest.java index e3dc53453a04..9181a9d6dc10 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/RegisterInstanceRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/RegisterInstanceRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; /** + * + * *
  * Request for registering a notebook instance.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.RegisterInstanceRequest} */ -public final class RegisterInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RegisterInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1beta1.RegisterInstanceRequest) RegisterInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RegisterInstanceRequest.newBuilder() to construct. private RegisterInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RegisterInstanceRequest() { parent_ = ""; instanceId_ = ""; @@ -26,38 +44,42 @@ private RegisterInstanceRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RegisterInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_RegisterInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_RegisterInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_RegisterInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_RegisterInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest.class, com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest.class, + com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -66,30 +88,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; } } /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -100,6 +122,8 @@ public java.lang.String getParent() { public static final int INSTANCE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object instanceId_; /** + * + * *
    * Required. User defined unique ID of this instance. The `instance_id` must
    * be 1 to 63 characters long and contain only lowercase letters,
@@ -108,6 +132,7 @@ public java.lang.String getParent() {
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The instanceId. */ @java.lang.Override @@ -116,14 +141,15 @@ 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; } } /** + * + * *
    * Required. User defined unique ID of this instance. The `instance_id` must
    * be 1 to 63 characters long and contain only lowercase letters,
@@ -132,16 +158,15 @@ public java.lang.String getInstanceId() {
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -150,6 +175,7 @@ public java.lang.String getInstanceId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,8 +187,7 @@ 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_); } @@ -192,17 +217,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.cloud.notebooks.v1beta1.RegisterInstanceRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest other = (com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest) obj; + com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest other = + (com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -224,129 +248,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest 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.cloud.notebooks.v1beta1.RegisterInstanceRequest 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.cloud.notebooks.v1beta1.RegisterInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest 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.cloud.notebooks.v1beta1.RegisterInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest 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.cloud.notebooks.v1beta1.RegisterInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest 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.cloud.notebooks.v1beta1.RegisterInstanceRequest 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.cloud.notebooks.v1beta1.RegisterInstanceRequest 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.cloud.notebooks.v1beta1.RegisterInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest 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; } /** + * + * *
    * Request for registering a notebook instance.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.RegisterInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1beta1.RegisterInstanceRequest) com.google.cloud.notebooks.v1beta1.RegisterInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_RegisterInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_RegisterInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_RegisterInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_RegisterInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest.class, com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest.class, + com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -358,9 +389,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_RegisterInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_RegisterInstanceRequest_descriptor; } @java.lang.Override @@ -379,7 +410,8 @@ public com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest buildPartial() { - com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest result = new com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest(this); + com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest result = + new com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest(this); result.parent_ = parent_; result.instanceId_ = instanceId_; onBuilt(); @@ -390,38 +422,39 @@ public com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest buildPartial() 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.cloud.notebooks.v1beta1.RegisterInstanceRequest) { - return mergeFrom((com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -429,7 +462,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest other) { - if (other == com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -464,22 +498,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - instanceId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + instanceId_ = input.readStringRequireUtf8(); + + 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) { @@ -492,19 +529,21 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -513,21 +552,22 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -535,57 +575,64 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `parent=projects/{project_id}/locations/{location}`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -593,6 +640,8 @@ public Builder setParentBytes( private java.lang.Object instanceId_ = ""; /** + * + * *
      * Required. User defined unique ID of this instance. The `instance_id` must
      * be 1 to 63 characters long and contain only lowercase letters,
@@ -601,13 +650,13 @@ public Builder setParentBytes(
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -616,6 +665,8 @@ public java.lang.String getInstanceId() { } } /** + * + * *
      * Required. User defined unique ID of this instance. The `instance_id` must
      * be 1 to 63 characters long and contain only lowercase letters,
@@ -624,15 +675,14 @@ public java.lang.String getInstanceId() {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -640,6 +690,8 @@ public java.lang.String getInstanceId() { } } /** + * + * *
      * Required. User defined unique ID of this instance. The `instance_id` must
      * be 1 to 63 characters long and contain only lowercase letters,
@@ -648,20 +700,22 @@ public java.lang.String getInstanceId() {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceId( - java.lang.String value) { + public Builder setInstanceId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instanceId_ = value; onChanged(); return this; } /** + * + * *
      * Required. User defined unique ID of this instance. The `instance_id` must
      * be 1 to 63 characters long and contain only lowercase letters,
@@ -670,15 +724,18 @@ public Builder setInstanceId(
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearInstanceId() { - + instanceId_ = getDefaultInstance().getInstanceId(); onChanged(); return this; } /** + * + * *
      * Required. User defined unique ID of this instance. The `instance_id` must
      * be 1 to 63 characters long and contain only lowercase letters,
@@ -687,23 +744,23 @@ public Builder clearInstanceId() {
      * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for instanceId to set. * @return This builder for chaining. */ - public Builder setInstanceIdBytes( - com.google.protobuf.ByteString value) { + public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceId_ = 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); } @@ -713,12 +770,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1beta1.RegisterInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1beta1.RegisterInstanceRequest) private static final com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest(); } @@ -727,27 +784,27 @@ public static com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RegisterInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RegisterInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -762,6 +819,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/RegisterInstanceRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/RegisterInstanceRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/RegisterInstanceRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/RegisterInstanceRequestOrBuilder.java index 6138c67c6038..04b0f4ccf389 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/RegisterInstanceRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/RegisterInstanceRequestOrBuilder.java @@ -1,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; -public interface RegisterInstanceRequestOrBuilder extends +public interface RegisterInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1beta1.RegisterInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Format:
    * `parent=projects/{project_id}/locations/{location}`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. User defined unique ID of this instance. The `instance_id` must
    * be 1 to 63 characters long and contain only lowercase letters,
@@ -38,10 +61,13 @@ public interface RegisterInstanceRequestOrBuilder extends
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The instanceId. */ java.lang.String getInstanceId(); /** + * + * *
    * Required. User defined unique ID of this instance. The `instance_id` must
    * be 1 to 63 characters long and contain only lowercase letters,
@@ -50,8 +76,8 @@ public interface RegisterInstanceRequestOrBuilder extends
    * 
* * string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for instanceId. */ - com.google.protobuf.ByteString - getInstanceIdBytes(); + com.google.protobuf.ByteString getInstanceIdBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ReportInstanceInfoRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ReportInstanceInfoRequest.java similarity index 63% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ReportInstanceInfoRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ReportInstanceInfoRequest.java index e10aba3e0685..23ed551b438b 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ReportInstanceInfoRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ReportInstanceInfoRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; /** + * + * *
  * Request for notebook instances to report information to Notebooks API.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest} */ -public final class ReportInstanceInfoRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ReportInstanceInfoRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest) ReportInstanceInfoRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReportInstanceInfoRequest.newBuilder() to construct. private ReportInstanceInfoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ReportInstanceInfoRequest() { name_ = ""; vmId_ = ""; @@ -26,50 +44,53 @@ private ReportInstanceInfoRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReportInstanceInfoRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_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 3: return internalGetMetadata(); 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.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest.class, com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest.class, + com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -78,30 +99,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -112,12 +133,15 @@ public java.lang.String getName() { public static final int VM_ID_FIELD_NUMBER = 2; private volatile java.lang.Object vmId_; /** + * + * *
    * Required. The VM hardware token for authenticating the VM.
    * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
    * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vmId. */ @java.lang.Override @@ -126,30 +150,30 @@ public java.lang.String getVmId() { 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(); vmId_ = s; return s; } } /** + * + * *
    * Required. The VM hardware token for authenticating the VM.
    * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
    * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vmId. */ @java.lang.Override - public com.google.protobuf.ByteString - getVmIdBytes() { + public com.google.protobuf.ByteString getVmIdBytes() { java.lang.Object ref = vmId_; 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); vmId_ = b; return b; } else { @@ -158,24 +182,23 @@ public java.lang.String getVmId() { } public static final int METADATA_FIELD_NUMBER = 3; + private static final class MetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_MetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> metadata_; - private com.google.protobuf.MapField - internalGetMetadata() { + + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } @@ -184,6 +207,8 @@ public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** + * + * *
    * The metadata reported to Notebooks API. This will be merged to the instance
    * metadata store
@@ -191,22 +216,22 @@ public int getMetadataCount() {
    *
    * map<string, string> metadata = 3;
    */
-
   @java.lang.Override
-  public boolean containsMetadata(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsMetadata(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetMetadata().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getMetadataMap()} instead.
-   */
+  /** Use {@link #getMetadataMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getMetadata() {
     return getMetadataMap();
   }
   /**
+   *
+   *
    * 
    * The metadata reported to Notebooks API. This will be merged to the instance
    * metadata store
@@ -215,11 +240,12 @@ public java.util.Map getMetadata() {
    * map<string, string> metadata = 3;
    */
   @java.lang.Override
-
   public java.util.Map getMetadataMap() {
     return internalGetMetadata().getMap();
   }
   /**
+   *
+   *
    * 
    * The metadata reported to Notebooks API. This will be merged to the instance
    * metadata store
@@ -228,16 +254,17 @@ public java.util.Map getMetadataMap() {
    * map<string, string> metadata = 3;
    */
   @java.lang.Override
-
   public java.lang.String getMetadataOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetMetadata().getMap();
+      java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetMetadata().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * The metadata reported to Notebooks API. This will be merged to the instance
    * metadata store
@@ -246,12 +273,11 @@ public java.lang.String getMetadataOrDefault(
    * map<string, string> metadata = 3;
    */
   @java.lang.Override
-
-  public java.lang.String getMetadataOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetMetadata().getMap();
+  public java.lang.String getMetadataOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetMetadata().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -259,6 +285,7 @@ public java.lang.String getMetadataOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -270,20 +297,15 @@ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmId_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 2, vmId_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetMetadata(),
-        MetadataDefaultEntryHolder.defaultEntry,
-        3);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 3);
     getUnknownFields().writeTo(output);
   }
 
@@ -299,15 +321,15 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmId_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vmId_);
     }
-    for (java.util.Map.Entry entry
-         : internalGetMetadata().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(3, metadata__);
+    for (java.util.Map.Entry entry :
+        internalGetMetadata().getMap().entrySet()) {
+      com.google.protobuf.MapEntry metadata__ =
+          MetadataDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, metadata__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -317,19 +339,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.cloud.notebooks.v1beta1.ReportInstanceInfoRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest other = (com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest) obj;
+    com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest other =
+        (com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (!getVmId()
-        .equals(other.getVmId())) return false;
-    if (!internalGetMetadata().equals(
-        other.internalGetMetadata())) return false;
+    if (!getName().equals(other.getName())) return false;
+    if (!getVmId().equals(other.getVmId())) return false;
+    if (!internalGetMetadata().equals(other.internalGetMetadata())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -355,151 +375,156 @@ public int hashCode() {
   }
 
   public static com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest 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.cloud.notebooks.v1beta1.ReportInstanceInfoRequest 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.cloud.notebooks.v1beta1.ReportInstanceInfoRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest 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.cloud.notebooks.v1beta1.ReportInstanceInfoRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest 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.cloud.notebooks.v1beta1.ReportInstanceInfoRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest 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.cloud.notebooks.v1beta1.ReportInstanceInfoRequest 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.cloud.notebooks.v1beta1.ReportInstanceInfoRequest 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.cloud.notebooks.v1beta1.ReportInstanceInfoRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest 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;
   }
   /**
+   *
+   *
    * 
    * Request for notebook instances to report information to Notebooks API.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest) com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetMetadata(); 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 3: return internalGetMutableMetadata(); 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.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest.class, com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest.class, + com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -512,13 +537,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_descriptor; } @java.lang.Override - public com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest getDefaultInstanceForType() { + public com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest + getDefaultInstanceForType() { return com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest.getDefaultInstance(); } @@ -533,7 +559,8 @@ public com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest buildPartial() { - com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest result = new com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest(this); + com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest result = + new com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.vmId_ = vmId_; @@ -547,38 +574,39 @@ public com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest buildPartial 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.cloud.notebooks.v1beta1.ReportInstanceInfoRequest) { - return mergeFrom((com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest) other); } else { super.mergeFrom(other); return this; @@ -586,7 +614,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest other) { - if (other == com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -595,8 +625,7 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRe vmId_ = other.vmId_; onChanged(); } - internalGetMutableMetadata().mergeFrom( - other.internalGetMetadata()); + internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -623,30 +652,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - vmId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: { - com.google.protobuf.MapEntry - metadata__ = input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableMetadata().getMutableMap().put( - metadata__.getKey(), metadata__.getValue()); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + vmId_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + com.google.protobuf.MapEntry metadata__ = + input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableMetadata() + .getMutableMap() + .put(metadata__.getKey(), metadata__.getValue()); + 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) { @@ -656,23 +691,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -681,21 +719,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -703,57 +742,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -761,19 +807,21 @@ public Builder setNameBytes( private java.lang.Object vmId_ = ""; /** + * + * *
      * Required. The VM hardware token for authenticating the VM.
      * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
      * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vmId. */ public java.lang.String getVmId() { java.lang.Object ref = vmId_; 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(); vmId_ = s; return s; @@ -782,21 +830,22 @@ public java.lang.String getVmId() { } } /** + * + * *
      * Required. The VM hardware token for authenticating the VM.
      * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
      * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vmId. */ - public com.google.protobuf.ByteString - getVmIdBytes() { + public com.google.protobuf.ByteString getVmIdBytes() { java.lang.Object ref = vmId_; 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); vmId_ = b; return b; } else { @@ -804,78 +853,85 @@ public java.lang.String getVmId() { } } /** + * + * *
      * Required. The VM hardware token for authenticating the VM.
      * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
      * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The vmId to set. * @return This builder for chaining. */ - public Builder setVmId( - java.lang.String value) { + public Builder setVmId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vmId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The VM hardware token for authenticating the VM.
      * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
      * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearVmId() { - + vmId_ = getDefaultInstance().getVmId(); onChanged(); return this; } /** + * + * *
      * Required. The VM hardware token for authenticating the VM.
      * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
      * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for vmId to set. * @return This builder for chaining. */ - public Builder setVmIdBytes( - com.google.protobuf.ByteString value) { + public Builder setVmIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vmId_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> metadata_; - private com.google.protobuf.MapField - internalGetMetadata() { + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } + private com.google.protobuf.MapField - internalGetMutableMetadata() { - onChanged();; + internalGetMutableMetadata() { + onChanged(); + ; if (metadata_ == null) { - metadata_ = com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); + metadata_ = + com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry); } if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); @@ -887,6 +943,8 @@ public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** + * + * *
      * The metadata reported to Notebooks API. This will be merged to the instance
      * metadata store
@@ -894,22 +952,22 @@ public int getMetadataCount() {
      *
      * map<string, string> metadata = 3;
      */
-
     @java.lang.Override
-    public boolean containsMetadata(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsMetadata(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetMetadata().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getMetadataMap()} instead.
-     */
+    /** Use {@link #getMetadataMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getMetadata() {
       return getMetadataMap();
     }
     /**
+     *
+     *
      * 
      * The metadata reported to Notebooks API. This will be merged to the instance
      * metadata store
@@ -918,11 +976,12 @@ public java.util.Map getMetadata() {
      * map<string, string> metadata = 3;
      */
     @java.lang.Override
-
     public java.util.Map getMetadataMap() {
       return internalGetMetadata().getMap();
     }
     /**
+     *
+     *
      * 
      * The metadata reported to Notebooks API. This will be merged to the instance
      * metadata store
@@ -931,16 +990,17 @@ public java.util.Map getMetadataMap() {
      * map<string, string> metadata = 3;
      */
     @java.lang.Override
-
     public java.lang.String getMetadataOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetMetadata().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetMetadata().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * The metadata reported to Notebooks API. This will be merged to the instance
      * metadata store
@@ -949,12 +1009,11 @@ public java.lang.String getMetadataOrDefault(
      * map<string, string> metadata = 3;
      */
     @java.lang.Override
-
-    public java.lang.String getMetadataOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetMetadata().getMap();
+    public java.lang.String getMetadataOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetMetadata().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -962,11 +1021,12 @@ public java.lang.String getMetadataOrThrow(
     }
 
     public Builder clearMetadata() {
-      internalGetMutableMetadata().getMutableMap()
-          .clear();
+      internalGetMutableMetadata().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * The metadata reported to Notebooks API. This will be merged to the instance
      * metadata store
@@ -974,23 +1034,21 @@ public Builder clearMetadata() {
      *
      * map<string, string> metadata = 3;
      */
-
-    public Builder removeMetadata(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableMetadata().getMutableMap()
-          .remove(key);
+    public Builder removeMetadata(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableMetadata().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableMetadata() {
+    public java.util.Map getMutableMetadata() {
       return internalGetMutableMetadata().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * The metadata reported to Notebooks API. This will be merged to the instance
      * metadata store
@@ -998,19 +1056,20 @@ public Builder removeMetadata(
      *
      * map<string, string> metadata = 3;
      */
-    public Builder putMetadata(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putMetadata(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       if (value == null) {
-  throw new NullPointerException("map value");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableMetadata().getMutableMap()
-          .put(key, value);
+      internalGetMutableMetadata().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * The metadata reported to Notebooks API. This will be merged to the instance
      * metadata store
@@ -1018,16 +1077,13 @@ public Builder putMetadata(
      *
      * map<string, string> metadata = 3;
      */
-
-    public Builder putAllMetadata(
-        java.util.Map values) {
-      internalGetMutableMetadata().getMutableMap()
-          .putAll(values);
+    public Builder putAllMetadata(java.util.Map values) {
+      internalGetMutableMetadata().getMutableMap().putAll(values);
       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);
     }
 
@@ -1037,12 +1093,13 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest)
-  private static final com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest DEFAULT_INSTANCE;
+  private static final com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest();
   }
@@ -1051,27 +1108,27 @@ public static com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ReportInstanceInfoRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        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 PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ReportInstanceInfoRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            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 parser() {
     return PARSER;
@@ -1086,6 +1143,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ReportInstanceInfoRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ReportInstanceInfoRequestOrBuilder.java
similarity index 67%
rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ReportInstanceInfoRequestOrBuilder.java
rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ReportInstanceInfoRequestOrBuilder.java
index 6b9e988890f6..8a2f546c976c 100644
--- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ReportInstanceInfoRequestOrBuilder.java
+++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ReportInstanceInfoRequestOrBuilder.java
@@ -1,57 +1,85 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/notebooks/v1beta1/service.proto
 
 package com.google.cloud.notebooks.v1beta1;
 
-public interface ReportInstanceInfoRequestOrBuilder extends
+public interface ReportInstanceInfoRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The VM hardware token for authenticating the VM.
    * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
    * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vmId. */ java.lang.String getVmId(); /** + * + * *
    * Required. The VM hardware token for authenticating the VM.
    * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
    * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vmId. */ - com.google.protobuf.ByteString - getVmIdBytes(); + com.google.protobuf.ByteString getVmIdBytes(); /** + * + * *
    * The metadata reported to Notebooks API. This will be merged to the instance
    * metadata store
@@ -61,6 +89,8 @@ public interface ReportInstanceInfoRequestOrBuilder extends
    */
   int getMetadataCount();
   /**
+   *
+   *
    * 
    * The metadata reported to Notebooks API. This will be merged to the instance
    * metadata store
@@ -68,15 +98,13 @@ public interface ReportInstanceInfoRequestOrBuilder extends
    *
    * map<string, string> metadata = 3;
    */
-  boolean containsMetadata(
-      java.lang.String key);
-  /**
-   * Use {@link #getMetadataMap()} instead.
-   */
+  boolean containsMetadata(java.lang.String key);
+  /** Use {@link #getMetadataMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getMetadata();
+  java.util.Map getMetadata();
   /**
+   *
+   *
    * 
    * The metadata reported to Notebooks API. This will be merged to the instance
    * metadata store
@@ -84,9 +112,10 @@ boolean containsMetadata(
    *
    * map<string, string> metadata = 3;
    */
-  java.util.Map
-  getMetadataMap();
+  java.util.Map getMetadataMap();
   /**
+   *
+   *
    * 
    * The metadata reported to Notebooks API. This will be merged to the instance
    * metadata store
@@ -96,11 +125,13 @@ boolean containsMetadata(
    */
 
   /* nullable */
-java.lang.String getMetadataOrDefault(
+  java.lang.String getMetadataOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * The metadata reported to Notebooks API. This will be merged to the instance
    * metadata store
@@ -108,7 +139,5 @@ java.lang.String getMetadataOrDefault(
    *
    * map<string, string> metadata = 3;
    */
-
-  java.lang.String getMetadataOrThrow(
-      java.lang.String key);
+  java.lang.String getMetadataOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ReservationAffinity.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ReservationAffinity.java
similarity index 67%
rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ReservationAffinity.java
rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ReservationAffinity.java
index 4eb09b57e9fc..12c1e8a36c54 100644
--- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ReservationAffinity.java
+++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ReservationAffinity.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/notebooks/v1beta1/instance.proto
 
 package com.google.cloud.notebooks.v1beta1;
 
 /**
+ *
+ *
  * 
  * Reservation Affinity for consuming Zonal reservation.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.ReservationAffinity} */ -public final class ReservationAffinity extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ReservationAffinity extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1beta1.ReservationAffinity) ReservationAffinityOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ReservationAffinity.newBuilder() to construct. private ReservationAffinity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ReservationAffinity() { consumeReservationType_ = 0; key_ = ""; @@ -27,39 +45,43 @@ private ReservationAffinity() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ReservationAffinity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.InstanceProto.internal_static_google_cloud_notebooks_v1beta1_ReservationAffinity_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.InstanceProto + .internal_static_google_cloud_notebooks_v1beta1_ReservationAffinity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.InstanceProto.internal_static_google_cloud_notebooks_v1beta1_ReservationAffinity_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.InstanceProto + .internal_static_google_cloud_notebooks_v1beta1_ReservationAffinity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.ReservationAffinity.class, com.google.cloud.notebooks.v1beta1.ReservationAffinity.Builder.class); + com.google.cloud.notebooks.v1beta1.ReservationAffinity.class, + com.google.cloud.notebooks.v1beta1.ReservationAffinity.Builder.class); } /** + * + * *
    * Indicates whether to consume capacity from an reservation or not.
    * 
* * Protobuf enum {@code google.cloud.notebooks.v1beta1.ReservationAffinity.Type} */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { + public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default type.
      * 
@@ -68,6 +90,8 @@ public enum Type */ TYPE_UNSPECIFIED(0), /** + * + * *
      * Do not consume from any allocated capacity.
      * 
@@ -76,6 +100,8 @@ public enum Type */ NO_RESERVATION(1), /** + * + * *
      * Consume any reservation available.
      * 
@@ -84,6 +110,8 @@ public enum Type */ ANY_RESERVATION(2), /** + * + * *
      * Must consume from a specific reservation. Must specify key value fields
      * for specifying the reservations.
@@ -96,6 +124,8 @@ public enum Type
     ;
 
     /**
+     *
+     *
      * 
      * Default type.
      * 
@@ -104,6 +134,8 @@ public enum Type */ public static final int TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Do not consume from any allocated capacity.
      * 
@@ -112,6 +144,8 @@ public enum Type */ public static final int NO_RESERVATION_VALUE = 1; /** + * + * *
      * Consume any reservation available.
      * 
@@ -120,6 +154,8 @@ public enum Type */ public static final int ANY_RESERVATION_VALUE = 2; /** + * + * *
      * Must consume from a specific reservation. Must specify key value fields
      * for specifying the reservations.
@@ -129,7 +165,6 @@ public enum Type
      */
     public static final int SPECIFIC_RESERVATION_VALUE = 3;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -154,50 +189,53 @@ public static Type valueOf(int value) {
      */
     public static Type forNumber(int value) {
       switch (value) {
-        case 0: return TYPE_UNSPECIFIED;
-        case 1: return NO_RESERVATION;
-        case 2: return ANY_RESERVATION;
-        case 3: return SPECIFIC_RESERVATION;
-        default: return null;
+        case 0:
+          return TYPE_UNSPECIFIED;
+        case 1:
+          return NO_RESERVATION;
+        case 2:
+          return ANY_RESERVATION;
+        case 3:
+          return SPECIFIC_RESERVATION;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        Type> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            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 internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          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.cloud.notebooks.v1beta1.ReservationAffinity.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.notebooks.v1beta1.ReservationAffinity.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;
@@ -217,38 +255,57 @@ private Type(int value) {
   public static final int CONSUME_RESERVATION_TYPE_FIELD_NUMBER = 1;
   private int consumeReservationType_;
   /**
+   *
+   *
    * 
    * Optional. Type of reservation to consume
    * 
* - * .google.cloud.notebooks.v1beta1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for consumeReservationType. */ - @java.lang.Override public int getConsumeReservationTypeValue() { + @java.lang.Override + public int getConsumeReservationTypeValue() { return consumeReservationType_; } /** + * + * *
    * Optional. Type of reservation to consume
    * 
* - * .google.cloud.notebooks.v1beta1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The consumeReservationType. */ - @java.lang.Override public com.google.cloud.notebooks.v1beta1.ReservationAffinity.Type getConsumeReservationType() { + @java.lang.Override + public com.google.cloud.notebooks.v1beta1.ReservationAffinity.Type getConsumeReservationType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1beta1.ReservationAffinity.Type result = com.google.cloud.notebooks.v1beta1.ReservationAffinity.Type.valueOf(consumeReservationType_); - return result == null ? com.google.cloud.notebooks.v1beta1.ReservationAffinity.Type.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1beta1.ReservationAffinity.Type result = + com.google.cloud.notebooks.v1beta1.ReservationAffinity.Type.valueOf( + consumeReservationType_); + return result == null + ? com.google.cloud.notebooks.v1beta1.ReservationAffinity.Type.UNRECOGNIZED + : result; } public static final int KEY_FIELD_NUMBER = 2; private volatile java.lang.Object key_; /** + * + * *
    * Optional. Corresponds to the label key of reservation resource.
    * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The key. */ @java.lang.Override @@ -257,29 +314,29 @@ public java.lang.String getKey() { 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(); key_ = s; return s; } } /** + * + * *
    * Optional. Corresponds to the label key of reservation resource.
    * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; 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); key_ = b; return b; } else { @@ -290,34 +347,42 @@ public java.lang.String getKey() { public static final int VALUES_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList values_; /** + * + * *
    * Optional. Corresponds to the label values of reservation resource.
    * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the values. */ - public com.google.protobuf.ProtocolStringList - getValuesList() { + public com.google.protobuf.ProtocolStringList getValuesList() { return values_; } /** + * + * *
    * Optional. Corresponds to the label values of reservation resource.
    * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** + * + * *
    * Optional. Corresponds to the label values of reservation resource.
    * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The values at the given index. */ @@ -325,20 +390,23 @@ public java.lang.String getValues(int index) { return values_.get(index); } /** + * + * *
    * Optional. Corresponds to the label values of reservation resource.
    * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { + public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -350,9 +418,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (consumeReservationType_ != com.google.cloud.notebooks.v1beta1.ReservationAffinity.Type.TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (consumeReservationType_ + != com.google.cloud.notebooks.v1beta1.ReservationAffinity.Type.TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, consumeReservationType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { @@ -370,9 +439,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (consumeReservationType_ != com.google.cloud.notebooks.v1beta1.ReservationAffinity.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, consumeReservationType_); + if (consumeReservationType_ + != com.google.cloud.notebooks.v1beta1.ReservationAffinity.Type.TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, consumeReservationType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); @@ -393,18 +463,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.cloud.notebooks.v1beta1.ReservationAffinity)) { return super.equals(obj); } - com.google.cloud.notebooks.v1beta1.ReservationAffinity other = (com.google.cloud.notebooks.v1beta1.ReservationAffinity) obj; + com.google.cloud.notebooks.v1beta1.ReservationAffinity other = + (com.google.cloud.notebooks.v1beta1.ReservationAffinity) obj; if (consumeReservationType_ != other.consumeReservationType_) return false; - if (!getKey() - .equals(other.getKey())) return false; - if (!getValuesList() - .equals(other.getValuesList())) return false; + if (!getKey().equals(other.getKey())) return false; + if (!getValuesList().equals(other.getValuesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -430,129 +499,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1beta1.ReservationAffinity 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.cloud.notebooks.v1beta1.ReservationAffinity 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.cloud.notebooks.v1beta1.ReservationAffinity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.ReservationAffinity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1beta1.ReservationAffinity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.ReservationAffinity 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.cloud.notebooks.v1beta1.ReservationAffinity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.ReservationAffinity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.ReservationAffinity 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.cloud.notebooks.v1beta1.ReservationAffinity parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.ReservationAffinity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.ReservationAffinity 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.cloud.notebooks.v1beta1.ReservationAffinity 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.cloud.notebooks.v1beta1.ReservationAffinity 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.cloud.notebooks.v1beta1.ReservationAffinity prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1beta1.ReservationAffinity 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; } /** + * + * *
    * Reservation Affinity for consuming Zonal reservation.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.ReservationAffinity} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1beta1.ReservationAffinity) com.google.cloud.notebooks.v1beta1.ReservationAffinityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.InstanceProto.internal_static_google_cloud_notebooks_v1beta1_ReservationAffinity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.InstanceProto + .internal_static_google_cloud_notebooks_v1beta1_ReservationAffinity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.InstanceProto.internal_static_google_cloud_notebooks_v1beta1_ReservationAffinity_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.InstanceProto + .internal_static_google_cloud_notebooks_v1beta1_ReservationAffinity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.ReservationAffinity.class, com.google.cloud.notebooks.v1beta1.ReservationAffinity.Builder.class); + com.google.cloud.notebooks.v1beta1.ReservationAffinity.class, + com.google.cloud.notebooks.v1beta1.ReservationAffinity.Builder.class); } // Construct using com.google.cloud.notebooks.v1beta1.ReservationAffinity.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -566,9 +642,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1beta1.InstanceProto.internal_static_google_cloud_notebooks_v1beta1_ReservationAffinity_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1beta1.InstanceProto + .internal_static_google_cloud_notebooks_v1beta1_ReservationAffinity_descriptor; } @java.lang.Override @@ -587,7 +663,8 @@ public com.google.cloud.notebooks.v1beta1.ReservationAffinity build() { @java.lang.Override public com.google.cloud.notebooks.v1beta1.ReservationAffinity buildPartial() { - com.google.cloud.notebooks.v1beta1.ReservationAffinity result = new com.google.cloud.notebooks.v1beta1.ReservationAffinity(this); + com.google.cloud.notebooks.v1beta1.ReservationAffinity result = + new com.google.cloud.notebooks.v1beta1.ReservationAffinity(this); int from_bitField0_ = bitField0_; result.consumeReservationType_ = consumeReservationType_; result.key_ = key_; @@ -604,38 +681,39 @@ public com.google.cloud.notebooks.v1beta1.ReservationAffinity buildPartial() { 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.cloud.notebooks.v1beta1.ReservationAffinity) { - return mergeFrom((com.google.cloud.notebooks.v1beta1.ReservationAffinity)other); + return mergeFrom((com.google.cloud.notebooks.v1beta1.ReservationAffinity) other); } else { super.mergeFrom(other); return this; @@ -643,7 +721,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.ReservationAffinity other) { - if (other == com.google.cloud.notebooks.v1beta1.ReservationAffinity.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1beta1.ReservationAffinity.getDefaultInstance()) + return this; if (other.consumeReservationType_ != 0) { setConsumeReservationTypeValue(other.getConsumeReservationTypeValue()); } @@ -687,28 +766,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - consumeReservationType_ = input.readEnum(); + case 8: + { + consumeReservationType_ = input.readEnum(); - break; - } // case 8 - case 18: { - key_ = input.readStringRequireUtf8(); + break; + } // case 8 + case 18: + { + key_ = input.readStringRequireUtf8(); - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureValuesIsMutable(); - values_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.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) { @@ -718,77 +801,109 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int consumeReservationType_ = 0; /** + * + * *
      * Optional. Type of reservation to consume
      * 
* - * .google.cloud.notebooks.v1beta1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for consumeReservationType. */ - @java.lang.Override public int getConsumeReservationTypeValue() { + @java.lang.Override + public int getConsumeReservationTypeValue() { return consumeReservationType_; } /** + * + * *
      * Optional. Type of reservation to consume
      * 
* - * .google.cloud.notebooks.v1beta1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for consumeReservationType to set. * @return This builder for chaining. */ public Builder setConsumeReservationTypeValue(int value) { - + consumeReservationType_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Type of reservation to consume
      * 
* - * .google.cloud.notebooks.v1beta1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The consumeReservationType. */ @java.lang.Override public com.google.cloud.notebooks.v1beta1.ReservationAffinity.Type getConsumeReservationType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1beta1.ReservationAffinity.Type result = com.google.cloud.notebooks.v1beta1.ReservationAffinity.Type.valueOf(consumeReservationType_); - return result == null ? com.google.cloud.notebooks.v1beta1.ReservationAffinity.Type.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1beta1.ReservationAffinity.Type result = + com.google.cloud.notebooks.v1beta1.ReservationAffinity.Type.valueOf( + consumeReservationType_); + return result == null + ? com.google.cloud.notebooks.v1beta1.ReservationAffinity.Type.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. Type of reservation to consume
      * 
* - * .google.cloud.notebooks.v1beta1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The consumeReservationType to set. * @return This builder for chaining. */ - public Builder setConsumeReservationType(com.google.cloud.notebooks.v1beta1.ReservationAffinity.Type value) { + public Builder setConsumeReservationType( + com.google.cloud.notebooks.v1beta1.ReservationAffinity.Type value) { if (value == null) { throw new NullPointerException(); } - + consumeReservationType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. Type of reservation to consume
      * 
* - * .google.cloud.notebooks.v1beta1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearConsumeReservationType() { - + consumeReservationType_ = 0; onChanged(); return this; @@ -796,18 +911,20 @@ public Builder clearConsumeReservationType() { private java.lang.Object key_ = ""; /** + * + * *
      * Optional. Corresponds to the label key of reservation resource.
      * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; 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(); key_ = s; return s; @@ -816,20 +933,21 @@ public java.lang.String getKey() { } } /** + * + * *
      * Optional. Corresponds to the label key of reservation resource.
      * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for key. */ - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; 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); key_ = b; return b; } else { @@ -837,95 +955,112 @@ public java.lang.String getKey() { } } /** + * + * *
      * Optional. Corresponds to the label key of reservation resource.
      * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey( - java.lang.String value) { + public Builder setKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + key_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Corresponds to the label key of reservation resource.
      * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearKey() { - + key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** + * + * *
      * Optional. Corresponds to the label key of reservation resource.
      * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { + public Builder setKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList values_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { values_ = new com.google.protobuf.LazyStringArrayList(values_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the values. */ - public com.google.protobuf.ProtocolStringList - getValuesList() { + public com.google.protobuf.ProtocolStringList getValuesList() { return values_.getUnmodifiableView(); } /** + * + * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of values. */ public int getValuesCount() { return values_.size(); } /** + * + * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The values at the given index. */ @@ -933,80 +1068,90 @@ public java.lang.String getValues(int index) { return values_.get(index); } /** + * + * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { + public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } /** + * + * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index to set the value at. * @param value The values to set. * @return This builder for chaining. */ - public Builder setValues( - int index, java.lang.String value) { + public Builder setValues(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); + throw new NullPointerException(); + } + ensureValuesIsMutable(); values_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The values to add. * @return This builder for chaining. */ - public Builder addValues( - java.lang.String value) { + public Builder addValues(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); + throw new NullPointerException(); + } + ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param values The values to add. * @return This builder for chaining. */ - public Builder addAllValues( - java.lang.Iterable values) { + public Builder addAllValues(java.lang.Iterable values) { ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, values_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); onChanged(); return this; } /** + * + * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValues() { @@ -1016,28 +1161,30 @@ public Builder clearValues() { return this; } /** + * + * *
      * Optional. Corresponds to the label values of reservation resource.
      * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes of the values to add. * @return This builder for chaining. */ - public Builder addValuesBytes( - com.google.protobuf.ByteString value) { + public Builder addValuesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureValuesIsMutable(); values_.add(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); } @@ -1047,12 +1194,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1beta1.ReservationAffinity) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1beta1.ReservationAffinity) private static final com.google.cloud.notebooks.v1beta1.ReservationAffinity DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1beta1.ReservationAffinity(); } @@ -1061,27 +1208,27 @@ public static com.google.cloud.notebooks.v1beta1.ReservationAffinity getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReservationAffinity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReservationAffinity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -1096,6 +1243,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1beta1.ReservationAffinity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ReservationAffinityOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ReservationAffinityOrBuilder.java similarity index 65% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ReservationAffinityOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ReservationAffinityOrBuilder.java index 56a81ac382ce..9be198a0704c 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ReservationAffinityOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ReservationAffinityOrBuilder.java @@ -1,89 +1,130 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/instance.proto package com.google.cloud.notebooks.v1beta1; -public interface ReservationAffinityOrBuilder extends +public interface ReservationAffinityOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1beta1.ReservationAffinity) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Type of reservation to consume
    * 
* - * .google.cloud.notebooks.v1beta1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for consumeReservationType. */ int getConsumeReservationTypeValue(); /** + * + * *
    * Optional. Type of reservation to consume
    * 
* - * .google.cloud.notebooks.v1beta1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.notebooks.v1beta1.ReservationAffinity.Type consume_reservation_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The consumeReservationType. */ com.google.cloud.notebooks.v1beta1.ReservationAffinity.Type getConsumeReservationType(); /** + * + * *
    * Optional. Corresponds to the label key of reservation resource.
    * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The key. */ java.lang.String getKey(); /** + * + * *
    * Optional. Corresponds to the label key of reservation resource.
    * 
* * string key = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for key. */ - com.google.protobuf.ByteString - getKeyBytes(); + com.google.protobuf.ByteString getKeyBytes(); /** + * + * *
    * Optional. Corresponds to the label values of reservation resource.
    * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the values. */ - java.util.List - getValuesList(); + java.util.List getValuesList(); /** + * + * *
    * Optional. Corresponds to the label values of reservation resource.
    * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of values. */ int getValuesCount(); /** + * + * *
    * Optional. Corresponds to the label values of reservation resource.
    * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The values at the given index. */ java.lang.String getValues(int index); /** + * + * *
    * Optional. Corresponds to the label values of reservation resource.
    * 
* * repeated string values = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - com.google.protobuf.ByteString - getValuesBytes(int index); + com.google.protobuf.ByteString getValuesBytes(int index); } diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ResetInstanceRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ResetInstanceRequest.java similarity index 65% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ResetInstanceRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ResetInstanceRequest.java index c8249d9e3d0a..04c10bef5d5f 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ResetInstanceRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ResetInstanceRequest.java @@ -1,62 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; /** + * + * *
  * Request for reseting a notebook instance
  * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.ResetInstanceRequest} */ -public final class ResetInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ResetInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1beta1.ResetInstanceRequest) ResetInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResetInstanceRequest.newBuilder() to construct. private ResetInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ResetInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ResetInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_ResetInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_ResetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_ResetInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_ResetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.ResetInstanceRequest.class, com.google.cloud.notebooks.v1beta1.ResetInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.ResetInstanceRequest.class, + com.google.cloud.notebooks.v1beta1.ResetInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -65,30 +87,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -97,6 +119,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +131,7 @@ 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_); } @@ -133,15 +155,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.cloud.notebooks.v1beta1.ResetInstanceRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1beta1.ResetInstanceRequest other = (com.google.cloud.notebooks.v1beta1.ResetInstanceRequest) obj; + com.google.cloud.notebooks.v1beta1.ResetInstanceRequest other = + (com.google.cloud.notebooks.v1beta1.ResetInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,129 +183,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1beta1.ResetInstanceRequest 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.cloud.notebooks.v1beta1.ResetInstanceRequest 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.cloud.notebooks.v1beta1.ResetInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.ResetInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1beta1.ResetInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.ResetInstanceRequest 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.cloud.notebooks.v1beta1.ResetInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.ResetInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.ResetInstanceRequest 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.cloud.notebooks.v1beta1.ResetInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.ResetInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.ResetInstanceRequest 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.cloud.notebooks.v1beta1.ResetInstanceRequest 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.cloud.notebooks.v1beta1.ResetInstanceRequest 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.cloud.notebooks.v1beta1.ResetInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1beta1.ResetInstanceRequest 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; } /** + * + * *
    * Request for reseting a notebook instance
    * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.ResetInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1beta1.ResetInstanceRequest) com.google.cloud.notebooks.v1beta1.ResetInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_ResetInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_ResetInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_ResetInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_ResetInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.ResetInstanceRequest.class, com.google.cloud.notebooks.v1beta1.ResetInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.ResetInstanceRequest.class, + com.google.cloud.notebooks.v1beta1.ResetInstanceRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1beta1.ResetInstanceRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +322,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_ResetInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_ResetInstanceRequest_descriptor; } @java.lang.Override @@ -314,7 +343,8 @@ public com.google.cloud.notebooks.v1beta1.ResetInstanceRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1beta1.ResetInstanceRequest buildPartial() { - com.google.cloud.notebooks.v1beta1.ResetInstanceRequest result = new com.google.cloud.notebooks.v1beta1.ResetInstanceRequest(this); + com.google.cloud.notebooks.v1beta1.ResetInstanceRequest result = + new com.google.cloud.notebooks.v1beta1.ResetInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +354,39 @@ public com.google.cloud.notebooks.v1beta1.ResetInstanceRequest buildPartial() { 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.cloud.notebooks.v1beta1.ResetInstanceRequest) { - return mergeFrom((com.google.cloud.notebooks.v1beta1.ResetInstanceRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1beta1.ResetInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -363,7 +394,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.ResetInstanceRequest other) { - if (other == com.google.cloud.notebooks.v1beta1.ResetInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1beta1.ResetInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -394,17 +426,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -417,19 +451,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -438,21 +474,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -460,64 +497,71 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -527,12 +571,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1beta1.ResetInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1beta1.ResetInstanceRequest) private static final com.google.cloud.notebooks.v1beta1.ResetInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1beta1.ResetInstanceRequest(); } @@ -541,27 +585,27 @@ public static com.google.cloud.notebooks.v1beta1.ResetInstanceRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResetInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResetInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -576,6 +620,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1beta1.ResetInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ResetInstanceRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ResetInstanceRequestOrBuilder.java similarity index 52% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ResetInstanceRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ResetInstanceRequestOrBuilder.java index 7a8366bd147c..876891567b7a 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ResetInstanceRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ResetInstanceRequestOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; -public interface ResetInstanceRequestOrBuilder extends +public interface ResetInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1beta1.ResetInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceAcceleratorRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceAcceleratorRequest.java similarity index 63% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceAcceleratorRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceAcceleratorRequest.java index b85903fc8aba..6c336306f485 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceAcceleratorRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceAcceleratorRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; /** + * + * *
  * Request for setting instance accelerator.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest} */ -public final class SetInstanceAcceleratorRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SetInstanceAcceleratorRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest) SetInstanceAcceleratorRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SetInstanceAcceleratorRequest.newBuilder() to construct. private SetInstanceAcceleratorRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SetInstanceAcceleratorRequest() { name_ = ""; type_ = 0; @@ -26,38 +44,42 @@ private SetInstanceAcceleratorRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SetInstanceAcceleratorRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_SetInstanceAcceleratorRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_SetInstanceAcceleratorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_SetInstanceAcceleratorRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_SetInstanceAcceleratorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest.class, com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest.class, + com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -66,30 +88,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -100,33 +122,50 @@ public java.lang.String getName() { public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** + * + * *
    * Required. Type of this accelerator.
    * 
* - * .google.cloud.notebooks.v1beta1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * Required. Type of this accelerator.
    * 
* - * .google.cloud.notebooks.v1beta1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The type. */ - @java.lang.Override public com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType getType() { + @java.lang.Override + public com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType getType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType result = com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType.valueOf(type_); - return result == null ? com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType result = + com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType.valueOf(type_); + return result == null + ? com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType.UNRECOGNIZED + : result; } public static final int CORE_COUNT_FIELD_NUMBER = 3; private long coreCount_; /** + * + * *
    * Required. Count of cores of this accelerator. Note that not all combinations
    * of `type` and `core_count` are valid. Check [GPUs on
@@ -135,6 +174,7 @@ public java.lang.String getName() {
    * 
* * int64 core_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The coreCount. */ @java.lang.Override @@ -143,6 +183,7 @@ public long getCoreCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -154,12 +195,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (type_ != com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType.ACCELERATOR_TYPE_UNSPECIFIED.getNumber()) { + if (type_ + != com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType.ACCELERATOR_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, type_); } if (coreCount_ != 0L) { @@ -177,13 +219,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (type_ != com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType.ACCELERATOR_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); + if (type_ + != com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType.ACCELERATOR_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } if (coreCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, coreCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, coreCount_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -193,18 +235,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.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest other = (com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest) obj; + com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest other = + (com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (type_ != other.type_) return false; - if (getCoreCount() - != other.getCoreCount()) return false; + if (getCoreCount() != other.getCoreCount()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -221,137 +262,143 @@ public int hashCode() { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + CORE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCoreCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCoreCount()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest 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.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest 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.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest 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.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest 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.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest 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.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest 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.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest 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.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest 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; } /** + * + * *
    * Request for setting instance accelerator.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest) com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_SetInstanceAcceleratorRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_SetInstanceAcceleratorRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_SetInstanceAcceleratorRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_SetInstanceAcceleratorRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest.class, com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest.class, + com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -365,13 +412,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_SetInstanceAcceleratorRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_SetInstanceAcceleratorRequest_descriptor; } @java.lang.Override - public com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest getDefaultInstanceForType() { + public com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest + getDefaultInstanceForType() { return com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest.getDefaultInstance(); } @@ -386,7 +434,8 @@ public com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest build() @java.lang.Override public com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest buildPartial() { - com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest result = new com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest(this); + com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest result = + new com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest(this); result.name_ = name_; result.type_ = type_; result.coreCount_ = coreCount_; @@ -398,46 +447,50 @@ public com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest buildPar 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.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest) { - return mergeFrom((com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest other) { - if (other == com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest other) { + if (other + == com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -474,27 +527,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - type_ = input.readEnum(); - - break; - } // case 16 - case 24: { - coreCount_ = input.readInt64(); - - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + + break; + } // case 16 + case 24: + { + coreCount_ = input.readInt64(); + + 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) { @@ -507,19 +564,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -528,21 +587,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -550,57 +610,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -608,51 +675,75 @@ public Builder setNameBytes( private int type_ = 0; /** + * + * *
      * Required. Type of this accelerator.
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Required. Type of this accelerator.
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
      * Required. Type of this accelerator.
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The type. */ @java.lang.Override public com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType getType() { @SuppressWarnings("deprecation") - com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType result = com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType.valueOf(type_); - return result == null ? com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType.UNRECOGNIZED : result; + com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType result = + com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType.valueOf(type_); + return result == null + ? com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType.UNRECOGNIZED + : result; } /** + * + * *
      * Required. Type of this accelerator.
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The type to set. * @return This builder for chaining. */ @@ -660,28 +751,35 @@ public Builder setType(com.google.cloud.notebooks.v1beta1.Instance.AcceleratorTy if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. Type of this accelerator.
      * 
* - * .google.cloud.notebooks.v1beta1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } - private long coreCount_ ; + private long coreCount_; /** + * + * *
      * Required. Count of cores of this accelerator. Note that not all combinations
      * of `type` and `core_count` are valid. Check [GPUs on
@@ -690,6 +788,7 @@ public Builder clearType() {
      * 
* * int64 core_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The coreCount. */ @java.lang.Override @@ -697,6 +796,8 @@ public long getCoreCount() { return coreCount_; } /** + * + * *
      * Required. Count of cores of this accelerator. Note that not all combinations
      * of `type` and `core_count` are valid. Check [GPUs on
@@ -705,16 +806,19 @@ public long getCoreCount() {
      * 
* * int64 core_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The coreCount to set. * @return This builder for chaining. */ public Builder setCoreCount(long value) { - + coreCount_ = value; onChanged(); return this; } /** + * + * *
      * Required. Count of cores of this accelerator. Note that not all combinations
      * of `type` and `core_count` are valid. Check [GPUs on
@@ -723,17 +827,18 @@ public Builder setCoreCount(long value) {
      * 
* * int64 core_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearCoreCount() { - + coreCount_ = 0L; 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); } @@ -743,41 +848,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest) - private static final com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest DEFAULT_INSTANCE; + private static final com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest(); } - public static com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest getDefaultInstance() { + public static com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetInstanceAcceleratorRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetInstanceAcceleratorRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -789,9 +896,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest getDefaultInstanceForType() { + public com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceAcceleratorRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceAcceleratorRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceAcceleratorRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceAcceleratorRequestOrBuilder.java index d290b8b09b00..5083c6e766a2 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceAcceleratorRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceAcceleratorRequestOrBuilder.java @@ -1,54 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; -public interface SetInstanceAcceleratorRequestOrBuilder extends +public interface SetInstanceAcceleratorRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. Type of this accelerator.
    * 
* - * .google.cloud.notebooks.v1beta1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * Required. Type of this accelerator.
    * 
* - * .google.cloud.notebooks.v1beta1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.notebooks.v1beta1.Instance.AcceleratorType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The type. */ com.google.cloud.notebooks.v1beta1.Instance.AcceleratorType getType(); /** + * + * *
    * Required. Count of cores of this accelerator. Note that not all combinations
    * of `type` and `core_count` are valid. Check [GPUs on
@@ -57,6 +90,7 @@ public interface SetInstanceAcceleratorRequestOrBuilder extends
    * 
* * int64 core_count = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The coreCount. */ long getCoreCount(); diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceLabelsRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceLabelsRequest.java similarity index 61% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceLabelsRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceLabelsRequest.java index 6ed4007b57ff..f0c524780922 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceLabelsRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceLabelsRequest.java @@ -1,74 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; /** + * + * *
  * Request for setting instance labels.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest} */ -public final class SetInstanceLabelsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SetInstanceLabelsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest) SetInstanceLabelsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SetInstanceLabelsRequest.newBuilder() to construct. private SetInstanceLabelsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SetInstanceLabelsRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SetInstanceLabelsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_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 2: 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.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest.class, com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest.class, + com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -77,30 +98,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -109,24 +130,23 @@ public java.lang.String getName() { } public static final int LABELS_FIELD_NUMBER = 2; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -135,6 +155,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method
@@ -142,22 +164,22 @@ public int getLabelsCount() {
    *
    * map<string, string> labels = 2;
    */
-
   @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 getLabels() {
     return getLabelsMap();
   }
   /**
+   *
+   *
    * 
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method
@@ -166,11 +188,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 2;
    */
   @java.lang.Override
-
   public java.util.Map getLabelsMap() {
     return internalGetLabels().getMap();
   }
   /**
+   *
+   *
    * 
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method
@@ -179,16 +202,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 2;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method
@@ -197,12 +220,11 @@ public java.lang.String getLabelsOrDefault(
    * map<string, string> labels = 2;
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -210,6 +232,7 @@ public java.lang.String getLabelsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -221,17 +244,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_);
     }
-    com.google.protobuf.GeneratedMessageV3
-      .serializeStringMapTo(
-        output,
-        internalGetLabels(),
-        LabelsDefaultEntryHolder.defaultEntry,
-        2);
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2);
     getUnknownFields().writeTo(output);
   }
 
@@ -244,15 +262,15 @@ public int getSerializedSize() {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
-    for (java.util.Map.Entry entry
-         : internalGetLabels().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(2, labels__);
+    for (java.util.Map.Entry entry :
+        internalGetLabels().getMap().entrySet()) {
+      com.google.protobuf.MapEntry labels__ =
+          LabelsDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, labels__);
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -262,17 +280,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.cloud.notebooks.v1beta1.SetInstanceLabelsRequest)) {
       return super.equals(obj);
     }
-    com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest other = (com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest) obj;
+    com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest other =
+        (com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (!internalGetLabels().equals(
-        other.internalGetLabels())) return false;
+    if (!getName().equals(other.getName())) return false;
+    if (!internalGetLabels().equals(other.internalGetLabels())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -296,151 +313,156 @@ public int hashCode() {
   }
 
   public static com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest 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.cloud.notebooks.v1beta1.SetInstanceLabelsRequest 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.cloud.notebooks.v1beta1.SetInstanceLabelsRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest 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.cloud.notebooks.v1beta1.SetInstanceLabelsRequest parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest 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.cloud.notebooks.v1beta1.SetInstanceLabelsRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest 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.cloud.notebooks.v1beta1.SetInstanceLabelsRequest 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.cloud.notebooks.v1beta1.SetInstanceLabelsRequest 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.cloud.notebooks.v1beta1.SetInstanceLabelsRequest prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest 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;
   }
   /**
+   *
+   *
    * 
    * Request for setting instance labels.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest) com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 2: 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 2: 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.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest.class, com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest.class, + com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -451,9 +473,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_descriptor; } @java.lang.Override @@ -472,7 +494,8 @@ public com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest buildPartial() { - com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest result = new com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest(this); + com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest result = + new com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.labels_ = internalGetLabels(); @@ -485,38 +508,39 @@ public com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest buildPartial( 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.cloud.notebooks.v1beta1.SetInstanceLabelsRequest) { - return mergeFrom((com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest) other); } else { super.mergeFrom(other); return this; @@ -524,13 +548,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest other) { - if (other == com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -557,25 +581,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + 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) { @@ -585,23 +614,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -610,21 +642,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -632,78 +665,84 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField 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 - internalGetMutableLabels() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -715,6 +754,8 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels to apply to this instance.
      * These can be later modified by the setLabels method
@@ -722,22 +763,22 @@ public int getLabelsCount() {
      *
      * map<string, string> labels = 2;
      */
-
     @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 getLabels() {
       return getLabelsMap();
     }
     /**
+     *
+     *
      * 
      * Labels to apply to this instance.
      * These can be later modified by the setLabels method
@@ -746,11 +787,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 2;
      */
     @java.lang.Override
-
     public java.util.Map getLabelsMap() {
       return internalGetLabels().getMap();
     }
     /**
+     *
+     *
      * 
      * Labels to apply to this instance.
      * These can be later modified by the setLabels method
@@ -759,16 +801,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 2;
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Labels to apply to this instance.
      * These can be later modified by the setLabels method
@@ -777,12 +820,11 @@ public java.lang.String getLabelsOrDefault(
      * map<string, string> labels = 2;
      */
     @java.lang.Override
-
-    public java.lang.String getLabelsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -790,11 +832,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      internalGetMutableLabels().getMutableMap()
-          .clear();
+      internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Labels to apply to this instance.
      * These can be later modified by the setLabels method
@@ -802,23 +845,21 @@ public Builder clearLabels() {
      *
      * map<string, string> labels = 2;
      */
-
-    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
-    getMutableLabels() {
+    public java.util.Map getMutableLabels() {
       return internalGetMutableLabels().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Labels to apply to this instance.
      * These can be later modified by the setLabels method
@@ -826,19 +867,20 @@ public Builder removeLabels(
      *
      * map<string, string> labels = 2;
      */
-    public Builder putLabels(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    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");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+      internalGetMutableLabels().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Labels to apply to this instance.
      * These can be later modified by the setLabels method
@@ -846,16 +888,13 @@ public Builder putLabels(
      *
      * map<string, string> labels = 2;
      */
-
-    public Builder putAllLabels(
-        java.util.Map values) {
-      internalGetMutableLabels().getMutableMap()
-          .putAll(values);
+    public Builder putAllLabels(java.util.Map values) {
+      internalGetMutableLabels().getMutableMap().putAll(values);
       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);
     }
 
@@ -865,12 +904,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest)
   private static final com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest();
   }
@@ -879,27 +918,27 @@ public static com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest getDef
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SetInstanceLabelsRequest parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        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 PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SetInstanceLabelsRequest parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            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 parser() {
     return PARSER;
@@ -914,6 +953,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceLabelsRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceLabelsRequestOrBuilder.java
similarity index 62%
rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceLabelsRequestOrBuilder.java
rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceLabelsRequestOrBuilder.java
index 787722092db5..f830bda5ce54 100644
--- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceLabelsRequestOrBuilder.java
+++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceLabelsRequestOrBuilder.java
@@ -1,35 +1,58 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/notebooks/v1beta1/service.proto
 
 package com.google.cloud.notebooks.v1beta1;
 
-public interface SetInstanceLabelsRequestOrBuilder extends
+public interface SetInstanceLabelsRequestOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method
@@ -39,6 +62,8 @@ public interface SetInstanceLabelsRequestOrBuilder extends
    */
   int getLabelsCount();
   /**
+   *
+   *
    * 
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method
@@ -46,15 +71,13 @@ public interface SetInstanceLabelsRequestOrBuilder extends
    *
    * map<string, string> labels = 2;
    */
-  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
-  getLabels();
+  java.util.Map getLabels();
   /**
+   *
+   *
    * 
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method
@@ -62,9 +85,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 2;
    */
-  java.util.Map
-  getLabelsMap();
+  java.util.Map getLabelsMap();
   /**
+   *
+   *
    * 
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method
@@ -74,11 +98,13 @@ boolean containsLabels(
    */
 
   /* nullable */
-java.lang.String getLabelsOrDefault(
+  java.lang.String getLabelsOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Labels to apply to this instance.
    * These can be later modified by the setLabels method
@@ -86,7 +112,5 @@ java.lang.String getLabelsOrDefault(
    *
    * map<string, string> labels = 2;
    */
-
-  java.lang.String getLabelsOrThrow(
-      java.lang.String key);
+  java.lang.String getLabelsOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceMachineTypeRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceMachineTypeRequest.java
similarity index 66%
rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceMachineTypeRequest.java
rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceMachineTypeRequest.java
index 21cce234fdaf..26d79fae877f 100644
--- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceMachineTypeRequest.java
+++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceMachineTypeRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/notebooks/v1beta1/service.proto
 
 package com.google.cloud.notebooks.v1beta1;
 
 /**
+ *
+ *
  * 
  * Request for setting instance machine type.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest} */ -public final class SetInstanceMachineTypeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SetInstanceMachineTypeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest) SetInstanceMachineTypeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SetInstanceMachineTypeRequest.newBuilder() to construct. private SetInstanceMachineTypeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SetInstanceMachineTypeRequest() { name_ = ""; machineType_ = ""; @@ -26,38 +44,42 @@ private SetInstanceMachineTypeRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SetInstanceMachineTypeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_SetInstanceMachineTypeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_SetInstanceMachineTypeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_SetInstanceMachineTypeRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_SetInstanceMachineTypeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest.class, com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest.class, + com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -66,30 +88,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -100,12 +122,15 @@ public java.lang.String getName() { public static final int MACHINE_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object machineType_; /** + * + * *
    * Required. The [Compute Engine machine
    * type](https://cloud.google.com/compute/docs/machine-types).
    * 
* * string machine_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The machineType. */ @java.lang.Override @@ -114,30 +139,30 @@ public java.lang.String getMachineType() { 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(); machineType_ = s; return s; } } /** + * + * *
    * Required. The [Compute Engine machine
    * type](https://cloud.google.com/compute/docs/machine-types).
    * 
* * string machine_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for machineType. */ @java.lang.Override - public com.google.protobuf.ByteString - getMachineTypeBytes() { + public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; 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); machineType_ = b; return b; } else { @@ -146,6 +171,7 @@ public java.lang.String getMachineType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -157,8 +183,7 @@ 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_); } @@ -188,17 +213,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.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest other = (com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest) obj; + com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest other = + (com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getMachineType() - .equals(other.getMachineType())) return false; + if (!getName().equals(other.getName())) return false; + if (!getMachineType().equals(other.getMachineType())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -220,129 +244,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest 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.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest 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.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest 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.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest 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.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest 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.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest 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.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest 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.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest 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; } /** + * + * *
    * Request for setting instance machine type.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest) com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_SetInstanceMachineTypeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_SetInstanceMachineTypeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_SetInstanceMachineTypeRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_SetInstanceMachineTypeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest.class, com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest.class, + com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -354,13 +385,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_SetInstanceMachineTypeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_SetInstanceMachineTypeRequest_descriptor; } @java.lang.Override - public com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest getDefaultInstanceForType() { + public com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest + getDefaultInstanceForType() { return com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest.getDefaultInstance(); } @@ -375,7 +407,8 @@ public com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest build() @java.lang.Override public com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest buildPartial() { - com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest result = new com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest(this); + com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest result = + new com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest(this); result.name_ = name_; result.machineType_ = machineType_; onBuilt(); @@ -386,46 +419,50 @@ public com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest buildPar 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.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest) { - return mergeFrom((com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest other) { - if (other == com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest other) { + if (other + == com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -460,22 +497,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - machineType_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + machineType_ = input.readStringRequireUtf8(); + + 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) { @@ -488,19 +528,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -509,21 +551,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -531,57 +574,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -589,19 +639,21 @@ public Builder setNameBytes( private java.lang.Object machineType_ = ""; /** + * + * *
      * Required. The [Compute Engine machine
      * type](https://cloud.google.com/compute/docs/machine-types).
      * 
* * string machine_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The machineType. */ public java.lang.String getMachineType() { java.lang.Object ref = machineType_; 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(); machineType_ = s; return s; @@ -610,21 +662,22 @@ public java.lang.String getMachineType() { } } /** + * + * *
      * Required. The [Compute Engine machine
      * type](https://cloud.google.com/compute/docs/machine-types).
      * 
* * string machine_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for machineType. */ - public com.google.protobuf.ByteString - getMachineTypeBytes() { + public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; 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); machineType_ = b; return b; } else { @@ -632,64 +685,71 @@ public java.lang.String getMachineType() { } } /** + * + * *
      * Required. The [Compute Engine machine
      * type](https://cloud.google.com/compute/docs/machine-types).
      * 
* * string machine_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The machineType to set. * @return This builder for chaining. */ - public Builder setMachineType( - java.lang.String value) { + public Builder setMachineType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + machineType_ = value; onChanged(); return this; } /** + * + * *
      * Required. The [Compute Engine machine
      * type](https://cloud.google.com/compute/docs/machine-types).
      * 
* * string machine_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearMachineType() { - + machineType_ = getDefaultInstance().getMachineType(); onChanged(); return this; } /** + * + * *
      * Required. The [Compute Engine machine
      * type](https://cloud.google.com/compute/docs/machine-types).
      * 
* * string machine_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for machineType to set. * @return This builder for chaining. */ - public Builder setMachineTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + machineType_ = 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); } @@ -699,41 +759,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest) - private static final com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest DEFAULT_INSTANCE; + private static final com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest(); } - public static com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest getDefaultInstance() { + public static com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetInstanceMachineTypeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetInstanceMachineTypeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -745,9 +807,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest getDefaultInstanceForType() { + public com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceMachineTypeRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceMachineTypeRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceMachineTypeRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceMachineTypeRequestOrBuilder.java index c89df4b836ed..a3d1153754ab 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceMachineTypeRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceMachineTypeRequestOrBuilder.java @@ -1,53 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; -public interface SetInstanceMachineTypeRequestOrBuilder extends +public interface SetInstanceMachineTypeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The [Compute Engine machine
    * type](https://cloud.google.com/compute/docs/machine-types).
    * 
* * string machine_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The machineType. */ java.lang.String getMachineType(); /** + * + * *
    * Required. The [Compute Engine machine
    * type](https://cloud.google.com/compute/docs/machine-types).
    * 
* * string machine_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for machineType. */ - com.google.protobuf.ByteString - getMachineTypeBytes(); + com.google.protobuf.ByteString getMachineTypeBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StartInstanceRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StartInstanceRequest.java similarity index 65% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StartInstanceRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StartInstanceRequest.java index 4680f40fe560..05a20f701ff5 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StartInstanceRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StartInstanceRequest.java @@ -1,62 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; /** + * + * *
  * Request for starting a notebook instance
  * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.StartInstanceRequest} */ -public final class StartInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StartInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1beta1.StartInstanceRequest) StartInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StartInstanceRequest.newBuilder() to construct. private StartInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StartInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StartInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_StartInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_StartInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_StartInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_StartInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.StartInstanceRequest.class, com.google.cloud.notebooks.v1beta1.StartInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.StartInstanceRequest.class, + com.google.cloud.notebooks.v1beta1.StartInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -65,30 +87,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -97,6 +119,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +131,7 @@ 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_); } @@ -133,15 +155,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.cloud.notebooks.v1beta1.StartInstanceRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1beta1.StartInstanceRequest other = (com.google.cloud.notebooks.v1beta1.StartInstanceRequest) obj; + com.google.cloud.notebooks.v1beta1.StartInstanceRequest other = + (com.google.cloud.notebooks.v1beta1.StartInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,129 +183,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1beta1.StartInstanceRequest 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.cloud.notebooks.v1beta1.StartInstanceRequest 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.cloud.notebooks.v1beta1.StartInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.StartInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1beta1.StartInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.StartInstanceRequest 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.cloud.notebooks.v1beta1.StartInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.StartInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.StartInstanceRequest 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.cloud.notebooks.v1beta1.StartInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.StartInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.StartInstanceRequest 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.cloud.notebooks.v1beta1.StartInstanceRequest 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.cloud.notebooks.v1beta1.StartInstanceRequest 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.cloud.notebooks.v1beta1.StartInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1beta1.StartInstanceRequest 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; } /** + * + * *
    * Request for starting a notebook instance
    * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.StartInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1beta1.StartInstanceRequest) com.google.cloud.notebooks.v1beta1.StartInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_StartInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_StartInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_StartInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_StartInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.StartInstanceRequest.class, com.google.cloud.notebooks.v1beta1.StartInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.StartInstanceRequest.class, + com.google.cloud.notebooks.v1beta1.StartInstanceRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1beta1.StartInstanceRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +322,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_StartInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_StartInstanceRequest_descriptor; } @java.lang.Override @@ -314,7 +343,8 @@ public com.google.cloud.notebooks.v1beta1.StartInstanceRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1beta1.StartInstanceRequest buildPartial() { - com.google.cloud.notebooks.v1beta1.StartInstanceRequest result = new com.google.cloud.notebooks.v1beta1.StartInstanceRequest(this); + com.google.cloud.notebooks.v1beta1.StartInstanceRequest result = + new com.google.cloud.notebooks.v1beta1.StartInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +354,39 @@ public com.google.cloud.notebooks.v1beta1.StartInstanceRequest buildPartial() { 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.cloud.notebooks.v1beta1.StartInstanceRequest) { - return mergeFrom((com.google.cloud.notebooks.v1beta1.StartInstanceRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1beta1.StartInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -363,7 +394,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.StartInstanceRequest other) { - if (other == com.google.cloud.notebooks.v1beta1.StartInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1beta1.StartInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -394,17 +426,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -417,19 +451,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -438,21 +474,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -460,64 +497,71 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -527,12 +571,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1beta1.StartInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1beta1.StartInstanceRequest) private static final com.google.cloud.notebooks.v1beta1.StartInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1beta1.StartInstanceRequest(); } @@ -541,27 +585,27 @@ public static com.google.cloud.notebooks.v1beta1.StartInstanceRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -576,6 +620,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1beta1.StartInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StartInstanceRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StartInstanceRequestOrBuilder.java similarity index 52% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StartInstanceRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StartInstanceRequestOrBuilder.java index 596becba97ca..df03dc4db449 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StartInstanceRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StartInstanceRequestOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; -public interface StartInstanceRequestOrBuilder extends +public interface StartInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1beta1.StartInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StopInstanceRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StopInstanceRequest.java similarity index 65% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StopInstanceRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StopInstanceRequest.java index 4931eda3af72..d57acbeac649 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StopInstanceRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StopInstanceRequest.java @@ -1,62 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; /** + * + * *
  * Request for stopping a notebook instance
  * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.StopInstanceRequest} */ -public final class StopInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StopInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1beta1.StopInstanceRequest) StopInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StopInstanceRequest.newBuilder() to construct. private StopInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StopInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StopInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_StopInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_StopInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_StopInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_StopInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.StopInstanceRequest.class, com.google.cloud.notebooks.v1beta1.StopInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.StopInstanceRequest.class, + com.google.cloud.notebooks.v1beta1.StopInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -65,30 +87,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -97,6 +119,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +131,7 @@ 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_); } @@ -133,15 +155,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.cloud.notebooks.v1beta1.StopInstanceRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1beta1.StopInstanceRequest other = (com.google.cloud.notebooks.v1beta1.StopInstanceRequest) obj; + com.google.cloud.notebooks.v1beta1.StopInstanceRequest other = + (com.google.cloud.notebooks.v1beta1.StopInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,129 +183,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1beta1.StopInstanceRequest 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.cloud.notebooks.v1beta1.StopInstanceRequest 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.cloud.notebooks.v1beta1.StopInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.StopInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1beta1.StopInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.StopInstanceRequest 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.cloud.notebooks.v1beta1.StopInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.StopInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.StopInstanceRequest 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.cloud.notebooks.v1beta1.StopInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.StopInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.StopInstanceRequest 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.cloud.notebooks.v1beta1.StopInstanceRequest 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.cloud.notebooks.v1beta1.StopInstanceRequest 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.cloud.notebooks.v1beta1.StopInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1beta1.StopInstanceRequest 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; } /** + * + * *
    * Request for stopping a notebook instance
    * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.StopInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1beta1.StopInstanceRequest) com.google.cloud.notebooks.v1beta1.StopInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_StopInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_StopInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_StopInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_StopInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.StopInstanceRequest.class, com.google.cloud.notebooks.v1beta1.StopInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.StopInstanceRequest.class, + com.google.cloud.notebooks.v1beta1.StopInstanceRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1beta1.StopInstanceRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +322,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_StopInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_StopInstanceRequest_descriptor; } @java.lang.Override @@ -314,7 +343,8 @@ public com.google.cloud.notebooks.v1beta1.StopInstanceRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1beta1.StopInstanceRequest buildPartial() { - com.google.cloud.notebooks.v1beta1.StopInstanceRequest result = new com.google.cloud.notebooks.v1beta1.StopInstanceRequest(this); + com.google.cloud.notebooks.v1beta1.StopInstanceRequest result = + new com.google.cloud.notebooks.v1beta1.StopInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +354,39 @@ public com.google.cloud.notebooks.v1beta1.StopInstanceRequest buildPartial() { 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.cloud.notebooks.v1beta1.StopInstanceRequest) { - return mergeFrom((com.google.cloud.notebooks.v1beta1.StopInstanceRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1beta1.StopInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -363,7 +394,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.StopInstanceRequest other) { - if (other == com.google.cloud.notebooks.v1beta1.StopInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1beta1.StopInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -394,17 +426,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -417,19 +451,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -438,21 +474,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -460,64 +497,71 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -527,12 +571,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1beta1.StopInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1beta1.StopInstanceRequest) private static final com.google.cloud.notebooks.v1beta1.StopInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1beta1.StopInstanceRequest(); } @@ -541,27 +585,27 @@ public static com.google.cloud.notebooks.v1beta1.StopInstanceRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -576,6 +620,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1beta1.StopInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StopInstanceRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StopInstanceRequestOrBuilder.java similarity index 52% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StopInstanceRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StopInstanceRequestOrBuilder.java index 3e03d8d3562c..564bf7f02ce2 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StopInstanceRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StopInstanceRequestOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; -public interface StopInstanceRequestOrBuilder extends +public interface StopInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1beta1.StopInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceInternalRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceInternalRequest.java similarity index 65% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceInternalRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceInternalRequest.java index 194224e13517..944e26709b9e 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceInternalRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceInternalRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; /** + * + * *
  * Request for upgrading a notebook instance from within the VM
  * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest} */ -public final class UpgradeInstanceInternalRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpgradeInstanceInternalRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest) UpgradeInstanceInternalRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpgradeInstanceInternalRequest.newBuilder() to construct. - private UpgradeInstanceInternalRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpgradeInstanceInternalRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpgradeInstanceInternalRequest() { name_ = ""; vmId_ = ""; @@ -26,38 +45,42 @@ private UpgradeInstanceInternalRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpgradeInstanceInternalRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceInternalRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceInternalRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceInternalRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceInternalRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest.class, com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest.class, + com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -66,30 +89,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -100,12 +123,15 @@ public java.lang.String getName() { public static final int VM_ID_FIELD_NUMBER = 2; private volatile java.lang.Object vmId_; /** + * + * *
    * Required. The VM hardware token for authenticating the VM.
    * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
    * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vmId. */ @java.lang.Override @@ -114,30 +140,30 @@ public java.lang.String getVmId() { 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(); vmId_ = s; return s; } } /** + * + * *
    * Required. The VM hardware token for authenticating the VM.
    * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
    * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vmId. */ @java.lang.Override - public com.google.protobuf.ByteString - getVmIdBytes() { + public com.google.protobuf.ByteString getVmIdBytes() { java.lang.Object ref = vmId_; 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); vmId_ = b; return b; } else { @@ -146,6 +172,7 @@ public java.lang.String getVmId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -157,8 +184,7 @@ 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_); } @@ -188,17 +214,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.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest other = (com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest) obj; + com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest other = + (com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getVmId() - .equals(other.getVmId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getVmId().equals(other.getVmId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -220,129 +245,138 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest 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.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest 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.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest 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.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest 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.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest 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.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest 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.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest 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; } /** + * + * *
    * Request for upgrading a notebook instance from within the VM
    * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest) com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceInternalRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceInternalRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceInternalRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceInternalRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest.class, com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest.class, + com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest.Builder.class); } - // Construct using com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -354,13 +388,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceInternalRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceInternalRequest_descriptor; } @java.lang.Override - public com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest getDefaultInstanceForType() { + public com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest + getDefaultInstanceForType() { return com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest.getDefaultInstance(); } @@ -375,7 +410,8 @@ public com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest build() @java.lang.Override public com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest buildPartial() { - com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest result = new com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest(this); + com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest result = + new com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest(this); result.name_ = name_; result.vmId_ = vmId_; onBuilt(); @@ -386,46 +422,50 @@ public com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest buildPa 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.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest) { - return mergeFrom((com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest other) { - if (other == com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest other) { + if (other + == com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -460,22 +500,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: { - vmId_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + vmId_ = input.readStringRequireUtf8(); + + 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) { @@ -488,19 +531,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -509,21 +554,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -531,57 +577,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -589,19 +642,21 @@ public Builder setNameBytes( private java.lang.Object vmId_ = ""; /** + * + * *
      * Required. The VM hardware token for authenticating the VM.
      * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
      * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vmId. */ public java.lang.String getVmId() { java.lang.Object ref = vmId_; 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(); vmId_ = s; return s; @@ -610,21 +665,22 @@ public java.lang.String getVmId() { } } /** + * + * *
      * Required. The VM hardware token for authenticating the VM.
      * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
      * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vmId. */ - public com.google.protobuf.ByteString - getVmIdBytes() { + public com.google.protobuf.ByteString getVmIdBytes() { java.lang.Object ref = vmId_; 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); vmId_ = b; return b; } else { @@ -632,64 +688,71 @@ public java.lang.String getVmId() { } } /** + * + * *
      * Required. The VM hardware token for authenticating the VM.
      * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
      * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The vmId to set. * @return This builder for chaining. */ - public Builder setVmId( - java.lang.String value) { + public Builder setVmId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vmId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The VM hardware token for authenticating the VM.
      * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
      * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearVmId() { - + vmId_ = getDefaultInstance().getVmId(); onChanged(); return this; } /** + * + * *
      * Required. The VM hardware token for authenticating the VM.
      * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
      * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for vmId to set. * @return This builder for chaining. */ - public Builder setVmIdBytes( - com.google.protobuf.ByteString value) { + public Builder setVmIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vmId_ = 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); } @@ -699,41 +762,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest) - private static final com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest DEFAULT_INSTANCE; + private static final com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest(); } - public static com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest getDefaultInstance() { + public static com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpgradeInstanceInternalRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpgradeInstanceInternalRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -745,9 +810,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest getDefaultInstanceForType() { + public com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceInternalRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceInternalRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceInternalRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceInternalRequestOrBuilder.java index e0a22e7827a9..b24fb81218ba 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceInternalRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceInternalRequestOrBuilder.java @@ -1,53 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; -public interface UpgradeInstanceInternalRequestOrBuilder extends +public interface UpgradeInstanceInternalRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The VM hardware token for authenticating the VM.
    * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
    * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vmId. */ java.lang.String getVmId(); /** + * + * *
    * Required. The VM hardware token for authenticating the VM.
    * https://cloud.google.com/compute/docs/instances/verifying-instance-identity
    * 
* * string vm_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vmId. */ - com.google.protobuf.ByteString - getVmIdBytes(); + com.google.protobuf.ByteString getVmIdBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceRequest.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceRequest.java similarity index 65% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceRequest.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceRequest.java index 94a79d672bac..6b0c539fa1f9 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceRequest.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceRequest.java @@ -1,62 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; /** + * + * *
  * Request for upgrading a notebook instance
  * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.UpgradeInstanceRequest} */ -public final class UpgradeInstanceRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpgradeInstanceRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1beta1.UpgradeInstanceRequest) UpgradeInstanceRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpgradeInstanceRequest.newBuilder() to construct. private UpgradeInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpgradeInstanceRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpgradeInstanceRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest.class, com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest.class, + com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -65,30 +87,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; } } /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -97,6 +119,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -108,8 +131,7 @@ 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_); } @@ -133,15 +155,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.cloud.notebooks.v1beta1.UpgradeInstanceRequest)) { return super.equals(obj); } - com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest other = (com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest) obj; + com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest other = + (com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -161,129 +183,136 @@ public int hashCode() { } public static com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest 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.cloud.notebooks.v1beta1.UpgradeInstanceRequest 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.cloud.notebooks.v1beta1.UpgradeInstanceRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest 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.cloud.notebooks.v1beta1.UpgradeInstanceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest 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.cloud.notebooks.v1beta1.UpgradeInstanceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest 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.cloud.notebooks.v1beta1.UpgradeInstanceRequest 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.cloud.notebooks.v1beta1.UpgradeInstanceRequest 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.cloud.notebooks.v1beta1.UpgradeInstanceRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest 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; } /** + * + * *
    * Request for upgrading a notebook instance
    * 
* * Protobuf type {@code google.cloud.notebooks.v1beta1.UpgradeInstanceRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1beta1.UpgradeInstanceRequest) com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceRequest_fieldAccessorTable + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest.class, com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest.Builder.class); + com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest.class, + com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest.Builder.class); } // Construct using com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -293,9 +322,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.notebooks.v1beta1.NotebooksProto + .internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceRequest_descriptor; } @java.lang.Override @@ -314,7 +343,8 @@ public com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest build() { @java.lang.Override public com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest buildPartial() { - com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest result = new com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest(this); + com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest result = + new com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest(this); result.name_ = name_; onBuilt(); return result; @@ -324,38 +354,39 @@ public com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest buildPartial() 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.cloud.notebooks.v1beta1.UpgradeInstanceRequest) { - return mergeFrom((com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest)other); + return mergeFrom((com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest) other); } else { super.mergeFrom(other); return this; @@ -363,7 +394,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest other) { - if (other == com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -394,17 +426,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + + 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) { @@ -417,19 +451,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -438,21 +474,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -460,64 +497,71 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Format:
      * `projects/{project_id}/locations/{location}/instances/{instance_id}`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -527,12 +571,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1beta1.UpgradeInstanceRequest) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1beta1.UpgradeInstanceRequest) private static final com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest(); } @@ -541,27 +585,27 @@ public static com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpgradeInstanceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpgradeInstanceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -576,6 +620,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceRequestOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceRequestOrBuilder.java similarity index 52% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceRequestOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceRequestOrBuilder.java index 176e8c4a6de6..013db6ccd01f 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceRequestOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceRequestOrBuilder.java @@ -1,31 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/service.proto package com.google.cloud.notebooks.v1beta1; -public interface UpgradeInstanceRequestOrBuilder extends +public interface UpgradeInstanceRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1beta1.UpgradeInstanceRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. Format:
    * `projects/{project_id}/locations/{location}/instances/{instance_id}`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/VmImage.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/VmImage.java similarity index 70% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/VmImage.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/VmImage.java index 6f6624f09ac3..58137483064b 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/VmImage.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/VmImage.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/environment.proto package com.google.cloud.notebooks.v1beta1; /** + * + * *
  * Definition of a custom Compute Engine virtual machine image for starting a
  * notebook instance with the environment installed directly on the VM.
@@ -11,53 +28,58 @@
  *
  * Protobuf type {@code google.cloud.notebooks.v1beta1.VmImage}
  */
-public final class VmImage extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class VmImage extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.notebooks.v1beta1.VmImage)
     VmImageOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use VmImage.newBuilder() to construct.
   private VmImage(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private VmImage() {
     project_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new VmImage();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.notebooks.v1beta1.EnvironmentProto.internal_static_google_cloud_notebooks_v1beta1_VmImage_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.notebooks.v1beta1.EnvironmentProto
+        .internal_static_google_cloud_notebooks_v1beta1_VmImage_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.notebooks.v1beta1.EnvironmentProto.internal_static_google_cloud_notebooks_v1beta1_VmImage_fieldAccessorTable
+    return com.google.cloud.notebooks.v1beta1.EnvironmentProto
+        .internal_static_google_cloud_notebooks_v1beta1_VmImage_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.notebooks.v1beta1.VmImage.class, com.google.cloud.notebooks.v1beta1.VmImage.Builder.class);
+            com.google.cloud.notebooks.v1beta1.VmImage.class,
+            com.google.cloud.notebooks.v1beta1.VmImage.Builder.class);
   }
 
   private int imageCase_ = 0;
   private java.lang.Object image_;
+
   public enum ImageCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     IMAGE_NAME(2),
     IMAGE_FAMILY(3),
     IMAGE_NOT_SET(0);
     private final int value;
+
     private ImageCase(int value) {
       this.value = value;
     }
@@ -73,32 +95,38 @@ public static ImageCase valueOf(int value) {
 
     public static ImageCase forNumber(int value) {
       switch (value) {
-        case 2: return IMAGE_NAME;
-        case 3: return IMAGE_FAMILY;
-        case 0: return IMAGE_NOT_SET;
-        default: return null;
+        case 2:
+          return IMAGE_NAME;
+        case 3:
+          return IMAGE_FAMILY;
+        case 0:
+          return IMAGE_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public ImageCase
-  getImageCase() {
-    return ImageCase.forNumber(
-        imageCase_);
+  public ImageCase getImageCase() {
+    return ImageCase.forNumber(imageCase_);
   }
 
   public static final int PROJECT_FIELD_NUMBER = 1;
   private volatile java.lang.Object project_;
   /**
+   *
+   *
    * 
    * Required. The name of the Google Cloud project that this VM image belongs to.
    * Format: `projects/{project_id}`
    * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The project. */ @java.lang.Override @@ -107,30 +135,30 @@ public java.lang.String getProject() { 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(); project_ = s; return s; } } /** + * + * *
    * Required. The name of the Google Cloud project that this VM image belongs to.
    * Format: `projects/{project_id}`
    * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectBytes() { + public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; 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); project_ = b; return b; } else { @@ -140,22 +168,28 @@ public java.lang.String getProject() { public static final int IMAGE_NAME_FIELD_NUMBER = 2; /** + * + * *
    * Use VM image name to find the image.
    * 
* * string image_name = 2; + * * @return Whether the imageName field is set. */ public boolean hasImageName() { return imageCase_ == 2; } /** + * + * *
    * Use VM image name to find the image.
    * 
* * string image_name = 2; + * * @return The imageName. */ public java.lang.String getImageName() { @@ -166,8 +200,7 @@ public java.lang.String getImageName() { 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 (imageCase_ == 2) { image_ = s; @@ -176,23 +209,24 @@ public java.lang.String getImageName() { } } /** + * + * *
    * Use VM image name to find the image.
    * 
* * string image_name = 2; + * * @return The bytes for imageName. */ - public com.google.protobuf.ByteString - getImageNameBytes() { + public com.google.protobuf.ByteString getImageNameBytes() { java.lang.Object ref = ""; if (imageCase_ == 2) { ref = image_; } 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 (imageCase_ == 2) { image_ = b; } @@ -204,24 +238,30 @@ public java.lang.String getImageName() { public static final int IMAGE_FAMILY_FIELD_NUMBER = 3; /** + * + * *
    * Use this VM image family to find the image; the newest image in this
    * family will be used.
    * 
* * string image_family = 3; + * * @return Whether the imageFamily field is set. */ public boolean hasImageFamily() { return imageCase_ == 3; } /** + * + * *
    * Use this VM image family to find the image; the newest image in this
    * family will be used.
    * 
* * string image_family = 3; + * * @return The imageFamily. */ public java.lang.String getImageFamily() { @@ -232,8 +272,7 @@ public java.lang.String getImageFamily() { 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 (imageCase_ == 3) { image_ = s; @@ -242,24 +281,25 @@ public java.lang.String getImageFamily() { } } /** + * + * *
    * Use this VM image family to find the image; the newest image in this
    * family will be used.
    * 
* * string image_family = 3; + * * @return The bytes for imageFamily. */ - public com.google.protobuf.ByteString - getImageFamilyBytes() { + public com.google.protobuf.ByteString getImageFamilyBytes() { java.lang.Object ref = ""; if (imageCase_ == 3) { ref = image_; } 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 (imageCase_ == 3) { image_ = b; } @@ -270,6 +310,7 @@ public java.lang.String getImageFamily() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -281,8 +322,7 @@ 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(project_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); } @@ -318,24 +358,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.cloud.notebooks.v1beta1.VmImage)) { return super.equals(obj); } - com.google.cloud.notebooks.v1beta1.VmImage other = (com.google.cloud.notebooks.v1beta1.VmImage) obj; + com.google.cloud.notebooks.v1beta1.VmImage other = + (com.google.cloud.notebooks.v1beta1.VmImage) obj; - if (!getProject() - .equals(other.getProject())) return false; + if (!getProject().equals(other.getProject())) return false; if (!getImageCase().equals(other.getImageCase())) return false; switch (imageCase_) { case 2: - if (!getImageName() - .equals(other.getImageName())) return false; + if (!getImageName().equals(other.getImageName())) return false; break; case 3: - if (!getImageFamily() - .equals(other.getImageFamily())) return false; + if (!getImageFamily().equals(other.getImageFamily())) return false; break; case 0: default: @@ -370,97 +408,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.notebooks.v1beta1.VmImage parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.notebooks.v1beta1.VmImage parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.VmImage 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.cloud.notebooks.v1beta1.VmImage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.VmImage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.notebooks.v1beta1.VmImage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.notebooks.v1beta1.VmImage 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.cloud.notebooks.v1beta1.VmImage 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.cloud.notebooks.v1beta1.VmImage 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.cloud.notebooks.v1beta1.VmImage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.notebooks.v1beta1.VmImage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.notebooks.v1beta1.VmImage 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.cloud.notebooks.v1beta1.VmImage 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.cloud.notebooks.v1beta1.VmImage 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.cloud.notebooks.v1beta1.VmImage 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; } /** + * + * *
    * Definition of a custom Compute Engine virtual machine image for starting a
    * notebook instance with the environment installed directly on the VM.
@@ -468,33 +513,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.notebooks.v1beta1.VmImage}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.notebooks.v1beta1.VmImage)
       com.google.cloud.notebooks.v1beta1.VmImageOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.notebooks.v1beta1.EnvironmentProto.internal_static_google_cloud_notebooks_v1beta1_VmImage_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.notebooks.v1beta1.EnvironmentProto
+          .internal_static_google_cloud_notebooks_v1beta1_VmImage_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.notebooks.v1beta1.EnvironmentProto.internal_static_google_cloud_notebooks_v1beta1_VmImage_fieldAccessorTable
+      return com.google.cloud.notebooks.v1beta1.EnvironmentProto
+          .internal_static_google_cloud_notebooks_v1beta1_VmImage_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.notebooks.v1beta1.VmImage.class, com.google.cloud.notebooks.v1beta1.VmImage.Builder.class);
+              com.google.cloud.notebooks.v1beta1.VmImage.class,
+              com.google.cloud.notebooks.v1beta1.VmImage.Builder.class);
     }
 
     // Construct using com.google.cloud.notebooks.v1beta1.VmImage.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -506,9 +550,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.notebooks.v1beta1.EnvironmentProto.internal_static_google_cloud_notebooks_v1beta1_VmImage_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.notebooks.v1beta1.EnvironmentProto
+          .internal_static_google_cloud_notebooks_v1beta1_VmImage_descriptor;
     }
 
     @java.lang.Override
@@ -527,7 +571,8 @@ public com.google.cloud.notebooks.v1beta1.VmImage build() {
 
     @java.lang.Override
     public com.google.cloud.notebooks.v1beta1.VmImage buildPartial() {
-      com.google.cloud.notebooks.v1beta1.VmImage result = new com.google.cloud.notebooks.v1beta1.VmImage(this);
+      com.google.cloud.notebooks.v1beta1.VmImage result =
+          new com.google.cloud.notebooks.v1beta1.VmImage(this);
       result.project_ = project_;
       if (imageCase_ == 2) {
         result.image_ = image_;
@@ -544,38 +589,39 @@ public com.google.cloud.notebooks.v1beta1.VmImage buildPartial() {
     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.cloud.notebooks.v1beta1.VmImage) {
-        return mergeFrom((com.google.cloud.notebooks.v1beta1.VmImage)other);
+        return mergeFrom((com.google.cloud.notebooks.v1beta1.VmImage) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -589,21 +635,24 @@ public Builder mergeFrom(com.google.cloud.notebooks.v1beta1.VmImage other) {
         onChanged();
       }
       switch (other.getImageCase()) {
-        case IMAGE_NAME: {
-          imageCase_ = 2;
-          image_ = other.image_;
-          onChanged();
-          break;
-        }
-        case IMAGE_FAMILY: {
-          imageCase_ = 3;
-          image_ = other.image_;
-          onChanged();
-          break;
-        }
-        case IMAGE_NOT_SET: {
-          break;
-        }
+        case IMAGE_NAME:
+          {
+            imageCase_ = 2;
+            image_ = other.image_;
+            onChanged();
+            break;
+          }
+        case IMAGE_FAMILY:
+          {
+            imageCase_ = 3;
+            image_ = other.image_;
+            onChanged();
+            break;
+          }
+        case IMAGE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -631,29 +680,33 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              project_ = input.readStringRequireUtf8();
+            case 10:
+              {
+                project_ = input.readStringRequireUtf8();
 
-              break;
-            } // case 10
-            case 18: {
-              java.lang.String s = input.readStringRequireUtf8();
-              imageCase_ = 2;
-              image_ = s;
-              break;
-            } // case 18
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
-              imageCase_ = 3;
-              image_ = s;
-              break;
-            } // case 26
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+                break;
+              } // case 10
+            case 18:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                imageCase_ = 2;
+                image_ = s;
+                break;
+              } // case 18
+            case 26:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                imageCase_ = 3;
+                image_ = 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) {
@@ -663,12 +716,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int imageCase_ = 0;
     private java.lang.Object image_;
-    public ImageCase
-        getImageCase() {
-      return ImageCase.forNumber(
-          imageCase_);
+
+    public ImageCase getImageCase() {
+      return ImageCase.forNumber(imageCase_);
     }
 
     public Builder clearImage() {
@@ -678,22 +731,23 @@ public Builder clearImage() {
       return this;
     }
 
-
     private java.lang.Object project_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the Google Cloud project that this VM image belongs to.
      * Format: `projects/{project_id}`
      * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; 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(); project_ = s; return s; @@ -702,21 +756,22 @@ public java.lang.String getProject() { } } /** + * + * *
      * Required. The name of the Google Cloud project that this VM image belongs to.
      * Format: `projects/{project_id}`
      * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for project. */ - public com.google.protobuf.ByteString - getProjectBytes() { + public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; 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); project_ = b; return b; } else { @@ -724,68 +779,78 @@ public java.lang.String getProject() { } } /** + * + * *
      * Required. The name of the Google Cloud project that this VM image belongs to.
      * Format: `projects/{project_id}`
      * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject( - java.lang.String value) { + public Builder setProject(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + project_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the Google Cloud project that this VM image belongs to.
      * Format: `projects/{project_id}`
      * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearProject() { - + project_ = getDefaultInstance().getProject(); onChanged(); return this; } /** + * + * *
      * Required. The name of the Google Cloud project that this VM image belongs to.
      * Format: `projects/{project_id}`
      * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; onChanged(); return this; } /** + * + * *
      * Use VM image name to find the image.
      * 
* * string image_name = 2; + * * @return Whether the imageName field is set. */ @java.lang.Override @@ -793,11 +858,14 @@ public boolean hasImageName() { return imageCase_ == 2; } /** + * + * *
      * Use VM image name to find the image.
      * 
* * string image_name = 2; + * * @return The imageName. */ @java.lang.Override @@ -807,8 +875,7 @@ public java.lang.String getImageName() { ref = image_; } 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 (imageCase_ == 2) { image_ = s; @@ -819,24 +886,25 @@ public java.lang.String getImageName() { } } /** + * + * *
      * Use VM image name to find the image.
      * 
* * string image_name = 2; + * * @return The bytes for imageName. */ @java.lang.Override - public com.google.protobuf.ByteString - getImageNameBytes() { + public com.google.protobuf.ByteString getImageNameBytes() { java.lang.Object ref = ""; if (imageCase_ == 2) { ref = image_; } 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 (imageCase_ == 2) { image_ = b; } @@ -846,30 +914,35 @@ public java.lang.String getImageName() { } } /** + * + * *
      * Use VM image name to find the image.
      * 
* * string image_name = 2; + * * @param value The imageName to set. * @return This builder for chaining. */ - public Builder setImageName( - java.lang.String value) { + public Builder setImageName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - imageCase_ = 2; + throw new NullPointerException(); + } + imageCase_ = 2; image_ = value; onChanged(); return this; } /** + * + * *
      * Use VM image name to find the image.
      * 
* * string image_name = 2; + * * @return This builder for chaining. */ public Builder clearImageName() { @@ -881,20 +954,22 @@ public Builder clearImageName() { return this; } /** + * + * *
      * Use VM image name to find the image.
      * 
* * string image_name = 2; + * * @param value The bytes for imageName to set. * @return This builder for chaining. */ - public Builder setImageNameBytes( - com.google.protobuf.ByteString value) { + public Builder setImageNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); imageCase_ = 2; image_ = value; onChanged(); @@ -902,12 +977,15 @@ public Builder setImageNameBytes( } /** + * + * *
      * Use this VM image family to find the image; the newest image in this
      * family will be used.
      * 
* * string image_family = 3; + * * @return Whether the imageFamily field is set. */ @java.lang.Override @@ -915,12 +993,15 @@ public boolean hasImageFamily() { return imageCase_ == 3; } /** + * + * *
      * Use this VM image family to find the image; the newest image in this
      * family will be used.
      * 
* * string image_family = 3; + * * @return The imageFamily. */ @java.lang.Override @@ -930,8 +1011,7 @@ public java.lang.String getImageFamily() { ref = image_; } 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 (imageCase_ == 3) { image_ = s; @@ -942,25 +1022,26 @@ public java.lang.String getImageFamily() { } } /** + * + * *
      * Use this VM image family to find the image; the newest image in this
      * family will be used.
      * 
* * string image_family = 3; + * * @return The bytes for imageFamily. */ @java.lang.Override - public com.google.protobuf.ByteString - getImageFamilyBytes() { + public com.google.protobuf.ByteString getImageFamilyBytes() { java.lang.Object ref = ""; if (imageCase_ == 3) { ref = image_; } 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 (imageCase_ == 3) { image_ = b; } @@ -970,32 +1051,37 @@ public java.lang.String getImageFamily() { } } /** + * + * *
      * Use this VM image family to find the image; the newest image in this
      * family will be used.
      * 
* * string image_family = 3; + * * @param value The imageFamily to set. * @return This builder for chaining. */ - public Builder setImageFamily( - java.lang.String value) { + public Builder setImageFamily(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - imageCase_ = 3; + throw new NullPointerException(); + } + imageCase_ = 3; image_ = value; onChanged(); return this; } /** + * + * *
      * Use this VM image family to find the image; the newest image in this
      * family will be used.
      * 
* * string image_family = 3; + * * @return This builder for chaining. */ public Builder clearImageFamily() { @@ -1007,29 +1093,31 @@ public Builder clearImageFamily() { return this; } /** + * + * *
      * Use this VM image family to find the image; the newest image in this
      * family will be used.
      * 
* * string image_family = 3; + * * @param value The bytes for imageFamily to set. * @return This builder for chaining. */ - public Builder setImageFamilyBytes( - com.google.protobuf.ByteString value) { + public Builder setImageFamilyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); imageCase_ = 3; image_ = 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); } @@ -1039,12 +1127,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.notebooks.v1beta1.VmImage) } // @@protoc_insertion_point(class_scope:google.cloud.notebooks.v1beta1.VmImage) private static final com.google.cloud.notebooks.v1beta1.VmImage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.notebooks.v1beta1.VmImage(); } @@ -1053,27 +1141,27 @@ public static com.google.cloud.notebooks.v1beta1.VmImage getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VmImage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VmImage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 parser() { return PARSER; @@ -1088,6 +1176,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.notebooks.v1beta1.VmImage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/VmImageOrBuilder.java b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/VmImageOrBuilder.java similarity index 70% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/VmImageOrBuilder.java rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/VmImageOrBuilder.java index 0e72bb62b943..0c0f55333476 100644 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/VmImageOrBuilder.java +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/VmImageOrBuilder.java @@ -1,94 +1,131 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/notebooks/v1beta1/environment.proto package com.google.cloud.notebooks.v1beta1; -public interface VmImageOrBuilder extends +public interface VmImageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1beta1.VmImage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the Google Cloud project that this VM image belongs to.
    * Format: `projects/{project_id}`
    * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The project. */ java.lang.String getProject(); /** + * + * *
    * Required. The name of the Google Cloud project that this VM image belongs to.
    * Format: `projects/{project_id}`
    * 
* * string project = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for project. */ - com.google.protobuf.ByteString - getProjectBytes(); + com.google.protobuf.ByteString getProjectBytes(); /** + * + * *
    * Use VM image name to find the image.
    * 
* * string image_name = 2; + * * @return Whether the imageName field is set. */ boolean hasImageName(); /** + * + * *
    * Use VM image name to find the image.
    * 
* * string image_name = 2; + * * @return The imageName. */ java.lang.String getImageName(); /** + * + * *
    * Use VM image name to find the image.
    * 
* * string image_name = 2; + * * @return The bytes for imageName. */ - com.google.protobuf.ByteString - getImageNameBytes(); + com.google.protobuf.ByteString getImageNameBytes(); /** + * + * *
    * Use this VM image family to find the image; the newest image in this
    * family will be used.
    * 
* * string image_family = 3; + * * @return Whether the imageFamily field is set. */ boolean hasImageFamily(); /** + * + * *
    * Use this VM image family to find the image; the newest image in this
    * family will be used.
    * 
* * string image_family = 3; + * * @return The imageFamily. */ java.lang.String getImageFamily(); /** + * + * *
    * Use this VM image family to find the image; the newest image in this
    * family will be used.
    * 
* * string image_family = 3; + * * @return The bytes for imageFamily. */ - com.google.protobuf.ByteString - getImageFamilyBytes(); + com.google.protobuf.ByteString getImageFamilyBytes(); public com.google.cloud.notebooks.v1beta1.VmImage.ImageCase getImageCase(); } diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/proto/google/cloud/notebooks/v1beta1/environment.proto b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/proto/google/cloud/notebooks/v1beta1/environment.proto similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/proto/google/cloud/notebooks/v1beta1/environment.proto rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/proto/google/cloud/notebooks/v1beta1/environment.proto diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/proto/google/cloud/notebooks/v1beta1/instance.proto b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/proto/google/cloud/notebooks/v1beta1/instance.proto similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/proto/google/cloud/notebooks/v1beta1/instance.proto rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/proto/google/cloud/notebooks/v1beta1/instance.proto diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/proto/google/cloud/notebooks/v1beta1/service.proto b/java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/proto/google/cloud/notebooks/v1beta1/service.proto similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/proto/google/cloud/notebooks/v1beta1/service.proto rename to java-notebooks/proto-google-cloud-notebooks-v1beta1/src/main/proto/google/cloud/notebooks/v1beta1/service.proto diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/create/SyncCreateSetCredentialsProvider.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/create/SyncCreateSetCredentialsProvider.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/create/SyncCreateSetEndpoint.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/create/SyncCreateSetEndpoint.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/createruntime/AsyncCreateRuntime.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/createruntime/AsyncCreateRuntime.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/createruntime/AsyncCreateRuntime.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/createruntime/AsyncCreateRuntime.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/createruntime/AsyncCreateRuntimeLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/createruntime/AsyncCreateRuntimeLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/createruntime/AsyncCreateRuntimeLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/createruntime/AsyncCreateRuntimeLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/createruntime/SyncCreateRuntime.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/createruntime/SyncCreateRuntime.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/createruntime/SyncCreateRuntime.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/createruntime/SyncCreateRuntime.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/createruntime/SyncCreateRuntimeRuntimenameStringRuntime.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/createruntime/SyncCreateRuntimeRuntimenameStringRuntime.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/createruntime/SyncCreateRuntimeRuntimenameStringRuntime.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/createruntime/SyncCreateRuntimeRuntimenameStringRuntime.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/createruntime/SyncCreateRuntimeStringStringRuntime.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/createruntime/SyncCreateRuntimeStringStringRuntime.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/createruntime/SyncCreateRuntimeStringStringRuntime.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/createruntime/SyncCreateRuntimeStringStringRuntime.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/deleteruntime/AsyncDeleteRuntime.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/deleteruntime/AsyncDeleteRuntime.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/deleteruntime/AsyncDeleteRuntime.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/deleteruntime/AsyncDeleteRuntime.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/deleteruntime/AsyncDeleteRuntimeLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/deleteruntime/AsyncDeleteRuntimeLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/deleteruntime/AsyncDeleteRuntimeLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/deleteruntime/AsyncDeleteRuntimeLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/deleteruntime/SyncDeleteRuntime.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/deleteruntime/SyncDeleteRuntime.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/deleteruntime/SyncDeleteRuntime.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/deleteruntime/SyncDeleteRuntime.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/deleteruntime/SyncDeleteRuntimeRuntimename.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/deleteruntime/SyncDeleteRuntimeRuntimename.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/deleteruntime/SyncDeleteRuntimeRuntimename.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/deleteruntime/SyncDeleteRuntimeRuntimename.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/deleteruntime/SyncDeleteRuntimeString.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/deleteruntime/SyncDeleteRuntimeString.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/deleteruntime/SyncDeleteRuntimeString.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/deleteruntime/SyncDeleteRuntimeString.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/diagnoseruntime/AsyncDiagnoseRuntime.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/diagnoseruntime/AsyncDiagnoseRuntime.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/diagnoseruntime/AsyncDiagnoseRuntime.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/diagnoseruntime/AsyncDiagnoseRuntime.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/diagnoseruntime/AsyncDiagnoseRuntimeLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/diagnoseruntime/AsyncDiagnoseRuntimeLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/diagnoseruntime/AsyncDiagnoseRuntimeLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/diagnoseruntime/AsyncDiagnoseRuntimeLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/diagnoseruntime/SyncDiagnoseRuntime.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/diagnoseruntime/SyncDiagnoseRuntime.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/diagnoseruntime/SyncDiagnoseRuntime.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/diagnoseruntime/SyncDiagnoseRuntime.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/diagnoseruntime/SyncDiagnoseRuntimeRuntimenameDiagnosticconfig.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/diagnoseruntime/SyncDiagnoseRuntimeRuntimenameDiagnosticconfig.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/diagnoseruntime/SyncDiagnoseRuntimeRuntimenameDiagnosticconfig.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/diagnoseruntime/SyncDiagnoseRuntimeRuntimenameDiagnosticconfig.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/diagnoseruntime/SyncDiagnoseRuntimeStringDiagnosticconfig.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/diagnoseruntime/SyncDiagnoseRuntimeStringDiagnosticconfig.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/diagnoseruntime/SyncDiagnoseRuntimeStringDiagnosticconfig.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/diagnoseruntime/SyncDiagnoseRuntimeStringDiagnosticconfig.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/getiampolicy/AsyncGetIamPolicy.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/getiampolicy/AsyncGetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/getiampolicy/AsyncGetIamPolicy.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/getiampolicy/AsyncGetIamPolicy.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/getiampolicy/SyncGetIamPolicy.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/getiampolicy/SyncGetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/getiampolicy/SyncGetIamPolicy.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/getiampolicy/SyncGetIamPolicy.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/getlocation/AsyncGetLocation.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/getlocation/AsyncGetLocation.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/getlocation/AsyncGetLocation.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/getlocation/AsyncGetLocation.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/getlocation/SyncGetLocation.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/getlocation/SyncGetLocation.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/getlocation/SyncGetLocation.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/getlocation/SyncGetLocation.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/getruntime/AsyncGetRuntime.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/getruntime/AsyncGetRuntime.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/getruntime/AsyncGetRuntime.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/getruntime/AsyncGetRuntime.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/getruntime/SyncGetRuntime.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/getruntime/SyncGetRuntime.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/getruntime/SyncGetRuntime.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/getruntime/SyncGetRuntime.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/getruntime/SyncGetRuntimeRuntimename.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/getruntime/SyncGetRuntimeRuntimename.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/getruntime/SyncGetRuntimeRuntimename.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/getruntime/SyncGetRuntimeRuntimename.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/getruntime/SyncGetRuntimeString.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/getruntime/SyncGetRuntimeString.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/getruntime/SyncGetRuntimeString.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/getruntime/SyncGetRuntimeString.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/listlocations/AsyncListLocations.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/listlocations/AsyncListLocations.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/listlocations/AsyncListLocations.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/listlocations/AsyncListLocations.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/listlocations/AsyncListLocationsPaged.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/listlocations/AsyncListLocationsPaged.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/listlocations/AsyncListLocationsPaged.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/listlocations/AsyncListLocationsPaged.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/listlocations/SyncListLocations.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/listlocations/SyncListLocations.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/listlocations/SyncListLocations.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/listlocations/SyncListLocations.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/listruntimes/AsyncListRuntimes.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/listruntimes/AsyncListRuntimes.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/listruntimes/AsyncListRuntimes.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/listruntimes/AsyncListRuntimes.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/listruntimes/AsyncListRuntimesPaged.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/listruntimes/AsyncListRuntimesPaged.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/listruntimes/AsyncListRuntimesPaged.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/listruntimes/AsyncListRuntimesPaged.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/listruntimes/SyncListRuntimes.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/listruntimes/SyncListRuntimes.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/listruntimes/SyncListRuntimes.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/listruntimes/SyncListRuntimes.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/listruntimes/SyncListRuntimesLocationname.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/listruntimes/SyncListRuntimesLocationname.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/listruntimes/SyncListRuntimesLocationname.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/listruntimes/SyncListRuntimesLocationname.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/listruntimes/SyncListRuntimesString.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/listruntimes/SyncListRuntimesString.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/listruntimes/SyncListRuntimesString.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/listruntimes/SyncListRuntimesString.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/refreshruntimetokeninternal/AsyncRefreshRuntimeTokenInternal.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/refreshruntimetokeninternal/AsyncRefreshRuntimeTokenInternal.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/refreshruntimetokeninternal/AsyncRefreshRuntimeTokenInternal.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/refreshruntimetokeninternal/AsyncRefreshRuntimeTokenInternal.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternal.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternal.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternal.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternal.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternalRuntimenameString.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternalRuntimenameString.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternalRuntimenameString.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternalRuntimenameString.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternalStringString.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternalStringString.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternalStringString.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/refreshruntimetokeninternal/SyncRefreshRuntimeTokenInternalStringString.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/reportruntimeevent/AsyncReportRuntimeEvent.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/reportruntimeevent/AsyncReportRuntimeEvent.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/reportruntimeevent/AsyncReportRuntimeEvent.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/reportruntimeevent/AsyncReportRuntimeEvent.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/reportruntimeevent/AsyncReportRuntimeEventLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/reportruntimeevent/AsyncReportRuntimeEventLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/reportruntimeevent/AsyncReportRuntimeEventLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/reportruntimeevent/AsyncReportRuntimeEventLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/reportruntimeevent/SyncReportRuntimeEvent.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/reportruntimeevent/SyncReportRuntimeEvent.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/reportruntimeevent/SyncReportRuntimeEvent.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/reportruntimeevent/SyncReportRuntimeEvent.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/reportruntimeevent/SyncReportRuntimeEventRuntimename.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/reportruntimeevent/SyncReportRuntimeEventRuntimename.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/reportruntimeevent/SyncReportRuntimeEventRuntimename.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/reportruntimeevent/SyncReportRuntimeEventRuntimename.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/reportruntimeevent/SyncReportRuntimeEventString.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/reportruntimeevent/SyncReportRuntimeEventString.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/reportruntimeevent/SyncReportRuntimeEventString.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/reportruntimeevent/SyncReportRuntimeEventString.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/resetruntime/AsyncResetRuntime.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/resetruntime/AsyncResetRuntime.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/resetruntime/AsyncResetRuntime.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/resetruntime/AsyncResetRuntime.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/resetruntime/AsyncResetRuntimeLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/resetruntime/AsyncResetRuntimeLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/resetruntime/AsyncResetRuntimeLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/resetruntime/AsyncResetRuntimeLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/resetruntime/SyncResetRuntime.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/resetruntime/SyncResetRuntime.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/resetruntime/SyncResetRuntime.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/resetruntime/SyncResetRuntime.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/resetruntime/SyncResetRuntimeString.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/resetruntime/SyncResetRuntimeString.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/resetruntime/SyncResetRuntimeString.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/resetruntime/SyncResetRuntimeString.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/setiampolicy/AsyncSetIamPolicy.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/setiampolicy/AsyncSetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/setiampolicy/AsyncSetIamPolicy.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/setiampolicy/AsyncSetIamPolicy.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/setiampolicy/SyncSetIamPolicy.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/setiampolicy/SyncSetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/setiampolicy/SyncSetIamPolicy.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/setiampolicy/SyncSetIamPolicy.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/startruntime/AsyncStartRuntime.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/startruntime/AsyncStartRuntime.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/startruntime/AsyncStartRuntime.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/startruntime/AsyncStartRuntime.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/startruntime/AsyncStartRuntimeLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/startruntime/AsyncStartRuntimeLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/startruntime/AsyncStartRuntimeLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/startruntime/AsyncStartRuntimeLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/startruntime/SyncStartRuntime.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/startruntime/SyncStartRuntime.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/startruntime/SyncStartRuntime.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/startruntime/SyncStartRuntime.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/startruntime/SyncStartRuntimeString.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/startruntime/SyncStartRuntimeString.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/startruntime/SyncStartRuntimeString.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/startruntime/SyncStartRuntimeString.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/stopruntime/AsyncStopRuntime.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/stopruntime/AsyncStopRuntime.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/stopruntime/AsyncStopRuntime.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/stopruntime/AsyncStopRuntime.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/stopruntime/AsyncStopRuntimeLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/stopruntime/AsyncStopRuntimeLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/stopruntime/AsyncStopRuntimeLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/stopruntime/AsyncStopRuntimeLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/stopruntime/SyncStopRuntime.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/stopruntime/SyncStopRuntime.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/stopruntime/SyncStopRuntime.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/stopruntime/SyncStopRuntime.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/stopruntime/SyncStopRuntimeString.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/stopruntime/SyncStopRuntimeString.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/stopruntime/SyncStopRuntimeString.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/stopruntime/SyncStopRuntimeString.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/switchruntime/AsyncSwitchRuntime.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/switchruntime/AsyncSwitchRuntime.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/switchruntime/AsyncSwitchRuntime.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/switchruntime/AsyncSwitchRuntime.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/switchruntime/AsyncSwitchRuntimeLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/switchruntime/AsyncSwitchRuntimeLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/switchruntime/AsyncSwitchRuntimeLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/switchruntime/AsyncSwitchRuntimeLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/switchruntime/SyncSwitchRuntime.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/switchruntime/SyncSwitchRuntime.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/switchruntime/SyncSwitchRuntime.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/switchruntime/SyncSwitchRuntime.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/switchruntime/SyncSwitchRuntimeString.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/switchruntime/SyncSwitchRuntimeString.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/switchruntime/SyncSwitchRuntimeString.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/switchruntime/SyncSwitchRuntimeString.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/testiampermissions/AsyncTestIamPermissions.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/testiampermissions/AsyncTestIamPermissions.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/testiampermissions/AsyncTestIamPermissions.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/testiampermissions/AsyncTestIamPermissions.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/testiampermissions/SyncTestIamPermissions.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/testiampermissions/SyncTestIamPermissions.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/testiampermissions/SyncTestIamPermissions.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/testiampermissions/SyncTestIamPermissions.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/updateruntime/AsyncUpdateRuntime.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/updateruntime/AsyncUpdateRuntime.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/updateruntime/AsyncUpdateRuntime.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/updateruntime/AsyncUpdateRuntime.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/updateruntime/AsyncUpdateRuntimeLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/updateruntime/AsyncUpdateRuntimeLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/updateruntime/AsyncUpdateRuntimeLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/updateruntime/AsyncUpdateRuntimeLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/updateruntime/SyncUpdateRuntime.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/updateruntime/SyncUpdateRuntime.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/updateruntime/SyncUpdateRuntime.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/updateruntime/SyncUpdateRuntime.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/updateruntime/SyncUpdateRuntimeRuntimeFieldmask.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/updateruntime/SyncUpdateRuntimeRuntimeFieldmask.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/updateruntime/SyncUpdateRuntimeRuntimeFieldmask.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/updateruntime/SyncUpdateRuntimeRuntimeFieldmask.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/upgraderuntime/AsyncUpgradeRuntime.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/upgraderuntime/AsyncUpgradeRuntime.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/upgraderuntime/AsyncUpgradeRuntime.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/upgraderuntime/AsyncUpgradeRuntime.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/upgraderuntime/AsyncUpgradeRuntimeLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/upgraderuntime/AsyncUpgradeRuntimeLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/upgraderuntime/AsyncUpgradeRuntimeLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/upgraderuntime/AsyncUpgradeRuntimeLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/upgraderuntime/SyncUpgradeRuntime.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/upgraderuntime/SyncUpgradeRuntime.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/upgraderuntime/SyncUpgradeRuntime.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/upgraderuntime/SyncUpgradeRuntime.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/upgraderuntime/SyncUpgradeRuntimeString.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/upgraderuntime/SyncUpgradeRuntimeString.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/upgraderuntime/SyncUpgradeRuntimeString.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservice/upgraderuntime/SyncUpgradeRuntimeString.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservicesettings/getruntime/SyncGetRuntime.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservicesettings/getruntime/SyncGetRuntime.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservicesettings/getruntime/SyncGetRuntime.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/managednotebookservicesettings/getruntime/SyncGetRuntime.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/create/SyncCreateSetCredentialsProvider.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/create/SyncCreateSetCredentialsProvider.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/create/SyncCreateSetEndpoint.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/create/SyncCreateSetEndpoint.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createenvironment/AsyncCreateEnvironment.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createenvironment/AsyncCreateEnvironment.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createenvironment/AsyncCreateEnvironment.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createenvironment/AsyncCreateEnvironment.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createenvironment/AsyncCreateEnvironmentLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createenvironment/AsyncCreateEnvironmentLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createenvironment/AsyncCreateEnvironmentLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createenvironment/AsyncCreateEnvironmentLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createenvironment/SyncCreateEnvironment.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createenvironment/SyncCreateEnvironment.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createenvironment/SyncCreateEnvironment.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createenvironment/SyncCreateEnvironment.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createenvironment/SyncCreateEnvironmentStringEnvironmentString.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createenvironment/SyncCreateEnvironmentStringEnvironmentString.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createenvironment/SyncCreateEnvironmentStringEnvironmentString.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createenvironment/SyncCreateEnvironmentStringEnvironmentString.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createexecution/AsyncCreateExecution.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createexecution/AsyncCreateExecution.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createexecution/AsyncCreateExecution.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createexecution/AsyncCreateExecution.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createexecution/AsyncCreateExecutionLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createexecution/AsyncCreateExecutionLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createexecution/AsyncCreateExecutionLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createexecution/AsyncCreateExecutionLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createexecution/SyncCreateExecution.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createexecution/SyncCreateExecution.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createexecution/SyncCreateExecution.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createexecution/SyncCreateExecution.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createexecution/SyncCreateExecutionExecutionnameExecutionString.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createexecution/SyncCreateExecutionExecutionnameExecutionString.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createexecution/SyncCreateExecutionExecutionnameExecutionString.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createexecution/SyncCreateExecutionExecutionnameExecutionString.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createexecution/SyncCreateExecutionStringExecutionString.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createexecution/SyncCreateExecutionStringExecutionString.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createexecution/SyncCreateExecutionStringExecutionString.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createexecution/SyncCreateExecutionStringExecutionString.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createinstance/AsyncCreateInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createinstance/AsyncCreateInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createinstance/AsyncCreateInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createinstance/AsyncCreateInstance.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createinstance/AsyncCreateInstanceLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createinstance/AsyncCreateInstanceLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createinstance/AsyncCreateInstanceLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createinstance/AsyncCreateInstanceLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createinstance/SyncCreateInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createinstance/SyncCreateInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createinstance/SyncCreateInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createinstance/SyncCreateInstance.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createinstance/SyncCreateInstanceStringInstanceString.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createinstance/SyncCreateInstanceStringInstanceString.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createinstance/SyncCreateInstanceStringInstanceString.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createinstance/SyncCreateInstanceStringInstanceString.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createschedule/AsyncCreateSchedule.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createschedule/AsyncCreateSchedule.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createschedule/AsyncCreateSchedule.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createschedule/AsyncCreateSchedule.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createschedule/AsyncCreateScheduleLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createschedule/AsyncCreateScheduleLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createschedule/AsyncCreateScheduleLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createschedule/AsyncCreateScheduleLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createschedule/SyncCreateSchedule.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createschedule/SyncCreateSchedule.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createschedule/SyncCreateSchedule.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createschedule/SyncCreateSchedule.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createschedule/SyncCreateScheduleSchedulenameScheduleString.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createschedule/SyncCreateScheduleSchedulenameScheduleString.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createschedule/SyncCreateScheduleSchedulenameScheduleString.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createschedule/SyncCreateScheduleSchedulenameScheduleString.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createschedule/SyncCreateScheduleStringScheduleString.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createschedule/SyncCreateScheduleStringScheduleString.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createschedule/SyncCreateScheduleStringScheduleString.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/createschedule/SyncCreateScheduleStringScheduleString.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteenvironment/AsyncDeleteEnvironment.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteenvironment/AsyncDeleteEnvironment.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteenvironment/AsyncDeleteEnvironment.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteenvironment/AsyncDeleteEnvironment.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteenvironment/AsyncDeleteEnvironmentLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteenvironment/AsyncDeleteEnvironmentLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteenvironment/AsyncDeleteEnvironmentLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteenvironment/AsyncDeleteEnvironmentLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteenvironment/SyncDeleteEnvironment.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteenvironment/SyncDeleteEnvironment.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteenvironment/SyncDeleteEnvironment.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteenvironment/SyncDeleteEnvironment.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteenvironment/SyncDeleteEnvironmentString.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteenvironment/SyncDeleteEnvironmentString.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteenvironment/SyncDeleteEnvironmentString.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteenvironment/SyncDeleteEnvironmentString.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteexecution/AsyncDeleteExecution.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteexecution/AsyncDeleteExecution.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteexecution/AsyncDeleteExecution.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteexecution/AsyncDeleteExecution.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteexecution/AsyncDeleteExecutionLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteexecution/AsyncDeleteExecutionLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteexecution/AsyncDeleteExecutionLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteexecution/AsyncDeleteExecutionLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteexecution/SyncDeleteExecution.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteexecution/SyncDeleteExecution.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteexecution/SyncDeleteExecution.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteexecution/SyncDeleteExecution.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteexecution/SyncDeleteExecutionExecutionname.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteexecution/SyncDeleteExecutionExecutionname.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteexecution/SyncDeleteExecutionExecutionname.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteexecution/SyncDeleteExecutionExecutionname.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteexecution/SyncDeleteExecutionString.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteexecution/SyncDeleteExecutionString.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteexecution/SyncDeleteExecutionString.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteexecution/SyncDeleteExecutionString.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteinstance/AsyncDeleteInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteinstance/AsyncDeleteInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteinstance/AsyncDeleteInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteinstance/AsyncDeleteInstance.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteinstance/AsyncDeleteInstanceLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteinstance/AsyncDeleteInstanceLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteinstance/AsyncDeleteInstanceLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteinstance/AsyncDeleteInstanceLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteinstance/SyncDeleteInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteinstance/SyncDeleteInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteinstance/SyncDeleteInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteinstance/SyncDeleteInstance.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteinstance/SyncDeleteInstanceString.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteinstance/SyncDeleteInstanceString.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteinstance/SyncDeleteInstanceString.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteinstance/SyncDeleteInstanceString.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteschedule/AsyncDeleteSchedule.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteschedule/AsyncDeleteSchedule.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteschedule/AsyncDeleteSchedule.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteschedule/AsyncDeleteSchedule.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteschedule/AsyncDeleteScheduleLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteschedule/AsyncDeleteScheduleLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteschedule/AsyncDeleteScheduleLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteschedule/AsyncDeleteScheduleLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteschedule/SyncDeleteSchedule.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteschedule/SyncDeleteSchedule.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteschedule/SyncDeleteSchedule.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteschedule/SyncDeleteSchedule.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteschedule/SyncDeleteScheduleSchedulename.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteschedule/SyncDeleteScheduleSchedulename.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteschedule/SyncDeleteScheduleSchedulename.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteschedule/SyncDeleteScheduleSchedulename.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteschedule/SyncDeleteScheduleString.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteschedule/SyncDeleteScheduleString.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteschedule/SyncDeleteScheduleString.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/deleteschedule/SyncDeleteScheduleString.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/diagnoseinstance/AsyncDiagnoseInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/diagnoseinstance/AsyncDiagnoseInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/diagnoseinstance/AsyncDiagnoseInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/diagnoseinstance/AsyncDiagnoseInstance.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/diagnoseinstance/AsyncDiagnoseInstanceLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/diagnoseinstance/AsyncDiagnoseInstanceLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/diagnoseinstance/AsyncDiagnoseInstanceLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/diagnoseinstance/AsyncDiagnoseInstanceLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/diagnoseinstance/SyncDiagnoseInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/diagnoseinstance/SyncDiagnoseInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/diagnoseinstance/SyncDiagnoseInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/diagnoseinstance/SyncDiagnoseInstance.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/diagnoseinstance/SyncDiagnoseInstanceInstancenameDiagnosticconfig.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/diagnoseinstance/SyncDiagnoseInstanceInstancenameDiagnosticconfig.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/diagnoseinstance/SyncDiagnoseInstanceInstancenameDiagnosticconfig.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/diagnoseinstance/SyncDiagnoseInstanceInstancenameDiagnosticconfig.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/diagnoseinstance/SyncDiagnoseInstanceStringDiagnosticconfig.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/diagnoseinstance/SyncDiagnoseInstanceStringDiagnosticconfig.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/diagnoseinstance/SyncDiagnoseInstanceStringDiagnosticconfig.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/diagnoseinstance/SyncDiagnoseInstanceStringDiagnosticconfig.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getenvironment/AsyncGetEnvironment.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getenvironment/AsyncGetEnvironment.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getenvironment/AsyncGetEnvironment.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getenvironment/AsyncGetEnvironment.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getenvironment/SyncGetEnvironment.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getenvironment/SyncGetEnvironment.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getenvironment/SyncGetEnvironment.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getenvironment/SyncGetEnvironment.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getenvironment/SyncGetEnvironmentString.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getenvironment/SyncGetEnvironmentString.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getenvironment/SyncGetEnvironmentString.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getenvironment/SyncGetEnvironmentString.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getexecution/AsyncGetExecution.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getexecution/AsyncGetExecution.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getexecution/AsyncGetExecution.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getexecution/AsyncGetExecution.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getexecution/SyncGetExecution.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getexecution/SyncGetExecution.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getexecution/SyncGetExecution.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getexecution/SyncGetExecution.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getexecution/SyncGetExecutionExecutionname.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getexecution/SyncGetExecutionExecutionname.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getexecution/SyncGetExecutionExecutionname.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getexecution/SyncGetExecutionExecutionname.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getexecution/SyncGetExecutionString.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getexecution/SyncGetExecutionString.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getexecution/SyncGetExecutionString.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getexecution/SyncGetExecutionString.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getiampolicy/AsyncGetIamPolicy.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getiampolicy/AsyncGetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getiampolicy/AsyncGetIamPolicy.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getiampolicy/AsyncGetIamPolicy.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getiampolicy/SyncGetIamPolicy.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getiampolicy/SyncGetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getiampolicy/SyncGetIamPolicy.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getiampolicy/SyncGetIamPolicy.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getinstance/AsyncGetInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getinstance/AsyncGetInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getinstance/AsyncGetInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getinstance/AsyncGetInstance.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getinstance/SyncGetInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getinstance/SyncGetInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getinstance/SyncGetInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getinstance/SyncGetInstance.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getinstance/SyncGetInstanceString.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getinstance/SyncGetInstanceString.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getinstance/SyncGetInstanceString.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getinstance/SyncGetInstanceString.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getinstancehealth/AsyncGetInstanceHealth.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getinstancehealth/AsyncGetInstanceHealth.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getinstancehealth/AsyncGetInstanceHealth.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getinstancehealth/AsyncGetInstanceHealth.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getinstancehealth/SyncGetInstanceHealth.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getinstancehealth/SyncGetInstanceHealth.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getinstancehealth/SyncGetInstanceHealth.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getinstancehealth/SyncGetInstanceHealth.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getinstancehealth/SyncGetInstanceHealthInstancename.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getinstancehealth/SyncGetInstanceHealthInstancename.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getinstancehealth/SyncGetInstanceHealthInstancename.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getinstancehealth/SyncGetInstanceHealthInstancename.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getinstancehealth/SyncGetInstanceHealthString.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getinstancehealth/SyncGetInstanceHealthString.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getinstancehealth/SyncGetInstanceHealthString.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getinstancehealth/SyncGetInstanceHealthString.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getlocation/AsyncGetLocation.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getlocation/AsyncGetLocation.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getlocation/AsyncGetLocation.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getlocation/AsyncGetLocation.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getlocation/SyncGetLocation.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getlocation/SyncGetLocation.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getlocation/SyncGetLocation.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getlocation/SyncGetLocation.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getschedule/AsyncGetSchedule.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getschedule/AsyncGetSchedule.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getschedule/AsyncGetSchedule.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getschedule/AsyncGetSchedule.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getschedule/SyncGetSchedule.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getschedule/SyncGetSchedule.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getschedule/SyncGetSchedule.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getschedule/SyncGetSchedule.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getschedule/SyncGetScheduleSchedulename.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getschedule/SyncGetScheduleSchedulename.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getschedule/SyncGetScheduleSchedulename.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getschedule/SyncGetScheduleSchedulename.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getschedule/SyncGetScheduleString.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getschedule/SyncGetScheduleString.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getschedule/SyncGetScheduleString.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/getschedule/SyncGetScheduleString.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/isinstanceupgradeable/AsyncIsInstanceUpgradeable.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/isinstanceupgradeable/AsyncIsInstanceUpgradeable.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/isinstanceupgradeable/AsyncIsInstanceUpgradeable.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/isinstanceupgradeable/AsyncIsInstanceUpgradeable.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/isinstanceupgradeable/SyncIsInstanceUpgradeable.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/isinstanceupgradeable/SyncIsInstanceUpgradeable.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/isinstanceupgradeable/SyncIsInstanceUpgradeable.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/isinstanceupgradeable/SyncIsInstanceUpgradeable.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listenvironments/AsyncListEnvironments.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listenvironments/AsyncListEnvironments.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listenvironments/AsyncListEnvironments.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listenvironments/AsyncListEnvironments.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listenvironments/AsyncListEnvironmentsPaged.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listenvironments/AsyncListEnvironmentsPaged.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listenvironments/AsyncListEnvironmentsPaged.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listenvironments/AsyncListEnvironmentsPaged.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listenvironments/SyncListEnvironments.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listenvironments/SyncListEnvironments.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listenvironments/SyncListEnvironments.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listenvironments/SyncListEnvironments.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listenvironments/SyncListEnvironmentsString.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listenvironments/SyncListEnvironmentsString.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listenvironments/SyncListEnvironmentsString.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listenvironments/SyncListEnvironmentsString.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listexecutions/AsyncListExecutions.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listexecutions/AsyncListExecutions.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listexecutions/AsyncListExecutions.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listexecutions/AsyncListExecutions.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listexecutions/AsyncListExecutionsPaged.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listexecutions/AsyncListExecutionsPaged.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listexecutions/AsyncListExecutionsPaged.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listexecutions/AsyncListExecutionsPaged.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listexecutions/SyncListExecutions.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listexecutions/SyncListExecutions.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listexecutions/SyncListExecutions.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listexecutions/SyncListExecutions.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listexecutions/SyncListExecutionsExecutionname.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listexecutions/SyncListExecutionsExecutionname.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listexecutions/SyncListExecutionsExecutionname.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listexecutions/SyncListExecutionsExecutionname.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listexecutions/SyncListExecutionsString.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listexecutions/SyncListExecutionsString.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listexecutions/SyncListExecutionsString.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listexecutions/SyncListExecutionsString.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listinstances/AsyncListInstances.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listinstances/AsyncListInstances.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listinstances/AsyncListInstances.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listinstances/AsyncListInstances.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listinstances/AsyncListInstancesPaged.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listinstances/AsyncListInstancesPaged.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listinstances/AsyncListInstancesPaged.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listinstances/AsyncListInstancesPaged.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listinstances/SyncListInstances.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listinstances/SyncListInstances.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listinstances/SyncListInstances.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listinstances/SyncListInstances.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listinstances/SyncListInstancesString.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listinstances/SyncListInstancesString.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listinstances/SyncListInstancesString.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listinstances/SyncListInstancesString.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listlocations/AsyncListLocations.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listlocations/AsyncListLocations.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listlocations/AsyncListLocations.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listlocations/AsyncListLocations.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listlocations/AsyncListLocationsPaged.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listlocations/AsyncListLocationsPaged.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listlocations/AsyncListLocationsPaged.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listlocations/AsyncListLocationsPaged.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listlocations/SyncListLocations.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listlocations/SyncListLocations.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listlocations/SyncListLocations.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listlocations/SyncListLocations.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listschedules/AsyncListSchedules.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listschedules/AsyncListSchedules.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listschedules/AsyncListSchedules.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listschedules/AsyncListSchedules.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listschedules/AsyncListSchedulesPaged.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listschedules/AsyncListSchedulesPaged.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listschedules/AsyncListSchedulesPaged.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listschedules/AsyncListSchedulesPaged.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listschedules/SyncListSchedules.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listschedules/SyncListSchedules.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listschedules/SyncListSchedules.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listschedules/SyncListSchedules.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listschedules/SyncListSchedulesSchedulename.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listschedules/SyncListSchedulesSchedulename.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listschedules/SyncListSchedulesSchedulename.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listschedules/SyncListSchedulesSchedulename.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listschedules/SyncListSchedulesString.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listschedules/SyncListSchedulesString.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listschedules/SyncListSchedulesString.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/listschedules/SyncListSchedulesString.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/registerinstance/AsyncRegisterInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/registerinstance/AsyncRegisterInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/registerinstance/AsyncRegisterInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/registerinstance/AsyncRegisterInstance.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/registerinstance/AsyncRegisterInstanceLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/registerinstance/AsyncRegisterInstanceLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/registerinstance/AsyncRegisterInstanceLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/registerinstance/AsyncRegisterInstanceLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/registerinstance/SyncRegisterInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/registerinstance/SyncRegisterInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/registerinstance/SyncRegisterInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/registerinstance/SyncRegisterInstance.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/reportinstanceinfo/AsyncReportInstanceInfo.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/reportinstanceinfo/AsyncReportInstanceInfo.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/reportinstanceinfo/AsyncReportInstanceInfo.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/reportinstanceinfo/AsyncReportInstanceInfo.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/reportinstanceinfo/AsyncReportInstanceInfoLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/reportinstanceinfo/AsyncReportInstanceInfoLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/reportinstanceinfo/AsyncReportInstanceInfoLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/reportinstanceinfo/AsyncReportInstanceInfoLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/reportinstanceinfo/SyncReportInstanceInfo.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/reportinstanceinfo/SyncReportInstanceInfo.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/reportinstanceinfo/SyncReportInstanceInfo.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/reportinstanceinfo/SyncReportInstanceInfo.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/resetinstance/AsyncResetInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/resetinstance/AsyncResetInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/resetinstance/AsyncResetInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/resetinstance/AsyncResetInstance.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/resetinstance/AsyncResetInstanceLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/resetinstance/AsyncResetInstanceLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/resetinstance/AsyncResetInstanceLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/resetinstance/AsyncResetInstanceLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/resetinstance/SyncResetInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/resetinstance/SyncResetInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/resetinstance/SyncResetInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/resetinstance/SyncResetInstance.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/rollbackinstance/AsyncRollbackInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/rollbackinstance/AsyncRollbackInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/rollbackinstance/AsyncRollbackInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/rollbackinstance/AsyncRollbackInstance.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/rollbackinstance/AsyncRollbackInstanceLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/rollbackinstance/AsyncRollbackInstanceLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/rollbackinstance/AsyncRollbackInstanceLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/rollbackinstance/AsyncRollbackInstanceLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/rollbackinstance/SyncRollbackInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/rollbackinstance/SyncRollbackInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/rollbackinstance/SyncRollbackInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/rollbackinstance/SyncRollbackInstance.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setiampolicy/AsyncSetIamPolicy.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setiampolicy/AsyncSetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setiampolicy/AsyncSetIamPolicy.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setiampolicy/AsyncSetIamPolicy.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setiampolicy/SyncSetIamPolicy.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setiampolicy/SyncSetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setiampolicy/SyncSetIamPolicy.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setiampolicy/SyncSetIamPolicy.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstanceaccelerator/AsyncSetInstanceAccelerator.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstanceaccelerator/AsyncSetInstanceAccelerator.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstanceaccelerator/AsyncSetInstanceAccelerator.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstanceaccelerator/AsyncSetInstanceAccelerator.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstanceaccelerator/AsyncSetInstanceAcceleratorLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstanceaccelerator/AsyncSetInstanceAcceleratorLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstanceaccelerator/AsyncSetInstanceAcceleratorLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstanceaccelerator/AsyncSetInstanceAcceleratorLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstanceaccelerator/SyncSetInstanceAccelerator.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstanceaccelerator/SyncSetInstanceAccelerator.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstanceaccelerator/SyncSetInstanceAccelerator.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstanceaccelerator/SyncSetInstanceAccelerator.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstancelabels/AsyncSetInstanceLabels.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstancelabels/AsyncSetInstanceLabels.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstancelabels/AsyncSetInstanceLabels.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstancelabels/AsyncSetInstanceLabels.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstancelabels/AsyncSetInstanceLabelsLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstancelabels/AsyncSetInstanceLabelsLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstancelabels/AsyncSetInstanceLabelsLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstancelabels/AsyncSetInstanceLabelsLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstancelabels/SyncSetInstanceLabels.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstancelabels/SyncSetInstanceLabels.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstancelabels/SyncSetInstanceLabels.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstancelabels/SyncSetInstanceLabels.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstancemachinetype/AsyncSetInstanceMachineType.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstancemachinetype/AsyncSetInstanceMachineType.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstancemachinetype/AsyncSetInstanceMachineType.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstancemachinetype/AsyncSetInstanceMachineType.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstancemachinetype/AsyncSetInstanceMachineTypeLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstancemachinetype/AsyncSetInstanceMachineTypeLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstancemachinetype/AsyncSetInstanceMachineTypeLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstancemachinetype/AsyncSetInstanceMachineTypeLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstancemachinetype/SyncSetInstanceMachineType.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstancemachinetype/SyncSetInstanceMachineType.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstancemachinetype/SyncSetInstanceMachineType.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/setinstancemachinetype/SyncSetInstanceMachineType.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/startinstance/AsyncStartInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/startinstance/AsyncStartInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/startinstance/AsyncStartInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/startinstance/AsyncStartInstance.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/startinstance/AsyncStartInstanceLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/startinstance/AsyncStartInstanceLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/startinstance/AsyncStartInstanceLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/startinstance/AsyncStartInstanceLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/startinstance/SyncStartInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/startinstance/SyncStartInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/startinstance/SyncStartInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/startinstance/SyncStartInstance.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/stopinstance/AsyncStopInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/stopinstance/AsyncStopInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/stopinstance/AsyncStopInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/stopinstance/AsyncStopInstance.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/stopinstance/AsyncStopInstanceLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/stopinstance/AsyncStopInstanceLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/stopinstance/AsyncStopInstanceLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/stopinstance/AsyncStopInstanceLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/stopinstance/SyncStopInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/stopinstance/SyncStopInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/stopinstance/SyncStopInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/stopinstance/SyncStopInstance.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/testiampermissions/AsyncTestIamPermissions.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/testiampermissions/AsyncTestIamPermissions.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/testiampermissions/AsyncTestIamPermissions.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/testiampermissions/AsyncTestIamPermissions.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/testiampermissions/SyncTestIamPermissions.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/testiampermissions/SyncTestIamPermissions.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/testiampermissions/SyncTestIamPermissions.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/testiampermissions/SyncTestIamPermissions.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/triggerschedule/AsyncTriggerSchedule.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/triggerschedule/AsyncTriggerSchedule.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/triggerschedule/AsyncTriggerSchedule.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/triggerschedule/AsyncTriggerSchedule.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/triggerschedule/AsyncTriggerScheduleLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/triggerschedule/AsyncTriggerScheduleLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/triggerschedule/AsyncTriggerScheduleLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/triggerschedule/AsyncTriggerScheduleLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/triggerschedule/SyncTriggerSchedule.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/triggerschedule/SyncTriggerSchedule.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/triggerschedule/SyncTriggerSchedule.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/triggerschedule/SyncTriggerSchedule.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/updateinstanceconfig/AsyncUpdateInstanceConfig.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/updateinstanceconfig/AsyncUpdateInstanceConfig.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/updateinstanceconfig/AsyncUpdateInstanceConfig.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/updateinstanceconfig/AsyncUpdateInstanceConfig.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/updateinstanceconfig/AsyncUpdateInstanceConfigLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/updateinstanceconfig/AsyncUpdateInstanceConfigLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/updateinstanceconfig/AsyncUpdateInstanceConfigLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/updateinstanceconfig/AsyncUpdateInstanceConfigLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/updateinstanceconfig/SyncUpdateInstanceConfig.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/updateinstanceconfig/SyncUpdateInstanceConfig.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/updateinstanceconfig/SyncUpdateInstanceConfig.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/updateinstanceconfig/SyncUpdateInstanceConfig.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/updateinstancemetadataitems/AsyncUpdateInstanceMetadataItems.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/updateinstancemetadataitems/AsyncUpdateInstanceMetadataItems.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/updateinstancemetadataitems/AsyncUpdateInstanceMetadataItems.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/updateinstancemetadataitems/AsyncUpdateInstanceMetadataItems.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/updateinstancemetadataitems/SyncUpdateInstanceMetadataItems.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/updateinstancemetadataitems/SyncUpdateInstanceMetadataItems.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/updateinstancemetadataitems/SyncUpdateInstanceMetadataItems.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/updateinstancemetadataitems/SyncUpdateInstanceMetadataItems.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/updateshieldedinstanceconfig/AsyncUpdateShieldedInstanceConfig.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/updateshieldedinstanceconfig/AsyncUpdateShieldedInstanceConfig.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/updateshieldedinstanceconfig/AsyncUpdateShieldedInstanceConfig.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/updateshieldedinstanceconfig/AsyncUpdateShieldedInstanceConfig.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/updateshieldedinstanceconfig/AsyncUpdateShieldedInstanceConfigLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/updateshieldedinstanceconfig/AsyncUpdateShieldedInstanceConfigLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/updateshieldedinstanceconfig/AsyncUpdateShieldedInstanceConfigLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/updateshieldedinstanceconfig/AsyncUpdateShieldedInstanceConfigLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/updateshieldedinstanceconfig/SyncUpdateShieldedInstanceConfig.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/updateshieldedinstanceconfig/SyncUpdateShieldedInstanceConfig.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/updateshieldedinstanceconfig/SyncUpdateShieldedInstanceConfig.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/updateshieldedinstanceconfig/SyncUpdateShieldedInstanceConfig.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/upgradeinstance/AsyncUpgradeInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/upgradeinstance/AsyncUpgradeInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/upgradeinstance/AsyncUpgradeInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/upgradeinstance/AsyncUpgradeInstance.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/upgradeinstance/AsyncUpgradeInstanceLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/upgradeinstance/AsyncUpgradeInstanceLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/upgradeinstance/AsyncUpgradeInstanceLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/upgradeinstance/AsyncUpgradeInstanceLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/upgradeinstance/SyncUpgradeInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/upgradeinstance/SyncUpgradeInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/upgradeinstance/SyncUpgradeInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/upgradeinstance/SyncUpgradeInstance.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/upgradeinstanceinternal/AsyncUpgradeInstanceInternal.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/upgradeinstanceinternal/AsyncUpgradeInstanceInternal.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/upgradeinstanceinternal/AsyncUpgradeInstanceInternal.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/upgradeinstanceinternal/AsyncUpgradeInstanceInternal.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/upgradeinstanceinternal/AsyncUpgradeInstanceInternalLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/upgradeinstanceinternal/AsyncUpgradeInstanceInternalLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/upgradeinstanceinternal/AsyncUpgradeInstanceInternalLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/upgradeinstanceinternal/AsyncUpgradeInstanceInternalLRO.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/upgradeinstanceinternal/SyncUpgradeInstanceInternal.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/upgradeinstanceinternal/SyncUpgradeInstanceInternal.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/upgradeinstanceinternal/SyncUpgradeInstanceInternal.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservice/upgradeinstanceinternal/SyncUpgradeInstanceInternal.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservicesettings/getinstance/SyncGetInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservicesettings/getinstance/SyncGetInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservicesettings/getinstance/SyncGetInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/notebookservicesettings/getinstance/SyncGetInstance.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/stub/managednotebookservicestubsettings/getruntime/SyncGetRuntime.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/stub/managednotebookservicestubsettings/getruntime/SyncGetRuntime.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/stub/managednotebookservicestubsettings/getruntime/SyncGetRuntime.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/stub/managednotebookservicestubsettings/getruntime/SyncGetRuntime.java diff --git a/owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/stub/notebookservicestubsettings/getinstance/SyncGetInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/stub/notebookservicestubsettings/getinstance/SyncGetInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1/samples/snippets/generated/com/google/cloud/notebooks/v1/stub/notebookservicestubsettings/getinstance/SyncGetInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1/stub/notebookservicestubsettings/getinstance/SyncGetInstance.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/create/SyncCreateSetCredentialsProvider.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/create/SyncCreateSetCredentialsProvider.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/create/SyncCreateSetEndpoint.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/create/SyncCreateSetEndpoint.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/createenvironment/AsyncCreateEnvironment.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/createenvironment/AsyncCreateEnvironment.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/createenvironment/AsyncCreateEnvironment.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/createenvironment/AsyncCreateEnvironment.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/createenvironment/AsyncCreateEnvironmentLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/createenvironment/AsyncCreateEnvironmentLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/createenvironment/AsyncCreateEnvironmentLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/createenvironment/AsyncCreateEnvironmentLRO.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/createenvironment/SyncCreateEnvironment.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/createenvironment/SyncCreateEnvironment.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/createenvironment/SyncCreateEnvironment.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/createenvironment/SyncCreateEnvironment.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/createinstance/AsyncCreateInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/createinstance/AsyncCreateInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/createinstance/AsyncCreateInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/createinstance/AsyncCreateInstance.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/createinstance/AsyncCreateInstanceLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/createinstance/AsyncCreateInstanceLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/createinstance/AsyncCreateInstanceLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/createinstance/AsyncCreateInstanceLRO.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/createinstance/SyncCreateInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/createinstance/SyncCreateInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/createinstance/SyncCreateInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/createinstance/SyncCreateInstance.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/deleteenvironment/AsyncDeleteEnvironment.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/deleteenvironment/AsyncDeleteEnvironment.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/deleteenvironment/AsyncDeleteEnvironment.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/deleteenvironment/AsyncDeleteEnvironment.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/deleteenvironment/AsyncDeleteEnvironmentLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/deleteenvironment/AsyncDeleteEnvironmentLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/deleteenvironment/AsyncDeleteEnvironmentLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/deleteenvironment/AsyncDeleteEnvironmentLRO.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/deleteenvironment/SyncDeleteEnvironment.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/deleteenvironment/SyncDeleteEnvironment.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/deleteenvironment/SyncDeleteEnvironment.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/deleteenvironment/SyncDeleteEnvironment.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/deleteinstance/AsyncDeleteInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/deleteinstance/AsyncDeleteInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/deleteinstance/AsyncDeleteInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/deleteinstance/AsyncDeleteInstance.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/deleteinstance/AsyncDeleteInstanceLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/deleteinstance/AsyncDeleteInstanceLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/deleteinstance/AsyncDeleteInstanceLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/deleteinstance/AsyncDeleteInstanceLRO.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/deleteinstance/SyncDeleteInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/deleteinstance/SyncDeleteInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/deleteinstance/SyncDeleteInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/deleteinstance/SyncDeleteInstance.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/getenvironment/AsyncGetEnvironment.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/getenvironment/AsyncGetEnvironment.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/getenvironment/AsyncGetEnvironment.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/getenvironment/AsyncGetEnvironment.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/getenvironment/SyncGetEnvironment.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/getenvironment/SyncGetEnvironment.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/getenvironment/SyncGetEnvironment.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/getenvironment/SyncGetEnvironment.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/getiampolicy/AsyncGetIamPolicy.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/getiampolicy/AsyncGetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/getiampolicy/AsyncGetIamPolicy.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/getiampolicy/AsyncGetIamPolicy.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/getiampolicy/SyncGetIamPolicy.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/getiampolicy/SyncGetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/getiampolicy/SyncGetIamPolicy.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/getiampolicy/SyncGetIamPolicy.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/getinstance/AsyncGetInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/getinstance/AsyncGetInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/getinstance/AsyncGetInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/getinstance/AsyncGetInstance.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/getinstance/SyncGetInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/getinstance/SyncGetInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/getinstance/SyncGetInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/getinstance/SyncGetInstance.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/getlocation/AsyncGetLocation.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/getlocation/AsyncGetLocation.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/getlocation/AsyncGetLocation.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/getlocation/AsyncGetLocation.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/getlocation/SyncGetLocation.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/getlocation/SyncGetLocation.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/getlocation/SyncGetLocation.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/getlocation/SyncGetLocation.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/isinstanceupgradeable/AsyncIsInstanceUpgradeable.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/isinstanceupgradeable/AsyncIsInstanceUpgradeable.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/isinstanceupgradeable/AsyncIsInstanceUpgradeable.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/isinstanceupgradeable/AsyncIsInstanceUpgradeable.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/isinstanceupgradeable/SyncIsInstanceUpgradeable.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/isinstanceupgradeable/SyncIsInstanceUpgradeable.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/isinstanceupgradeable/SyncIsInstanceUpgradeable.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/isinstanceupgradeable/SyncIsInstanceUpgradeable.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listenvironments/AsyncListEnvironments.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listenvironments/AsyncListEnvironments.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listenvironments/AsyncListEnvironments.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listenvironments/AsyncListEnvironments.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listenvironments/AsyncListEnvironmentsPaged.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listenvironments/AsyncListEnvironmentsPaged.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listenvironments/AsyncListEnvironmentsPaged.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listenvironments/AsyncListEnvironmentsPaged.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listenvironments/SyncListEnvironments.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listenvironments/SyncListEnvironments.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listenvironments/SyncListEnvironments.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listenvironments/SyncListEnvironments.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listinstances/AsyncListInstances.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listinstances/AsyncListInstances.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listinstances/AsyncListInstances.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listinstances/AsyncListInstances.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listinstances/AsyncListInstancesPaged.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listinstances/AsyncListInstancesPaged.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listinstances/AsyncListInstancesPaged.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listinstances/AsyncListInstancesPaged.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listinstances/SyncListInstances.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listinstances/SyncListInstances.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listinstances/SyncListInstances.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listinstances/SyncListInstances.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listlocations/AsyncListLocations.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listlocations/AsyncListLocations.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listlocations/AsyncListLocations.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listlocations/AsyncListLocations.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listlocations/AsyncListLocationsPaged.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listlocations/AsyncListLocationsPaged.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listlocations/AsyncListLocationsPaged.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listlocations/AsyncListLocationsPaged.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listlocations/SyncListLocations.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listlocations/SyncListLocations.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listlocations/SyncListLocations.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/listlocations/SyncListLocations.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/registerinstance/AsyncRegisterInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/registerinstance/AsyncRegisterInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/registerinstance/AsyncRegisterInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/registerinstance/AsyncRegisterInstance.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/registerinstance/AsyncRegisterInstanceLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/registerinstance/AsyncRegisterInstanceLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/registerinstance/AsyncRegisterInstanceLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/registerinstance/AsyncRegisterInstanceLRO.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/registerinstance/SyncRegisterInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/registerinstance/SyncRegisterInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/registerinstance/SyncRegisterInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/registerinstance/SyncRegisterInstance.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/reportinstanceinfo/AsyncReportInstanceInfo.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/reportinstanceinfo/AsyncReportInstanceInfo.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/reportinstanceinfo/AsyncReportInstanceInfo.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/reportinstanceinfo/AsyncReportInstanceInfo.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/reportinstanceinfo/AsyncReportInstanceInfoLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/reportinstanceinfo/AsyncReportInstanceInfoLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/reportinstanceinfo/AsyncReportInstanceInfoLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/reportinstanceinfo/AsyncReportInstanceInfoLRO.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/reportinstanceinfo/SyncReportInstanceInfo.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/reportinstanceinfo/SyncReportInstanceInfo.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/reportinstanceinfo/SyncReportInstanceInfo.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/reportinstanceinfo/SyncReportInstanceInfo.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/resetinstance/AsyncResetInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/resetinstance/AsyncResetInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/resetinstance/AsyncResetInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/resetinstance/AsyncResetInstance.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/resetinstance/AsyncResetInstanceLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/resetinstance/AsyncResetInstanceLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/resetinstance/AsyncResetInstanceLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/resetinstance/AsyncResetInstanceLRO.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/resetinstance/SyncResetInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/resetinstance/SyncResetInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/resetinstance/SyncResetInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/resetinstance/SyncResetInstance.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setiampolicy/AsyncSetIamPolicy.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setiampolicy/AsyncSetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setiampolicy/AsyncSetIamPolicy.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setiampolicy/AsyncSetIamPolicy.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setiampolicy/SyncSetIamPolicy.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setiampolicy/SyncSetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setiampolicy/SyncSetIamPolicy.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setiampolicy/SyncSetIamPolicy.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstanceaccelerator/AsyncSetInstanceAccelerator.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstanceaccelerator/AsyncSetInstanceAccelerator.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstanceaccelerator/AsyncSetInstanceAccelerator.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstanceaccelerator/AsyncSetInstanceAccelerator.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstanceaccelerator/AsyncSetInstanceAcceleratorLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstanceaccelerator/AsyncSetInstanceAcceleratorLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstanceaccelerator/AsyncSetInstanceAcceleratorLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstanceaccelerator/AsyncSetInstanceAcceleratorLRO.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstanceaccelerator/SyncSetInstanceAccelerator.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstanceaccelerator/SyncSetInstanceAccelerator.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstanceaccelerator/SyncSetInstanceAccelerator.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstanceaccelerator/SyncSetInstanceAccelerator.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstancelabels/AsyncSetInstanceLabels.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstancelabels/AsyncSetInstanceLabels.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstancelabels/AsyncSetInstanceLabels.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstancelabels/AsyncSetInstanceLabels.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstancelabels/AsyncSetInstanceLabelsLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstancelabels/AsyncSetInstanceLabelsLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstancelabels/AsyncSetInstanceLabelsLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstancelabels/AsyncSetInstanceLabelsLRO.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstancelabels/SyncSetInstanceLabels.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstancelabels/SyncSetInstanceLabels.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstancelabels/SyncSetInstanceLabels.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstancelabels/SyncSetInstanceLabels.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstancemachinetype/AsyncSetInstanceMachineType.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstancemachinetype/AsyncSetInstanceMachineType.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstancemachinetype/AsyncSetInstanceMachineType.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstancemachinetype/AsyncSetInstanceMachineType.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstancemachinetype/AsyncSetInstanceMachineTypeLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstancemachinetype/AsyncSetInstanceMachineTypeLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstancemachinetype/AsyncSetInstanceMachineTypeLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstancemachinetype/AsyncSetInstanceMachineTypeLRO.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstancemachinetype/SyncSetInstanceMachineType.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstancemachinetype/SyncSetInstanceMachineType.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstancemachinetype/SyncSetInstanceMachineType.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/setinstancemachinetype/SyncSetInstanceMachineType.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/startinstance/AsyncStartInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/startinstance/AsyncStartInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/startinstance/AsyncStartInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/startinstance/AsyncStartInstance.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/startinstance/AsyncStartInstanceLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/startinstance/AsyncStartInstanceLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/startinstance/AsyncStartInstanceLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/startinstance/AsyncStartInstanceLRO.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/startinstance/SyncStartInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/startinstance/SyncStartInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/startinstance/SyncStartInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/startinstance/SyncStartInstance.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/stopinstance/AsyncStopInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/stopinstance/AsyncStopInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/stopinstance/AsyncStopInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/stopinstance/AsyncStopInstance.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/stopinstance/AsyncStopInstanceLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/stopinstance/AsyncStopInstanceLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/stopinstance/AsyncStopInstanceLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/stopinstance/AsyncStopInstanceLRO.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/stopinstance/SyncStopInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/stopinstance/SyncStopInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/stopinstance/SyncStopInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/stopinstance/SyncStopInstance.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/testiampermissions/AsyncTestIamPermissions.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/testiampermissions/AsyncTestIamPermissions.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/testiampermissions/AsyncTestIamPermissions.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/testiampermissions/AsyncTestIamPermissions.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/testiampermissions/SyncTestIamPermissions.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/testiampermissions/SyncTestIamPermissions.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/testiampermissions/SyncTestIamPermissions.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/testiampermissions/SyncTestIamPermissions.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/upgradeinstance/AsyncUpgradeInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/upgradeinstance/AsyncUpgradeInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/upgradeinstance/AsyncUpgradeInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/upgradeinstance/AsyncUpgradeInstance.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/upgradeinstance/AsyncUpgradeInstanceLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/upgradeinstance/AsyncUpgradeInstanceLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/upgradeinstance/AsyncUpgradeInstanceLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/upgradeinstance/AsyncUpgradeInstanceLRO.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/upgradeinstance/SyncUpgradeInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/upgradeinstance/SyncUpgradeInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/upgradeinstance/SyncUpgradeInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/upgradeinstance/SyncUpgradeInstance.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/upgradeinstanceinternal/AsyncUpgradeInstanceInternal.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/upgradeinstanceinternal/AsyncUpgradeInstanceInternal.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/upgradeinstanceinternal/AsyncUpgradeInstanceInternal.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/upgradeinstanceinternal/AsyncUpgradeInstanceInternal.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/upgradeinstanceinternal/AsyncUpgradeInstanceInternalLRO.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/upgradeinstanceinternal/AsyncUpgradeInstanceInternalLRO.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/upgradeinstanceinternal/AsyncUpgradeInstanceInternalLRO.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/upgradeinstanceinternal/AsyncUpgradeInstanceInternalLRO.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/upgradeinstanceinternal/SyncUpgradeInstanceInternal.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/upgradeinstanceinternal/SyncUpgradeInstanceInternal.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/upgradeinstanceinternal/SyncUpgradeInstanceInternal.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservice/upgradeinstanceinternal/SyncUpgradeInstanceInternal.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservicesettings/getinstance/SyncGetInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservicesettings/getinstance/SyncGetInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservicesettings/getinstance/SyncGetInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/notebookservicesettings/getinstance/SyncGetInstance.java diff --git a/owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/stub/notebookservicestubsettings/getinstance/SyncGetInstance.java b/java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/stub/notebookservicestubsettings/getinstance/SyncGetInstance.java similarity index 100% rename from owl-bot-staging/java-notebooks/v1beta1/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/stub/notebookservicestubsettings/getinstance/SyncGetInstance.java rename to java-notebooks/samples/snippets/generated/com/google/cloud/notebooks/v1beta1/stub/notebookservicestubsettings/getinstance/SyncGetInstance.java diff --git a/owl-bot-staging/java-notebooks/v1/grpc-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceGrpc.java b/owl-bot-staging/java-notebooks/v1/grpc-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceGrpc.java deleted file mode 100644 index 10c244b49bf1..000000000000 --- a/owl-bot-staging/java-notebooks/v1/grpc-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceGrpc.java +++ /dev/null @@ -1,1375 +0,0 @@ -package com.google.cloud.notebooks.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * API v1 service for Managed Notebooks.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/notebooks/v1/managed_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ManagedNotebookServiceGrpc { - - private ManagedNotebookServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.notebooks.v1.ManagedNotebookService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListRuntimesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRuntimes", - requestType = com.google.cloud.notebooks.v1.ListRuntimesRequest.class, - responseType = com.google.cloud.notebooks.v1.ListRuntimesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListRuntimesMethod() { - io.grpc.MethodDescriptor getListRuntimesMethod; - if ((getListRuntimesMethod = ManagedNotebookServiceGrpc.getListRuntimesMethod) == null) { - synchronized (ManagedNotebookServiceGrpc.class) { - if ((getListRuntimesMethod = ManagedNotebookServiceGrpc.getListRuntimesMethod) == null) { - ManagedNotebookServiceGrpc.getListRuntimesMethod = getListRuntimesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRuntimes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.ListRuntimesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.ListRuntimesResponse.getDefaultInstance())) - .setSchemaDescriptor(new ManagedNotebookServiceMethodDescriptorSupplier("ListRuntimes")) - .build(); - } - } - } - return getListRuntimesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetRuntimeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetRuntime", - requestType = com.google.cloud.notebooks.v1.GetRuntimeRequest.class, - responseType = com.google.cloud.notebooks.v1.Runtime.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetRuntimeMethod() { - io.grpc.MethodDescriptor getGetRuntimeMethod; - if ((getGetRuntimeMethod = ManagedNotebookServiceGrpc.getGetRuntimeMethod) == null) { - synchronized (ManagedNotebookServiceGrpc.class) { - if ((getGetRuntimeMethod = ManagedNotebookServiceGrpc.getGetRuntimeMethod) == null) { - ManagedNotebookServiceGrpc.getGetRuntimeMethod = getGetRuntimeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRuntime")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.GetRuntimeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.Runtime.getDefaultInstance())) - .setSchemaDescriptor(new ManagedNotebookServiceMethodDescriptorSupplier("GetRuntime")) - .build(); - } - } - } - return getGetRuntimeMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateRuntimeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateRuntime", - requestType = com.google.cloud.notebooks.v1.CreateRuntimeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateRuntimeMethod() { - io.grpc.MethodDescriptor getCreateRuntimeMethod; - if ((getCreateRuntimeMethod = ManagedNotebookServiceGrpc.getCreateRuntimeMethod) == null) { - synchronized (ManagedNotebookServiceGrpc.class) { - if ((getCreateRuntimeMethod = ManagedNotebookServiceGrpc.getCreateRuntimeMethod) == null) { - ManagedNotebookServiceGrpc.getCreateRuntimeMethod = getCreateRuntimeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRuntime")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.CreateRuntimeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ManagedNotebookServiceMethodDescriptorSupplier("CreateRuntime")) - .build(); - } - } - } - return getCreateRuntimeMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateRuntimeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateRuntime", - requestType = com.google.cloud.notebooks.v1.UpdateRuntimeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateRuntimeMethod() { - io.grpc.MethodDescriptor getUpdateRuntimeMethod; - if ((getUpdateRuntimeMethod = ManagedNotebookServiceGrpc.getUpdateRuntimeMethod) == null) { - synchronized (ManagedNotebookServiceGrpc.class) { - if ((getUpdateRuntimeMethod = ManagedNotebookServiceGrpc.getUpdateRuntimeMethod) == null) { - ManagedNotebookServiceGrpc.getUpdateRuntimeMethod = getUpdateRuntimeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRuntime")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.UpdateRuntimeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ManagedNotebookServiceMethodDescriptorSupplier("UpdateRuntime")) - .build(); - } - } - } - return getUpdateRuntimeMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteRuntimeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteRuntime", - requestType = com.google.cloud.notebooks.v1.DeleteRuntimeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteRuntimeMethod() { - io.grpc.MethodDescriptor getDeleteRuntimeMethod; - if ((getDeleteRuntimeMethod = ManagedNotebookServiceGrpc.getDeleteRuntimeMethod) == null) { - synchronized (ManagedNotebookServiceGrpc.class) { - if ((getDeleteRuntimeMethod = ManagedNotebookServiceGrpc.getDeleteRuntimeMethod) == null) { - ManagedNotebookServiceGrpc.getDeleteRuntimeMethod = getDeleteRuntimeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRuntime")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.DeleteRuntimeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ManagedNotebookServiceMethodDescriptorSupplier("DeleteRuntime")) - .build(); - } - } - } - return getDeleteRuntimeMethod; - } - - private static volatile io.grpc.MethodDescriptor getStartRuntimeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartRuntime", - requestType = com.google.cloud.notebooks.v1.StartRuntimeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStartRuntimeMethod() { - io.grpc.MethodDescriptor getStartRuntimeMethod; - if ((getStartRuntimeMethod = ManagedNotebookServiceGrpc.getStartRuntimeMethod) == null) { - synchronized (ManagedNotebookServiceGrpc.class) { - if ((getStartRuntimeMethod = ManagedNotebookServiceGrpc.getStartRuntimeMethod) == null) { - ManagedNotebookServiceGrpc.getStartRuntimeMethod = getStartRuntimeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartRuntime")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.StartRuntimeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ManagedNotebookServiceMethodDescriptorSupplier("StartRuntime")) - .build(); - } - } - } - return getStartRuntimeMethod; - } - - private static volatile io.grpc.MethodDescriptor getStopRuntimeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopRuntime", - requestType = com.google.cloud.notebooks.v1.StopRuntimeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStopRuntimeMethod() { - io.grpc.MethodDescriptor getStopRuntimeMethod; - if ((getStopRuntimeMethod = ManagedNotebookServiceGrpc.getStopRuntimeMethod) == null) { - synchronized (ManagedNotebookServiceGrpc.class) { - if ((getStopRuntimeMethod = ManagedNotebookServiceGrpc.getStopRuntimeMethod) == null) { - ManagedNotebookServiceGrpc.getStopRuntimeMethod = getStopRuntimeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopRuntime")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.StopRuntimeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ManagedNotebookServiceMethodDescriptorSupplier("StopRuntime")) - .build(); - } - } - } - return getStopRuntimeMethod; - } - - private static volatile io.grpc.MethodDescriptor getSwitchRuntimeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SwitchRuntime", - requestType = com.google.cloud.notebooks.v1.SwitchRuntimeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSwitchRuntimeMethod() { - io.grpc.MethodDescriptor getSwitchRuntimeMethod; - if ((getSwitchRuntimeMethod = ManagedNotebookServiceGrpc.getSwitchRuntimeMethod) == null) { - synchronized (ManagedNotebookServiceGrpc.class) { - if ((getSwitchRuntimeMethod = ManagedNotebookServiceGrpc.getSwitchRuntimeMethod) == null) { - ManagedNotebookServiceGrpc.getSwitchRuntimeMethod = getSwitchRuntimeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SwitchRuntime")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.SwitchRuntimeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ManagedNotebookServiceMethodDescriptorSupplier("SwitchRuntime")) - .build(); - } - } - } - return getSwitchRuntimeMethod; - } - - private static volatile io.grpc.MethodDescriptor getResetRuntimeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ResetRuntime", - requestType = com.google.cloud.notebooks.v1.ResetRuntimeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getResetRuntimeMethod() { - io.grpc.MethodDescriptor getResetRuntimeMethod; - if ((getResetRuntimeMethod = ManagedNotebookServiceGrpc.getResetRuntimeMethod) == null) { - synchronized (ManagedNotebookServiceGrpc.class) { - if ((getResetRuntimeMethod = ManagedNotebookServiceGrpc.getResetRuntimeMethod) == null) { - ManagedNotebookServiceGrpc.getResetRuntimeMethod = getResetRuntimeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResetRuntime")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.ResetRuntimeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ManagedNotebookServiceMethodDescriptorSupplier("ResetRuntime")) - .build(); - } - } - } - return getResetRuntimeMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpgradeRuntimeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpgradeRuntime", - requestType = com.google.cloud.notebooks.v1.UpgradeRuntimeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpgradeRuntimeMethod() { - io.grpc.MethodDescriptor getUpgradeRuntimeMethod; - if ((getUpgradeRuntimeMethod = ManagedNotebookServiceGrpc.getUpgradeRuntimeMethod) == null) { - synchronized (ManagedNotebookServiceGrpc.class) { - if ((getUpgradeRuntimeMethod = ManagedNotebookServiceGrpc.getUpgradeRuntimeMethod) == null) { - ManagedNotebookServiceGrpc.getUpgradeRuntimeMethod = getUpgradeRuntimeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpgradeRuntime")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.UpgradeRuntimeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ManagedNotebookServiceMethodDescriptorSupplier("UpgradeRuntime")) - .build(); - } - } - } - return getUpgradeRuntimeMethod; - } - - private static volatile io.grpc.MethodDescriptor getReportRuntimeEventMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ReportRuntimeEvent", - requestType = com.google.cloud.notebooks.v1.ReportRuntimeEventRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getReportRuntimeEventMethod() { - io.grpc.MethodDescriptor getReportRuntimeEventMethod; - if ((getReportRuntimeEventMethod = ManagedNotebookServiceGrpc.getReportRuntimeEventMethod) == null) { - synchronized (ManagedNotebookServiceGrpc.class) { - if ((getReportRuntimeEventMethod = ManagedNotebookServiceGrpc.getReportRuntimeEventMethod) == null) { - ManagedNotebookServiceGrpc.getReportRuntimeEventMethod = getReportRuntimeEventMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReportRuntimeEvent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.ReportRuntimeEventRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ManagedNotebookServiceMethodDescriptorSupplier("ReportRuntimeEvent")) - .build(); - } - } - } - return getReportRuntimeEventMethod; - } - - private static volatile io.grpc.MethodDescriptor getRefreshRuntimeTokenInternalMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RefreshRuntimeTokenInternal", - requestType = com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest.class, - responseType = com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRefreshRuntimeTokenInternalMethod() { - io.grpc.MethodDescriptor getRefreshRuntimeTokenInternalMethod; - if ((getRefreshRuntimeTokenInternalMethod = ManagedNotebookServiceGrpc.getRefreshRuntimeTokenInternalMethod) == null) { - synchronized (ManagedNotebookServiceGrpc.class) { - if ((getRefreshRuntimeTokenInternalMethod = ManagedNotebookServiceGrpc.getRefreshRuntimeTokenInternalMethod) == null) { - ManagedNotebookServiceGrpc.getRefreshRuntimeTokenInternalMethod = getRefreshRuntimeTokenInternalMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RefreshRuntimeTokenInternal")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse.getDefaultInstance())) - .setSchemaDescriptor(new ManagedNotebookServiceMethodDescriptorSupplier("RefreshRuntimeTokenInternal")) - .build(); - } - } - } - return getRefreshRuntimeTokenInternalMethod; - } - - private static volatile io.grpc.MethodDescriptor getDiagnoseRuntimeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DiagnoseRuntime", - requestType = com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDiagnoseRuntimeMethod() { - io.grpc.MethodDescriptor getDiagnoseRuntimeMethod; - if ((getDiagnoseRuntimeMethod = ManagedNotebookServiceGrpc.getDiagnoseRuntimeMethod) == null) { - synchronized (ManagedNotebookServiceGrpc.class) { - if ((getDiagnoseRuntimeMethod = ManagedNotebookServiceGrpc.getDiagnoseRuntimeMethod) == null) { - ManagedNotebookServiceGrpc.getDiagnoseRuntimeMethod = getDiagnoseRuntimeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DiagnoseRuntime")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new ManagedNotebookServiceMethodDescriptorSupplier("DiagnoseRuntime")) - .build(); - } - } - } - return getDiagnoseRuntimeMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static ManagedNotebookServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ManagedNotebookServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ManagedNotebookServiceStub(channel, callOptions); - } - }; - return ManagedNotebookServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static ManagedNotebookServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ManagedNotebookServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ManagedNotebookServiceBlockingStub(channel, callOptions); - } - }; - return ManagedNotebookServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static ManagedNotebookServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ManagedNotebookServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ManagedNotebookServiceFutureStub(channel, callOptions); - } - }; - return ManagedNotebookServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * API v1 service for Managed Notebooks.
-   * 
- */ - public static abstract class ManagedNotebookServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Lists Runtimes in a given project and location.
-     * 
- */ - public void listRuntimes(com.google.cloud.notebooks.v1.ListRuntimesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRuntimesMethod(), responseObserver); - } - - /** - *
-     * Gets details of a single Runtime. The location must be a regional endpoint
-     * rather than zonal.
-     * 
- */ - public void getRuntime(com.google.cloud.notebooks.v1.GetRuntimeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRuntimeMethod(), responseObserver); - } - - /** - *
-     * Creates a new Runtime in a given project and location.
-     * 
- */ - public void createRuntime(com.google.cloud.notebooks.v1.CreateRuntimeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateRuntimeMethod(), responseObserver); - } - - /** - *
-     * Update Notebook Runtime configuration.
-     * 
- */ - public void updateRuntime(com.google.cloud.notebooks.v1.UpdateRuntimeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateRuntimeMethod(), responseObserver); - } - - /** - *
-     * Deletes a single Runtime.
-     * 
- */ - public void deleteRuntime(com.google.cloud.notebooks.v1.DeleteRuntimeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteRuntimeMethod(), responseObserver); - } - - /** - *
-     * Starts a Managed Notebook Runtime.
-     * Perform "Start" on GPU instances; "Resume" on CPU instances
-     * See:
-     * https://cloud.google.com/compute/docs/instances/stop-start-instance
-     * https://cloud.google.com/compute/docs/instances/suspend-resume-instance
-     * 
- */ - public void startRuntime(com.google.cloud.notebooks.v1.StartRuntimeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartRuntimeMethod(), responseObserver); - } - - /** - *
-     * Stops a Managed Notebook Runtime.
-     * Perform "Stop" on GPU instances; "Suspend" on CPU instances
-     * See:
-     * https://cloud.google.com/compute/docs/instances/stop-start-instance
-     * https://cloud.google.com/compute/docs/instances/suspend-resume-instance
-     * 
- */ - public void stopRuntime(com.google.cloud.notebooks.v1.StopRuntimeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopRuntimeMethod(), responseObserver); - } - - /** - *
-     * Switch a Managed Notebook Runtime.
-     * 
- */ - public void switchRuntime(com.google.cloud.notebooks.v1.SwitchRuntimeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSwitchRuntimeMethod(), responseObserver); - } - - /** - *
-     * Resets a Managed Notebook Runtime.
-     * 
- */ - public void resetRuntime(com.google.cloud.notebooks.v1.ResetRuntimeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getResetRuntimeMethod(), responseObserver); - } - - /** - *
-     * Upgrades a Managed Notebook Runtime to the latest version.
-     * 
- */ - public void upgradeRuntime(com.google.cloud.notebooks.v1.UpgradeRuntimeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpgradeRuntimeMethod(), responseObserver); - } - - /** - *
-     * Report and process a runtime event.
-     * 
- */ - public void reportRuntimeEvent(com.google.cloud.notebooks.v1.ReportRuntimeEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getReportRuntimeEventMethod(), responseObserver); - } - - /** - *
-     * Gets an access token for the consumer service account that the customer
-     * attached to the runtime. Only accessible from the tenant instance.
-     * 
- */ - public void refreshRuntimeTokenInternal(com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRefreshRuntimeTokenInternalMethod(), responseObserver); - } - - /** - *
-     * Creates a Diagnostic File and runs Diagnostic Tool given a Runtime.
-     * 
- */ - public void diagnoseRuntime(com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDiagnoseRuntimeMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListRuntimesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.ListRuntimesRequest, - com.google.cloud.notebooks.v1.ListRuntimesResponse>( - this, METHODID_LIST_RUNTIMES))) - .addMethod( - getGetRuntimeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.GetRuntimeRequest, - com.google.cloud.notebooks.v1.Runtime>( - this, METHODID_GET_RUNTIME))) - .addMethod( - getCreateRuntimeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.CreateRuntimeRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_RUNTIME))) - .addMethod( - getUpdateRuntimeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.UpdateRuntimeRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_RUNTIME))) - .addMethod( - getDeleteRuntimeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.DeleteRuntimeRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_RUNTIME))) - .addMethod( - getStartRuntimeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.StartRuntimeRequest, - com.google.longrunning.Operation>( - this, METHODID_START_RUNTIME))) - .addMethod( - getStopRuntimeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.StopRuntimeRequest, - com.google.longrunning.Operation>( - this, METHODID_STOP_RUNTIME))) - .addMethod( - getSwitchRuntimeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.SwitchRuntimeRequest, - com.google.longrunning.Operation>( - this, METHODID_SWITCH_RUNTIME))) - .addMethod( - getResetRuntimeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.ResetRuntimeRequest, - com.google.longrunning.Operation>( - this, METHODID_RESET_RUNTIME))) - .addMethod( - getUpgradeRuntimeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.UpgradeRuntimeRequest, - com.google.longrunning.Operation>( - this, METHODID_UPGRADE_RUNTIME))) - .addMethod( - getReportRuntimeEventMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.ReportRuntimeEventRequest, - com.google.longrunning.Operation>( - this, METHODID_REPORT_RUNTIME_EVENT))) - .addMethod( - getRefreshRuntimeTokenInternalMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest, - com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse>( - this, METHODID_REFRESH_RUNTIME_TOKEN_INTERNAL))) - .addMethod( - getDiagnoseRuntimeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest, - com.google.longrunning.Operation>( - this, METHODID_DIAGNOSE_RUNTIME))) - .build(); - } - } - - /** - *
-   * API v1 service for Managed Notebooks.
-   * 
- */ - public static final class ManagedNotebookServiceStub extends io.grpc.stub.AbstractAsyncStub { - private ManagedNotebookServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ManagedNotebookServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ManagedNotebookServiceStub(channel, callOptions); - } - - /** - *
-     * Lists Runtimes in a given project and location.
-     * 
- */ - public void listRuntimes(com.google.cloud.notebooks.v1.ListRuntimesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRuntimesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details of a single Runtime. The location must be a regional endpoint
-     * rather than zonal.
-     * 
- */ - public void getRuntime(com.google.cloud.notebooks.v1.GetRuntimeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetRuntimeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new Runtime in a given project and location.
-     * 
- */ - public void createRuntime(com.google.cloud.notebooks.v1.CreateRuntimeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateRuntimeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update Notebook Runtime configuration.
-     * 
- */ - public void updateRuntime(com.google.cloud.notebooks.v1.UpdateRuntimeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateRuntimeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a single Runtime.
-     * 
- */ - public void deleteRuntime(com.google.cloud.notebooks.v1.DeleteRuntimeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteRuntimeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Starts a Managed Notebook Runtime.
-     * Perform "Start" on GPU instances; "Resume" on CPU instances
-     * See:
-     * https://cloud.google.com/compute/docs/instances/stop-start-instance
-     * https://cloud.google.com/compute/docs/instances/suspend-resume-instance
-     * 
- */ - public void startRuntime(com.google.cloud.notebooks.v1.StartRuntimeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartRuntimeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Stops a Managed Notebook Runtime.
-     * Perform "Stop" on GPU instances; "Suspend" on CPU instances
-     * See:
-     * https://cloud.google.com/compute/docs/instances/stop-start-instance
-     * https://cloud.google.com/compute/docs/instances/suspend-resume-instance
-     * 
- */ - public void stopRuntime(com.google.cloud.notebooks.v1.StopRuntimeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopRuntimeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Switch a Managed Notebook Runtime.
-     * 
- */ - public void switchRuntime(com.google.cloud.notebooks.v1.SwitchRuntimeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSwitchRuntimeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Resets a Managed Notebook Runtime.
-     * 
- */ - public void resetRuntime(com.google.cloud.notebooks.v1.ResetRuntimeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getResetRuntimeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Upgrades a Managed Notebook Runtime to the latest version.
-     * 
- */ - public void upgradeRuntime(com.google.cloud.notebooks.v1.UpgradeRuntimeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpgradeRuntimeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Report and process a runtime event.
-     * 
- */ - public void reportRuntimeEvent(com.google.cloud.notebooks.v1.ReportRuntimeEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getReportRuntimeEventMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets an access token for the consumer service account that the customer
-     * attached to the runtime. Only accessible from the tenant instance.
-     * 
- */ - public void refreshRuntimeTokenInternal(com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRefreshRuntimeTokenInternalMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a Diagnostic File and runs Diagnostic Tool given a Runtime.
-     * 
- */ - public void diagnoseRuntime(com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDiagnoseRuntimeMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * API v1 service for Managed Notebooks.
-   * 
- */ - public static final class ManagedNotebookServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private ManagedNotebookServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ManagedNotebookServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ManagedNotebookServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists Runtimes in a given project and location.
-     * 
- */ - public com.google.cloud.notebooks.v1.ListRuntimesResponse listRuntimes(com.google.cloud.notebooks.v1.ListRuntimesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRuntimesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details of a single Runtime. The location must be a regional endpoint
-     * rather than zonal.
-     * 
- */ - public com.google.cloud.notebooks.v1.Runtime getRuntime(com.google.cloud.notebooks.v1.GetRuntimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetRuntimeMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new Runtime in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createRuntime(com.google.cloud.notebooks.v1.CreateRuntimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateRuntimeMethod(), getCallOptions(), request); - } - - /** - *
-     * Update Notebook Runtime configuration.
-     * 
- */ - public com.google.longrunning.Operation updateRuntime(com.google.cloud.notebooks.v1.UpdateRuntimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateRuntimeMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a single Runtime.
-     * 
- */ - public com.google.longrunning.Operation deleteRuntime(com.google.cloud.notebooks.v1.DeleteRuntimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteRuntimeMethod(), getCallOptions(), request); - } - - /** - *
-     * Starts a Managed Notebook Runtime.
-     * Perform "Start" on GPU instances; "Resume" on CPU instances
-     * See:
-     * https://cloud.google.com/compute/docs/instances/stop-start-instance
-     * https://cloud.google.com/compute/docs/instances/suspend-resume-instance
-     * 
- */ - public com.google.longrunning.Operation startRuntime(com.google.cloud.notebooks.v1.StartRuntimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartRuntimeMethod(), getCallOptions(), request); - } - - /** - *
-     * Stops a Managed Notebook Runtime.
-     * Perform "Stop" on GPU instances; "Suspend" on CPU instances
-     * See:
-     * https://cloud.google.com/compute/docs/instances/stop-start-instance
-     * https://cloud.google.com/compute/docs/instances/suspend-resume-instance
-     * 
- */ - public com.google.longrunning.Operation stopRuntime(com.google.cloud.notebooks.v1.StopRuntimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopRuntimeMethod(), getCallOptions(), request); - } - - /** - *
-     * Switch a Managed Notebook Runtime.
-     * 
- */ - public com.google.longrunning.Operation switchRuntime(com.google.cloud.notebooks.v1.SwitchRuntimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSwitchRuntimeMethod(), getCallOptions(), request); - } - - /** - *
-     * Resets a Managed Notebook Runtime.
-     * 
- */ - public com.google.longrunning.Operation resetRuntime(com.google.cloud.notebooks.v1.ResetRuntimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getResetRuntimeMethod(), getCallOptions(), request); - } - - /** - *
-     * Upgrades a Managed Notebook Runtime to the latest version.
-     * 
- */ - public com.google.longrunning.Operation upgradeRuntime(com.google.cloud.notebooks.v1.UpgradeRuntimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpgradeRuntimeMethod(), getCallOptions(), request); - } - - /** - *
-     * Report and process a runtime event.
-     * 
- */ - public com.google.longrunning.Operation reportRuntimeEvent(com.google.cloud.notebooks.v1.ReportRuntimeEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getReportRuntimeEventMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets an access token for the consumer service account that the customer
-     * attached to the runtime. Only accessible from the tenant instance.
-     * 
- */ - public com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalResponse refreshRuntimeTokenInternal(com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRefreshRuntimeTokenInternalMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a Diagnostic File and runs Diagnostic Tool given a Runtime.
-     * 
- */ - public com.google.longrunning.Operation diagnoseRuntime(com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDiagnoseRuntimeMethod(), getCallOptions(), request); - } - } - - /** - *
-   * API v1 service for Managed Notebooks.
-   * 
- */ - public static final class ManagedNotebookServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private ManagedNotebookServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected ManagedNotebookServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ManagedNotebookServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Lists Runtimes in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listRuntimes( - com.google.cloud.notebooks.v1.ListRuntimesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRuntimesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details of a single Runtime. The location must be a regional endpoint
-     * rather than zonal.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getRuntime( - com.google.cloud.notebooks.v1.GetRuntimeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetRuntimeMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new Runtime in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createRuntime( - com.google.cloud.notebooks.v1.CreateRuntimeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateRuntimeMethod(), getCallOptions()), request); - } - - /** - *
-     * Update Notebook Runtime configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateRuntime( - com.google.cloud.notebooks.v1.UpdateRuntimeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateRuntimeMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a single Runtime.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteRuntime( - com.google.cloud.notebooks.v1.DeleteRuntimeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteRuntimeMethod(), getCallOptions()), request); - } - - /** - *
-     * Starts a Managed Notebook Runtime.
-     * Perform "Start" on GPU instances; "Resume" on CPU instances
-     * See:
-     * https://cloud.google.com/compute/docs/instances/stop-start-instance
-     * https://cloud.google.com/compute/docs/instances/suspend-resume-instance
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture startRuntime( - com.google.cloud.notebooks.v1.StartRuntimeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartRuntimeMethod(), getCallOptions()), request); - } - - /** - *
-     * Stops a Managed Notebook Runtime.
-     * Perform "Stop" on GPU instances; "Suspend" on CPU instances
-     * See:
-     * https://cloud.google.com/compute/docs/instances/stop-start-instance
-     * https://cloud.google.com/compute/docs/instances/suspend-resume-instance
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture stopRuntime( - com.google.cloud.notebooks.v1.StopRuntimeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopRuntimeMethod(), getCallOptions()), request); - } - - /** - *
-     * Switch a Managed Notebook Runtime.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture switchRuntime( - com.google.cloud.notebooks.v1.SwitchRuntimeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSwitchRuntimeMethod(), getCallOptions()), request); - } - - /** - *
-     * Resets a Managed Notebook Runtime.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture resetRuntime( - com.google.cloud.notebooks.v1.ResetRuntimeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getResetRuntimeMethod(), getCallOptions()), request); - } - - /** - *
-     * Upgrades a Managed Notebook Runtime to the latest version.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture upgradeRuntime( - com.google.cloud.notebooks.v1.UpgradeRuntimeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpgradeRuntimeMethod(), getCallOptions()), request); - } - - /** - *
-     * Report and process a runtime event.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture reportRuntimeEvent( - com.google.cloud.notebooks.v1.ReportRuntimeEventRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getReportRuntimeEventMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets an access token for the consumer service account that the customer
-     * attached to the runtime. Only accessible from the tenant instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture refreshRuntimeTokenInternal( - com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRefreshRuntimeTokenInternalMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a Diagnostic File and runs Diagnostic Tool given a Runtime.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture diagnoseRuntime( - com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDiagnoseRuntimeMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_RUNTIMES = 0; - private static final int METHODID_GET_RUNTIME = 1; - private static final int METHODID_CREATE_RUNTIME = 2; - private static final int METHODID_UPDATE_RUNTIME = 3; - private static final int METHODID_DELETE_RUNTIME = 4; - private static final int METHODID_START_RUNTIME = 5; - private static final int METHODID_STOP_RUNTIME = 6; - private static final int METHODID_SWITCH_RUNTIME = 7; - private static final int METHODID_RESET_RUNTIME = 8; - private static final int METHODID_UPGRADE_RUNTIME = 9; - private static final int METHODID_REPORT_RUNTIME_EVENT = 10; - private static final int METHODID_REFRESH_RUNTIME_TOKEN_INTERNAL = 11; - private static final int METHODID_DIAGNOSE_RUNTIME = 12; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final ManagedNotebookServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ManagedNotebookServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_RUNTIMES: - serviceImpl.listRuntimes((com.google.cloud.notebooks.v1.ListRuntimesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_RUNTIME: - serviceImpl.getRuntime((com.google.cloud.notebooks.v1.GetRuntimeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_RUNTIME: - serviceImpl.createRuntime((com.google.cloud.notebooks.v1.CreateRuntimeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_RUNTIME: - serviceImpl.updateRuntime((com.google.cloud.notebooks.v1.UpdateRuntimeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_RUNTIME: - serviceImpl.deleteRuntime((com.google.cloud.notebooks.v1.DeleteRuntimeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_START_RUNTIME: - serviceImpl.startRuntime((com.google.cloud.notebooks.v1.StartRuntimeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_STOP_RUNTIME: - serviceImpl.stopRuntime((com.google.cloud.notebooks.v1.StopRuntimeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SWITCH_RUNTIME: - serviceImpl.switchRuntime((com.google.cloud.notebooks.v1.SwitchRuntimeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RESET_RUNTIME: - serviceImpl.resetRuntime((com.google.cloud.notebooks.v1.ResetRuntimeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPGRADE_RUNTIME: - serviceImpl.upgradeRuntime((com.google.cloud.notebooks.v1.UpgradeRuntimeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_REPORT_RUNTIME_EVENT: - serviceImpl.reportRuntimeEvent((com.google.cloud.notebooks.v1.ReportRuntimeEventRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_REFRESH_RUNTIME_TOKEN_INTERNAL: - serviceImpl.refreshRuntimeTokenInternal((com.google.cloud.notebooks.v1.RefreshRuntimeTokenInternalRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DIAGNOSE_RUNTIME: - serviceImpl.diagnoseRuntime((com.google.cloud.notebooks.v1.DiagnoseRuntimeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class ManagedNotebookServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ManagedNotebookServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.notebooks.v1.ManagedNotebooksProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ManagedNotebookService"); - } - } - - private static final class ManagedNotebookServiceFileDescriptorSupplier - extends ManagedNotebookServiceBaseDescriptorSupplier { - ManagedNotebookServiceFileDescriptorSupplier() {} - } - - private static final class ManagedNotebookServiceMethodDescriptorSupplier - extends ManagedNotebookServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ManagedNotebookServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (ManagedNotebookServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ManagedNotebookServiceFileDescriptorSupplier()) - .addMethod(getListRuntimesMethod()) - .addMethod(getGetRuntimeMethod()) - .addMethod(getCreateRuntimeMethod()) - .addMethod(getUpdateRuntimeMethod()) - .addMethod(getDeleteRuntimeMethod()) - .addMethod(getStartRuntimeMethod()) - .addMethod(getStopRuntimeMethod()) - .addMethod(getSwitchRuntimeMethod()) - .addMethod(getResetRuntimeMethod()) - .addMethod(getUpgradeRuntimeMethod()) - .addMethod(getReportRuntimeEventMethod()) - .addMethod(getRefreshRuntimeTokenInternalMethod()) - .addMethod(getDiagnoseRuntimeMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-notebooks/v1/grpc-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceGrpc.java b/owl-bot-staging/java-notebooks/v1/grpc-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceGrpc.java deleted file mode 100644 index 58fa0e08b555..000000000000 --- a/owl-bot-staging/java-notebooks/v1/grpc-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceGrpc.java +++ /dev/null @@ -1,3169 +0,0 @@ -package com.google.cloud.notebooks.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * API v1 service for Cloud AI Platform Notebooks.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/notebooks/v1/service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class NotebookServiceGrpc { - - private NotebookServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.notebooks.v1.NotebookService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListInstancesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListInstances", - requestType = com.google.cloud.notebooks.v1.ListInstancesRequest.class, - responseType = com.google.cloud.notebooks.v1.ListInstancesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListInstancesMethod() { - io.grpc.MethodDescriptor getListInstancesMethod; - if ((getListInstancesMethod = NotebookServiceGrpc.getListInstancesMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getListInstancesMethod = NotebookServiceGrpc.getListInstancesMethod) == null) { - NotebookServiceGrpc.getListInstancesMethod = getListInstancesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.ListInstancesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.ListInstancesResponse.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("ListInstances")) - .build(); - } - } - } - return getListInstancesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetInstance", - requestType = com.google.cloud.notebooks.v1.GetInstanceRequest.class, - responseType = com.google.cloud.notebooks.v1.Instance.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetInstanceMethod() { - io.grpc.MethodDescriptor getGetInstanceMethod; - if ((getGetInstanceMethod = NotebookServiceGrpc.getGetInstanceMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getGetInstanceMethod = NotebookServiceGrpc.getGetInstanceMethod) == null) { - NotebookServiceGrpc.getGetInstanceMethod = getGetInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.GetInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.Instance.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("GetInstance")) - .build(); - } - } - } - return getGetInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateInstance", - requestType = com.google.cloud.notebooks.v1.CreateInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateInstanceMethod() { - io.grpc.MethodDescriptor getCreateInstanceMethod; - if ((getCreateInstanceMethod = NotebookServiceGrpc.getCreateInstanceMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getCreateInstanceMethod = NotebookServiceGrpc.getCreateInstanceMethod) == null) { - NotebookServiceGrpc.getCreateInstanceMethod = getCreateInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.CreateInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("CreateInstance")) - .build(); - } - } - } - return getCreateInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getRegisterInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RegisterInstance", - requestType = com.google.cloud.notebooks.v1.RegisterInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRegisterInstanceMethod() { - io.grpc.MethodDescriptor getRegisterInstanceMethod; - if ((getRegisterInstanceMethod = NotebookServiceGrpc.getRegisterInstanceMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getRegisterInstanceMethod = NotebookServiceGrpc.getRegisterInstanceMethod) == null) { - NotebookServiceGrpc.getRegisterInstanceMethod = getRegisterInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RegisterInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.RegisterInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("RegisterInstance")) - .build(); - } - } - } - return getRegisterInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getSetInstanceAcceleratorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetInstanceAccelerator", - requestType = com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetInstanceAcceleratorMethod() { - io.grpc.MethodDescriptor getSetInstanceAcceleratorMethod; - if ((getSetInstanceAcceleratorMethod = NotebookServiceGrpc.getSetInstanceAcceleratorMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getSetInstanceAcceleratorMethod = NotebookServiceGrpc.getSetInstanceAcceleratorMethod) == null) { - NotebookServiceGrpc.getSetInstanceAcceleratorMethod = getSetInstanceAcceleratorMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetInstanceAccelerator")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("SetInstanceAccelerator")) - .build(); - } - } - } - return getSetInstanceAcceleratorMethod; - } - - private static volatile io.grpc.MethodDescriptor getSetInstanceMachineTypeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetInstanceMachineType", - requestType = com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetInstanceMachineTypeMethod() { - io.grpc.MethodDescriptor getSetInstanceMachineTypeMethod; - if ((getSetInstanceMachineTypeMethod = NotebookServiceGrpc.getSetInstanceMachineTypeMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getSetInstanceMachineTypeMethod = NotebookServiceGrpc.getSetInstanceMachineTypeMethod) == null) { - NotebookServiceGrpc.getSetInstanceMachineTypeMethod = getSetInstanceMachineTypeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetInstanceMachineType")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("SetInstanceMachineType")) - .build(); - } - } - } - return getSetInstanceMachineTypeMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateInstanceConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateInstanceConfig", - requestType = com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateInstanceConfigMethod() { - io.grpc.MethodDescriptor getUpdateInstanceConfigMethod; - if ((getUpdateInstanceConfigMethod = NotebookServiceGrpc.getUpdateInstanceConfigMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getUpdateInstanceConfigMethod = NotebookServiceGrpc.getUpdateInstanceConfigMethod) == null) { - NotebookServiceGrpc.getUpdateInstanceConfigMethod = getUpdateInstanceConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstanceConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("UpdateInstanceConfig")) - .build(); - } - } - } - return getUpdateInstanceConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateShieldedInstanceConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateShieldedInstanceConfig", - requestType = com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateShieldedInstanceConfigMethod() { - io.grpc.MethodDescriptor getUpdateShieldedInstanceConfigMethod; - if ((getUpdateShieldedInstanceConfigMethod = NotebookServiceGrpc.getUpdateShieldedInstanceConfigMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getUpdateShieldedInstanceConfigMethod = NotebookServiceGrpc.getUpdateShieldedInstanceConfigMethod) == null) { - NotebookServiceGrpc.getUpdateShieldedInstanceConfigMethod = getUpdateShieldedInstanceConfigMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateShieldedInstanceConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("UpdateShieldedInstanceConfig")) - .build(); - } - } - } - return getUpdateShieldedInstanceConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor getSetInstanceLabelsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetInstanceLabels", - requestType = com.google.cloud.notebooks.v1.SetInstanceLabelsRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetInstanceLabelsMethod() { - io.grpc.MethodDescriptor getSetInstanceLabelsMethod; - if ((getSetInstanceLabelsMethod = NotebookServiceGrpc.getSetInstanceLabelsMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getSetInstanceLabelsMethod = NotebookServiceGrpc.getSetInstanceLabelsMethod) == null) { - NotebookServiceGrpc.getSetInstanceLabelsMethod = getSetInstanceLabelsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetInstanceLabels")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.SetInstanceLabelsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("SetInstanceLabels")) - .build(); - } - } - } - return getSetInstanceLabelsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateInstanceMetadataItemsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateInstanceMetadataItems", - requestType = com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest.class, - responseType = com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateInstanceMetadataItemsMethod() { - io.grpc.MethodDescriptor getUpdateInstanceMetadataItemsMethod; - if ((getUpdateInstanceMetadataItemsMethod = NotebookServiceGrpc.getUpdateInstanceMetadataItemsMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getUpdateInstanceMetadataItemsMethod = NotebookServiceGrpc.getUpdateInstanceMetadataItemsMethod) == null) { - NotebookServiceGrpc.getUpdateInstanceMetadataItemsMethod = getUpdateInstanceMetadataItemsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateInstanceMetadataItems")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("UpdateInstanceMetadataItems")) - .build(); - } - } - } - return getUpdateInstanceMetadataItemsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteInstance", - requestType = com.google.cloud.notebooks.v1.DeleteInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteInstanceMethod() { - io.grpc.MethodDescriptor getDeleteInstanceMethod; - if ((getDeleteInstanceMethod = NotebookServiceGrpc.getDeleteInstanceMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getDeleteInstanceMethod = NotebookServiceGrpc.getDeleteInstanceMethod) == null) { - NotebookServiceGrpc.getDeleteInstanceMethod = getDeleteInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.DeleteInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("DeleteInstance")) - .build(); - } - } - } - return getDeleteInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getStartInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartInstance", - requestType = com.google.cloud.notebooks.v1.StartInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStartInstanceMethod() { - io.grpc.MethodDescriptor getStartInstanceMethod; - if ((getStartInstanceMethod = NotebookServiceGrpc.getStartInstanceMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getStartInstanceMethod = NotebookServiceGrpc.getStartInstanceMethod) == null) { - NotebookServiceGrpc.getStartInstanceMethod = getStartInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.StartInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("StartInstance")) - .build(); - } - } - } - return getStartInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getStopInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopInstance", - requestType = com.google.cloud.notebooks.v1.StopInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStopInstanceMethod() { - io.grpc.MethodDescriptor getStopInstanceMethod; - if ((getStopInstanceMethod = NotebookServiceGrpc.getStopInstanceMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getStopInstanceMethod = NotebookServiceGrpc.getStopInstanceMethod) == null) { - NotebookServiceGrpc.getStopInstanceMethod = getStopInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.StopInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("StopInstance")) - .build(); - } - } - } - return getStopInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getResetInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ResetInstance", - requestType = com.google.cloud.notebooks.v1.ResetInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getResetInstanceMethod() { - io.grpc.MethodDescriptor getResetInstanceMethod; - if ((getResetInstanceMethod = NotebookServiceGrpc.getResetInstanceMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getResetInstanceMethod = NotebookServiceGrpc.getResetInstanceMethod) == null) { - NotebookServiceGrpc.getResetInstanceMethod = getResetInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResetInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.ResetInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("ResetInstance")) - .build(); - } - } - } - return getResetInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getReportInstanceInfoMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ReportInstanceInfo", - requestType = com.google.cloud.notebooks.v1.ReportInstanceInfoRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getReportInstanceInfoMethod() { - io.grpc.MethodDescriptor getReportInstanceInfoMethod; - if ((getReportInstanceInfoMethod = NotebookServiceGrpc.getReportInstanceInfoMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getReportInstanceInfoMethod = NotebookServiceGrpc.getReportInstanceInfoMethod) == null) { - NotebookServiceGrpc.getReportInstanceInfoMethod = getReportInstanceInfoMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReportInstanceInfo")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.ReportInstanceInfoRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("ReportInstanceInfo")) - .build(); - } - } - } - return getReportInstanceInfoMethod; - } - - private static volatile io.grpc.MethodDescriptor getIsInstanceUpgradeableMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "IsInstanceUpgradeable", - requestType = com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest.class, - responseType = com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getIsInstanceUpgradeableMethod() { - io.grpc.MethodDescriptor getIsInstanceUpgradeableMethod; - if ((getIsInstanceUpgradeableMethod = NotebookServiceGrpc.getIsInstanceUpgradeableMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getIsInstanceUpgradeableMethod = NotebookServiceGrpc.getIsInstanceUpgradeableMethod) == null) { - NotebookServiceGrpc.getIsInstanceUpgradeableMethod = getIsInstanceUpgradeableMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "IsInstanceUpgradeable")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("IsInstanceUpgradeable")) - .build(); - } - } - } - return getIsInstanceUpgradeableMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetInstanceHealthMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetInstanceHealth", - requestType = com.google.cloud.notebooks.v1.GetInstanceHealthRequest.class, - responseType = com.google.cloud.notebooks.v1.GetInstanceHealthResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetInstanceHealthMethod() { - io.grpc.MethodDescriptor getGetInstanceHealthMethod; - if ((getGetInstanceHealthMethod = NotebookServiceGrpc.getGetInstanceHealthMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getGetInstanceHealthMethod = NotebookServiceGrpc.getGetInstanceHealthMethod) == null) { - NotebookServiceGrpc.getGetInstanceHealthMethod = getGetInstanceHealthMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstanceHealth")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.GetInstanceHealthRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.GetInstanceHealthResponse.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("GetInstanceHealth")) - .build(); - } - } - } - return getGetInstanceHealthMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpgradeInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpgradeInstance", - requestType = com.google.cloud.notebooks.v1.UpgradeInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpgradeInstanceMethod() { - io.grpc.MethodDescriptor getUpgradeInstanceMethod; - if ((getUpgradeInstanceMethod = NotebookServiceGrpc.getUpgradeInstanceMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getUpgradeInstanceMethod = NotebookServiceGrpc.getUpgradeInstanceMethod) == null) { - NotebookServiceGrpc.getUpgradeInstanceMethod = getUpgradeInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpgradeInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.UpgradeInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("UpgradeInstance")) - .build(); - } - } - } - return getUpgradeInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getRollbackInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RollbackInstance", - requestType = com.google.cloud.notebooks.v1.RollbackInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRollbackInstanceMethod() { - io.grpc.MethodDescriptor getRollbackInstanceMethod; - if ((getRollbackInstanceMethod = NotebookServiceGrpc.getRollbackInstanceMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getRollbackInstanceMethod = NotebookServiceGrpc.getRollbackInstanceMethod) == null) { - NotebookServiceGrpc.getRollbackInstanceMethod = getRollbackInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RollbackInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.RollbackInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("RollbackInstance")) - .build(); - } - } - } - return getRollbackInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getDiagnoseInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DiagnoseInstance", - requestType = com.google.cloud.notebooks.v1.DiagnoseInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDiagnoseInstanceMethod() { - io.grpc.MethodDescriptor getDiagnoseInstanceMethod; - if ((getDiagnoseInstanceMethod = NotebookServiceGrpc.getDiagnoseInstanceMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getDiagnoseInstanceMethod = NotebookServiceGrpc.getDiagnoseInstanceMethod) == null) { - NotebookServiceGrpc.getDiagnoseInstanceMethod = getDiagnoseInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DiagnoseInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.DiagnoseInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("DiagnoseInstance")) - .build(); - } - } - } - return getDiagnoseInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpgradeInstanceInternalMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpgradeInstanceInternal", - requestType = com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpgradeInstanceInternalMethod() { - io.grpc.MethodDescriptor getUpgradeInstanceInternalMethod; - if ((getUpgradeInstanceInternalMethod = NotebookServiceGrpc.getUpgradeInstanceInternalMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getUpgradeInstanceInternalMethod = NotebookServiceGrpc.getUpgradeInstanceInternalMethod) == null) { - NotebookServiceGrpc.getUpgradeInstanceInternalMethod = getUpgradeInstanceInternalMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpgradeInstanceInternal")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("UpgradeInstanceInternal")) - .build(); - } - } - } - return getUpgradeInstanceInternalMethod; - } - - private static volatile io.grpc.MethodDescriptor getListEnvironmentsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListEnvironments", - requestType = com.google.cloud.notebooks.v1.ListEnvironmentsRequest.class, - responseType = com.google.cloud.notebooks.v1.ListEnvironmentsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListEnvironmentsMethod() { - io.grpc.MethodDescriptor getListEnvironmentsMethod; - if ((getListEnvironmentsMethod = NotebookServiceGrpc.getListEnvironmentsMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getListEnvironmentsMethod = NotebookServiceGrpc.getListEnvironmentsMethod) == null) { - NotebookServiceGrpc.getListEnvironmentsMethod = getListEnvironmentsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEnvironments")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.ListEnvironmentsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.ListEnvironmentsResponse.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("ListEnvironments")) - .build(); - } - } - } - return getListEnvironmentsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetEnvironmentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetEnvironment", - requestType = com.google.cloud.notebooks.v1.GetEnvironmentRequest.class, - responseType = com.google.cloud.notebooks.v1.Environment.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetEnvironmentMethod() { - io.grpc.MethodDescriptor getGetEnvironmentMethod; - if ((getGetEnvironmentMethod = NotebookServiceGrpc.getGetEnvironmentMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getGetEnvironmentMethod = NotebookServiceGrpc.getGetEnvironmentMethod) == null) { - NotebookServiceGrpc.getGetEnvironmentMethod = getGetEnvironmentMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEnvironment")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.GetEnvironmentRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.Environment.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("GetEnvironment")) - .build(); - } - } - } - return getGetEnvironmentMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateEnvironmentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateEnvironment", - requestType = com.google.cloud.notebooks.v1.CreateEnvironmentRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateEnvironmentMethod() { - io.grpc.MethodDescriptor getCreateEnvironmentMethod; - if ((getCreateEnvironmentMethod = NotebookServiceGrpc.getCreateEnvironmentMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getCreateEnvironmentMethod = NotebookServiceGrpc.getCreateEnvironmentMethod) == null) { - NotebookServiceGrpc.getCreateEnvironmentMethod = getCreateEnvironmentMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateEnvironment")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.CreateEnvironmentRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("CreateEnvironment")) - .build(); - } - } - } - return getCreateEnvironmentMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteEnvironmentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteEnvironment", - requestType = com.google.cloud.notebooks.v1.DeleteEnvironmentRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteEnvironmentMethod() { - io.grpc.MethodDescriptor getDeleteEnvironmentMethod; - if ((getDeleteEnvironmentMethod = NotebookServiceGrpc.getDeleteEnvironmentMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getDeleteEnvironmentMethod = NotebookServiceGrpc.getDeleteEnvironmentMethod) == null) { - NotebookServiceGrpc.getDeleteEnvironmentMethod = getDeleteEnvironmentMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteEnvironment")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.DeleteEnvironmentRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("DeleteEnvironment")) - .build(); - } - } - } - return getDeleteEnvironmentMethod; - } - - private static volatile io.grpc.MethodDescriptor getListSchedulesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSchedules", - requestType = com.google.cloud.notebooks.v1.ListSchedulesRequest.class, - responseType = com.google.cloud.notebooks.v1.ListSchedulesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListSchedulesMethod() { - io.grpc.MethodDescriptor getListSchedulesMethod; - if ((getListSchedulesMethod = NotebookServiceGrpc.getListSchedulesMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getListSchedulesMethod = NotebookServiceGrpc.getListSchedulesMethod) == null) { - NotebookServiceGrpc.getListSchedulesMethod = getListSchedulesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSchedules")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.ListSchedulesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.ListSchedulesResponse.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("ListSchedules")) - .build(); - } - } - } - return getListSchedulesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetScheduleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSchedule", - requestType = com.google.cloud.notebooks.v1.GetScheduleRequest.class, - responseType = com.google.cloud.notebooks.v1.Schedule.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetScheduleMethod() { - io.grpc.MethodDescriptor getGetScheduleMethod; - if ((getGetScheduleMethod = NotebookServiceGrpc.getGetScheduleMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getGetScheduleMethod = NotebookServiceGrpc.getGetScheduleMethod) == null) { - NotebookServiceGrpc.getGetScheduleMethod = getGetScheduleMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSchedule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.GetScheduleRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.Schedule.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("GetSchedule")) - .build(); - } - } - } - return getGetScheduleMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteScheduleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSchedule", - requestType = com.google.cloud.notebooks.v1.DeleteScheduleRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteScheduleMethod() { - io.grpc.MethodDescriptor getDeleteScheduleMethod; - if ((getDeleteScheduleMethod = NotebookServiceGrpc.getDeleteScheduleMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getDeleteScheduleMethod = NotebookServiceGrpc.getDeleteScheduleMethod) == null) { - NotebookServiceGrpc.getDeleteScheduleMethod = getDeleteScheduleMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSchedule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.DeleteScheduleRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("DeleteSchedule")) - .build(); - } - } - } - return getDeleteScheduleMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateScheduleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSchedule", - requestType = com.google.cloud.notebooks.v1.CreateScheduleRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateScheduleMethod() { - io.grpc.MethodDescriptor getCreateScheduleMethod; - if ((getCreateScheduleMethod = NotebookServiceGrpc.getCreateScheduleMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getCreateScheduleMethod = NotebookServiceGrpc.getCreateScheduleMethod) == null) { - NotebookServiceGrpc.getCreateScheduleMethod = getCreateScheduleMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSchedule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.CreateScheduleRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("CreateSchedule")) - .build(); - } - } - } - return getCreateScheduleMethod; - } - - private static volatile io.grpc.MethodDescriptor getTriggerScheduleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TriggerSchedule", - requestType = com.google.cloud.notebooks.v1.TriggerScheduleRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTriggerScheduleMethod() { - io.grpc.MethodDescriptor getTriggerScheduleMethod; - if ((getTriggerScheduleMethod = NotebookServiceGrpc.getTriggerScheduleMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getTriggerScheduleMethod = NotebookServiceGrpc.getTriggerScheduleMethod) == null) { - NotebookServiceGrpc.getTriggerScheduleMethod = getTriggerScheduleMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TriggerSchedule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.TriggerScheduleRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("TriggerSchedule")) - .build(); - } - } - } - return getTriggerScheduleMethod; - } - - private static volatile io.grpc.MethodDescriptor getListExecutionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListExecutions", - requestType = com.google.cloud.notebooks.v1.ListExecutionsRequest.class, - responseType = com.google.cloud.notebooks.v1.ListExecutionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListExecutionsMethod() { - io.grpc.MethodDescriptor getListExecutionsMethod; - if ((getListExecutionsMethod = NotebookServiceGrpc.getListExecutionsMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getListExecutionsMethod = NotebookServiceGrpc.getListExecutionsMethod) == null) { - NotebookServiceGrpc.getListExecutionsMethod = getListExecutionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListExecutions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.ListExecutionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.ListExecutionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("ListExecutions")) - .build(); - } - } - } - return getListExecutionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetExecutionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetExecution", - requestType = com.google.cloud.notebooks.v1.GetExecutionRequest.class, - responseType = com.google.cloud.notebooks.v1.Execution.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetExecutionMethod() { - io.grpc.MethodDescriptor getGetExecutionMethod; - if ((getGetExecutionMethod = NotebookServiceGrpc.getGetExecutionMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getGetExecutionMethod = NotebookServiceGrpc.getGetExecutionMethod) == null) { - NotebookServiceGrpc.getGetExecutionMethod = getGetExecutionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExecution")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.GetExecutionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.Execution.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("GetExecution")) - .build(); - } - } - } - return getGetExecutionMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteExecutionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteExecution", - requestType = com.google.cloud.notebooks.v1.DeleteExecutionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteExecutionMethod() { - io.grpc.MethodDescriptor getDeleteExecutionMethod; - if ((getDeleteExecutionMethod = NotebookServiceGrpc.getDeleteExecutionMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getDeleteExecutionMethod = NotebookServiceGrpc.getDeleteExecutionMethod) == null) { - NotebookServiceGrpc.getDeleteExecutionMethod = getDeleteExecutionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteExecution")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.DeleteExecutionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("DeleteExecution")) - .build(); - } - } - } - return getDeleteExecutionMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateExecutionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateExecution", - requestType = com.google.cloud.notebooks.v1.CreateExecutionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateExecutionMethod() { - io.grpc.MethodDescriptor getCreateExecutionMethod; - if ((getCreateExecutionMethod = NotebookServiceGrpc.getCreateExecutionMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getCreateExecutionMethod = NotebookServiceGrpc.getCreateExecutionMethod) == null) { - NotebookServiceGrpc.getCreateExecutionMethod = getCreateExecutionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateExecution")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1.CreateExecutionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("CreateExecution")) - .build(); - } - } - } - return getCreateExecutionMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static NotebookServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public NotebookServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NotebookServiceStub(channel, callOptions); - } - }; - return NotebookServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static NotebookServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public NotebookServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NotebookServiceBlockingStub(channel, callOptions); - } - }; - return NotebookServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static NotebookServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public NotebookServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NotebookServiceFutureStub(channel, callOptions); - } - }; - return NotebookServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * API v1 service for Cloud AI Platform Notebooks.
-   * 
- */ - public static abstract class NotebookServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Lists instances in a given project and location.
-     * 
- */ - public void listInstances(com.google.cloud.notebooks.v1.ListInstancesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListInstancesMethod(), responseObserver); - } - - /** - *
-     * Gets details of a single Instance.
-     * 
- */ - public void getInstance(com.google.cloud.notebooks.v1.GetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetInstanceMethod(), responseObserver); - } - - /** - *
-     * Creates a new Instance in a given project and location.
-     * 
- */ - public void createInstance(com.google.cloud.notebooks.v1.CreateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateInstanceMethod(), responseObserver); - } - - /** - *
-     * Registers an existing legacy notebook instance to the Notebooks API server.
-     * Legacy instances are instances created with the legacy Compute Engine
-     * calls. They are not manageable by the Notebooks API out of the box. This
-     * call makes these instances manageable by the Notebooks API.
-     * 
- */ - public void registerInstance(com.google.cloud.notebooks.v1.RegisterInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRegisterInstanceMethod(), responseObserver); - } - - /** - *
-     * Updates the guest accelerators of a single Instance.
-     * 
- */ - public void setInstanceAccelerator(com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetInstanceAcceleratorMethod(), responseObserver); - } - - /** - *
-     * Updates the machine type of a single Instance.
-     * 
- */ - public void setInstanceMachineType(com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetInstanceMachineTypeMethod(), responseObserver); - } - - /** - *
-     * Update Notebook Instance configurations.
-     * 
- */ - public void updateInstanceConfig(com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateInstanceConfigMethod(), responseObserver); - } - - /** - *
-     * Updates the Shielded instance configuration of a single Instance.
-     * 
- */ - public void updateShieldedInstanceConfig(com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateShieldedInstanceConfigMethod(), responseObserver); - } - - /** - *
-     * Replaces all the labels of an Instance.
-     * 
- */ - public void setInstanceLabels(com.google.cloud.notebooks.v1.SetInstanceLabelsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetInstanceLabelsMethod(), responseObserver); - } - - /** - *
-     * Add/update metadata items for an instance.
-     * 
- */ - public void updateInstanceMetadataItems(com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateInstanceMetadataItemsMethod(), responseObserver); - } - - /** - *
-     * Deletes a single Instance.
-     * 
- */ - public void deleteInstance(com.google.cloud.notebooks.v1.DeleteInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteInstanceMethod(), responseObserver); - } - - /** - *
-     * Starts a notebook instance.
-     * 
- */ - public void startInstance(com.google.cloud.notebooks.v1.StartInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartInstanceMethod(), responseObserver); - } - - /** - *
-     * Stops a notebook instance.
-     * 
- */ - public void stopInstance(com.google.cloud.notebooks.v1.StopInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopInstanceMethod(), responseObserver); - } - - /** - *
-     * Resets a notebook instance.
-     * 
- */ - public void resetInstance(com.google.cloud.notebooks.v1.ResetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getResetInstanceMethod(), responseObserver); - } - - /** - *
-     * Allows notebook instances to
-     * report their latest instance information to the Notebooks
-     * API server. The server will merge the reported information to
-     * the instance metadata store. Do not use this method directly.
-     * 
- */ - public void reportInstanceInfo(com.google.cloud.notebooks.v1.ReportInstanceInfoRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getReportInstanceInfoMethod(), responseObserver); - } - - /** - *
-     * Check if a notebook instance is upgradable.
-     * 
- */ - public void isInstanceUpgradeable(com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getIsInstanceUpgradeableMethod(), responseObserver); - } - - /** - *
-     * Check if a notebook instance is healthy.
-     * 
- */ - public void getInstanceHealth(com.google.cloud.notebooks.v1.GetInstanceHealthRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetInstanceHealthMethod(), responseObserver); - } - - /** - *
-     * Upgrades a notebook instance to the latest version.
-     * 
- */ - public void upgradeInstance(com.google.cloud.notebooks.v1.UpgradeInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpgradeInstanceMethod(), responseObserver); - } - - /** - *
-     * Rollbacks a notebook instance to the previous version.
-     * 
- */ - public void rollbackInstance(com.google.cloud.notebooks.v1.RollbackInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRollbackInstanceMethod(), responseObserver); - } - - /** - *
-     * Creates a Diagnostic File and runs Diagnostic Tool given an Instance.
-     * 
- */ - public void diagnoseInstance(com.google.cloud.notebooks.v1.DiagnoseInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDiagnoseInstanceMethod(), responseObserver); - } - - /** - *
-     * Allows notebook instances to
-     * call this endpoint to upgrade themselves. Do not use this method directly.
-     * 
- */ - public void upgradeInstanceInternal(com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpgradeInstanceInternalMethod(), responseObserver); - } - - /** - *
-     * Lists environments in a project.
-     * 
- */ - public void listEnvironments(com.google.cloud.notebooks.v1.ListEnvironmentsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListEnvironmentsMethod(), responseObserver); - } - - /** - *
-     * Gets details of a single Environment.
-     * 
- */ - public void getEnvironment(com.google.cloud.notebooks.v1.GetEnvironmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEnvironmentMethod(), responseObserver); - } - - /** - *
-     * Creates a new Environment.
-     * 
- */ - public void createEnvironment(com.google.cloud.notebooks.v1.CreateEnvironmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateEnvironmentMethod(), responseObserver); - } - - /** - *
-     * Deletes a single Environment.
-     * 
- */ - public void deleteEnvironment(com.google.cloud.notebooks.v1.DeleteEnvironmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteEnvironmentMethod(), responseObserver); - } - - /** - *
-     * Lists schedules in a given project and location.
-     * 
- */ - public void listSchedules(com.google.cloud.notebooks.v1.ListSchedulesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSchedulesMethod(), responseObserver); - } - - /** - *
-     * Gets details of schedule
-     * 
- */ - public void getSchedule(com.google.cloud.notebooks.v1.GetScheduleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetScheduleMethod(), responseObserver); - } - - /** - *
-     * Deletes schedule and all underlying jobs
-     * 
- */ - public void deleteSchedule(com.google.cloud.notebooks.v1.DeleteScheduleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteScheduleMethod(), responseObserver); - } - - /** - *
-     * Creates a new Scheduled Notebook in a given project and location.
-     * 
- */ - public void createSchedule(com.google.cloud.notebooks.v1.CreateScheduleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateScheduleMethod(), responseObserver); - } - - /** - *
-     * Triggers execution of an existing schedule.
-     * 
- */ - public void triggerSchedule(com.google.cloud.notebooks.v1.TriggerScheduleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTriggerScheduleMethod(), responseObserver); - } - - /** - *
-     * Lists executions in a given project and location
-     * 
- */ - public void listExecutions(com.google.cloud.notebooks.v1.ListExecutionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListExecutionsMethod(), responseObserver); - } - - /** - *
-     * Gets details of executions
-     * 
- */ - public void getExecution(com.google.cloud.notebooks.v1.GetExecutionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetExecutionMethod(), responseObserver); - } - - /** - *
-     * Deletes execution
-     * 
- */ - public void deleteExecution(com.google.cloud.notebooks.v1.DeleteExecutionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteExecutionMethod(), responseObserver); - } - - /** - *
-     * Creates a new Execution in a given project and location.
-     * 
- */ - public void createExecution(com.google.cloud.notebooks.v1.CreateExecutionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateExecutionMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListInstancesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.ListInstancesRequest, - com.google.cloud.notebooks.v1.ListInstancesResponse>( - this, METHODID_LIST_INSTANCES))) - .addMethod( - getGetInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.GetInstanceRequest, - com.google.cloud.notebooks.v1.Instance>( - this, METHODID_GET_INSTANCE))) - .addMethod( - getCreateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.CreateInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_INSTANCE))) - .addMethod( - getRegisterInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.RegisterInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_REGISTER_INSTANCE))) - .addMethod( - getSetInstanceAcceleratorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest, - com.google.longrunning.Operation>( - this, METHODID_SET_INSTANCE_ACCELERATOR))) - .addMethod( - getSetInstanceMachineTypeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest, - com.google.longrunning.Operation>( - this, METHODID_SET_INSTANCE_MACHINE_TYPE))) - .addMethod( - getUpdateInstanceConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_INSTANCE_CONFIG))) - .addMethod( - getUpdateShieldedInstanceConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_SHIELDED_INSTANCE_CONFIG))) - .addMethod( - getSetInstanceLabelsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.SetInstanceLabelsRequest, - com.google.longrunning.Operation>( - this, METHODID_SET_INSTANCE_LABELS))) - .addMethod( - getUpdateInstanceMetadataItemsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest, - com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse>( - this, METHODID_UPDATE_INSTANCE_METADATA_ITEMS))) - .addMethod( - getDeleteInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.DeleteInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_INSTANCE))) - .addMethod( - getStartInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.StartInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_START_INSTANCE))) - .addMethod( - getStopInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.StopInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_STOP_INSTANCE))) - .addMethod( - getResetInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.ResetInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_RESET_INSTANCE))) - .addMethod( - getReportInstanceInfoMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.ReportInstanceInfoRequest, - com.google.longrunning.Operation>( - this, METHODID_REPORT_INSTANCE_INFO))) - .addMethod( - getIsInstanceUpgradeableMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest, - com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse>( - this, METHODID_IS_INSTANCE_UPGRADEABLE))) - .addMethod( - getGetInstanceHealthMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.GetInstanceHealthRequest, - com.google.cloud.notebooks.v1.GetInstanceHealthResponse>( - this, METHODID_GET_INSTANCE_HEALTH))) - .addMethod( - getUpgradeInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.UpgradeInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_UPGRADE_INSTANCE))) - .addMethod( - getRollbackInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.RollbackInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_ROLLBACK_INSTANCE))) - .addMethod( - getDiagnoseInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.DiagnoseInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_DIAGNOSE_INSTANCE))) - .addMethod( - getUpgradeInstanceInternalMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest, - com.google.longrunning.Operation>( - this, METHODID_UPGRADE_INSTANCE_INTERNAL))) - .addMethod( - getListEnvironmentsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.ListEnvironmentsRequest, - com.google.cloud.notebooks.v1.ListEnvironmentsResponse>( - this, METHODID_LIST_ENVIRONMENTS))) - .addMethod( - getGetEnvironmentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.GetEnvironmentRequest, - com.google.cloud.notebooks.v1.Environment>( - this, METHODID_GET_ENVIRONMENT))) - .addMethod( - getCreateEnvironmentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.CreateEnvironmentRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_ENVIRONMENT))) - .addMethod( - getDeleteEnvironmentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.DeleteEnvironmentRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_ENVIRONMENT))) - .addMethod( - getListSchedulesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.ListSchedulesRequest, - com.google.cloud.notebooks.v1.ListSchedulesResponse>( - this, METHODID_LIST_SCHEDULES))) - .addMethod( - getGetScheduleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.GetScheduleRequest, - com.google.cloud.notebooks.v1.Schedule>( - this, METHODID_GET_SCHEDULE))) - .addMethod( - getDeleteScheduleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.DeleteScheduleRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_SCHEDULE))) - .addMethod( - getCreateScheduleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.CreateScheduleRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_SCHEDULE))) - .addMethod( - getTriggerScheduleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.TriggerScheduleRequest, - com.google.longrunning.Operation>( - this, METHODID_TRIGGER_SCHEDULE))) - .addMethod( - getListExecutionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.ListExecutionsRequest, - com.google.cloud.notebooks.v1.ListExecutionsResponse>( - this, METHODID_LIST_EXECUTIONS))) - .addMethod( - getGetExecutionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.GetExecutionRequest, - com.google.cloud.notebooks.v1.Execution>( - this, METHODID_GET_EXECUTION))) - .addMethod( - getDeleteExecutionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.DeleteExecutionRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_EXECUTION))) - .addMethod( - getCreateExecutionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1.CreateExecutionRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_EXECUTION))) - .build(); - } - } - - /** - *
-   * API v1 service for Cloud AI Platform Notebooks.
-   * 
- */ - public static final class NotebookServiceStub extends io.grpc.stub.AbstractAsyncStub { - private NotebookServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected NotebookServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NotebookServiceStub(channel, callOptions); - } - - /** - *
-     * Lists instances in a given project and location.
-     * 
- */ - public void listInstances(com.google.cloud.notebooks.v1.ListInstancesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details of a single Instance.
-     * 
- */ - public void getInstance(com.google.cloud.notebooks.v1.GetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new Instance in a given project and location.
-     * 
- */ - public void createInstance(com.google.cloud.notebooks.v1.CreateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Registers an existing legacy notebook instance to the Notebooks API server.
-     * Legacy instances are instances created with the legacy Compute Engine
-     * calls. They are not manageable by the Notebooks API out of the box. This
-     * call makes these instances manageable by the Notebooks API.
-     * 
- */ - public void registerInstance(com.google.cloud.notebooks.v1.RegisterInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRegisterInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the guest accelerators of a single Instance.
-     * 
- */ - public void setInstanceAccelerator(com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetInstanceAcceleratorMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the machine type of a single Instance.
-     * 
- */ - public void setInstanceMachineType(com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetInstanceMachineTypeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update Notebook Instance configurations.
-     * 
- */ - public void updateInstanceConfig(com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateInstanceConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the Shielded instance configuration of a single Instance.
-     * 
- */ - public void updateShieldedInstanceConfig(com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateShieldedInstanceConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Replaces all the labels of an Instance.
-     * 
- */ - public void setInstanceLabels(com.google.cloud.notebooks.v1.SetInstanceLabelsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetInstanceLabelsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Add/update metadata items for an instance.
-     * 
- */ - public void updateInstanceMetadataItems(com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateInstanceMetadataItemsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a single Instance.
-     * 
- */ - public void deleteInstance(com.google.cloud.notebooks.v1.DeleteInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Starts a notebook instance.
-     * 
- */ - public void startInstance(com.google.cloud.notebooks.v1.StartInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Stops a notebook instance.
-     * 
- */ - public void stopInstance(com.google.cloud.notebooks.v1.StopInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Resets a notebook instance.
-     * 
- */ - public void resetInstance(com.google.cloud.notebooks.v1.ResetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getResetInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Allows notebook instances to
-     * report their latest instance information to the Notebooks
-     * API server. The server will merge the reported information to
-     * the instance metadata store. Do not use this method directly.
-     * 
- */ - public void reportInstanceInfo(com.google.cloud.notebooks.v1.ReportInstanceInfoRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getReportInstanceInfoMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Check if a notebook instance is upgradable.
-     * 
- */ - public void isInstanceUpgradeable(com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getIsInstanceUpgradeableMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Check if a notebook instance is healthy.
-     * 
- */ - public void getInstanceHealth(com.google.cloud.notebooks.v1.GetInstanceHealthRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetInstanceHealthMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Upgrades a notebook instance to the latest version.
-     * 
- */ - public void upgradeInstance(com.google.cloud.notebooks.v1.UpgradeInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpgradeInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Rollbacks a notebook instance to the previous version.
-     * 
- */ - public void rollbackInstance(com.google.cloud.notebooks.v1.RollbackInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRollbackInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a Diagnostic File and runs Diagnostic Tool given an Instance.
-     * 
- */ - public void diagnoseInstance(com.google.cloud.notebooks.v1.DiagnoseInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDiagnoseInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Allows notebook instances to
-     * call this endpoint to upgrade themselves. Do not use this method directly.
-     * 
- */ - public void upgradeInstanceInternal(com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpgradeInstanceInternalMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists environments in a project.
-     * 
- */ - public void listEnvironments(com.google.cloud.notebooks.v1.ListEnvironmentsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListEnvironmentsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details of a single Environment.
-     * 
- */ - public void getEnvironment(com.google.cloud.notebooks.v1.GetEnvironmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetEnvironmentMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new Environment.
-     * 
- */ - public void createEnvironment(com.google.cloud.notebooks.v1.CreateEnvironmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateEnvironmentMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a single Environment.
-     * 
- */ - public void deleteEnvironment(com.google.cloud.notebooks.v1.DeleteEnvironmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteEnvironmentMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists schedules in a given project and location.
-     * 
- */ - public void listSchedules(com.google.cloud.notebooks.v1.ListSchedulesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSchedulesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details of schedule
-     * 
- */ - public void getSchedule(com.google.cloud.notebooks.v1.GetScheduleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetScheduleMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes schedule and all underlying jobs
-     * 
- */ - public void deleteSchedule(com.google.cloud.notebooks.v1.DeleteScheduleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteScheduleMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new Scheduled Notebook in a given project and location.
-     * 
- */ - public void createSchedule(com.google.cloud.notebooks.v1.CreateScheduleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateScheduleMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Triggers execution of an existing schedule.
-     * 
- */ - public void triggerSchedule(com.google.cloud.notebooks.v1.TriggerScheduleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTriggerScheduleMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists executions in a given project and location
-     * 
- */ - public void listExecutions(com.google.cloud.notebooks.v1.ListExecutionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListExecutionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details of executions
-     * 
- */ - public void getExecution(com.google.cloud.notebooks.v1.GetExecutionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetExecutionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes execution
-     * 
- */ - public void deleteExecution(com.google.cloud.notebooks.v1.DeleteExecutionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteExecutionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new Execution in a given project and location.
-     * 
- */ - public void createExecution(com.google.cloud.notebooks.v1.CreateExecutionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateExecutionMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * API v1 service for Cloud AI Platform Notebooks.
-   * 
- */ - public static final class NotebookServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private NotebookServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected NotebookServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NotebookServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists instances in a given project and location.
-     * 
- */ - public com.google.cloud.notebooks.v1.ListInstancesResponse listInstances(com.google.cloud.notebooks.v1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListInstancesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details of a single Instance.
-     * 
- */ - public com.google.cloud.notebooks.v1.Instance getInstance(com.google.cloud.notebooks.v1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new Instance in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createInstance(com.google.cloud.notebooks.v1.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Registers an existing legacy notebook instance to the Notebooks API server.
-     * Legacy instances are instances created with the legacy Compute Engine
-     * calls. They are not manageable by the Notebooks API out of the box. This
-     * call makes these instances manageable by the Notebooks API.
-     * 
- */ - public com.google.longrunning.Operation registerInstance(com.google.cloud.notebooks.v1.RegisterInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRegisterInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the guest accelerators of a single Instance.
-     * 
- */ - public com.google.longrunning.Operation setInstanceAccelerator(com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetInstanceAcceleratorMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the machine type of a single Instance.
-     * 
- */ - public com.google.longrunning.Operation setInstanceMachineType(com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetInstanceMachineTypeMethod(), getCallOptions(), request); - } - - /** - *
-     * Update Notebook Instance configurations.
-     * 
- */ - public com.google.longrunning.Operation updateInstanceConfig(com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateInstanceConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the Shielded instance configuration of a single Instance.
-     * 
- */ - public com.google.longrunning.Operation updateShieldedInstanceConfig(com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateShieldedInstanceConfigMethod(), getCallOptions(), request); - } - - /** - *
-     * Replaces all the labels of an Instance.
-     * 
- */ - public com.google.longrunning.Operation setInstanceLabels(com.google.cloud.notebooks.v1.SetInstanceLabelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetInstanceLabelsMethod(), getCallOptions(), request); - } - - /** - *
-     * Add/update metadata items for an instance.
-     * 
- */ - public com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsResponse updateInstanceMetadataItems(com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateInstanceMetadataItemsMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a single Instance.
-     * 
- */ - public com.google.longrunning.Operation deleteInstance(com.google.cloud.notebooks.v1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Starts a notebook instance.
-     * 
- */ - public com.google.longrunning.Operation startInstance(com.google.cloud.notebooks.v1.StartInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Stops a notebook instance.
-     * 
- */ - public com.google.longrunning.Operation stopInstance(com.google.cloud.notebooks.v1.StopInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Resets a notebook instance.
-     * 
- */ - public com.google.longrunning.Operation resetInstance(com.google.cloud.notebooks.v1.ResetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getResetInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Allows notebook instances to
-     * report their latest instance information to the Notebooks
-     * API server. The server will merge the reported information to
-     * the instance metadata store. Do not use this method directly.
-     * 
- */ - public com.google.longrunning.Operation reportInstanceInfo(com.google.cloud.notebooks.v1.ReportInstanceInfoRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getReportInstanceInfoMethod(), getCallOptions(), request); - } - - /** - *
-     * Check if a notebook instance is upgradable.
-     * 
- */ - public com.google.cloud.notebooks.v1.IsInstanceUpgradeableResponse isInstanceUpgradeable(com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getIsInstanceUpgradeableMethod(), getCallOptions(), request); - } - - /** - *
-     * Check if a notebook instance is healthy.
-     * 
- */ - public com.google.cloud.notebooks.v1.GetInstanceHealthResponse getInstanceHealth(com.google.cloud.notebooks.v1.GetInstanceHealthRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetInstanceHealthMethod(), getCallOptions(), request); - } - - /** - *
-     * Upgrades a notebook instance to the latest version.
-     * 
- */ - public com.google.longrunning.Operation upgradeInstance(com.google.cloud.notebooks.v1.UpgradeInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpgradeInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Rollbacks a notebook instance to the previous version.
-     * 
- */ - public com.google.longrunning.Operation rollbackInstance(com.google.cloud.notebooks.v1.RollbackInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRollbackInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a Diagnostic File and runs Diagnostic Tool given an Instance.
-     * 
- */ - public com.google.longrunning.Operation diagnoseInstance(com.google.cloud.notebooks.v1.DiagnoseInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDiagnoseInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Allows notebook instances to
-     * call this endpoint to upgrade themselves. Do not use this method directly.
-     * 
- */ - public com.google.longrunning.Operation upgradeInstanceInternal(com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpgradeInstanceInternalMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists environments in a project.
-     * 
- */ - public com.google.cloud.notebooks.v1.ListEnvironmentsResponse listEnvironments(com.google.cloud.notebooks.v1.ListEnvironmentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListEnvironmentsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details of a single Environment.
-     * 
- */ - public com.google.cloud.notebooks.v1.Environment getEnvironment(com.google.cloud.notebooks.v1.GetEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetEnvironmentMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new Environment.
-     * 
- */ - public com.google.longrunning.Operation createEnvironment(com.google.cloud.notebooks.v1.CreateEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateEnvironmentMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a single Environment.
-     * 
- */ - public com.google.longrunning.Operation deleteEnvironment(com.google.cloud.notebooks.v1.DeleteEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteEnvironmentMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists schedules in a given project and location.
-     * 
- */ - public com.google.cloud.notebooks.v1.ListSchedulesResponse listSchedules(com.google.cloud.notebooks.v1.ListSchedulesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSchedulesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details of schedule
-     * 
- */ - public com.google.cloud.notebooks.v1.Schedule getSchedule(com.google.cloud.notebooks.v1.GetScheduleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetScheduleMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes schedule and all underlying jobs
-     * 
- */ - public com.google.longrunning.Operation deleteSchedule(com.google.cloud.notebooks.v1.DeleteScheduleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteScheduleMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new Scheduled Notebook in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createSchedule(com.google.cloud.notebooks.v1.CreateScheduleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateScheduleMethod(), getCallOptions(), request); - } - - /** - *
-     * Triggers execution of an existing schedule.
-     * 
- */ - public com.google.longrunning.Operation triggerSchedule(com.google.cloud.notebooks.v1.TriggerScheduleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTriggerScheduleMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists executions in a given project and location
-     * 
- */ - public com.google.cloud.notebooks.v1.ListExecutionsResponse listExecutions(com.google.cloud.notebooks.v1.ListExecutionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListExecutionsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details of executions
-     * 
- */ - public com.google.cloud.notebooks.v1.Execution getExecution(com.google.cloud.notebooks.v1.GetExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetExecutionMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes execution
-     * 
- */ - public com.google.longrunning.Operation deleteExecution(com.google.cloud.notebooks.v1.DeleteExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteExecutionMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new Execution in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createExecution(com.google.cloud.notebooks.v1.CreateExecutionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateExecutionMethod(), getCallOptions(), request); - } - } - - /** - *
-   * API v1 service for Cloud AI Platform Notebooks.
-   * 
- */ - public static final class NotebookServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private NotebookServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected NotebookServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NotebookServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Lists instances in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listInstances( - com.google.cloud.notebooks.v1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details of a single Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getInstance( - com.google.cloud.notebooks.v1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new Instance in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createInstance( - com.google.cloud.notebooks.v1.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Registers an existing legacy notebook instance to the Notebooks API server.
-     * Legacy instances are instances created with the legacy Compute Engine
-     * calls. They are not manageable by the Notebooks API out of the box. This
-     * call makes these instances manageable by the Notebooks API.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture registerInstance( - com.google.cloud.notebooks.v1.RegisterInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRegisterInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the guest accelerators of a single Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture setInstanceAccelerator( - com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetInstanceAcceleratorMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the machine type of a single Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture setInstanceMachineType( - com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetInstanceMachineTypeMethod(), getCallOptions()), request); - } - - /** - *
-     * Update Notebook Instance configurations.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateInstanceConfig( - com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateInstanceConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the Shielded instance configuration of a single Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateShieldedInstanceConfig( - com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateShieldedInstanceConfigMethod(), getCallOptions()), request); - } - - /** - *
-     * Replaces all the labels of an Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture setInstanceLabels( - com.google.cloud.notebooks.v1.SetInstanceLabelsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetInstanceLabelsMethod(), getCallOptions()), request); - } - - /** - *
-     * Add/update metadata items for an instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateInstanceMetadataItems( - com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateInstanceMetadataItemsMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a single Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteInstance( - com.google.cloud.notebooks.v1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Starts a notebook instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture startInstance( - com.google.cloud.notebooks.v1.StartInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Stops a notebook instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture stopInstance( - com.google.cloud.notebooks.v1.StopInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Resets a notebook instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture resetInstance( - com.google.cloud.notebooks.v1.ResetInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getResetInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Allows notebook instances to
-     * report their latest instance information to the Notebooks
-     * API server. The server will merge the reported information to
-     * the instance metadata store. Do not use this method directly.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture reportInstanceInfo( - com.google.cloud.notebooks.v1.ReportInstanceInfoRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getReportInstanceInfoMethod(), getCallOptions()), request); - } - - /** - *
-     * Check if a notebook instance is upgradable.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture isInstanceUpgradeable( - com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getIsInstanceUpgradeableMethod(), getCallOptions()), request); - } - - /** - *
-     * Check if a notebook instance is healthy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getInstanceHealth( - com.google.cloud.notebooks.v1.GetInstanceHealthRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetInstanceHealthMethod(), getCallOptions()), request); - } - - /** - *
-     * Upgrades a notebook instance to the latest version.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture upgradeInstance( - com.google.cloud.notebooks.v1.UpgradeInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpgradeInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Rollbacks a notebook instance to the previous version.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture rollbackInstance( - com.google.cloud.notebooks.v1.RollbackInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRollbackInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a Diagnostic File and runs Diagnostic Tool given an Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture diagnoseInstance( - com.google.cloud.notebooks.v1.DiagnoseInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDiagnoseInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Allows notebook instances to
-     * call this endpoint to upgrade themselves. Do not use this method directly.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture upgradeInstanceInternal( - com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpgradeInstanceInternalMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists environments in a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listEnvironments( - com.google.cloud.notebooks.v1.ListEnvironmentsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListEnvironmentsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details of a single Environment.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getEnvironment( - com.google.cloud.notebooks.v1.GetEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetEnvironmentMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new Environment.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createEnvironment( - com.google.cloud.notebooks.v1.CreateEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateEnvironmentMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a single Environment.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteEnvironment( - com.google.cloud.notebooks.v1.DeleteEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteEnvironmentMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists schedules in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listSchedules( - com.google.cloud.notebooks.v1.ListSchedulesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSchedulesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details of schedule
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getSchedule( - com.google.cloud.notebooks.v1.GetScheduleRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetScheduleMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes schedule and all underlying jobs
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteSchedule( - com.google.cloud.notebooks.v1.DeleteScheduleRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteScheduleMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new Scheduled Notebook in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createSchedule( - com.google.cloud.notebooks.v1.CreateScheduleRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateScheduleMethod(), getCallOptions()), request); - } - - /** - *
-     * Triggers execution of an existing schedule.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture triggerSchedule( - com.google.cloud.notebooks.v1.TriggerScheduleRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTriggerScheduleMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists executions in a given project and location
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listExecutions( - com.google.cloud.notebooks.v1.ListExecutionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListExecutionsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details of executions
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getExecution( - com.google.cloud.notebooks.v1.GetExecutionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetExecutionMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes execution
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteExecution( - com.google.cloud.notebooks.v1.DeleteExecutionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteExecutionMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new Execution in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createExecution( - com.google.cloud.notebooks.v1.CreateExecutionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateExecutionMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_INSTANCES = 0; - private static final int METHODID_GET_INSTANCE = 1; - private static final int METHODID_CREATE_INSTANCE = 2; - private static final int METHODID_REGISTER_INSTANCE = 3; - private static final int METHODID_SET_INSTANCE_ACCELERATOR = 4; - private static final int METHODID_SET_INSTANCE_MACHINE_TYPE = 5; - private static final int METHODID_UPDATE_INSTANCE_CONFIG = 6; - private static final int METHODID_UPDATE_SHIELDED_INSTANCE_CONFIG = 7; - private static final int METHODID_SET_INSTANCE_LABELS = 8; - private static final int METHODID_UPDATE_INSTANCE_METADATA_ITEMS = 9; - private static final int METHODID_DELETE_INSTANCE = 10; - private static final int METHODID_START_INSTANCE = 11; - private static final int METHODID_STOP_INSTANCE = 12; - private static final int METHODID_RESET_INSTANCE = 13; - private static final int METHODID_REPORT_INSTANCE_INFO = 14; - private static final int METHODID_IS_INSTANCE_UPGRADEABLE = 15; - private static final int METHODID_GET_INSTANCE_HEALTH = 16; - private static final int METHODID_UPGRADE_INSTANCE = 17; - private static final int METHODID_ROLLBACK_INSTANCE = 18; - private static final int METHODID_DIAGNOSE_INSTANCE = 19; - private static final int METHODID_UPGRADE_INSTANCE_INTERNAL = 20; - private static final int METHODID_LIST_ENVIRONMENTS = 21; - private static final int METHODID_GET_ENVIRONMENT = 22; - private static final int METHODID_CREATE_ENVIRONMENT = 23; - private static final int METHODID_DELETE_ENVIRONMENT = 24; - private static final int METHODID_LIST_SCHEDULES = 25; - private static final int METHODID_GET_SCHEDULE = 26; - private static final int METHODID_DELETE_SCHEDULE = 27; - private static final int METHODID_CREATE_SCHEDULE = 28; - private static final int METHODID_TRIGGER_SCHEDULE = 29; - private static final int METHODID_LIST_EXECUTIONS = 30; - private static final int METHODID_GET_EXECUTION = 31; - private static final int METHODID_DELETE_EXECUTION = 32; - private static final int METHODID_CREATE_EXECUTION = 33; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final NotebookServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(NotebookServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_INSTANCES: - serviceImpl.listInstances((com.google.cloud.notebooks.v1.ListInstancesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_INSTANCE: - serviceImpl.getInstance((com.google.cloud.notebooks.v1.GetInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_INSTANCE: - serviceImpl.createInstance((com.google.cloud.notebooks.v1.CreateInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_REGISTER_INSTANCE: - serviceImpl.registerInstance((com.google.cloud.notebooks.v1.RegisterInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_INSTANCE_ACCELERATOR: - serviceImpl.setInstanceAccelerator((com.google.cloud.notebooks.v1.SetInstanceAcceleratorRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_INSTANCE_MACHINE_TYPE: - serviceImpl.setInstanceMachineType((com.google.cloud.notebooks.v1.SetInstanceMachineTypeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_INSTANCE_CONFIG: - serviceImpl.updateInstanceConfig((com.google.cloud.notebooks.v1.UpdateInstanceConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SHIELDED_INSTANCE_CONFIG: - serviceImpl.updateShieldedInstanceConfig((com.google.cloud.notebooks.v1.UpdateShieldedInstanceConfigRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_INSTANCE_LABELS: - serviceImpl.setInstanceLabels((com.google.cloud.notebooks.v1.SetInstanceLabelsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_INSTANCE_METADATA_ITEMS: - serviceImpl.updateInstanceMetadataItems((com.google.cloud.notebooks.v1.UpdateInstanceMetadataItemsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_INSTANCE: - serviceImpl.deleteInstance((com.google.cloud.notebooks.v1.DeleteInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_START_INSTANCE: - serviceImpl.startInstance((com.google.cloud.notebooks.v1.StartInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_STOP_INSTANCE: - serviceImpl.stopInstance((com.google.cloud.notebooks.v1.StopInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RESET_INSTANCE: - serviceImpl.resetInstance((com.google.cloud.notebooks.v1.ResetInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_REPORT_INSTANCE_INFO: - serviceImpl.reportInstanceInfo((com.google.cloud.notebooks.v1.ReportInstanceInfoRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_IS_INSTANCE_UPGRADEABLE: - serviceImpl.isInstanceUpgradeable((com.google.cloud.notebooks.v1.IsInstanceUpgradeableRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_INSTANCE_HEALTH: - serviceImpl.getInstanceHealth((com.google.cloud.notebooks.v1.GetInstanceHealthRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPGRADE_INSTANCE: - serviceImpl.upgradeInstance((com.google.cloud.notebooks.v1.UpgradeInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ROLLBACK_INSTANCE: - serviceImpl.rollbackInstance((com.google.cloud.notebooks.v1.RollbackInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DIAGNOSE_INSTANCE: - serviceImpl.diagnoseInstance((com.google.cloud.notebooks.v1.DiagnoseInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPGRADE_INSTANCE_INTERNAL: - serviceImpl.upgradeInstanceInternal((com.google.cloud.notebooks.v1.UpgradeInstanceInternalRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_ENVIRONMENTS: - serviceImpl.listEnvironments((com.google.cloud.notebooks.v1.ListEnvironmentsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ENVIRONMENT: - serviceImpl.getEnvironment((com.google.cloud.notebooks.v1.GetEnvironmentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_ENVIRONMENT: - serviceImpl.createEnvironment((com.google.cloud.notebooks.v1.CreateEnvironmentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_ENVIRONMENT: - serviceImpl.deleteEnvironment((com.google.cloud.notebooks.v1.DeleteEnvironmentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SCHEDULES: - serviceImpl.listSchedules((com.google.cloud.notebooks.v1.ListSchedulesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SCHEDULE: - serviceImpl.getSchedule((com.google.cloud.notebooks.v1.GetScheduleRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SCHEDULE: - serviceImpl.deleteSchedule((com.google.cloud.notebooks.v1.DeleteScheduleRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_SCHEDULE: - serviceImpl.createSchedule((com.google.cloud.notebooks.v1.CreateScheduleRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TRIGGER_SCHEDULE: - serviceImpl.triggerSchedule((com.google.cloud.notebooks.v1.TriggerScheduleRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_EXECUTIONS: - serviceImpl.listExecutions((com.google.cloud.notebooks.v1.ListExecutionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_EXECUTION: - serviceImpl.getExecution((com.google.cloud.notebooks.v1.GetExecutionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_EXECUTION: - serviceImpl.deleteExecution((com.google.cloud.notebooks.v1.DeleteExecutionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_EXECUTION: - serviceImpl.createExecution((com.google.cloud.notebooks.v1.CreateExecutionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class NotebookServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - NotebookServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.notebooks.v1.NotebooksProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("NotebookService"); - } - } - - private static final class NotebookServiceFileDescriptorSupplier - extends NotebookServiceBaseDescriptorSupplier { - NotebookServiceFileDescriptorSupplier() {} - } - - private static final class NotebookServiceMethodDescriptorSupplier - extends NotebookServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - NotebookServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (NotebookServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new NotebookServiceFileDescriptorSupplier()) - .addMethod(getListInstancesMethod()) - .addMethod(getGetInstanceMethod()) - .addMethod(getCreateInstanceMethod()) - .addMethod(getRegisterInstanceMethod()) - .addMethod(getSetInstanceAcceleratorMethod()) - .addMethod(getSetInstanceMachineTypeMethod()) - .addMethod(getUpdateInstanceConfigMethod()) - .addMethod(getUpdateShieldedInstanceConfigMethod()) - .addMethod(getSetInstanceLabelsMethod()) - .addMethod(getUpdateInstanceMetadataItemsMethod()) - .addMethod(getDeleteInstanceMethod()) - .addMethod(getStartInstanceMethod()) - .addMethod(getStopInstanceMethod()) - .addMethod(getResetInstanceMethod()) - .addMethod(getReportInstanceInfoMethod()) - .addMethod(getIsInstanceUpgradeableMethod()) - .addMethod(getGetInstanceHealthMethod()) - .addMethod(getUpgradeInstanceMethod()) - .addMethod(getRollbackInstanceMethod()) - .addMethod(getDiagnoseInstanceMethod()) - .addMethod(getUpgradeInstanceInternalMethod()) - .addMethod(getListEnvironmentsMethod()) - .addMethod(getGetEnvironmentMethod()) - .addMethod(getCreateEnvironmentMethod()) - .addMethod(getDeleteEnvironmentMethod()) - .addMethod(getListSchedulesMethod()) - .addMethod(getGetScheduleMethod()) - .addMethod(getDeleteScheduleMethod()) - .addMethod(getCreateScheduleMethod()) - .addMethod(getTriggerScheduleMethod()) - .addMethod(getListExecutionsMethod()) - .addMethod(getGetExecutionMethod()) - .addMethod(getDeleteExecutionMethod()) - .addMethod(getCreateExecutionMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteExecutionRequestOrBuilder.java b/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteExecutionRequestOrBuilder.java deleted file mode 100644 index 8b511eccf1da..000000000000 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteExecutionRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/notebooks/v1/service.proto - -package com.google.cloud.notebooks.v1; - -public interface DeleteExecutionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.DeleteExecutionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Format:
-   * `projects/{project_id}/locations/{location}/executions/{execution_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Format:
-   * `projects/{project_id}/locations/{location}/executions/{execution_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteRuntimeRequestOrBuilder.java b/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteRuntimeRequestOrBuilder.java deleted file mode 100644 index 55d42698dd99..000000000000 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteRuntimeRequestOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/notebooks/v1/managed_service.proto - -package com.google.cloud.notebooks.v1; - -public interface DeleteRuntimeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.DeleteRuntimeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Format:
-   * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Format:
-   * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Idempotent request UUID.
-   * 
- * - * string request_id = 2; - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - *
-   * Idempotent request UUID.
-   * 
- * - * string request_id = 2; - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString - getRequestIdBytes(); -} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteScheduleRequestOrBuilder.java b/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteScheduleRequestOrBuilder.java deleted file mode 100644 index 2d6072aee315..000000000000 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteScheduleRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/notebooks/v1/service.proto - -package com.google.cloud.notebooks.v1; - -public interface DeleteScheduleRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.DeleteScheduleRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Format:
-   * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Format:
-   * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnoseInstanceRequestOrBuilder.java b/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnoseInstanceRequestOrBuilder.java deleted file mode 100644 index 8038024b28ec..000000000000 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnoseInstanceRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/notebooks/v1/service.proto - -package com.google.cloud.notebooks.v1; - -public interface DiagnoseInstanceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.DiagnoseInstanceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Format:
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Format:
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Required. Defines flags that are used to run the diagnostic tool
-   * 
- * - * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the diagnosticConfig field is set. - */ - boolean hasDiagnosticConfig(); - /** - *
-   * Required. Defines flags that are used to run the diagnostic tool
-   * 
- * - * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The diagnosticConfig. - */ - com.google.cloud.notebooks.v1.DiagnosticConfig getDiagnosticConfig(); - /** - *
-   * Required. Defines flags that are used to run the diagnostic tool
-   * 
- * - * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.notebooks.v1.DiagnosticConfigOrBuilder getDiagnosticConfigOrBuilder(); -} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnoseRuntimeRequestOrBuilder.java b/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnoseRuntimeRequestOrBuilder.java deleted file mode 100644 index c318cc78895e..000000000000 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnoseRuntimeRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/notebooks/v1/managed_service.proto - -package com.google.cloud.notebooks.v1; - -public interface DiagnoseRuntimeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.DiagnoseRuntimeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Format:
-   * `projects/{project_id}/locations/{location}/runtimes/{runtimes_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Format:
-   * `projects/{project_id}/locations/{location}/runtimes/{runtimes_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Required. Defines flags that are used to run the diagnostic tool
-   * 
- * - * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the diagnosticConfig field is set. - */ - boolean hasDiagnosticConfig(); - /** - *
-   * Required. Defines flags that are used to run the diagnostic tool
-   * 
- * - * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The diagnosticConfig. - */ - com.google.cloud.notebooks.v1.DiagnosticConfig getDiagnosticConfig(); - /** - *
-   * Required. Defines flags that are used to run the diagnostic tool
-   * 
- * - * .google.cloud.notebooks.v1.DiagnosticConfig diagnostic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.notebooks.v1.DiagnosticConfigOrBuilder getDiagnosticConfigOrBuilder(); -} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnosticConfigProto.java b/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnosticConfigProto.java deleted file mode 100644 index 4a13c8cc138b..000000000000 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DiagnosticConfigProto.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/notebooks/v1/diagnostic_config.proto - -package com.google.cloud.notebooks.v1; - -public final class DiagnosticConfigProto { - private DiagnosticConfigProto() {} - 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_cloud_notebooks_v1_DiagnosticConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_DiagnosticConfig_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/notebooks/v1/diagnostic_c" + - "onfig.proto\022\031google.cloud.notebooks.v1\032\037" + - "google/api/field_behavior.proto\"\276\001\n\020Diag" + - "nosticConfig\022\027\n\ngcs_bucket\030\001 \001(\tB\003\340A\002\022\032\n" + - "\rrelative_path\030\002 \001(\tB\003\340A\001\022 \n\023repair_flag" + - "_enabled\030\003 \001(\010B\003\340A\001\022(\n\033packet_capture_fl" + - "ag_enabled\030\004 \001(\010B\003\340A\001\022)\n\034copy_home_files" + - "_flag_enabled\030\005 \001(\010B\003\340A\001B|\n\035com.google.c" + - "loud.notebooks.v1B\025DiagnosticConfigProto" + - "P\001ZBgoogle.golang.org/genproto/googleapi" + - "s/cloud/notebooks/v1;notebooksb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - }); - internal_static_google_cloud_notebooks_v1_DiagnosticConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_notebooks_v1_DiagnosticConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_DiagnosticConfig_descriptor, - new java.lang.String[] { "GcsBucket", "RelativePath", "RepairFlagEnabled", "PacketCaptureFlagEnabled", "CopyHomeFilesFlagEnabled", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EnvironmentProto.java b/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EnvironmentProto.java deleted file mode 100644 index 24f2706b1163..000000000000 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EnvironmentProto.java +++ /dev/null @@ -1,102 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/notebooks/v1/environment.proto - -package com.google.cloud.notebooks.v1; - -public final class EnvironmentProto { - private EnvironmentProto() {} - 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_cloud_notebooks_v1_Environment_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_Environment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_VmImage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_VmImage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_ContainerImage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_ContainerImage_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/cloud/notebooks/v1/environment." + - "proto\022\031google.cloud.notebooks.v1\032\037google" + - "/api/field_behavior.proto\032\031google/api/re" + - "source.proto\032\037google/protobuf/timestamp." + - "proto\"\204\003\n\013Environment\022\021\n\004name\030\001 \001(\tB\003\340A\003" + - "\022\024\n\014display_name\030\002 \001(\t\022\023\n\013description\030\003 " + - "\001(\t\0226\n\010vm_image\030\006 \001(\0132\".google.cloud.not" + - "ebooks.v1.VmImageH\000\022D\n\017container_image\030\007" + - " \001(\0132).google.cloud.notebooks.v1.Contain" + - "erImageH\000\022\033\n\023post_startup_script\030\010 \001(\t\0224" + - "\n\013create_time\030\t \001(\0132\032.google.protobuf.Ti" + - "mestampB\003\340A\003:X\352AU\n$notebooks.googleapis." + - "com/Environment\022-projects/{project}/envi" + - "ronments/{environment}B\014\n\nimage_type\"V\n\007" + - "VmImage\022\024\n\007project\030\001 \001(\tB\003\340A\002\022\024\n\nimage_n" + - "ame\030\002 \001(\tH\000\022\026\n\014image_family\030\003 \001(\tH\000B\007\n\005i" + - "mage\"6\n\016ContainerImage\022\027\n\nrepository\030\001 \001" + - "(\tB\003\340A\002\022\013\n\003tag\030\002 \001(\tB\316\001\n\035com.google.clou" + - "d.notebooks.v1B\020EnvironmentProtoP\001ZBgoog" + - "le.golang.org/genproto/googleapis/cloud/" + - "notebooks/v1;notebooks\252\002\031Google.Cloud.No" + - "tebooks.V1\312\002\031Google\\Cloud\\Notebooks\\V1\352\002" + - "\034Google::Cloud::Notebooks::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.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_notebooks_v1_Environment_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_notebooks_v1_Environment_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_Environment_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Description", "VmImage", "ContainerImage", "PostStartupScript", "CreateTime", "ImageType", }); - internal_static_google_cloud_notebooks_v1_VmImage_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_notebooks_v1_VmImage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_VmImage_descriptor, - new java.lang.String[] { "Project", "ImageName", "ImageFamily", "Image", }); - internal_static_google_cloud_notebooks_v1_ContainerImage_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_notebooks_v1_ContainerImage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_ContainerImage_descriptor, - new java.lang.String[] { "Repository", "Tag", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EventProto.java b/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EventProto.java deleted file mode 100644 index 6861475ba1ea..000000000000 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EventProto.java +++ /dev/null @@ -1,80 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/notebooks/v1/event.proto - -package com.google.cloud.notebooks.v1; - -public final class EventProto { - private EventProto() {} - 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_cloud_notebooks_v1_Event_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_Event_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_Event_DetailsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_Event_DetailsEntry_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/cloud/notebooks/v1/event.proto\022" + - "\031google.cloud.notebooks.v1\032\037google/api/f" + - "ield_behavior.proto\032\037google/protobuf/tim" + - "estamp.proto\"\306\002\n\005Event\022/\n\013report_time\030\001 " + - "\001(\0132\032.google.protobuf.Timestamp\0228\n\004type\030" + - "\002 \001(\0162*.google.cloud.notebooks.v1.Event." + - "EventType\022C\n\007details\030\003 \003(\0132-.google.clou" + - "d.notebooks.v1.Event.DetailsEntryB\003\340A\001\032." + - "\n\014DetailsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + - "(\t:\0028\001\"]\n\tEventType\022\032\n\026EVENT_TYPE_UNSPEC" + - "IFIED\020\000\022\010\n\004IDLE\020\001\022\r\n\tHEARTBEAT\020\002\022\n\n\006HEAL" + - "TH\020\003\022\017\n\013MAINTENANCE\020\004Bq\n\035com.google.clou" + - "d.notebooks.v1B\nEventProtoP\001ZBgoogle.gol" + - "ang.org/genproto/googleapis/cloud/notebo" + - "oks/v1;notebooksb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_notebooks_v1_Event_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_notebooks_v1_Event_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_Event_descriptor, - new java.lang.String[] { "ReportTime", "Type", "Details", }); - internal_static_google_cloud_notebooks_v1_Event_DetailsEntry_descriptor = - internal_static_google_cloud_notebooks_v1_Event_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_notebooks_v1_Event_DetailsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_Event_DetailsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionProto.java b/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionProto.java deleted file mode 100644 index 12bb29df4160..000000000000 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionProto.java +++ /dev/null @@ -1,193 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/notebooks/v1/execution.proto - -package com.google.cloud.notebooks.v1; - -public final class ExecutionProto { - private ExecutionProto() {} - 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_cloud_notebooks_v1_ExecutionTemplate_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_SchedulerAcceleratorConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_SchedulerAcceleratorConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_DataprocParameters_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_DataprocParameters_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_EnvEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_EnvEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_Execution_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_Execution_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/cloud/notebooks/v1/execution.pr" + - "oto\022\031google.cloud.notebooks.v1\032\037google/a" + - "pi/field_behavior.proto\032\031google/api/reso" + - "urce.proto\032\037google/protobuf/timestamp.pr" + - "oto\"\352\014\n\021ExecutionTemplate\022Q\n\nscale_tier\030" + - "\001 \001(\01626.google.cloud.notebooks.v1.Execut" + - "ionTemplate.ScaleTierB\005\030\001\340A\002\022\023\n\013master_t" + - "ype\030\002 \001(\t\022c\n\022accelerator_config\030\003 \001(\0132G." + - "google.cloud.notebooks.v1.ExecutionTempl" + - "ate.SchedulerAcceleratorConfig\022H\n\006labels" + - "\030\004 \003(\01328.google.cloud.notebooks.v1.Execu" + - "tionTemplate.LabelsEntry\022\033\n\023input_notebo" + - "ok_file\030\005 \001(\t\022\033\n\023container_image_uri\030\006 \001" + - "(\t\022\036\n\026output_notebook_folder\030\007 \001(\t\022\030\n\020pa" + - "rams_yaml_file\030\010 \001(\t\022\022\n\nparameters\030\t \001(\t" + - "\022\027\n\017service_account\030\n \001(\t\022F\n\010job_type\030\013 " + - "\001(\01624.google.cloud.notebooks.v1.Executio" + - "nTemplate.JobType\022^\n\023dataproc_parameters" + - "\030\014 \001(\0132?.google.cloud.notebooks.v1.Execu" + - "tionTemplate.DataprocParametersH\000\022_\n\024ver" + - "tex_ai_parameters\030\r \001(\0132?.google.cloud.n" + - "otebooks.v1.ExecutionTemplate.VertexAIPa" + - "rametersH\000\022\023\n\013kernel_spec\030\016 \001(\t\022?\n\013tenso" + - "rboard\030\017 \001(\tB*\372A\'\n%aiplatform.googleapis" + - ".com/Tensorboard\032\205\001\n\032SchedulerAccelerato" + - "rConfig\022S\n\004type\030\001 \001(\0162E.google.cloud.not" + - "ebooks.v1.ExecutionTemplate.SchedulerAcc" + - "eleratorType\022\022\n\ncore_count\030\002 \001(\003\032%\n\022Data" + - "procParameters\022\017\n\007cluster\030\001 \001(\t\032\250\001\n\022Vert" + - "exAIParameters\022\017\n\007network\030\001 \001(\t\022U\n\003env\030\002" + - " \003(\0132H.google.cloud.notebooks.v1.Executi" + - "onTemplate.VertexAIParameters.EnvEntry\032*" + - "\n\010EnvEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + - "8\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + - "\002 \001(\t:\0028\001\"{\n\tScaleTier\022\032\n\026SCALE_TIER_UNS" + - "PECIFIED\020\000\022\t\n\005BASIC\020\001\022\016\n\nSTANDARD_1\020\002\022\r\n" + - "\tPREMIUM_1\020\003\022\r\n\tBASIC_GPU\020\004\022\r\n\tBASIC_TPU" + - "\020\005\022\n\n\006CUSTOM\020\006\"\343\001\n\030SchedulerAcceleratorT" + - "ype\022*\n&SCHEDULER_ACCELERATOR_TYPE_UNSPEC" + - "IFIED\020\000\022\024\n\020NVIDIA_TESLA_K80\020\001\022\025\n\021NVIDIA_" + - "TESLA_P100\020\002\022\025\n\021NVIDIA_TESLA_V100\020\003\022\023\n\017N" + - "VIDIA_TESLA_P4\020\004\022\023\n\017NVIDIA_TESLA_T4\020\005\022\025\n" + - "\021NVIDIA_TESLA_A100\020\n\022\n\n\006TPU_V2\020\006\022\n\n\006TPU_" + - "V3\020\007\"@\n\007JobType\022\030\n\024JOB_TYPE_UNSPECIFIED\020" + - "\000\022\r\n\tVERTEX_AI\020\001\022\014\n\010DATAPROC\020\002B\020\n\016job_pa" + - "rameters\"\202\005\n\tExecution\022H\n\022execution_temp" + - "late\030\001 \001(\0132,.google.cloud.notebooks.v1.E" + - "xecutionTemplate\022\021\n\004name\030\002 \001(\tB\003\340A\003\022\031\n\014d" + - "isplay_name\030\003 \001(\tB\003\340A\003\022\023\n\013description\030\004 " + - "\001(\t\0224\n\013create_time\030\005 \001(\0132\032.google.protob" + - "uf.TimestampB\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032" + - ".google.protobuf.TimestampB\003\340A\003\022>\n\005state" + - "\030\007 \001(\0162*.google.cloud.notebooks.v1.Execu" + - "tion.StateB\003\340A\003\022\034\n\024output_notebook_file\030" + - "\010 \001(\t\022\024\n\007job_uri\030\t \001(\tB\003\340A\003\"\237\001\n\005State\022\025\n" + - "\021STATE_UNSPECIFIED\020\000\022\n\n\006QUEUED\020\001\022\r\n\tPREP" + - "ARING\020\002\022\013\n\007RUNNING\020\003\022\r\n\tSUCCEEDED\020\004\022\n\n\006F" + - "AILED\020\005\022\016\n\nCANCELLING\020\006\022\r\n\tCANCELLED\020\007\022\013" + - "\n\007EXPIRED\020\t\022\020\n\014INITIALIZING\020\n:f\352Ac\n\"note" + - "books.googleapis.com/Execution\022=projects" + - "/{project}/location/{location}/execution" + - "s/{execution}B\343\001\n\035com.google.cloud.noteb" + - "ooks.v1B\016ExecutionProtoP\001ZBgoogle.golang" + - ".org/genproto/googleapis/cloud/notebooks" + - "/v1;notebooks\352Ak\n%aiplatform.googleapis." + - "com/Tensorboard\022Bprojects/{project}/loca" + - "tions/{location}/tensorboards/{tensorboa" + - "rd}b\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.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_descriptor, - new java.lang.String[] { "ScaleTier", "MasterType", "AcceleratorConfig", "Labels", "InputNotebookFile", "ContainerImageUri", "OutputNotebookFolder", "ParamsYamlFile", "Parameters", "ServiceAccount", "JobType", "DataprocParameters", "VertexAiParameters", "KernelSpec", "Tensorboard", "JobParameters", }); - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_SchedulerAcceleratorConfig_descriptor = - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_SchedulerAcceleratorConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_SchedulerAcceleratorConfig_descriptor, - new java.lang.String[] { "Type", "CoreCount", }); - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_DataprocParameters_descriptor = - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_DataprocParameters_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_DataprocParameters_descriptor, - new java.lang.String[] { "Cluster", }); - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_descriptor = - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_descriptor, - new java.lang.String[] { "Network", "Env", }); - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_EnvEntry_descriptor = - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_EnvEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_VertexAIParameters_EnvEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_LabelsEntry_descriptor = - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_ExecutionTemplate_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_notebooks_v1_Execution_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_notebooks_v1_Execution_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_Execution_descriptor, - new java.lang.String[] { "ExecutionTemplate", "Name", "DisplayName", "Description", "CreateTime", "UpdateTime", "State", "OutputNotebookFile", "JobUri", }); - 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.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(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetExecutionRequestOrBuilder.java b/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetExecutionRequestOrBuilder.java deleted file mode 100644 index 80ed583541e8..000000000000 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetExecutionRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/notebooks/v1/service.proto - -package com.google.cloud.notebooks.v1; - -public interface GetExecutionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.GetExecutionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Format:
-   * `projects/{project_id}/locations/{location}/executions/{execution_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Format:
-   * `projects/{project_id}/locations/{location}/executions/{execution_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthRequestOrBuilder.java b/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthRequestOrBuilder.java deleted file mode 100644 index add0bcc182fb..000000000000 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/notebooks/v1/service.proto - -package com.google.cloud.notebooks.v1; - -public interface GetInstanceHealthRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.GetInstanceHealthRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Format:
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Format:
-   * `projects/{project_id}/locations/{location}/instances/{instance_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetRuntimeRequestOrBuilder.java b/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetRuntimeRequestOrBuilder.java deleted file mode 100644 index 5a7752c8012c..000000000000 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetRuntimeRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/notebooks/v1/managed_service.proto - -package com.google.cloud.notebooks.v1; - -public interface GetRuntimeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.GetRuntimeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Format:
-   * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Format:
-   * `projects/{project_id}/locations/{location}/runtimes/{runtime_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetScheduleRequestOrBuilder.java b/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetScheduleRequestOrBuilder.java deleted file mode 100644 index c99ed70b2b21..000000000000 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetScheduleRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/notebooks/v1/service.proto - -package com.google.cloud.notebooks.v1; - -public interface GetScheduleRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.GetScheduleRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Format:
-   * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Format:
-   * `projects/{project_id}/locations/{location}/schedules/{schedule_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceConfigProto.java b/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceConfigProto.java deleted file mode 100644 index 190b7db7f406..000000000000 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceConfigProto.java +++ /dev/null @@ -1,55 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/notebooks/v1/instance_config.proto - -package com.google.cloud.notebooks.v1; - -public final class InstanceConfigProto { - private InstanceConfigProto() {} - 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_cloud_notebooks_v1_InstanceConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_InstanceConfig_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/cloud/notebooks/v1/instance_con" + - "fig.proto\022\031google.cloud.notebooks.v1\"U\n\016" + - "InstanceConfig\022!\n\031notebook_upgrade_sched" + - "ule\030\001 \001(\t\022 \n\030enable_health_monitoring\030\002 " + - "\001(\010B\321\001\n\035com.google.cloud.notebooks.v1B\023I" + - "nstanceConfigProtoP\001ZBgoogle.golang.org/" + - "genproto/googleapis/cloud/notebooks/v1;n" + - "otebooks\252\002\031Google.Cloud.Notebooks.V1\312\002\031G" + - "oogle\\Cloud\\Notebooks\\V1\352\002\034Google::Cloud" + - "::Notebooks::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_cloud_notebooks_v1_InstanceConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_notebooks_v1_InstanceConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_InstanceConfig_descriptor, - new java.lang.String[] { "NotebookUpgradeSchedule", "EnableHealthMonitoring", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceProto.java b/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceProto.java deleted file mode 100644 index 0a153384374f..000000000000 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceProto.java +++ /dev/null @@ -1,255 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/notebooks/v1/instance.proto - -package com.google.cloud.notebooks.v1; - -public final class InstanceProto { - private InstanceProto() {} - 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_cloud_notebooks_v1_ReservationAffinity_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_ReservationAffinity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_Instance_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_Instance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_Instance_AcceleratorConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_Instance_AcceleratorConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_Instance_Disk_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_Instance_Disk_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_Instance_Disk_GuestOsFeature_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_Instance_Disk_GuestOsFeature_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_Instance_ShieldedInstanceConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_Instance_ShieldedInstanceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_Instance_UpgradeHistoryEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_Instance_UpgradeHistoryEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_Instance_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_Instance_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_Instance_MetadataEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_Instance_MetadataEntry_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/cloud/notebooks/v1/instance.pro" + - "to\022\031google.cloud.notebooks.v1\032\037google/ap" + - "i/field_behavior.proto\032\031google/api/resou" + - "rce.proto\032+google/cloud/notebooks/v1/env" + - "ironment.proto\032\037google/protobuf/timestam" + - "p.proto\"\371\001\n\023ReservationAffinity\022Z\n\030consu" + - "me_reservation_type\030\001 \001(\01623.google.cloud" + - ".notebooks.v1.ReservationAffinity.TypeB\003" + - "\340A\001\022\020\n\003key\030\002 \001(\tB\003\340A\001\022\023\n\006values\030\003 \003(\tB\003\340" + - "A\001\"_\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016NO_R" + - "ESERVATION\020\001\022\023\n\017ANY_RESERVATION\020\002\022\030\n\024SPE" + - "CIFIC_RESERVATION\020\003\"\255\034\n\010Instance\022\021\n\004name" + - "\030\001 \001(\tB\003\340A\003\0226\n\010vm_image\030\002 \001(\0132\".google.c" + - "loud.notebooks.v1.VmImageH\000\022D\n\017container" + - "_image\030\003 \001(\0132).google.cloud.notebooks.v1" + - ".ContainerImageH\000\022\033\n\023post_startup_script" + - "\030\004 \001(\t\022\026\n\tproxy_uri\030\005 \001(\tB\003\340A\003\022\034\n\017instan" + - "ce_owners\030\006 \003(\tB\003\340A\004\022\027\n\017service_account\030" + - "\007 \001(\t\022#\n\026service_account_scopes\030\037 \003(\tB\003\340" + - "A\001\022\031\n\014machine_type\030\010 \001(\tB\003\340A\002\022Q\n\022acceler" + - "ator_config\030\t \001(\01325.google.cloud.noteboo" + - "ks.v1.Instance.AcceleratorConfig\022=\n\005stat" + - "e\030\n \001(\0162).google.cloud.notebooks.v1.Inst" + - "ance.StateB\003\340A\003\022\032\n\022install_gpu_driver\030\013 " + - "\001(\010\022\036\n\026custom_gpu_driver_path\030\014 \001(\t\022I\n\016b" + - "oot_disk_type\030\r \001(\0162,.google.cloud.noteb" + - "ooks.v1.Instance.DiskTypeB\003\340A\004\022\036\n\021boot_d" + - "isk_size_gb\030\016 \001(\003B\003\340A\004\022I\n\016data_disk_type" + - "\030\031 \001(\0162,.google.cloud.notebooks.v1.Insta" + - "nce.DiskTypeB\003\340A\004\022\036\n\021data_disk_size_gb\030\032" + - " \001(\003B\003\340A\004\022 \n\023no_remove_data_disk\030\033 \001(\010B\003" + - "\340A\004\022P\n\017disk_encryption\030\017 \001(\01622.google.cl" + - "oud.notebooks.v1.Instance.DiskEncryption" + - "B\003\340A\004\022\024\n\007kms_key\030\020 \001(\tB\003\340A\004\022<\n\005disks\030\034 \003" + - "(\0132(.google.cloud.notebooks.v1.Instance." + - "DiskB\003\340A\003\022a\n\030shielded_instance_config\030\036 " + - "\001(\0132:.google.cloud.notebooks.v1.Instance" + - ".ShieldedInstanceConfigB\003\340A\001\022\024\n\014no_publi" + - "c_ip\030\021 \001(\010\022\027\n\017no_proxy_access\030\022 \001(\010\022\017\n\007n" + - "etwork\030\023 \001(\t\022\016\n\006subnet\030\024 \001(\t\022?\n\006labels\030\025" + - " \003(\0132/.google.cloud.notebooks.v1.Instanc" + - "e.LabelsEntry\022C\n\010metadata\030\026 \003(\01321.google" + - ".cloud.notebooks.v1.Instance.MetadataEnt" + - "ry\022\021\n\004tags\030 \003(\tB\003\340A\001\022P\n\017upgrade_history" + - "\030\035 \003(\01327.google.cloud.notebooks.v1.Insta" + - "nce.UpgradeHistoryEntry\022B\n\010nic_type\030! \001(" + - "\0162+.google.cloud.notebooks.v1.Instance.N" + - "icTypeB\003\340A\001\022Q\n\024reservation_affinity\030\" \001(" + - "\0132..google.cloud.notebooks.v1.Reservatio" + - "nAffinityB\003\340A\001\022\024\n\007creator\030$ \001(\tB\003\340A\003\022\033\n\016" + - "can_ip_forward\030\' \001(\010B\003\340A\001\0224\n\013create_time" + - "\030\027 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + - "4\n\013update_time\030\030 \001(\0132\032.google.protobuf.T" + - "imestampB\003\340A\003\032j\n\021AcceleratorConfig\022A\n\004ty" + - "pe\030\001 \001(\01623.google.cloud.notebooks.v1.Ins" + - "tance.AcceleratorType\022\022\n\ncore_count\030\002 \001(" + - "\003\032\266\002\n\004Disk\022\023\n\013auto_delete\030\001 \001(\010\022\014\n\004boot\030" + - "\002 \001(\010\022\023\n\013device_name\030\003 \001(\t\022\024\n\014disk_size_" + - "gb\030\004 \001(\003\022R\n\021guest_os_features\030\005 \003(\01327.go" + - "ogle.cloud.notebooks.v1.Instance.Disk.Gu" + - "estOsFeature\022\r\n\005index\030\006 \001(\003\022\021\n\tinterface" + - "\030\007 \001(\t\022\014\n\004kind\030\010 \001(\t\022\020\n\010licenses\030\t \003(\t\022\014" + - "\n\004mode\030\n \001(\t\022\016\n\006source\030\013 \001(\t\022\014\n\004type\030\014 \001" + - "(\t\032\036\n\016GuestOsFeature\022\014\n\004type\030\001 \001(\t\032n\n\026Sh" + - "ieldedInstanceConfig\022\032\n\022enable_secure_bo" + - "ot\030\001 \001(\010\022\023\n\013enable_vtpm\030\002 \001(\010\022#\n\033enable_" + - "integrity_monitoring\030\003 \001(\010\032\374\003\n\023UpgradeHi" + - "storyEntry\022\020\n\010snapshot\030\001 \001(\t\022\020\n\010vm_image" + - "\030\002 \001(\t\022\027\n\017container_image\030\003 \001(\t\022\021\n\tframe" + - "work\030\004 \001(\t\022\017\n\007version\030\005 \001(\t\022L\n\005state\030\006 \001" + - "(\0162=.google.cloud.notebooks.v1.Instance." + - "UpgradeHistoryEntry.State\022/\n\013create_time" + - "\030\007 \001(\0132\032.google.protobuf.Timestamp\022\030\n\014ta" + - "rget_image\030\010 \001(\tB\002\030\001\022N\n\006action\030\t \001(\0162>.g" + - "oogle.cloud.notebooks.v1.Instance.Upgrad" + - "eHistoryEntry.Action\022\026\n\016target_version\030\n" + - " \001(\t\"F\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007" + - "STARTED\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED\020\003\";\n\006" + - "Action\022\026\n\022ACTION_UNSPECIFIED\020\000\022\013\n\007UPGRAD" + - "E\020\001\022\014\n\010ROLLBACK\020\002\032-\n\013LabelsEntry\022\013\n\003key\030" + - "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032/\n\rMetadataEntr" + - "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\235\002\n\017Ac" + - "celeratorType\022 \n\034ACCELERATOR_TYPE_UNSPEC" + - "IFIED\020\000\022\024\n\020NVIDIA_TESLA_K80\020\001\022\025\n\021NVIDIA_" + - "TESLA_P100\020\002\022\025\n\021NVIDIA_TESLA_V100\020\003\022\023\n\017N" + - "VIDIA_TESLA_P4\020\004\022\023\n\017NVIDIA_TESLA_T4\020\005\022\025\n" + - "\021NVIDIA_TESLA_A100\020\013\022\027\n\023NVIDIA_TESLA_T4_" + - "VWS\020\010\022\031\n\025NVIDIA_TESLA_P100_VWS\020\t\022\027\n\023NVID" + - "IA_TESLA_P4_VWS\020\n\022\n\n\006TPU_V2\020\006\022\n\n\006TPU_V3\020" + - "\007\"\303\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010ST" + - "ARTING\020\001\022\020\n\014PROVISIONING\020\002\022\n\n\006ACTIVE\020\003\022\014" + - "\n\010STOPPING\020\004\022\013\n\007STOPPED\020\005\022\013\n\007DELETED\020\006\022\r" + - "\n\tUPGRADING\020\007\022\020\n\014INITIALIZING\020\010\022\017\n\013REGIS" + - "TERING\020\t\022\016\n\nSUSPENDING\020\n\022\r\n\tSUSPENDED\020\013\"" + - "c\n\010DiskType\022\031\n\025DISK_TYPE_UNSPECIFIED\020\000\022\017" + - "\n\013PD_STANDARD\020\001\022\n\n\006PD_SSD\020\002\022\017\n\013PD_BALANC" + - "ED\020\003\022\016\n\nPD_EXTREME\020\004\"E\n\016DiskEncryption\022\037" + - "\n\033DISK_ENCRYPTION_UNSPECIFIED\020\000\022\010\n\004GMEK\020" + - "\001\022\010\n\004CMEK\020\002\">\n\007NicType\022\030\n\024UNSPECIFIED_NI" + - "C_TYPE\020\000\022\016\n\nVIRTIO_NET\020\001\022\t\n\005GVNIC\020\002:O\352AL" + - "\n!notebooks.googleapis.com/Instance\022\'pro" + - "jects/{project}/instances/{instance}B\r\n\013" + - "environmentB\313\001\n\035com.google.cloud.noteboo" + - "ks.v1B\rInstanceProtoP\001ZBgoogle.golang.or" + - "g/genproto/googleapis/cloud/notebooks/v1" + - ";notebooks\252\002\031Google.Cloud.Notebooks.V1\312\002" + - "\031Google\\Cloud\\Notebooks\\V1\352\002\034Google::Clo" + - "ud::Notebooks::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.cloud.notebooks.v1.EnvironmentProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_notebooks_v1_ReservationAffinity_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_notebooks_v1_ReservationAffinity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_ReservationAffinity_descriptor, - new java.lang.String[] { "ConsumeReservationType", "Key", "Values", }); - internal_static_google_cloud_notebooks_v1_Instance_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_notebooks_v1_Instance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_Instance_descriptor, - new java.lang.String[] { "Name", "VmImage", "ContainerImage", "PostStartupScript", "ProxyUri", "InstanceOwners", "ServiceAccount", "ServiceAccountScopes", "MachineType", "AcceleratorConfig", "State", "InstallGpuDriver", "CustomGpuDriverPath", "BootDiskType", "BootDiskSizeGb", "DataDiskType", "DataDiskSizeGb", "NoRemoveDataDisk", "DiskEncryption", "KmsKey", "Disks", "ShieldedInstanceConfig", "NoPublicIp", "NoProxyAccess", "Network", "Subnet", "Labels", "Metadata", "Tags", "UpgradeHistory", "NicType", "ReservationAffinity", "Creator", "CanIpForward", "CreateTime", "UpdateTime", "Environment", }); - internal_static_google_cloud_notebooks_v1_Instance_AcceleratorConfig_descriptor = - internal_static_google_cloud_notebooks_v1_Instance_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_notebooks_v1_Instance_AcceleratorConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_Instance_AcceleratorConfig_descriptor, - new java.lang.String[] { "Type", "CoreCount", }); - internal_static_google_cloud_notebooks_v1_Instance_Disk_descriptor = - internal_static_google_cloud_notebooks_v1_Instance_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_notebooks_v1_Instance_Disk_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_Instance_Disk_descriptor, - new java.lang.String[] { "AutoDelete", "Boot", "DeviceName", "DiskSizeGb", "GuestOsFeatures", "Index", "Interface", "Kind", "Licenses", "Mode", "Source", "Type", }); - internal_static_google_cloud_notebooks_v1_Instance_Disk_GuestOsFeature_descriptor = - internal_static_google_cloud_notebooks_v1_Instance_Disk_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_notebooks_v1_Instance_Disk_GuestOsFeature_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_Instance_Disk_GuestOsFeature_descriptor, - new java.lang.String[] { "Type", }); - internal_static_google_cloud_notebooks_v1_Instance_ShieldedInstanceConfig_descriptor = - internal_static_google_cloud_notebooks_v1_Instance_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_notebooks_v1_Instance_ShieldedInstanceConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_Instance_ShieldedInstanceConfig_descriptor, - new java.lang.String[] { "EnableSecureBoot", "EnableVtpm", "EnableIntegrityMonitoring", }); - internal_static_google_cloud_notebooks_v1_Instance_UpgradeHistoryEntry_descriptor = - internal_static_google_cloud_notebooks_v1_Instance_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_notebooks_v1_Instance_UpgradeHistoryEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_Instance_UpgradeHistoryEntry_descriptor, - new java.lang.String[] { "Snapshot", "VmImage", "ContainerImage", "Framework", "Version", "State", "CreateTime", "TargetImage", "Action", "TargetVersion", }); - internal_static_google_cloud_notebooks_v1_Instance_LabelsEntry_descriptor = - internal_static_google_cloud_notebooks_v1_Instance_descriptor.getNestedTypes().get(4); - internal_static_google_cloud_notebooks_v1_Instance_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_Instance_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_notebooks_v1_Instance_MetadataEntry_descriptor = - internal_static_google_cloud_notebooks_v1_Instance_descriptor.getNestedTypes().get(5); - internal_static_google_cloud_notebooks_v1_Instance_MetadataEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_Instance_MetadataEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.notebooks.v1.EnvironmentProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebooksProto.java b/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebooksProto.java deleted file mode 100644 index 6dd3d6d7b7f6..000000000000 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebooksProto.java +++ /dev/null @@ -1,359 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/notebooks/v1/managed_service.proto - -package com.google.cloud.notebooks.v1; - -public final class ManagedNotebooksProto { - private ManagedNotebooksProto() {} - 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_cloud_notebooks_v1_ListRuntimesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_ListRuntimesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_ListRuntimesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_ListRuntimesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_GetRuntimeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_GetRuntimeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_CreateRuntimeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_CreateRuntimeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_DeleteRuntimeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_DeleteRuntimeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_StartRuntimeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_StartRuntimeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_StopRuntimeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_StopRuntimeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_SwitchRuntimeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_SwitchRuntimeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_ResetRuntimeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_ResetRuntimeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_UpgradeRuntimeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_UpgradeRuntimeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_ReportRuntimeEventRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_ReportRuntimeEventRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_UpdateRuntimeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_UpdateRuntimeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_DiagnoseRuntimeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_DiagnoseRuntimeRequest_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/cloud/notebooks/v1/managed_serv" + - "ice.proto\022\031google.cloud.notebooks.v1\032\034go" + - "ogle/api/annotations.proto\032\027google/api/c" + - "lient.proto\032\037google/api/field_behavior.p" + - "roto\032\031google/api/resource.proto\0321google/" + - "cloud/notebooks/v1/diagnostic_config.pro" + - "to\032%google/cloud/notebooks/v1/event.prot" + - "o\032\'google/cloud/notebooks/v1/runtime.pro" + - "to\032#google/longrunning/operations.proto\032" + - " google/protobuf/field_mask.proto\032\037googl" + - "e/protobuf/timestamp.proto\"v\n\023ListRuntim" + - "esRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 noteb" + - "ooks.googleapis.com/Runtime\022\021\n\tpage_size" + - "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"z\n\024ListRuntim" + - "esResponse\0224\n\010runtimes\030\001 \003(\0132\".google.cl" + - "oud.notebooks.v1.Runtime\022\027\n\017next_page_to" + - "ken\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"K\n\021GetRun" + - "timeRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n noteb" + - "ooks.googleapis.com/Runtime\"\267\001\n\024CreateRu" + - "ntimeRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\n no" + - "tebooks.googleapis.com/Runtime\022\027\n\nruntim" + - "e_id\030\002 \001(\tB\003\340A\002\0228\n\007runtime\030\003 \001(\0132\".googl" + - "e.cloud.notebooks.v1.RuntimeB\003\340A\002\022\022\n\nreq" + - "uest_id\030\004 \001(\t\"b\n\024DeleteRuntimeRequest\0226\n" + - "\004name\030\001 \001(\tB(\340A\002\372A\"\n notebooks.googleapi" + - "s.com/Runtime\022\022\n\nrequest_id\030\002 \001(\t\"<\n\023Sta" + - "rtRuntimeRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\022\n\nr" + - "equest_id\030\002 \001(\t\";\n\022StopRuntimeRequest\022\021\n" + - "\004name\030\001 \001(\tB\003\340A\002\022\022\n\nrequest_id\030\002 \001(\t\"\244\001\n" + - "\024SwitchRuntimeRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002" + - "\022\024\n\014machine_type\030\002 \001(\t\022O\n\022accelerator_co" + - "nfig\030\003 \001(\01323.google.cloud.notebooks.v1.R" + - "untimeAcceleratorConfig\022\022\n\nrequest_id\030\004 " + - "\001(\t\"<\n\023ResetRuntimeRequest\022\021\n\004name\030\001 \001(\t" + - "B\003\340A\002\022\022\n\nrequest_id\030\002 \001(\t\">\n\025UpgradeRunt" + - "imeRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\022\n\nrequest" + - "_id\030\002 \001(\t\"\235\001\n\031ReportRuntimeEventRequest\022" + - "6\n\004name\030\001 \001(\tB(\340A\002\372A\"\n notebooks.googlea" + - "pis.com/Runtime\022\022\n\005vm_id\030\002 \001(\tB\003\340A\002\0224\n\005e" + - "vent\030\003 \001(\0132 .google.cloud.notebooks.v1.E" + - "ventB\003\340A\002\"\232\001\n\024UpdateRuntimeRequest\0228\n\007ru" + - "ntime\030\001 \001(\0132\".google.cloud.notebooks.v1." + - "RuntimeB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.goog" + - "le.protobuf.FieldMaskB\003\340A\002\022\022\n\nrequest_id" + - "\030\003 \001(\t\"p\n\"RefreshRuntimeTokenInternalReq" + - "uest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n notebooks.go" + - "ogleapis.com/Runtime\022\022\n\005vm_id\030\002 \001(\tB\003\340A\002" + - "\"q\n#RefreshRuntimeTokenInternalResponse\022" + - "\024\n\014access_token\030\001 \001(\t\0224\n\013expire_time\030\002 \001" + - "(\0132\032.google.protobuf.TimestampB\003\340A\003\"\235\001\n\026" + - "DiagnoseRuntimeRequest\0226\n\004name\030\001 \001(\tB(\340A" + - "\002\372A\"\n notebooks.googleapis.com/Runtime\022K" + - "\n\021diagnostic_config\030\002 \001(\0132+.google.cloud" + - ".notebooks.v1.DiagnosticConfigB\003\340A\0022\322\025\n\026" + - "ManagedNotebookService\022\256\001\n\014ListRuntimes\022" + - "..google.cloud.notebooks.v1.ListRuntimes" + - "Request\032/.google.cloud.notebooks.v1.List" + - "RuntimesResponse\"=\202\323\344\223\002.\022,/v1/{parent=pr" + - "ojects/*/locations/*}/runtimes\332A\006parent\022" + - "\233\001\n\nGetRuntime\022,.google.cloud.notebooks." + - "v1.GetRuntimeRequest\032\".google.cloud.note" + - "books.v1.Runtime\";\202\323\344\223\002.\022,/v1/{name=proj" + - "ects/*/locations/*/runtimes/*}\332A\004name\022\331\001" + - "\n\rCreateRuntime\022/.google.cloud.notebooks" + - ".v1.CreateRuntimeRequest\032\035.google.longru" + - "nning.Operation\"x\202\323\344\223\0027\",/v1/{parent=pro" + - "jects/*/locations/*}/runtimes:\007runtime\332A" + - "\031parent,runtime_id,runtime\312A\034\n\007Runtime\022\021" + - "OperationMetadata\022\333\001\n\rUpdateRuntime\022/.go" + - "ogle.cloud.notebooks.v1.UpdateRuntimeReq" + - "uest\032\035.google.longrunning.Operation\"z\202\323\344" + - "\223\002?24/v1/{runtime.name=projects/*/locati" + - "ons/*/runtimes/*}:\007runtime\332A\023runtime,upd" + - "ate_mask\312A\034\n\007Runtime\022\021OperationMetadata\022" + - "\311\001\n\rDeleteRuntime\022/.google.cloud.noteboo" + - "ks.v1.DeleteRuntimeRequest\032\035.google.long" + - "running.Operation\"h\202\323\344\223\002.*,/v1/{name=pro" + - "jects/*/locations/*/runtimes/*}\332A\004name\312A" + - "*\n\025google.protobuf.Empty\022\021OperationMetad" + - "ata\022\302\001\n\014StartRuntime\022..google.cloud.note" + - "books.v1.StartRuntimeRequest\032\035.google.lo" + - "ngrunning.Operation\"c\202\323\344\223\0027\"2/v1/{name=p" + - "rojects/*/locations/*/runtimes/*}:start:" + - "\001*\332A\004name\312A\034\n\007Runtime\022\021OperationMetadata" + - "\022\277\001\n\013StopRuntime\022-.google.cloud.notebook" + - "s.v1.StopRuntimeRequest\032\035.google.longrun" + - "ning.Operation\"b\202\323\344\223\0026\"1/v1/{name=projec" + - "ts/*/locations/*/runtimes/*}:stop:\001*\332A\004n" + - "ame\312A\034\n\007Runtime\022\021OperationMetadata\022\305\001\n\rS" + - "witchRuntime\022/.google.cloud.notebooks.v1" + - ".SwitchRuntimeRequest\032\035.google.longrunni" + - "ng.Operation\"d\202\323\344\223\0028\"3/v1/{name=projects" + - "/*/locations/*/runtimes/*}:switch:\001*\332A\004n" + - "ame\312A\034\n\007Runtime\022\021OperationMetadata\022\302\001\n\014R" + - "esetRuntime\022..google.cloud.notebooks.v1." + - "ResetRuntimeRequest\032\035.google.longrunning" + - ".Operation\"c\202\323\344\223\0027\"2/v1/{name=projects/*" + - "/locations/*/runtimes/*}:reset:\001*\332A\004name" + - "\312A\034\n\007Runtime\022\021OperationMetadata\022\310\001\n\016Upgr" + - "adeRuntime\0220.google.cloud.notebooks.v1.U" + - "pgradeRuntimeRequest\032\035.google.longrunnin" + - "g.Operation\"e\202\323\344\223\0029\"4/v1/{name=projects/" + - "*/locations/*/runtimes/*}:upgrade:\001*\332A\004n" + - "ame\312A\034\n\007Runtime\022\021OperationMetadata\022\324\001\n\022R" + - "eportRuntimeEvent\0224.google.cloud.noteboo" + - "ks.v1.ReportRuntimeEventRequest\032\035.google" + - ".longrunning.Operation\"i\202\323\344\223\002=\"8/v1/{nam" + - "e=projects/*/locations/*/runtimes/*}:rep" + - "ortEvent:\001*\332A\004name\312A\034\n\007Runtime\022\021Operatio" + - "nMetadata\022\376\001\n\033RefreshRuntimeTokenInterna" + - "l\022=.google.cloud.notebooks.v1.RefreshRun" + - "timeTokenInternalRequest\032>.google.cloud." + - "notebooks.v1.RefreshRuntimeTokenInternal" + - "Response\"`\202\323\344\223\002M\"H/v1/{name=projects/*/l" + - "ocations/*/runtimes/*}:refreshRuntimeTok" + - "enInternal:\001*\332A\nname,vm_id\022\335\001\n\017DiagnoseR" + - "untime\0221.google.cloud.notebooks.v1.Diagn" + - "oseRuntimeRequest\032\035.google.longrunning.O" + - "peration\"x\202\323\344\223\002:\"5/v1/{name=projects/*/l" + - "ocations/*/runtimes/*}:diagnose:\001*\332A\026nam" + - "e,diagnostic_config\312A\034\n\007Runtime\022\021Operati" + - "onMetadata\032L\312A\030notebooks.googleapis.com\322" + - "A.https://www.googleapis.com/auth/cloud-" + - "platformB\323\001\n\035com.google.cloud.notebooks." + - "v1B\025ManagedNotebooksProtoP\001ZBgoogle.gola" + - "ng.org/genproto/googleapis/cloud/noteboo" + - "ks/v1;notebooks\252\002\031Google.Cloud.Notebooks" + - ".V1\312\002\031Google\\Cloud\\Notebooks\\V1\352\002\034Google" + - "::Cloud::Notebooks::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.cloud.notebooks.v1.DiagnosticConfigProto.getDescriptor(), - com.google.cloud.notebooks.v1.EventProto.getDescriptor(), - com.google.cloud.notebooks.v1.RuntimeProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_notebooks_v1_ListRuntimesRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_notebooks_v1_ListRuntimesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_ListRuntimesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_notebooks_v1_ListRuntimesResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_notebooks_v1_ListRuntimesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_ListRuntimesResponse_descriptor, - new java.lang.String[] { "Runtimes", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_notebooks_v1_GetRuntimeRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_notebooks_v1_GetRuntimeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_GetRuntimeRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_notebooks_v1_CreateRuntimeRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_notebooks_v1_CreateRuntimeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_CreateRuntimeRequest_descriptor, - new java.lang.String[] { "Parent", "RuntimeId", "Runtime", "RequestId", }); - internal_static_google_cloud_notebooks_v1_DeleteRuntimeRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_notebooks_v1_DeleteRuntimeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_DeleteRuntimeRequest_descriptor, - new java.lang.String[] { "Name", "RequestId", }); - internal_static_google_cloud_notebooks_v1_StartRuntimeRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_notebooks_v1_StartRuntimeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_StartRuntimeRequest_descriptor, - new java.lang.String[] { "Name", "RequestId", }); - internal_static_google_cloud_notebooks_v1_StopRuntimeRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_notebooks_v1_StopRuntimeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_StopRuntimeRequest_descriptor, - new java.lang.String[] { "Name", "RequestId", }); - internal_static_google_cloud_notebooks_v1_SwitchRuntimeRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_notebooks_v1_SwitchRuntimeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_SwitchRuntimeRequest_descriptor, - new java.lang.String[] { "Name", "MachineType", "AcceleratorConfig", "RequestId", }); - internal_static_google_cloud_notebooks_v1_ResetRuntimeRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_notebooks_v1_ResetRuntimeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_ResetRuntimeRequest_descriptor, - new java.lang.String[] { "Name", "RequestId", }); - internal_static_google_cloud_notebooks_v1_UpgradeRuntimeRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_notebooks_v1_UpgradeRuntimeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_UpgradeRuntimeRequest_descriptor, - new java.lang.String[] { "Name", "RequestId", }); - internal_static_google_cloud_notebooks_v1_ReportRuntimeEventRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_notebooks_v1_ReportRuntimeEventRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_ReportRuntimeEventRequest_descriptor, - new java.lang.String[] { "Name", "VmId", "Event", }); - internal_static_google_cloud_notebooks_v1_UpdateRuntimeRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_notebooks_v1_UpdateRuntimeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_UpdateRuntimeRequest_descriptor, - new java.lang.String[] { "Runtime", "UpdateMask", "RequestId", }); - internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalRequest_descriptor, - new java.lang.String[] { "Name", "VmId", }); - internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_RefreshRuntimeTokenInternalResponse_descriptor, - new java.lang.String[] { "AccessToken", "ExpireTime", }); - internal_static_google_cloud_notebooks_v1_DiagnoseRuntimeRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_notebooks_v1_DiagnoseRuntimeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_DiagnoseRuntimeRequest_descriptor, - new java.lang.String[] { "Name", "DiagnosticConfig", }); - 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.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.cloud.notebooks.v1.DiagnosticConfigProto.getDescriptor(); - com.google.cloud.notebooks.v1.EventProto.getDescriptor(); - com.google.cloud.notebooks.v1.RuntimeProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/NotebooksProto.java b/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/NotebooksProto.java deleted file mode 100644 index bad3e76102f8..000000000000 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/NotebooksProto.java +++ /dev/null @@ -1,913 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/notebooks/v1/service.proto - -package com.google.cloud.notebooks.v1; - -public final class NotebooksProto { - private NotebooksProto() {} - 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_cloud_notebooks_v1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_ListInstancesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_ListInstancesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_ListInstancesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_ListInstancesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_GetInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_GetInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_CreateInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_CreateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_RegisterInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_RegisterInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_SetInstanceAcceleratorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_SetInstanceAcceleratorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_SetInstanceMachineTypeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_SetInstanceMachineTypeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_UpdateInstanceConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_UpdateInstanceConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_ItemsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_ItemsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_ItemsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_ItemsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_UpdateShieldedInstanceConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_UpdateShieldedInstanceConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_DeleteInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_DeleteInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_StartInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_StartInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_StopInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_StopInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_ResetInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_ResetInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_MetadataEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_MetadataEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_GetInstanceHealthRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_GetInstanceHealthRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_HealthInfoEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_HealthInfoEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_UpgradeInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_UpgradeInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_RollbackInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_RollbackInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_UpgradeInstanceInternalRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_UpgradeInstanceInternalRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_ListEnvironmentsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_ListEnvironmentsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_DiagnoseInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_DiagnoseInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_ListEnvironmentsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_ListEnvironmentsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_GetEnvironmentRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_GetEnvironmentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_CreateEnvironmentRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_CreateEnvironmentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_DeleteEnvironmentRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_DeleteEnvironmentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_ListSchedulesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_ListSchedulesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_ListSchedulesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_ListSchedulesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_GetScheduleRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_GetScheduleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_DeleteScheduleRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_DeleteScheduleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_CreateScheduleRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_CreateScheduleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_TriggerScheduleRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_TriggerScheduleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_ListExecutionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_ListExecutionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_ListExecutionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_ListExecutionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_GetExecutionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_GetExecutionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_DeleteExecutionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_DeleteExecutionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_CreateExecutionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_CreateExecutionRequest_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/cloud/notebooks/v1/service.prot" + - "o\022\031google.cloud.notebooks.v1\032\034google/api" + - "/annotations.proto\032\027google/api/client.pr" + - "oto\032\037google/api/field_behavior.proto\032\031go" + - "ogle/api/resource.proto\0321google/cloud/no" + - "tebooks/v1/diagnostic_config.proto\032+goog" + - "le/cloud/notebooks/v1/environment.proto\032" + - ")google/cloud/notebooks/v1/execution.pro" + - "to\032(google/cloud/notebooks/v1/instance.p" + - "roto\032/google/cloud/notebooks/v1/instance" + - "_config.proto\032(google/cloud/notebooks/v1" + - "/schedule.proto\032#google/longrunning/oper" + - "ations.proto\032\037google/protobuf/timestamp." + - "proto\"\357\001\n\021OperationMetadata\022/\n\013create_ti" + - "me\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n\010" + - "end_time\030\002 \001(\0132\032.google.protobuf.Timesta" + - "mp\022\016\n\006target\030\003 \001(\t\022\014\n\004verb\030\004 \001(\t\022\026\n\016stat" + - "us_message\030\005 \001(\t\022\036\n\026requested_cancellati" + - "on\030\006 \001(\010\022\023\n\013api_version\030\007 \001(\t\022\020\n\010endpoin" + - "t\030\010 \001(\t\"R\n\024ListInstancesRequest\022\023\n\006paren" + - "t\030\001 \001(\tB\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" + - "token\030\003 \001(\t\"}\n\025ListInstancesResponse\0226\n\t" + - "instances\030\001 \003(\0132#.google.cloud.notebooks" + - ".v1.Instance\022\027\n\017next_page_token\030\002 \001(\t\022\023\n" + - "\013unreachable\030\003 \003(\t\"\'\n\022GetInstanceRequest" + - "\022\021\n\004name\030\001 \001(\tB\003\340A\002\"\202\001\n\025CreateInstanceRe" + - "quest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\030\n\013instance_i" + - "d\030\002 \001(\tB\003\340A\002\022:\n\010instance\030\003 \001(\0132#.google." + - "cloud.notebooks.v1.InstanceB\003\340A\002\"H\n\027Regi" + - "sterInstanceRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002" + - "\022\030\n\013instance_id\030\002 \001(\tB\003\340A\002\"\223\001\n\035SetInstan" + - "ceAcceleratorRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022" + - "F\n\004type\030\002 \001(\01623.google.cloud.notebooks.v" + - "1.Instance.AcceleratorTypeB\003\340A\002\022\027\n\ncore_" + - "count\030\003 \001(\003B\003\340A\002\"M\n\035SetInstanceMachineTy" + - "peRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\031\n\014machine_" + - "type\030\002 \001(\tB\003\340A\002\"k\n\033UpdateInstanceConfigR" + - "equest\022\021\n\004name\030\001 \001(\tB\003\340A\002\0229\n\006config\030\002 \001(" + - "\0132).google.cloud.notebooks.v1.InstanceCo" + - "nfig\"\255\001\n\030SetInstanceLabelsRequest\022\021\n\004nam" + - "e\030\001 \001(\tB\003\340A\002\022O\n\006labels\030\002 \003(\0132?.google.cl" + - "oud.notebooks.v1.SetInstanceLabelsReques" + - "t.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" + - "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\276\001\n\"UpdateInstanceM" + - "etadataItemsRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022W" + - "\n\005items\030\002 \003(\0132H.google.cloud.notebooks.v" + - "1.UpdateInstanceMetadataItemsRequest.Ite" + - "msEntry\032,\n\nItemsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + - "lue\030\002 \001(\t:\0028\001\"\255\001\n#UpdateInstanceMetadata" + - "ItemsResponse\022X\n\005items\030\001 \003(\0132I.google.cl" + - "oud.notebooks.v1.UpdateInstanceMetadataI" + - "temsResponse.ItemsEntry\032,\n\nItemsEntry\022\013\n" + - "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\226\001\n#Update" + - "ShieldedInstanceConfigRequest\022\021\n\004name\030\001 " + - "\001(\tB\003\340A\002\022\\\n\030shielded_instance_config\030\002 \001" + - "(\0132:.google.cloud.notebooks.v1.Instance." + - "ShieldedInstanceConfig\"*\n\025DeleteInstance" + - "Request\022\021\n\004name\030\001 \001(\tB\003\340A\002\")\n\024StartInsta" + - "nceRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\"(\n\023StopIns" + - "tanceRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\")\n\024Reset" + - "InstanceRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\"\311\001\n\031R" + - "eportInstanceInfoRequest\022\021\n\004name\030\001 \001(\tB\003" + - "\340A\002\022\022\n\005vm_id\030\002 \001(\tB\003\340A\002\022T\n\010metadata\030\003 \003(" + - "\0132B.google.cloud.notebooks.v1.ReportInst" + - "anceInfoRequest.MetadataEntry\032/\n\rMetadat" + - "aEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"y" + - "\n\034IsInstanceUpgradeableRequest\022\036\n\021notebo" + - "ok_instance\030\001 \001(\tB\003\340A\002\0229\n\004type\030\002 \001(\0162&.g" + - "oogle.cloud.notebooks.v1.UpgradeTypeB\003\340A" + - "\001\"z\n\035IsInstanceUpgradeableResponse\022\023\n\013up" + - "gradeable\030\001 \001(\010\022\027\n\017upgrade_version\030\002 \001(\t" + - "\022\024\n\014upgrade_info\030\003 \001(\t\022\025\n\rupgrade_image\030" + - "\004 \001(\t\"S\n\030GetInstanceHealthRequest\0227\n\004nam" + - "e\030\001 \001(\tB)\340A\002\372A#\n!notebooks.googleapis.co" + - "m/Instance\"\204\003\n\031GetInstanceHealthResponse" + - "\022[\n\014health_state\030\001 \001(\0162@.google.cloud.no" + - "tebooks.v1.GetInstanceHealthResponse.Hea" + - "lthStateB\003\340A\003\022^\n\013health_info\030\002 \003(\0132D.goo" + - "gle.cloud.notebooks.v1.GetInstanceHealth" + - "Response.HealthInfoEntryB\003\340A\003\0321\n\017HealthI" + - "nfoEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + - "\"w\n\013HealthState\022\034\n\030HEALTH_STATE_UNSPECIF" + - "IED\020\000\022\013\n\007HEALTHY\020\001\022\r\n\tUNHEALTHY\020\002\022\027\n\023AGE" + - "NT_NOT_INSTALLED\020\003\022\025\n\021AGENT_NOT_RUNNING\020" + - "\004\"f\n\026UpgradeInstanceRequest\022\021\n\004name\030\001 \001(" + - "\tB\003\340A\002\0229\n\004type\030\002 \001(\0162&.google.cloud.note" + - "books.v1.UpgradeTypeB\003\340A\001\"J\n\027RollbackIns" + - "tanceRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\034\n\017targe" + - "t_snapshot\030\002 \001(\tB\003\340A\002\"\202\001\n\036UpgradeInstanc" + - "eInternalRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\022\n\005v" + - "m_id\030\002 \001(\tB\003\340A\002\0229\n\004type\030\003 \001(\0162&.google.c" + - "loud.notebooks.v1.UpgradeTypeB\003\340A\001\"U\n\027Li" + - "stEnvironmentsRequest\022\023\n\006parent\030\001 \001(\tB\003\340" + - "A\002\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + - "\t\"\237\001\n\027DiagnoseInstanceRequest\0227\n\004name\030\001 " + - "\001(\tB)\340A\002\372A#\n!notebooks.googleapis.com/In" + - "stance\022K\n\021diagnostic_config\030\002 \001(\0132+.goog" + - "le.cloud.notebooks.v1.DiagnosticConfigB\003" + - "\340A\002\"\206\001\n\030ListEnvironmentsResponse\022<\n\014envi" + - "ronments\030\001 \003(\0132&.google.cloud.notebooks." + - "v1.Environment\022\027\n\017next_page_token\030\002 \001(\t\022" + - "\023\n\013unreachable\030\003 \003(\t\"*\n\025GetEnvironmentRe" + - "quest\022\021\n\004name\030\001 \001(\tB\003\340A\002\"\216\001\n\030CreateEnvir" + - "onmentRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\033\n\016en" + - "vironment_id\030\002 \001(\tB\003\340A\002\022@\n\013environment\030\003" + - " \001(\0132&.google.cloud.notebooks.v1.Environ" + - "mentB\003\340A\002\"-\n\030DeleteEnvironmentRequest\022\021\n" + - "\004name\030\001 \001(\tB\003\340A\002\"\232\001\n\024ListSchedulesReques" + - "t\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!notebooks.goo" + - "gleapis.com/Schedule\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\022\020\n\010o" + - "rder_by\030\005 \001(\t\"}\n\025ListSchedulesResponse\0226" + - "\n\tschedules\030\001 \003(\0132#.google.cloud.noteboo" + - "ks.v1.Schedule\022\027\n\017next_page_token\030\002 \001(\t\022" + - "\023\n\013unreachable\030\003 \003(\t\"M\n\022GetScheduleReque" + - "st\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!notebooks.goog" + - "leapis.com/Schedule\"P\n\025DeleteScheduleReq" + - "uest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!notebooks.go" + - "ogleapis.com/Schedule\"\250\001\n\025CreateSchedule" + - "Request\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!noteboo" + - "ks.googleapis.com/Schedule\022\030\n\013schedule_i" + - "d\030\002 \001(\tB\003\340A\002\022:\n\010schedule\030\003 \001(\0132#.google." + - "cloud.notebooks.v1.ScheduleB\003\340A\002\"Q\n\026Trig" + - "gerScheduleRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#" + - "\n!notebooks.googleapis.com/Schedule\"\234\001\n\025" + - "ListExecutionsRequest\022:\n\006parent\030\001 \001(\tB*\340" + - "A\002\372A$\n\"notebooks.googleapis.com/Executio" + - "n\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\022\020\n\010order_by\030\005 \001(\t\"\200\001\n\026L" + - "istExecutionsResponse\0228\n\nexecutions\030\001 \003(" + - "\0132$.google.cloud.notebooks.v1.Execution\022" + - "\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachable\030" + - "\003 \003(\t\"O\n\023GetExecutionRequest\0228\n\004name\030\001 \001" + - "(\tB*\340A\002\372A$\n\"notebooks.googleapis.com/Exe" + - "cution\"R\n\026DeleteExecutionRequest\0228\n\004name" + - "\030\001 \001(\tB*\340A\002\372A$\n\"notebooks.googleapis.com" + - "/Execution\"\255\001\n\026CreateExecutionRequest\022:\n" + - "\006parent\030\001 \001(\tB*\340A\002\372A$\n\"notebooks.googlea" + - "pis.com/Execution\022\031\n\014execution_id\030\002 \001(\tB" + - "\003\340A\002\022<\n\texecution\030\003 \001(\0132$.google.cloud.n" + - "otebooks.v1.ExecutionB\003\340A\002*u\n\013UpgradeTyp" + - "e\022\034\n\030UPGRADE_TYPE_UNSPECIFIED\020\000\022\025\n\021UPGRA" + - "DE_FRAMEWORK\020\001\022\016\n\nUPGRADE_OS\020\002\022\020\n\014UPGRAD" + - "E_CUDA\020\003\022\017\n\013UPGRADE_ALL\020\0042\2727\n\017NotebookSe" + - "rvice\022\262\001\n\rListInstances\022/.google.cloud.n" + - "otebooks.v1.ListInstancesRequest\0320.googl" + - "e.cloud.notebooks.v1.ListInstancesRespon" + - "se\">\202\323\344\223\002/\022-/v1/{parent=projects/*/locat" + - "ions/*}/instances\332A\006parent\022\237\001\n\013GetInstan" + - "ce\022-.google.cloud.notebooks.v1.GetInstan" + - "ceRequest\032#.google.cloud.notebooks.v1.In" + - "stance\"<\202\323\344\223\002/\022-/v1/{name=projects/*/loc" + - "ations/*/instances/*}\332A\004name\022\340\001\n\016CreateI" + - "nstance\0220.google.cloud.notebooks.v1.Crea" + - "teInstanceRequest\032\035.google.longrunning.O" + - "peration\"}\202\323\344\223\0029\"-/v1/{parent=projects/*" + - "/locations/*}/instances:\010instance\332A\033pare" + - "nt,instance,instance_id\312A\035\n\010Instance\022\021Op" + - "erationMetadata\022\310\001\n\020RegisterInstance\0222.g" + - "oogle.cloud.notebooks.v1.RegisterInstanc" + - "eRequest\032\035.google.longrunning.Operation\"" + - "a\202\323\344\223\002;\"6/v1/{parent=projects/*/location" + - "s/*}/instances:register:\001*\312A\035\n\010Instance\022" + - "\021OperationMetadata\022\332\001\n\026SetInstanceAccele" + - "rator\0228.google.cloud.notebooks.v1.SetIns" + - "tanceAcceleratorRequest\032\035.google.longrun" + - "ning.Operation\"g\202\323\344\223\002A2.google.cl" + - "oud.notebooks.v1.UpdateShieldedInstanceC" + - "onfigRequest\032\035.google.longrunning.Operat" + - "ion\"u\202\323\344\223\002O2J/v1/{name=projects/*/locati" + - "ons/*/instances/*}:updateShieldedInstanc" + - "eConfig:\001*\312A\035\n\010Instance\022\021OperationMetada" + - "ta\022\313\001\n\021SetInstanceLabels\0223.google.cloud." + - "notebooks.v1.SetInstanceLabelsRequest\032\035." + - "google.longrunning.Operation\"b\202\323\344\223\002<27/v" + - "1/{name=projects/*/locations/*/instances" + - "/*}:setLabels:\001*\312A\035\n\010Instance\022\021Operation" + - "Metadata\022\352\001\n\033UpdateInstanceMetadataItems" + - "\022=.google.cloud.notebooks.v1.UpdateInsta" + - "nceMetadataItemsRequest\032>.google.cloud.n" + - "otebooks.v1.UpdateInstanceMetadataItemsR" + - "esponse\"L\202\323\344\223\002F2A/v1/{name=projects/*/lo" + - "cations/*/instances/*}:updateMetadataIte" + - "ms:\001*\022\314\001\n\016DeleteInstance\0220.google.cloud." + - "notebooks.v1.DeleteInstanceRequest\032\035.goo" + - "gle.longrunning.Operation\"i\202\323\344\223\002/*-/v1/{" + - "name=projects/*/locations/*/instances/*}" + - "\332A\004name\312A*\n\025google.protobuf.Empty\022\021Opera" + - "tionMetadata\022\277\001\n\rStartInstance\022/.google." + - "cloud.notebooks.v1.StartInstanceRequest\032" + - "\035.google.longrunning.Operation\"^\202\323\344\223\0028\"3" + - "/v1/{name=projects/*/locations/*/instanc" + - "es/*}:start:\001*\312A\035\n\010Instance\022\021OperationMe" + - "tadata\022\274\001\n\014StopInstance\022..google.cloud.n" + - "otebooks.v1.StopInstanceRequest\032\035.google" + - ".longrunning.Operation\"]\202\323\344\223\0027\"2/v1/{nam" + - "e=projects/*/locations/*/instances/*}:st" + - "op:\001*\312A\035\n\010Instance\022\021OperationMetadata\022\277\001" + - "\n\rResetInstance\022/.google.cloud.notebooks" + - ".v1.ResetInstanceRequest\032\035.google.longru" + - "nning.Operation\"^\202\323\344\223\0028\"3/v1/{name=proje" + - "cts/*/locations/*/instances/*}:reset:\001*\312" + - "A\035\n\010Instance\022\021OperationMetadata\022\312\001\n\022Repo" + - "rtInstanceInfo\0224.google.cloud.notebooks." + - "v1.ReportInstanceInfoRequest\032\035.google.lo" + - "ngrunning.Operation\"_\202\323\344\223\0029\"4/v1/{name=p" + - "rojects/*/locations/*/instances/*}:repor" + - "t:\001*\312A\035\n\010Instance\022\021OperationMetadata\022\334\001\n" + - "\025IsInstanceUpgradeable\0227.google.cloud.no" + - "tebooks.v1.IsInstanceUpgradeableRequest\032" + - "8.google.cloud.notebooks.v1.IsInstanceUp" + - "gradeableResponse\"P\202\323\344\223\002J\022H/v1/{notebook" + - "_instance=projects/*/locations/*/instanc" + - "es/*}:isUpgradeable\022\316\001\n\021GetInstanceHealt" + - "h\0223.google.cloud.notebooks.v1.GetInstanc" + - "eHealthRequest\0324.google.cloud.notebooks." + - "v1.GetInstanceHealthResponse\"N\202\323\344\223\002A\022?/v" + - "1/{name=projects/*/locations/*/instances" + - "/*}:getInstanceHealth\332A\004name\022\305\001\n\017Upgrade" + - "Instance\0221.google.cloud.notebooks.v1.Upg" + - "radeInstanceRequest\032\035.google.longrunning" + - ".Operation\"`\202\323\344\223\002:\"5/v1/{name=projects/*" + - "/locations/*/instances/*}:upgrade:\001*\312A\035\n" + - "\010Instance\022\021OperationMetadata\022\310\001\n\020Rollbac" + - "kInstance\0222.google.cloud.notebooks.v1.Ro" + - "llbackInstanceRequest\032\035.google.longrunni" + - "ng.Operation\"a\202\323\344\223\002;\"6/v1/{name=projects" + - "/*/locations/*/instances/*}:rollback:\001*\312" + - "A\035\n\010Instance\022\021OperationMetadata\022\341\001\n\020Diag" + - "noseInstance\0222.google.cloud.notebooks.v1" + - ".DiagnoseInstanceRequest\032\035.google.longru" + - "nning.Operation\"z\202\323\344\223\002;\"6/v1/{name=proje" + - "cts/*/locations/*/instances/*}:diagnose:" + - "\001*\332A\026name,diagnostic_config\312A\035\n\010Instance" + - "\022\021OperationMetadata\022\335\001\n\027UpgradeInstanceI" + - "nternal\0229.google.cloud.notebooks.v1.Upgr" + - "adeInstanceInternalRequest\032\035.google.long" + - "running.Operation\"h\202\323\344\223\002B\"=/v1/{name=pro" + - "jects/*/locations/*/instances/*}:upgrade" + - "Internal:\001*\312A\035\n\010Instance\022\021OperationMetad" + - "ata\022\276\001\n\020ListEnvironments\0222.google.cloud." + - "notebooks.v1.ListEnvironmentsRequest\0323.g" + - "oogle.cloud.notebooks.v1.ListEnvironment" + - "sResponse\"A\202\323\344\223\0022\0220/v1/{parent=projects/" + - "*/locations/*}/environments\332A\006parent\022\253\001\n" + - "\016GetEnvironment\0220.google.cloud.notebooks" + - ".v1.GetEnvironmentRequest\032&.google.cloud" + - ".notebooks.v1.Environment\"?\202\323\344\223\0022\0220/v1/{" + - "name=projects/*/locations/*/environments" + - "/*}\332A\004name\022\366\001\n\021CreateEnvironment\0223.googl" + - "e.cloud.notebooks.v1.CreateEnvironmentRe" + - "quest\032\035.google.longrunning.Operation\"\214\001\202" + - "\323\344\223\002?\"0/v1/{parent=projects/*/locations/" + - "*}/environments:\013environment\332A!parent,en" + - "vironment,environment_id\312A \n\013Environment" + - "\022\021OperationMetadata\022\325\001\n\021DeleteEnvironmen" + - "t\0223.google.cloud.notebooks.v1.DeleteEnvi" + - "ronmentRequest\032\035.google.longrunning.Oper" + - "ation\"l\202\323\344\223\0022*0/v1/{name=projects/*/loca" + - "tions/*/environments/*}\332A\004name\312A*\n\025googl" + - "e.protobuf.Empty\022\021OperationMetadata\022\262\001\n\r" + - "ListSchedules\022/.google.cloud.notebooks.v" + - "1.ListSchedulesRequest\0320.google.cloud.no" + - "tebooks.v1.ListSchedulesResponse\">\202\323\344\223\002/" + - "\022-/v1/{parent=projects/*/locations/*}/sc" + - "hedules\332A\006parent\022\237\001\n\013GetSchedule\022-.googl" + - "e.cloud.notebooks.v1.GetScheduleRequest\032" + - "#.google.cloud.notebooks.v1.Schedule\"<\202\323" + - "\344\223\002/\022-/v1/{name=projects/*/locations/*/s" + - "chedules/*}\332A\004name\022\314\001\n\016DeleteSchedule\0220." + - "google.cloud.notebooks.v1.DeleteSchedule" + - "Request\032\035.google.longrunning.Operation\"i" + - "\202\323\344\223\002/*-/v1/{name=projects/*/locations/*" + - "/schedules/*}\332A\004name\312A*\n\025google.protobuf" + - ".Empty\022\021OperationMetadata\022\340\001\n\016CreateSche" + - "dule\0220.google.cloud.notebooks.v1.CreateS" + - "cheduleRequest\032\035.google.longrunning.Oper" + - "ation\"}\202\323\344\223\0029\"-/v1/{parent=projects/*/lo" + - "cations/*}/schedules:\010schedule\332A\033parent," + - "schedule,schedule_id\312A\035\n\010Schedule\022\021Opera" + - "tionMetadata\022\305\001\n\017TriggerSchedule\0221.googl" + - "e.cloud.notebooks.v1.TriggerScheduleRequ" + - "est\032\035.google.longrunning.Operation\"`\202\323\344\223" + - "\002:\"5/v1/{name=projects/*/locations/*/sch" + - "edules/*}:trigger:\001*\312A\035\n\010Schedule\022\021Opera" + - "tionMetadata\022\266\001\n\016ListExecutions\0220.google" + - ".cloud.notebooks.v1.ListExecutionsReques" + - "t\0321.google.cloud.notebooks.v1.ListExecut" + - "ionsResponse\"?\202\323\344\223\0020\022./v1/{parent=projec" + - "ts/*/locations/*}/executions\332A\006parent\022\243\001" + - "\n\014GetExecution\022..google.cloud.notebooks." + - "v1.GetExecutionRequest\032$.google.cloud.no" + - "tebooks.v1.Execution\"=\202\323\344\223\0020\022./v1/{name=" + - "projects/*/locations/*/executions/*}\332A\004n" + - "ame\022\317\001\n\017DeleteExecution\0221.google.cloud.n" + - "otebooks.v1.DeleteExecutionRequest\032\035.goo" + - "gle.longrunning.Operation\"j\202\323\344\223\0020*./v1/{" + - "name=projects/*/locations/*/executions/*" + - "}\332A\004name\312A*\n\025google.protobuf.Empty\022\021Oper" + - "ationMetadata\022\350\001\n\017CreateExecution\0221.goog" + - "le.cloud.notebooks.v1.CreateExecutionReq" + - "uest\032\035.google.longrunning.Operation\"\202\001\202\323" + - "\344\223\002;\"./v1/{parent=projects/*/locations/*" + - "}/executions:\texecution\332A\035parent,executi" + - "on,execution_id\312A\036\n\tExecution\022\021Operation" + - "Metadata\032L\312A\030notebooks.googleapis.com\322A." + - "https://www.googleapis.com/auth/cloud-pl" + - "atformB\314\001\n\035com.google.cloud.notebooks.v1" + - "B\016NotebooksProtoP\001ZBgoogle.golang.org/ge" + - "nproto/googleapis/cloud/notebooks/v1;not" + - "ebooks\252\002\031Google.Cloud.Notebooks.V1\312\002\031Goo" + - "gle\\Cloud\\Notebooks\\V1\352\002\034Google::Cloud::" + - "Notebooks::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.cloud.notebooks.v1.DiagnosticConfigProto.getDescriptor(), - com.google.cloud.notebooks.v1.EnvironmentProto.getDescriptor(), - com.google.cloud.notebooks.v1.ExecutionProto.getDescriptor(), - com.google.cloud.notebooks.v1.InstanceProto.getDescriptor(), - com.google.cloud.notebooks.v1.InstanceConfigProto.getDescriptor(), - com.google.cloud.notebooks.v1.ScheduleProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_notebooks_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_notebooks_v1_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", "Endpoint", }); - internal_static_google_cloud_notebooks_v1_ListInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_notebooks_v1_ListInstancesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_ListInstancesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_notebooks_v1_ListInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_notebooks_v1_ListInstancesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_ListInstancesResponse_descriptor, - new java.lang.String[] { "Instances", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_notebooks_v1_GetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_notebooks_v1_GetInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_GetInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_notebooks_v1_CreateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_notebooks_v1_CreateInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_CreateInstanceRequest_descriptor, - new java.lang.String[] { "Parent", "InstanceId", "Instance", }); - internal_static_google_cloud_notebooks_v1_RegisterInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_notebooks_v1_RegisterInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_RegisterInstanceRequest_descriptor, - new java.lang.String[] { "Parent", "InstanceId", }); - internal_static_google_cloud_notebooks_v1_SetInstanceAcceleratorRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_notebooks_v1_SetInstanceAcceleratorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_SetInstanceAcceleratorRequest_descriptor, - new java.lang.String[] { "Name", "Type", "CoreCount", }); - internal_static_google_cloud_notebooks_v1_SetInstanceMachineTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_notebooks_v1_SetInstanceMachineTypeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_SetInstanceMachineTypeRequest_descriptor, - new java.lang.String[] { "Name", "MachineType", }); - internal_static_google_cloud_notebooks_v1_UpdateInstanceConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_notebooks_v1_UpdateInstanceConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_UpdateInstanceConfigRequest_descriptor, - new java.lang.String[] { "Name", "Config", }); - internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_descriptor, - new java.lang.String[] { "Name", "Labels", }); - internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_LabelsEntry_descriptor = - internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_SetInstanceLabelsRequest_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_descriptor, - new java.lang.String[] { "Name", "Items", }); - internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_ItemsEntry_descriptor = - internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_ItemsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsRequest_ItemsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_descriptor, - new java.lang.String[] { "Items", }); - internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_ItemsEntry_descriptor = - internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_ItemsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_UpdateInstanceMetadataItemsResponse_ItemsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_notebooks_v1_UpdateShieldedInstanceConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_notebooks_v1_UpdateShieldedInstanceConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_UpdateShieldedInstanceConfigRequest_descriptor, - new java.lang.String[] { "Name", "ShieldedInstanceConfig", }); - internal_static_google_cloud_notebooks_v1_DeleteInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_notebooks_v1_DeleteInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_DeleteInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_notebooks_v1_StartInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_notebooks_v1_StartInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_StartInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_notebooks_v1_StopInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_notebooks_v1_StopInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_StopInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_notebooks_v1_ResetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_notebooks_v1_ResetInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_ResetInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_descriptor, - new java.lang.String[] { "Name", "VmId", "Metadata", }); - internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_MetadataEntry_descriptor = - internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_MetadataEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_ReportInstanceInfoRequest_MetadataEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableRequest_descriptor, - new java.lang.String[] { "NotebookInstance", "Type", }); - internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_IsInstanceUpgradeableResponse_descriptor, - new java.lang.String[] { "Upgradeable", "UpgradeVersion", "UpgradeInfo", "UpgradeImage", }); - internal_static_google_cloud_notebooks_v1_GetInstanceHealthRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_notebooks_v1_GetInstanceHealthRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_GetInstanceHealthRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_descriptor, - new java.lang.String[] { "HealthState", "HealthInfo", }); - internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_HealthInfoEntry_descriptor = - internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_HealthInfoEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_GetInstanceHealthResponse_HealthInfoEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_notebooks_v1_UpgradeInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_notebooks_v1_UpgradeInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_UpgradeInstanceRequest_descriptor, - new java.lang.String[] { "Name", "Type", }); - internal_static_google_cloud_notebooks_v1_RollbackInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_notebooks_v1_RollbackInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_RollbackInstanceRequest_descriptor, - new java.lang.String[] { "Name", "TargetSnapshot", }); - internal_static_google_cloud_notebooks_v1_UpgradeInstanceInternalRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_notebooks_v1_UpgradeInstanceInternalRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_UpgradeInstanceInternalRequest_descriptor, - new java.lang.String[] { "Name", "VmId", "Type", }); - internal_static_google_cloud_notebooks_v1_ListEnvironmentsRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_notebooks_v1_ListEnvironmentsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_ListEnvironmentsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_notebooks_v1_DiagnoseInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_notebooks_v1_DiagnoseInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_DiagnoseInstanceRequest_descriptor, - new java.lang.String[] { "Name", "DiagnosticConfig", }); - internal_static_google_cloud_notebooks_v1_ListEnvironmentsResponse_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_notebooks_v1_ListEnvironmentsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_ListEnvironmentsResponse_descriptor, - new java.lang.String[] { "Environments", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_notebooks_v1_GetEnvironmentRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_notebooks_v1_GetEnvironmentRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_GetEnvironmentRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_notebooks_v1_CreateEnvironmentRequest_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_notebooks_v1_CreateEnvironmentRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_CreateEnvironmentRequest_descriptor, - new java.lang.String[] { "Parent", "EnvironmentId", "Environment", }); - internal_static_google_cloud_notebooks_v1_DeleteEnvironmentRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_notebooks_v1_DeleteEnvironmentRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_DeleteEnvironmentRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_notebooks_v1_ListSchedulesRequest_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_notebooks_v1_ListSchedulesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_ListSchedulesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_notebooks_v1_ListSchedulesResponse_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_notebooks_v1_ListSchedulesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_ListSchedulesResponse_descriptor, - new java.lang.String[] { "Schedules", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_notebooks_v1_GetScheduleRequest_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_notebooks_v1_GetScheduleRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_GetScheduleRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_notebooks_v1_DeleteScheduleRequest_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_notebooks_v1_DeleteScheduleRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_DeleteScheduleRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_notebooks_v1_CreateScheduleRequest_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_cloud_notebooks_v1_CreateScheduleRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_CreateScheduleRequest_descriptor, - new java.lang.String[] { "Parent", "ScheduleId", "Schedule", }); - internal_static_google_cloud_notebooks_v1_TriggerScheduleRequest_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_cloud_notebooks_v1_TriggerScheduleRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_TriggerScheduleRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_notebooks_v1_ListExecutionsRequest_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_cloud_notebooks_v1_ListExecutionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_ListExecutionsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_notebooks_v1_ListExecutionsResponse_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_google_cloud_notebooks_v1_ListExecutionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_ListExecutionsResponse_descriptor, - new java.lang.String[] { "Executions", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_notebooks_v1_GetExecutionRequest_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_google_cloud_notebooks_v1_GetExecutionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_GetExecutionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_notebooks_v1_DeleteExecutionRequest_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_google_cloud_notebooks_v1_DeleteExecutionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_DeleteExecutionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_notebooks_v1_CreateExecutionRequest_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_google_cloud_notebooks_v1_CreateExecutionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_CreateExecutionRequest_descriptor, - new java.lang.String[] { "Parent", "ExecutionId", "Execution", }); - 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.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.cloud.notebooks.v1.DiagnosticConfigProto.getDescriptor(); - com.google.cloud.notebooks.v1.EnvironmentProto.getDescriptor(); - com.google.cloud.notebooks.v1.ExecutionProto.getDescriptor(); - com.google.cloud.notebooks.v1.InstanceProto.getDescriptor(); - com.google.cloud.notebooks.v1.InstanceConfigProto.getDescriptor(); - com.google.cloud.notebooks.v1.ScheduleProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeMetricsOrBuilder.java b/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeMetricsOrBuilder.java deleted file mode 100644 index 9b645686ed49..000000000000 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeMetricsOrBuilder.java +++ /dev/null @@ -1,65 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/notebooks/v1/runtime.proto - -package com.google.cloud.notebooks.v1; - -public interface RuntimeMetricsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.RuntimeMetrics) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. The system metrics.
-   * 
- * - * map<string, string> system_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - int getSystemMetricsCount(); - /** - *
-   * Output only. The system metrics.
-   * 
- * - * map<string, string> system_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - boolean containsSystemMetrics( - java.lang.String key); - /** - * Use {@link #getSystemMetricsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getSystemMetrics(); - /** - *
-   * Output only. The system metrics.
-   * 
- * - * map<string, string> system_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - java.util.Map - getSystemMetricsMap(); - /** - *
-   * Output only. The system metrics.
-   * 
- * - * map<string, string> system_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - - /* nullable */ -java.lang.String getSystemMetricsOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue); - /** - *
-   * Output only. The system metrics.
-   * 
- * - * map<string, string> system_metrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - - java.lang.String getSystemMetricsOrThrow( - java.lang.String key); -} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeProto.java b/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeProto.java deleted file mode 100644 index 0356a98cd777..000000000000 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeProto.java +++ /dev/null @@ -1,381 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/notebooks/v1/runtime.proto - -package com.google.cloud.notebooks.v1; - -public final class RuntimeProto { - private RuntimeProto() {} - 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_cloud_notebooks_v1_Runtime_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_Runtime_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_RuntimeAcceleratorConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_RuntimeAcceleratorConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_EncryptionConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_EncryptionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_LocalDisk_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_LocalDisk_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_LocalDisk_RuntimeGuestOsFeature_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_LocalDisk_RuntimeGuestOsFeature_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_RuntimeAccessConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_RuntimeAccessConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_RuntimeSoftwareConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_RuntimeSoftwareConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_RuntimeMetrics_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_RuntimeMetrics_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_RuntimeMetrics_SystemMetricsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_RuntimeMetrics_SystemMetricsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_RuntimeShieldedInstanceConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_RuntimeShieldedInstanceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_VirtualMachine_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_VirtualMachine_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_BootImage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_BootImage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_GuestAttributesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_GuestAttributesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_MetadataEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_MetadataEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_LabelsEntry_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/cloud/notebooks/v1/runtime.prot" + - "o\022\031google.cloud.notebooks.v1\032\037google/api" + - "/field_behavior.proto\032\031google/api/resour" + - "ce.proto\032+google/cloud/notebooks/v1/envi" + - "ronment.proto\032\037google/protobuf/timestamp" + - ".proto\"\255\007\n\007Runtime\022\021\n\004name\030\001 \001(\tB\003\340A\003\022D\n" + - "\017virtual_machine\030\002 \001(\0132).google.cloud.no" + - "tebooks.v1.VirtualMachineH\000\022<\n\005state\030\003 \001" + - "(\0162(.google.cloud.notebooks.v1.Runtime.S" + - "tateB\003\340A\003\022I\n\014health_state\030\004 \001(\0162..google" + - ".cloud.notebooks.v1.Runtime.HealthStateB" + - "\003\340A\003\022E\n\raccess_config\030\005 \001(\0132..google.clo" + - "ud.notebooks.v1.RuntimeAccessConfig\022I\n\017s" + - "oftware_config\030\006 \001(\01320.google.cloud.note" + - "books.v1.RuntimeSoftwareConfig\022?\n\007metric" + - "s\030\007 \001(\0132).google.cloud.notebooks.v1.Runt" + - "imeMetricsB\003\340A\003\0224\n\013create_time\030\024 \001(\0132\032.g" + - "oogle.protobuf.TimestampB\003\340A\003\0224\n\013update_" + - "time\030\025 \001(\0132\032.google.protobuf.TimestampB\003" + - "\340A\003\"\224\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010" + - "STARTING\020\001\022\020\n\014PROVISIONING\020\002\022\n\n\006ACTIVE\020\003" + - "\022\014\n\010STOPPING\020\004\022\013\n\007STOPPED\020\005\022\014\n\010DELETING\020" + - "\006\022\r\n\tUPGRADING\020\007\022\020\n\014INITIALIZING\020\010\"w\n\013He" + - "althState\022\034\n\030HEALTH_STATE_UNSPECIFIED\020\000\022" + - "\013\n\007HEALTHY\020\001\022\r\n\tUNHEALTHY\020\002\022\027\n\023AGENT_NOT" + - "_INSTALLED\020\003\022\025\n\021AGENT_NOT_RUNNING\020\004:a\352A^" + - "\n notebooks.googleapis.com/Runtime\022:proj" + - "ects/{project}/locations/{location}/runt" + - "imes/{runtime}B\016\n\014runtime_type\"\245\003\n\030Runti" + - "meAcceleratorConfig\022Q\n\004type\030\001 \001(\0162C.goog" + - "le.cloud.notebooks.v1.RuntimeAccelerator" + - "Config.AcceleratorType\022\022\n\ncore_count\030\002 \001" + - "(\003\"\241\002\n\017AcceleratorType\022 \n\034ACCELERATOR_TY" + - "PE_UNSPECIFIED\020\000\022\030\n\020NVIDIA_TESLA_K80\020\001\032\002" + - "\010\001\022\025\n\021NVIDIA_TESLA_P100\020\002\022\025\n\021NVIDIA_TESL" + - "A_V100\020\003\022\023\n\017NVIDIA_TESLA_P4\020\004\022\023\n\017NVIDIA_" + - "TESLA_T4\020\005\022\025\n\021NVIDIA_TESLA_A100\020\006\022\n\n\006TPU" + - "_V2\020\007\022\n\n\006TPU_V3\020\010\022\027\n\023NVIDIA_TESLA_T4_VWS" + - "\020\t\022\031\n\025NVIDIA_TESLA_P100_VWS\020\n\022\027\n\023NVIDIA_" + - "TESLA_P4_VWS\020\013\"#\n\020EncryptionConfig\022\017\n\007km" + - "s_key\030\001 \001(\t\"\250\003\n\tLocalDisk\022\030\n\013auto_delete" + - "\030\001 \001(\010B\003\340A\003\022\021\n\004boot\030\002 \001(\010B\003\340A\003\022\030\n\013device" + - "_name\030\003 \001(\tB\003\340A\003\022Z\n\021guest_os_features\030\004 " + - "\003(\0132:.google.cloud.notebooks.v1.LocalDis" + - "k.RuntimeGuestOsFeatureB\003\340A\003\022\022\n\005index\030\005 " + - "\001(\005B\003\340A\003\022T\n\021initialize_params\030\006 \001(\01324.go" + - "ogle.cloud.notebooks.v1.LocalDiskInitial" + - "izeParamsB\003\340A\004\022\021\n\tinterface\030\007 \001(\t\022\021\n\004kin" + - "d\030\010 \001(\tB\003\340A\003\022\025\n\010licenses\030\t \003(\tB\003\340A\003\022\014\n\004m" + - "ode\030\n \001(\t\022\016\n\006source\030\013 \001(\t\022\014\n\004type\030\014 \001(\t\032" + - "%\n\025RuntimeGuestOsFeature\022\014\n\004type\030\001 \001(\t\"\252" + - "\003\n\031LocalDiskInitializeParams\022\030\n\013descript" + - "ion\030\001 \001(\tB\003\340A\001\022\026\n\tdisk_name\030\002 \001(\tB\003\340A\001\022\031" + - "\n\014disk_size_gb\030\003 \001(\003B\003\340A\001\022U\n\tdisk_type\030\004" + - " \001(\0162=.google.cloud.notebooks.v1.LocalDi" + - "skInitializeParams.DiskTypeB\003\340A\004\022U\n\006labe" + - "ls\030\005 \003(\0132@.google.cloud.notebooks.v1.Loc" + - "alDiskInitializeParams.LabelsEntryB\003\340A\001\032" + - "-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + - "(\t:\0028\001\"c\n\010DiskType\022\031\n\025DISK_TYPE_UNSPECIF" + - "IED\020\000\022\017\n\013PD_STANDARD\020\001\022\n\n\006PD_SSD\020\002\022\017\n\013PD" + - "_BALANCED\020\003\022\016\n\nPD_EXTREME\020\004\"\373\001\n\023RuntimeA" + - "ccessConfig\022U\n\013access_type\030\001 \001(\0162@.googl" + - "e.cloud.notebooks.v1.RuntimeAccessConfig" + - ".RuntimeAccessType\022\025\n\rruntime_owner\030\002 \001(" + - "\t\022\026\n\tproxy_uri\030\003 \001(\tB\003\340A\003\"^\n\021RuntimeAcce" + - "ssType\022#\n\037RUNTIME_ACCESS_TYPE_UNSPECIFIE" + - "D\020\000\022\017\n\013SINGLE_USER\020\001\022\023\n\017SERVICE_ACCOUNT\020" + - "\002\"\344\005\n\025RuntimeSoftwareConfig\022!\n\031notebook_" + - "upgrade_schedule\030\001 \001(\t\022%\n\030enable_health_" + - "monitoring\030\002 \001(\010H\000\210\001\001\022\032\n\ridle_shutdown\030\003" + - " \001(\010H\001\210\001\001\022\035\n\025idle_shutdown_timeout\030\004 \001(\005" + - "\022\032\n\022install_gpu_driver\030\005 \001(\010\022\036\n\026custom_g" + - "pu_driver_path\030\006 \001(\t\022\033\n\023post_startup_scr" + - "ipt\030\007 \001(\t\022?\n\007kernels\030\010 \003(\0132).google.clou" + - "d.notebooks.v1.ContainerImageB\003\340A\001\022\035\n\013up" + - "gradeable\030\t \001(\010B\003\340A\003H\002\210\001\001\022p\n\034post_startu" + - "p_script_behavior\030\n \001(\0162J.google.cloud.n" + - "otebooks.v1.RuntimeSoftwareConfig.PostSt" + - "artupScriptBehavior\022\035\n\020disable_terminal\030" + - "\013 \001(\010H\003\210\001\001\022\031\n\007version\030\014 \001(\tB\003\340A\003H\004\210\001\001\"\200\001" + - "\n\031PostStartupScriptBehavior\022,\n(POST_STAR" + - "TUP_SCRIPT_BEHAVIOR_UNSPECIFIED\020\000\022\023\n\017RUN" + - "_EVERY_START\020\001\022 \n\034DOWNLOAD_AND_RUN_EVERY" + - "_START\020\002B\033\n\031_enable_health_monitoringB\020\n" + - "\016_idle_shutdownB\016\n\014_upgradeableB\023\n\021_disa" + - "ble_terminalB\n\n\010_version\"\241\001\n\016RuntimeMetr" + - "ics\022Y\n\016system_metrics\030\001 \003(\0132<.google.clo" + - "ud.notebooks.v1.RuntimeMetrics.SystemMet" + - "ricsEntryB\003\340A\003\0324\n\022SystemMetricsEntry\022\013\n\003" + - "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"u\n\035RuntimeS" + - "hieldedInstanceConfig\022\032\n\022enable_secure_b" + - "oot\030\001 \001(\010\022\023\n\013enable_vtpm\030\002 \001(\010\022#\n\033enable" + - "_integrity_monitoring\030\003 \001(\010\"\227\001\n\016VirtualM" + - "achine\022\032\n\rinstance_name\030\001 \001(\tB\003\340A\003\022\030\n\013in" + - "stance_id\030\002 \001(\tB\003\340A\003\022O\n\026virtual_machine_" + - "config\030\003 \001(\0132/.google.cloud.notebooks.v1" + - ".VirtualMachineConfig\"\343\t\n\024VirtualMachine" + - "Config\022\021\n\004zone\030\001 \001(\tB\003\340A\003\022\031\n\014machine_typ" + - "e\030\002 \001(\tB\003\340A\002\022H\n\020container_images\030\003 \003(\0132)" + - ".google.cloud.notebooks.v1.ContainerImag" + - "eB\003\340A\001\022<\n\tdata_disk\030\004 \001(\0132$.google.cloud" + - ".notebooks.v1.LocalDiskB\003\340A\002\022K\n\021encrypti" + - "on_config\030\005 \001(\0132+.google.cloud.notebooks" + - ".v1.EncryptionConfigB\003\340A\001\022_\n\030shielded_in" + - "stance_config\030\006 \001(\01328.google.cloud.noteb" + - "ooks.v1.RuntimeShieldedInstanceConfigB\003\340" + - "A\001\022T\n\022accelerator_config\030\007 \001(\01323.google." + - "cloud.notebooks.v1.RuntimeAcceleratorCon" + - "figB\003\340A\001\022\024\n\007network\030\010 \001(\tB\003\340A\001\022\023\n\006subnet" + - "\030\t \001(\tB\003\340A\001\022\035\n\020internal_ip_only\030\n \001(\010B\003\340" + - "A\001\022\021\n\004tags\030\r \003(\tB\003\340A\001\022c\n\020guest_attribute" + - "s\030\016 \003(\0132D.google.cloud.notebooks.v1.Virt" + - "ualMachineConfig.GuestAttributesEntryB\003\340" + - "A\003\022T\n\010metadata\030\017 \003(\0132=.google.cloud.note" + - "books.v1.VirtualMachineConfig.MetadataEn" + - "tryB\003\340A\001\022P\n\006labels\030\020 \003(\0132;.google.cloud." + - "notebooks.v1.VirtualMachineConfig.Labels" + - "EntryB\003\340A\001\022N\n\010nic_type\030\021 \001(\01627.google.cl" + - "oud.notebooks.v1.VirtualMachineConfig.Ni" + - "cTypeB\003\340A\001\022\036\n\021reserved_ip_range\030\022 \001(\tB\003\340" + - "A\001\022R\n\nboot_image\030\023 \001(\01329.google.cloud.no" + - "tebooks.v1.VirtualMachineConfig.BootImag" + - "eB\003\340A\001\032\013\n\tBootImage\0326\n\024GuestAttributesEn" + - "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032/\n\rM" + - "etadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + - ":\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + - "e\030\002 \001(\t:\0028\001\">\n\007NicType\022\030\n\024UNSPECIFIED_NI" + - "C_TYPE\020\000\022\016\n\nVIRTIO_NET\020\001\022\t\n\005GVNIC\020\002B\312\001\n\035" + - "com.google.cloud.notebooks.v1B\014RuntimePr" + - "otoP\001ZBgoogle.golang.org/genproto/google" + - "apis/cloud/notebooks/v1;notebooks\252\002\031Goog" + - "le.Cloud.Notebooks.V1\312\002\031Google\\Cloud\\Not" + - "ebooks\\V1\352\002\034Google::Cloud::Notebooks::V1" + - "b\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.cloud.notebooks.v1.EnvironmentProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_notebooks_v1_Runtime_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_notebooks_v1_Runtime_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_Runtime_descriptor, - new java.lang.String[] { "Name", "VirtualMachine", "State", "HealthState", "AccessConfig", "SoftwareConfig", "Metrics", "CreateTime", "UpdateTime", "RuntimeType", }); - internal_static_google_cloud_notebooks_v1_RuntimeAcceleratorConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_notebooks_v1_RuntimeAcceleratorConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_RuntimeAcceleratorConfig_descriptor, - new java.lang.String[] { "Type", "CoreCount", }); - internal_static_google_cloud_notebooks_v1_EncryptionConfig_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_notebooks_v1_EncryptionConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_EncryptionConfig_descriptor, - new java.lang.String[] { "KmsKey", }); - internal_static_google_cloud_notebooks_v1_LocalDisk_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_notebooks_v1_LocalDisk_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_LocalDisk_descriptor, - new java.lang.String[] { "AutoDelete", "Boot", "DeviceName", "GuestOsFeatures", "Index", "InitializeParams", "Interface", "Kind", "Licenses", "Mode", "Source", "Type", }); - internal_static_google_cloud_notebooks_v1_LocalDisk_RuntimeGuestOsFeature_descriptor = - internal_static_google_cloud_notebooks_v1_LocalDisk_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_notebooks_v1_LocalDisk_RuntimeGuestOsFeature_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_LocalDisk_RuntimeGuestOsFeature_descriptor, - new java.lang.String[] { "Type", }); - internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_descriptor, - new java.lang.String[] { "Description", "DiskName", "DiskSizeGb", "DiskType", "Labels", }); - internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_LabelsEntry_descriptor = - internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_LocalDiskInitializeParams_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_notebooks_v1_RuntimeAccessConfig_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_notebooks_v1_RuntimeAccessConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_RuntimeAccessConfig_descriptor, - new java.lang.String[] { "AccessType", "RuntimeOwner", "ProxyUri", }); - internal_static_google_cloud_notebooks_v1_RuntimeSoftwareConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_notebooks_v1_RuntimeSoftwareConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_RuntimeSoftwareConfig_descriptor, - new java.lang.String[] { "NotebookUpgradeSchedule", "EnableHealthMonitoring", "IdleShutdown", "IdleShutdownTimeout", "InstallGpuDriver", "CustomGpuDriverPath", "PostStartupScript", "Kernels", "Upgradeable", "PostStartupScriptBehavior", "DisableTerminal", "Version", "EnableHealthMonitoring", "IdleShutdown", "Upgradeable", "DisableTerminal", "Version", }); - internal_static_google_cloud_notebooks_v1_RuntimeMetrics_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_notebooks_v1_RuntimeMetrics_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_RuntimeMetrics_descriptor, - new java.lang.String[] { "SystemMetrics", }); - internal_static_google_cloud_notebooks_v1_RuntimeMetrics_SystemMetricsEntry_descriptor = - internal_static_google_cloud_notebooks_v1_RuntimeMetrics_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_notebooks_v1_RuntimeMetrics_SystemMetricsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_RuntimeMetrics_SystemMetricsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_notebooks_v1_RuntimeShieldedInstanceConfig_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_notebooks_v1_RuntimeShieldedInstanceConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_RuntimeShieldedInstanceConfig_descriptor, - new java.lang.String[] { "EnableSecureBoot", "EnableVtpm", "EnableIntegrityMonitoring", }); - internal_static_google_cloud_notebooks_v1_VirtualMachine_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_notebooks_v1_VirtualMachine_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_VirtualMachine_descriptor, - new java.lang.String[] { "InstanceName", "InstanceId", "VirtualMachineConfig", }); - internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_descriptor, - new java.lang.String[] { "Zone", "MachineType", "ContainerImages", "DataDisk", "EncryptionConfig", "ShieldedInstanceConfig", "AcceleratorConfig", "Network", "Subnet", "InternalIpOnly", "Tags", "GuestAttributes", "Metadata", "Labels", "NicType", "ReservedIpRange", "BootImage", }); - internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_BootImage_descriptor = - internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_BootImage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_BootImage_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_GuestAttributesEntry_descriptor = - internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_GuestAttributesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_GuestAttributesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_MetadataEntry_descriptor = - internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_MetadataEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_MetadataEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_LabelsEntry_descriptor = - internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_VirtualMachineConfig_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.notebooks.v1.EnvironmentProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ScheduleProto.java b/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ScheduleProto.java deleted file mode 100644 index 14391666177f..000000000000 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ScheduleProto.java +++ /dev/null @@ -1,84 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/notebooks/v1/schedule.proto - -package com.google.cloud.notebooks.v1; - -public final class ScheduleProto { - private ScheduleProto() {} - 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_cloud_notebooks_v1_Schedule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1_Schedule_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/cloud/notebooks/v1/schedule.pro" + - "to\022\031google.cloud.notebooks.v1\032\037google/ap" + - "i/field_behavior.proto\032\031google/api/resou" + - "rce.proto\032)google/cloud/notebooks/v1/exe" + - "cution.proto\032\037google/protobuf/timestamp." + - "proto\"\214\005\n\010Schedule\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\031\n" + - "\014display_name\030\002 \001(\tB\003\340A\003\022\023\n\013description\030" + - "\003 \001(\t\0228\n\005state\030\004 \001(\0162).google.cloud.note" + - "books.v1.Schedule.State\022\025\n\rcron_schedule" + - "\030\005 \001(\t\022\021\n\ttime_zone\030\006 \001(\t\0224\n\013create_time" + - "\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + - "4\n\013update_time\030\010 \001(\0132\032.google.protobuf.T" + - "imestampB\003\340A\003\022H\n\022execution_template\030\t \001(" + - "\0132,.google.cloud.notebooks.v1.ExecutionT" + - "emplate\022D\n\021recent_executions\030\n \003(\0132$.goo" + - "gle.cloud.notebooks.v1.ExecutionB\003\340A\003\"x\n" + - "\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007ENABLED" + - "\020\001\022\n\n\006PAUSED\020\002\022\014\n\010DISABLED\020\003\022\021\n\rUPDATE_F" + - "AILED\020\004\022\020\n\014INITIALIZING\020\005\022\014\n\010DELETING\020\006:" + - "c\352A`\n!notebooks.googleapis.com/Schedule\022" + - ";projects/{project}/location/{location}/" + - "schedules/{schedule}Bt\n\035com.google.cloud" + - ".notebooks.v1B\rScheduleProtoP\001ZBgoogle.g" + - "olang.org/genproto/googleapis/cloud/note" + - "books/v1;notebooksb\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.cloud.notebooks.v1.ExecutionProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_notebooks_v1_Schedule_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_notebooks_v1_Schedule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1_Schedule_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Description", "State", "CronSchedule", "TimeZone", "CreateTime", "UpdateTime", "ExecutionTemplate", "RecentExecutions", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.notebooks.v1.ExecutionProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/TriggerScheduleRequestOrBuilder.java b/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/TriggerScheduleRequestOrBuilder.java deleted file mode 100644 index 1b735bb10582..000000000000 --- a/owl-bot-staging/java-notebooks/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/TriggerScheduleRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/notebooks/v1/service.proto - -package com.google.cloud.notebooks.v1; - -public interface TriggerScheduleRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.notebooks.v1.TriggerScheduleRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Format:
-   * `parent=projects/{project_id}/locations/{location}/schedules/{schedule_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Format:
-   * `parent=projects/{project_id}/locations/{location}/schedules/{schedule_id}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-notebooks/v1beta1/grpc-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceGrpc.java b/owl-bot-staging/java-notebooks/v1beta1/grpc-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceGrpc.java deleted file mode 100644 index a8b19895d5b1..000000000000 --- a/owl-bot-staging/java-notebooks/v1beta1/grpc-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceGrpc.java +++ /dev/null @@ -1,1903 +0,0 @@ -package com.google.cloud.notebooks.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * API v1beta1 service for Cloud AI Platform Notebooks.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/notebooks/v1beta1/service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class NotebookServiceGrpc { - - private NotebookServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.notebooks.v1beta1.NotebookService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListInstancesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListInstances", - requestType = com.google.cloud.notebooks.v1beta1.ListInstancesRequest.class, - responseType = com.google.cloud.notebooks.v1beta1.ListInstancesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListInstancesMethod() { - io.grpc.MethodDescriptor getListInstancesMethod; - if ((getListInstancesMethod = NotebookServiceGrpc.getListInstancesMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getListInstancesMethod = NotebookServiceGrpc.getListInstancesMethod) == null) { - NotebookServiceGrpc.getListInstancesMethod = getListInstancesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstances")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1beta1.ListInstancesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1beta1.ListInstancesResponse.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("ListInstances")) - .build(); - } - } - } - return getListInstancesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetInstance", - requestType = com.google.cloud.notebooks.v1beta1.GetInstanceRequest.class, - responseType = com.google.cloud.notebooks.v1beta1.Instance.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetInstanceMethod() { - io.grpc.MethodDescriptor getGetInstanceMethod; - if ((getGetInstanceMethod = NotebookServiceGrpc.getGetInstanceMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getGetInstanceMethod = NotebookServiceGrpc.getGetInstanceMethod) == null) { - NotebookServiceGrpc.getGetInstanceMethod = getGetInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1beta1.GetInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1beta1.Instance.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("GetInstance")) - .build(); - } - } - } - return getGetInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateInstance", - requestType = com.google.cloud.notebooks.v1beta1.CreateInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateInstanceMethod() { - io.grpc.MethodDescriptor getCreateInstanceMethod; - if ((getCreateInstanceMethod = NotebookServiceGrpc.getCreateInstanceMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getCreateInstanceMethod = NotebookServiceGrpc.getCreateInstanceMethod) == null) { - NotebookServiceGrpc.getCreateInstanceMethod = getCreateInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1beta1.CreateInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("CreateInstance")) - .build(); - } - } - } - return getCreateInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getRegisterInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RegisterInstance", - requestType = com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRegisterInstanceMethod() { - io.grpc.MethodDescriptor getRegisterInstanceMethod; - if ((getRegisterInstanceMethod = NotebookServiceGrpc.getRegisterInstanceMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getRegisterInstanceMethod = NotebookServiceGrpc.getRegisterInstanceMethod) == null) { - NotebookServiceGrpc.getRegisterInstanceMethod = getRegisterInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RegisterInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("RegisterInstance")) - .build(); - } - } - } - return getRegisterInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getSetInstanceAcceleratorMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetInstanceAccelerator", - requestType = com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetInstanceAcceleratorMethod() { - io.grpc.MethodDescriptor getSetInstanceAcceleratorMethod; - if ((getSetInstanceAcceleratorMethod = NotebookServiceGrpc.getSetInstanceAcceleratorMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getSetInstanceAcceleratorMethod = NotebookServiceGrpc.getSetInstanceAcceleratorMethod) == null) { - NotebookServiceGrpc.getSetInstanceAcceleratorMethod = getSetInstanceAcceleratorMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetInstanceAccelerator")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("SetInstanceAccelerator")) - .build(); - } - } - } - return getSetInstanceAcceleratorMethod; - } - - private static volatile io.grpc.MethodDescriptor getSetInstanceMachineTypeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetInstanceMachineType", - requestType = com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetInstanceMachineTypeMethod() { - io.grpc.MethodDescriptor getSetInstanceMachineTypeMethod; - if ((getSetInstanceMachineTypeMethod = NotebookServiceGrpc.getSetInstanceMachineTypeMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getSetInstanceMachineTypeMethod = NotebookServiceGrpc.getSetInstanceMachineTypeMethod) == null) { - NotebookServiceGrpc.getSetInstanceMachineTypeMethod = getSetInstanceMachineTypeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetInstanceMachineType")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("SetInstanceMachineType")) - .build(); - } - } - } - return getSetInstanceMachineTypeMethod; - } - - private static volatile io.grpc.MethodDescriptor getSetInstanceLabelsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetInstanceLabels", - requestType = com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetInstanceLabelsMethod() { - io.grpc.MethodDescriptor getSetInstanceLabelsMethod; - if ((getSetInstanceLabelsMethod = NotebookServiceGrpc.getSetInstanceLabelsMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getSetInstanceLabelsMethod = NotebookServiceGrpc.getSetInstanceLabelsMethod) == null) { - NotebookServiceGrpc.getSetInstanceLabelsMethod = getSetInstanceLabelsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetInstanceLabels")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("SetInstanceLabels")) - .build(); - } - } - } - return getSetInstanceLabelsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteInstance", - requestType = com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteInstanceMethod() { - io.grpc.MethodDescriptor getDeleteInstanceMethod; - if ((getDeleteInstanceMethod = NotebookServiceGrpc.getDeleteInstanceMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getDeleteInstanceMethod = NotebookServiceGrpc.getDeleteInstanceMethod) == null) { - NotebookServiceGrpc.getDeleteInstanceMethod = getDeleteInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("DeleteInstance")) - .build(); - } - } - } - return getDeleteInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getStartInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartInstance", - requestType = com.google.cloud.notebooks.v1beta1.StartInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStartInstanceMethod() { - io.grpc.MethodDescriptor getStartInstanceMethod; - if ((getStartInstanceMethod = NotebookServiceGrpc.getStartInstanceMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getStartInstanceMethod = NotebookServiceGrpc.getStartInstanceMethod) == null) { - NotebookServiceGrpc.getStartInstanceMethod = getStartInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1beta1.StartInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("StartInstance")) - .build(); - } - } - } - return getStartInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getStopInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopInstance", - requestType = com.google.cloud.notebooks.v1beta1.StopInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStopInstanceMethod() { - io.grpc.MethodDescriptor getStopInstanceMethod; - if ((getStopInstanceMethod = NotebookServiceGrpc.getStopInstanceMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getStopInstanceMethod = NotebookServiceGrpc.getStopInstanceMethod) == null) { - NotebookServiceGrpc.getStopInstanceMethod = getStopInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1beta1.StopInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("StopInstance")) - .build(); - } - } - } - return getStopInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getResetInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ResetInstance", - requestType = com.google.cloud.notebooks.v1beta1.ResetInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getResetInstanceMethod() { - io.grpc.MethodDescriptor getResetInstanceMethod; - if ((getResetInstanceMethod = NotebookServiceGrpc.getResetInstanceMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getResetInstanceMethod = NotebookServiceGrpc.getResetInstanceMethod) == null) { - NotebookServiceGrpc.getResetInstanceMethod = getResetInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResetInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1beta1.ResetInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("ResetInstance")) - .build(); - } - } - } - return getResetInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getReportInstanceInfoMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ReportInstanceInfo", - requestType = com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getReportInstanceInfoMethod() { - io.grpc.MethodDescriptor getReportInstanceInfoMethod; - if ((getReportInstanceInfoMethod = NotebookServiceGrpc.getReportInstanceInfoMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getReportInstanceInfoMethod = NotebookServiceGrpc.getReportInstanceInfoMethod) == null) { - NotebookServiceGrpc.getReportInstanceInfoMethod = getReportInstanceInfoMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReportInstanceInfo")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("ReportInstanceInfo")) - .build(); - } - } - } - return getReportInstanceInfoMethod; - } - - private static volatile io.grpc.MethodDescriptor getIsInstanceUpgradeableMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "IsInstanceUpgradeable", - requestType = com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest.class, - responseType = com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getIsInstanceUpgradeableMethod() { - io.grpc.MethodDescriptor getIsInstanceUpgradeableMethod; - if ((getIsInstanceUpgradeableMethod = NotebookServiceGrpc.getIsInstanceUpgradeableMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getIsInstanceUpgradeableMethod = NotebookServiceGrpc.getIsInstanceUpgradeableMethod) == null) { - NotebookServiceGrpc.getIsInstanceUpgradeableMethod = getIsInstanceUpgradeableMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "IsInstanceUpgradeable")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("IsInstanceUpgradeable")) - .build(); - } - } - } - return getIsInstanceUpgradeableMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpgradeInstanceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpgradeInstance", - requestType = com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpgradeInstanceMethod() { - io.grpc.MethodDescriptor getUpgradeInstanceMethod; - if ((getUpgradeInstanceMethod = NotebookServiceGrpc.getUpgradeInstanceMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getUpgradeInstanceMethod = NotebookServiceGrpc.getUpgradeInstanceMethod) == null) { - NotebookServiceGrpc.getUpgradeInstanceMethod = getUpgradeInstanceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpgradeInstance")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("UpgradeInstance")) - .build(); - } - } - } - return getUpgradeInstanceMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpgradeInstanceInternalMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpgradeInstanceInternal", - requestType = com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpgradeInstanceInternalMethod() { - io.grpc.MethodDescriptor getUpgradeInstanceInternalMethod; - if ((getUpgradeInstanceInternalMethod = NotebookServiceGrpc.getUpgradeInstanceInternalMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getUpgradeInstanceInternalMethod = NotebookServiceGrpc.getUpgradeInstanceInternalMethod) == null) { - NotebookServiceGrpc.getUpgradeInstanceInternalMethod = getUpgradeInstanceInternalMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpgradeInstanceInternal")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("UpgradeInstanceInternal")) - .build(); - } - } - } - return getUpgradeInstanceInternalMethod; - } - - private static volatile io.grpc.MethodDescriptor getListEnvironmentsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListEnvironments", - requestType = com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest.class, - responseType = com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListEnvironmentsMethod() { - io.grpc.MethodDescriptor getListEnvironmentsMethod; - if ((getListEnvironmentsMethod = NotebookServiceGrpc.getListEnvironmentsMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getListEnvironmentsMethod = NotebookServiceGrpc.getListEnvironmentsMethod) == null) { - NotebookServiceGrpc.getListEnvironmentsMethod = getListEnvironmentsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEnvironments")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("ListEnvironments")) - .build(); - } - } - } - return getListEnvironmentsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetEnvironmentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetEnvironment", - requestType = com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest.class, - responseType = com.google.cloud.notebooks.v1beta1.Environment.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetEnvironmentMethod() { - io.grpc.MethodDescriptor getGetEnvironmentMethod; - if ((getGetEnvironmentMethod = NotebookServiceGrpc.getGetEnvironmentMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getGetEnvironmentMethod = NotebookServiceGrpc.getGetEnvironmentMethod) == null) { - NotebookServiceGrpc.getGetEnvironmentMethod = getGetEnvironmentMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEnvironment")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1beta1.Environment.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("GetEnvironment")) - .build(); - } - } - } - return getGetEnvironmentMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateEnvironmentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateEnvironment", - requestType = com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateEnvironmentMethod() { - io.grpc.MethodDescriptor getCreateEnvironmentMethod; - if ((getCreateEnvironmentMethod = NotebookServiceGrpc.getCreateEnvironmentMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getCreateEnvironmentMethod = NotebookServiceGrpc.getCreateEnvironmentMethod) == null) { - NotebookServiceGrpc.getCreateEnvironmentMethod = getCreateEnvironmentMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateEnvironment")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("CreateEnvironment")) - .build(); - } - } - } - return getCreateEnvironmentMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteEnvironmentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteEnvironment", - requestType = com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteEnvironmentMethod() { - io.grpc.MethodDescriptor getDeleteEnvironmentMethod; - if ((getDeleteEnvironmentMethod = NotebookServiceGrpc.getDeleteEnvironmentMethod) == null) { - synchronized (NotebookServiceGrpc.class) { - if ((getDeleteEnvironmentMethod = NotebookServiceGrpc.getDeleteEnvironmentMethod) == null) { - NotebookServiceGrpc.getDeleteEnvironmentMethod = getDeleteEnvironmentMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteEnvironment")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new NotebookServiceMethodDescriptorSupplier("DeleteEnvironment")) - .build(); - } - } - } - return getDeleteEnvironmentMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static NotebookServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public NotebookServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NotebookServiceStub(channel, callOptions); - } - }; - return NotebookServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static NotebookServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public NotebookServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NotebookServiceBlockingStub(channel, callOptions); - } - }; - return NotebookServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static NotebookServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public NotebookServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NotebookServiceFutureStub(channel, callOptions); - } - }; - return NotebookServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * API v1beta1 service for Cloud AI Platform Notebooks.
-   * 
- */ - public static abstract class NotebookServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Lists instances in a given project and location.
-     * 
- */ - public void listInstances(com.google.cloud.notebooks.v1beta1.ListInstancesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListInstancesMethod(), responseObserver); - } - - /** - *
-     * Gets details of a single Instance.
-     * 
- */ - public void getInstance(com.google.cloud.notebooks.v1beta1.GetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetInstanceMethod(), responseObserver); - } - - /** - *
-     * Creates a new Instance in a given project and location.
-     * 
- */ - public void createInstance(com.google.cloud.notebooks.v1beta1.CreateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateInstanceMethod(), responseObserver); - } - - /** - *
-     * Registers an existing legacy notebook instance to the Notebooks API server.
-     * Legacy instances are instances created with the legacy Compute Engine
-     * calls. They are not manageable by the Notebooks API out of the box. This
-     * call makes these instances manageable by the Notebooks API.
-     * 
- */ - public void registerInstance(com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRegisterInstanceMethod(), responseObserver); - } - - /** - *
-     * Updates the guest accelerators of a single Instance.
-     * 
- */ - public void setInstanceAccelerator(com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetInstanceAcceleratorMethod(), responseObserver); - } - - /** - *
-     * Updates the machine type of a single Instance.
-     * 
- */ - public void setInstanceMachineType(com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetInstanceMachineTypeMethod(), responseObserver); - } - - /** - *
-     * Updates the labels of an Instance.
-     * 
- */ - public void setInstanceLabels(com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetInstanceLabelsMethod(), responseObserver); - } - - /** - *
-     * Deletes a single Instance.
-     * 
- */ - public void deleteInstance(com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteInstanceMethod(), responseObserver); - } - - /** - *
-     * Starts a notebook instance.
-     * 
- */ - public void startInstance(com.google.cloud.notebooks.v1beta1.StartInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartInstanceMethod(), responseObserver); - } - - /** - *
-     * Stops a notebook instance.
-     * 
- */ - public void stopInstance(com.google.cloud.notebooks.v1beta1.StopInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopInstanceMethod(), responseObserver); - } - - /** - *
-     * Resets a notebook instance.
-     * 
- */ - public void resetInstance(com.google.cloud.notebooks.v1beta1.ResetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getResetInstanceMethod(), responseObserver); - } - - /** - *
-     * Allows notebook instances to
-     * report their latest instance information to the Notebooks
-     * API server. The server will merge the reported information to
-     * the instance metadata store. Do not use this method directly.
-     * 
- */ - public void reportInstanceInfo(com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getReportInstanceInfoMethod(), responseObserver); - } - - /** - *
-     * Check if a notebook instance is upgradable.
-     * Deprecated. Please consider using v1.
-     * 
- */ - @java.lang.Deprecated - public void isInstanceUpgradeable(com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getIsInstanceUpgradeableMethod(), responseObserver); - } - - /** - *
-     * Upgrades a notebook instance to the latest version.
-     * Deprecated. Please consider using v1.
-     * 
- */ - @java.lang.Deprecated - public void upgradeInstance(com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpgradeInstanceMethod(), responseObserver); - } - - /** - *
-     * Allows notebook instances to
-     * call this endpoint to upgrade themselves. Do not use this method directly.
-     * Deprecated. Please consider using v1.
-     * 
- */ - @java.lang.Deprecated - public void upgradeInstanceInternal(com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpgradeInstanceInternalMethod(), responseObserver); - } - - /** - *
-     * Lists environments in a project.
-     * 
- */ - public void listEnvironments(com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListEnvironmentsMethod(), responseObserver); - } - - /** - *
-     * Gets details of a single Environment.
-     * 
- */ - public void getEnvironment(com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEnvironmentMethod(), responseObserver); - } - - /** - *
-     * Creates a new Environment.
-     * 
- */ - public void createEnvironment(com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateEnvironmentMethod(), responseObserver); - } - - /** - *
-     * Deletes a single Environment.
-     * 
- */ - public void deleteEnvironment(com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteEnvironmentMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListInstancesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1beta1.ListInstancesRequest, - com.google.cloud.notebooks.v1beta1.ListInstancesResponse>( - this, METHODID_LIST_INSTANCES))) - .addMethod( - getGetInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1beta1.GetInstanceRequest, - com.google.cloud.notebooks.v1beta1.Instance>( - this, METHODID_GET_INSTANCE))) - .addMethod( - getCreateInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1beta1.CreateInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_INSTANCE))) - .addMethod( - getRegisterInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_REGISTER_INSTANCE))) - .addMethod( - getSetInstanceAcceleratorMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest, - com.google.longrunning.Operation>( - this, METHODID_SET_INSTANCE_ACCELERATOR))) - .addMethod( - getSetInstanceMachineTypeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest, - com.google.longrunning.Operation>( - this, METHODID_SET_INSTANCE_MACHINE_TYPE))) - .addMethod( - getSetInstanceLabelsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest, - com.google.longrunning.Operation>( - this, METHODID_SET_INSTANCE_LABELS))) - .addMethod( - getDeleteInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_INSTANCE))) - .addMethod( - getStartInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1beta1.StartInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_START_INSTANCE))) - .addMethod( - getStopInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1beta1.StopInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_STOP_INSTANCE))) - .addMethod( - getResetInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1beta1.ResetInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_RESET_INSTANCE))) - .addMethod( - getReportInstanceInfoMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest, - com.google.longrunning.Operation>( - this, METHODID_REPORT_INSTANCE_INFO))) - .addMethod( - getIsInstanceUpgradeableMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest, - com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse>( - this, METHODID_IS_INSTANCE_UPGRADEABLE))) - .addMethod( - getUpgradeInstanceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest, - com.google.longrunning.Operation>( - this, METHODID_UPGRADE_INSTANCE))) - .addMethod( - getUpgradeInstanceInternalMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest, - com.google.longrunning.Operation>( - this, METHODID_UPGRADE_INSTANCE_INTERNAL))) - .addMethod( - getListEnvironmentsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest, - com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse>( - this, METHODID_LIST_ENVIRONMENTS))) - .addMethod( - getGetEnvironmentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest, - com.google.cloud.notebooks.v1beta1.Environment>( - this, METHODID_GET_ENVIRONMENT))) - .addMethod( - getCreateEnvironmentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_ENVIRONMENT))) - .addMethod( - getDeleteEnvironmentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_ENVIRONMENT))) - .build(); - } - } - - /** - *
-   * API v1beta1 service for Cloud AI Platform Notebooks.
-   * 
- */ - public static final class NotebookServiceStub extends io.grpc.stub.AbstractAsyncStub { - private NotebookServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected NotebookServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NotebookServiceStub(channel, callOptions); - } - - /** - *
-     * Lists instances in a given project and location.
-     * 
- */ - public void listInstances(com.google.cloud.notebooks.v1beta1.ListInstancesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details of a single Instance.
-     * 
- */ - public void getInstance(com.google.cloud.notebooks.v1beta1.GetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new Instance in a given project and location.
-     * 
- */ - public void createInstance(com.google.cloud.notebooks.v1beta1.CreateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Registers an existing legacy notebook instance to the Notebooks API server.
-     * Legacy instances are instances created with the legacy Compute Engine
-     * calls. They are not manageable by the Notebooks API out of the box. This
-     * call makes these instances manageable by the Notebooks API.
-     * 
- */ - public void registerInstance(com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRegisterInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the guest accelerators of a single Instance.
-     * 
- */ - public void setInstanceAccelerator(com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetInstanceAcceleratorMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the machine type of a single Instance.
-     * 
- */ - public void setInstanceMachineType(com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetInstanceMachineTypeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the labels of an Instance.
-     * 
- */ - public void setInstanceLabels(com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetInstanceLabelsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a single Instance.
-     * 
- */ - public void deleteInstance(com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Starts a notebook instance.
-     * 
- */ - public void startInstance(com.google.cloud.notebooks.v1beta1.StartInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Stops a notebook instance.
-     * 
- */ - public void stopInstance(com.google.cloud.notebooks.v1beta1.StopInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Resets a notebook instance.
-     * 
- */ - public void resetInstance(com.google.cloud.notebooks.v1beta1.ResetInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getResetInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Allows notebook instances to
-     * report their latest instance information to the Notebooks
-     * API server. The server will merge the reported information to
-     * the instance metadata store. Do not use this method directly.
-     * 
- */ - public void reportInstanceInfo(com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getReportInstanceInfoMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Check if a notebook instance is upgradable.
-     * Deprecated. Please consider using v1.
-     * 
- */ - @java.lang.Deprecated - public void isInstanceUpgradeable(com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getIsInstanceUpgradeableMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Upgrades a notebook instance to the latest version.
-     * Deprecated. Please consider using v1.
-     * 
- */ - @java.lang.Deprecated - public void upgradeInstance(com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpgradeInstanceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Allows notebook instances to
-     * call this endpoint to upgrade themselves. Do not use this method directly.
-     * Deprecated. Please consider using v1.
-     * 
- */ - @java.lang.Deprecated - public void upgradeInstanceInternal(com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpgradeInstanceInternalMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists environments in a project.
-     * 
- */ - public void listEnvironments(com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListEnvironmentsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details of a single Environment.
-     * 
- */ - public void getEnvironment(com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetEnvironmentMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a new Environment.
-     * 
- */ - public void createEnvironment(com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateEnvironmentMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a single Environment.
-     * 
- */ - public void deleteEnvironment(com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteEnvironmentMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * API v1beta1 service for Cloud AI Platform Notebooks.
-   * 
- */ - public static final class NotebookServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private NotebookServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected NotebookServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NotebookServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists instances in a given project and location.
-     * 
- */ - public com.google.cloud.notebooks.v1beta1.ListInstancesResponse listInstances(com.google.cloud.notebooks.v1beta1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListInstancesMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details of a single Instance.
-     * 
- */ - public com.google.cloud.notebooks.v1beta1.Instance getInstance(com.google.cloud.notebooks.v1beta1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new Instance in a given project and location.
-     * 
- */ - public com.google.longrunning.Operation createInstance(com.google.cloud.notebooks.v1beta1.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Registers an existing legacy notebook instance to the Notebooks API server.
-     * Legacy instances are instances created with the legacy Compute Engine
-     * calls. They are not manageable by the Notebooks API out of the box. This
-     * call makes these instances manageable by the Notebooks API.
-     * 
- */ - public com.google.longrunning.Operation registerInstance(com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRegisterInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the guest accelerators of a single Instance.
-     * 
- */ - public com.google.longrunning.Operation setInstanceAccelerator(com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetInstanceAcceleratorMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the machine type of a single Instance.
-     * 
- */ - public com.google.longrunning.Operation setInstanceMachineType(com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetInstanceMachineTypeMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the labels of an Instance.
-     * 
- */ - public com.google.longrunning.Operation setInstanceLabels(com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetInstanceLabelsMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a single Instance.
-     * 
- */ - public com.google.longrunning.Operation deleteInstance(com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Starts a notebook instance.
-     * 
- */ - public com.google.longrunning.Operation startInstance(com.google.cloud.notebooks.v1beta1.StartInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Stops a notebook instance.
-     * 
- */ - public com.google.longrunning.Operation stopInstance(com.google.cloud.notebooks.v1beta1.StopInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Resets a notebook instance.
-     * 
- */ - public com.google.longrunning.Operation resetInstance(com.google.cloud.notebooks.v1beta1.ResetInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getResetInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Allows notebook instances to
-     * report their latest instance information to the Notebooks
-     * API server. The server will merge the reported information to
-     * the instance metadata store. Do not use this method directly.
-     * 
- */ - public com.google.longrunning.Operation reportInstanceInfo(com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getReportInstanceInfoMethod(), getCallOptions(), request); - } - - /** - *
-     * Check if a notebook instance is upgradable.
-     * Deprecated. Please consider using v1.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableResponse isInstanceUpgradeable(com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getIsInstanceUpgradeableMethod(), getCallOptions(), request); - } - - /** - *
-     * Upgrades a notebook instance to the latest version.
-     * Deprecated. Please consider using v1.
-     * 
- */ - @java.lang.Deprecated - public com.google.longrunning.Operation upgradeInstance(com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpgradeInstanceMethod(), getCallOptions(), request); - } - - /** - *
-     * Allows notebook instances to
-     * call this endpoint to upgrade themselves. Do not use this method directly.
-     * Deprecated. Please consider using v1.
-     * 
- */ - @java.lang.Deprecated - public com.google.longrunning.Operation upgradeInstanceInternal(com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpgradeInstanceInternalMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists environments in a project.
-     * 
- */ - public com.google.cloud.notebooks.v1beta1.ListEnvironmentsResponse listEnvironments(com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListEnvironmentsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details of a single Environment.
-     * 
- */ - public com.google.cloud.notebooks.v1beta1.Environment getEnvironment(com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetEnvironmentMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a new Environment.
-     * 
- */ - public com.google.longrunning.Operation createEnvironment(com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateEnvironmentMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a single Environment.
-     * 
- */ - public com.google.longrunning.Operation deleteEnvironment(com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteEnvironmentMethod(), getCallOptions(), request); - } - } - - /** - *
-   * API v1beta1 service for Cloud AI Platform Notebooks.
-   * 
- */ - public static final class NotebookServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private NotebookServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected NotebookServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new NotebookServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Lists instances in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listInstances( - com.google.cloud.notebooks.v1beta1.ListInstancesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details of a single Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getInstance( - com.google.cloud.notebooks.v1beta1.GetInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new Instance in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createInstance( - com.google.cloud.notebooks.v1beta1.CreateInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Registers an existing legacy notebook instance to the Notebooks API server.
-     * Legacy instances are instances created with the legacy Compute Engine
-     * calls. They are not manageable by the Notebooks API out of the box. This
-     * call makes these instances manageable by the Notebooks API.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture registerInstance( - com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRegisterInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the guest accelerators of a single Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture setInstanceAccelerator( - com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetInstanceAcceleratorMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the machine type of a single Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture setInstanceMachineType( - com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetInstanceMachineTypeMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the labels of an Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture setInstanceLabels( - com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetInstanceLabelsMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a single Instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteInstance( - com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Starts a notebook instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture startInstance( - com.google.cloud.notebooks.v1beta1.StartInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Stops a notebook instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture stopInstance( - com.google.cloud.notebooks.v1beta1.StopInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Resets a notebook instance.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture resetInstance( - com.google.cloud.notebooks.v1beta1.ResetInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getResetInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Allows notebook instances to
-     * report their latest instance information to the Notebooks
-     * API server. The server will merge the reported information to
-     * the instance metadata store. Do not use this method directly.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture reportInstanceInfo( - com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getReportInstanceInfoMethod(), getCallOptions()), request); - } - - /** - *
-     * Check if a notebook instance is upgradable.
-     * Deprecated. Please consider using v1.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture isInstanceUpgradeable( - com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getIsInstanceUpgradeableMethod(), getCallOptions()), request); - } - - /** - *
-     * Upgrades a notebook instance to the latest version.
-     * Deprecated. Please consider using v1.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture upgradeInstance( - com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpgradeInstanceMethod(), getCallOptions()), request); - } - - /** - *
-     * Allows notebook instances to
-     * call this endpoint to upgrade themselves. Do not use this method directly.
-     * Deprecated. Please consider using v1.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture upgradeInstanceInternal( - com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpgradeInstanceInternalMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists environments in a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listEnvironments( - com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListEnvironmentsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details of a single Environment.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getEnvironment( - com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetEnvironmentMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a new Environment.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createEnvironment( - com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateEnvironmentMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a single Environment.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteEnvironment( - com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteEnvironmentMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_INSTANCES = 0; - private static final int METHODID_GET_INSTANCE = 1; - private static final int METHODID_CREATE_INSTANCE = 2; - private static final int METHODID_REGISTER_INSTANCE = 3; - private static final int METHODID_SET_INSTANCE_ACCELERATOR = 4; - private static final int METHODID_SET_INSTANCE_MACHINE_TYPE = 5; - private static final int METHODID_SET_INSTANCE_LABELS = 6; - private static final int METHODID_DELETE_INSTANCE = 7; - private static final int METHODID_START_INSTANCE = 8; - private static final int METHODID_STOP_INSTANCE = 9; - private static final int METHODID_RESET_INSTANCE = 10; - private static final int METHODID_REPORT_INSTANCE_INFO = 11; - private static final int METHODID_IS_INSTANCE_UPGRADEABLE = 12; - private static final int METHODID_UPGRADE_INSTANCE = 13; - private static final int METHODID_UPGRADE_INSTANCE_INTERNAL = 14; - private static final int METHODID_LIST_ENVIRONMENTS = 15; - private static final int METHODID_GET_ENVIRONMENT = 16; - private static final int METHODID_CREATE_ENVIRONMENT = 17; - private static final int METHODID_DELETE_ENVIRONMENT = 18; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final NotebookServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(NotebookServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_INSTANCES: - serviceImpl.listInstances((com.google.cloud.notebooks.v1beta1.ListInstancesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_INSTANCE: - serviceImpl.getInstance((com.google.cloud.notebooks.v1beta1.GetInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_INSTANCE: - serviceImpl.createInstance((com.google.cloud.notebooks.v1beta1.CreateInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_REGISTER_INSTANCE: - serviceImpl.registerInstance((com.google.cloud.notebooks.v1beta1.RegisterInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_INSTANCE_ACCELERATOR: - serviceImpl.setInstanceAccelerator((com.google.cloud.notebooks.v1beta1.SetInstanceAcceleratorRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_INSTANCE_MACHINE_TYPE: - serviceImpl.setInstanceMachineType((com.google.cloud.notebooks.v1beta1.SetInstanceMachineTypeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_INSTANCE_LABELS: - serviceImpl.setInstanceLabels((com.google.cloud.notebooks.v1beta1.SetInstanceLabelsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_INSTANCE: - serviceImpl.deleteInstance((com.google.cloud.notebooks.v1beta1.DeleteInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_START_INSTANCE: - serviceImpl.startInstance((com.google.cloud.notebooks.v1beta1.StartInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_STOP_INSTANCE: - serviceImpl.stopInstance((com.google.cloud.notebooks.v1beta1.StopInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RESET_INSTANCE: - serviceImpl.resetInstance((com.google.cloud.notebooks.v1beta1.ResetInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_REPORT_INSTANCE_INFO: - serviceImpl.reportInstanceInfo((com.google.cloud.notebooks.v1beta1.ReportInstanceInfoRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_IS_INSTANCE_UPGRADEABLE: - serviceImpl.isInstanceUpgradeable((com.google.cloud.notebooks.v1beta1.IsInstanceUpgradeableRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPGRADE_INSTANCE: - serviceImpl.upgradeInstance((com.google.cloud.notebooks.v1beta1.UpgradeInstanceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPGRADE_INSTANCE_INTERNAL: - serviceImpl.upgradeInstanceInternal((com.google.cloud.notebooks.v1beta1.UpgradeInstanceInternalRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_ENVIRONMENTS: - serviceImpl.listEnvironments((com.google.cloud.notebooks.v1beta1.ListEnvironmentsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ENVIRONMENT: - serviceImpl.getEnvironment((com.google.cloud.notebooks.v1beta1.GetEnvironmentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_ENVIRONMENT: - serviceImpl.createEnvironment((com.google.cloud.notebooks.v1beta1.CreateEnvironmentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_ENVIRONMENT: - serviceImpl.deleteEnvironment((com.google.cloud.notebooks.v1beta1.DeleteEnvironmentRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class NotebookServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - NotebookServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.notebooks.v1beta1.NotebooksProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("NotebookService"); - } - } - - private static final class NotebookServiceFileDescriptorSupplier - extends NotebookServiceBaseDescriptorSupplier { - NotebookServiceFileDescriptorSupplier() {} - } - - private static final class NotebookServiceMethodDescriptorSupplier - extends NotebookServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - NotebookServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (NotebookServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new NotebookServiceFileDescriptorSupplier()) - .addMethod(getListInstancesMethod()) - .addMethod(getGetInstanceMethod()) - .addMethod(getCreateInstanceMethod()) - .addMethod(getRegisterInstanceMethod()) - .addMethod(getSetInstanceAcceleratorMethod()) - .addMethod(getSetInstanceMachineTypeMethod()) - .addMethod(getSetInstanceLabelsMethod()) - .addMethod(getDeleteInstanceMethod()) - .addMethod(getStartInstanceMethod()) - .addMethod(getStopInstanceMethod()) - .addMethod(getResetInstanceMethod()) - .addMethod(getReportInstanceInfoMethod()) - .addMethod(getIsInstanceUpgradeableMethod()) - .addMethod(getUpgradeInstanceMethod()) - .addMethod(getUpgradeInstanceInternalMethod()) - .addMethod(getListEnvironmentsMethod()) - .addMethod(getGetEnvironmentMethod()) - .addMethod(getCreateEnvironmentMethod()) - .addMethod(getDeleteEnvironmentMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/EnvironmentProto.java b/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/EnvironmentProto.java deleted file mode 100644 index 41da8dbc36fb..000000000000 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/EnvironmentProto.java +++ /dev/null @@ -1,104 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/notebooks/v1beta1/environment.proto - -package com.google.cloud.notebooks.v1beta1; - -public final class EnvironmentProto { - private EnvironmentProto() {} - 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_cloud_notebooks_v1beta1_Environment_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_Environment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1beta1_VmImage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_VmImage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1beta1_ContainerImage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_ContainerImage_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/notebooks/v1beta1/environ" + - "ment.proto\022\036google.cloud.notebooks.v1bet" + - "a1\032\037google/api/field_behavior.proto\032\031goo" + - "gle/api/resource.proto\032\037google/protobuf/" + - "timestamp.proto\"\216\003\n\013Environment\022\021\n\004name\030" + - "\001 \001(\tB\003\340A\003\022\024\n\014display_name\030\002 \001(\t\022\023\n\013desc" + - "ription\030\003 \001(\t\022;\n\010vm_image\030\006 \001(\0132\'.google" + - ".cloud.notebooks.v1beta1.VmImageH\000\022I\n\017co" + - "ntainer_image\030\007 \001(\0132..google.cloud.noteb" + - "ooks.v1beta1.ContainerImageH\000\022\033\n\023post_st" + - "artup_script\030\010 \001(\t\0224\n\013create_time\030\t \001(\0132" + - "\032.google.protobuf.TimestampB\003\340A\003:X\352AU\n$n" + - "otebooks.googleapis.com/Environment\022-pro" + - "jects/{project}/environments/{environmen" + - "t}B\014\n\nimage_type\"V\n\007VmImage\022\024\n\007project\030\001" + - " \001(\tB\003\340A\002\022\024\n\nimage_name\030\002 \001(\tH\000\022\026\n\014image" + - "_family\030\003 \001(\tH\000B\007\n\005image\"6\n\016ContainerIma" + - "ge\022\027\n\nrepository\030\001 \001(\tB\003\340A\002\022\013\n\003tag\030\002 \001(\t" + - "B\347\001\n\"com.google.cloud.notebooks.v1beta1B" + - "\020EnvironmentProtoP\001ZGgoogle.golang.org/g" + - "enproto/googleapis/cloud/notebooks/v1bet" + - "a1;notebooks\252\002\036Google.Cloud.Notebooks.V1" + - "Beta1\312\002\036Google\\Cloud\\Notebooks\\V1beta1\352\002" + - "!Google::Cloud::Notebooks::V1beta1b\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(), - }); - internal_static_google_cloud_notebooks_v1beta1_Environment_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_notebooks_v1beta1_Environment_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_Environment_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Description", "VmImage", "ContainerImage", "PostStartupScript", "CreateTime", "ImageType", }); - internal_static_google_cloud_notebooks_v1beta1_VmImage_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_notebooks_v1beta1_VmImage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_VmImage_descriptor, - new java.lang.String[] { "Project", "ImageName", "ImageFamily", "Image", }); - internal_static_google_cloud_notebooks_v1beta1_ContainerImage_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_notebooks_v1beta1_ContainerImage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_ContainerImage_descriptor, - new java.lang.String[] { "Repository", "Tag", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/InstanceProto.java b/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/InstanceProto.java deleted file mode 100644 index 152e50e1d459..000000000000 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/InstanceProto.java +++ /dev/null @@ -1,181 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/notebooks/v1beta1/instance.proto - -package com.google.cloud.notebooks.v1beta1; - -public final class InstanceProto { - private InstanceProto() {} - 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_cloud_notebooks_v1beta1_ReservationAffinity_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_ReservationAffinity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1beta1_Instance_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_Instance_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1beta1_Instance_AcceleratorConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_Instance_AcceleratorConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1beta1_Instance_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_Instance_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1beta1_Instance_MetadataEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_Instance_MetadataEntry_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/cloud/notebooks/v1beta1/instanc" + - "e.proto\022\036google.cloud.notebooks.v1beta1\032" + - "\037google/api/field_behavior.proto\032\031google" + - "/api/resource.proto\0320google/cloud/notebo" + - "oks/v1beta1/environment.proto\032\037google/pr" + - "otobuf/timestamp.proto\"\376\001\n\023ReservationAf" + - "finity\022_\n\030consume_reservation_type\030\001 \001(\016" + - "28.google.cloud.notebooks.v1beta1.Reserv" + - "ationAffinity.TypeB\003\340A\001\022\020\n\003key\030\002 \001(\tB\003\340A" + - "\001\022\023\n\006values\030\003 \003(\tB\003\340A\001\"_\n\004Type\022\024\n\020TYPE_U" + - "NSPECIFIED\020\000\022\022\n\016NO_RESERVATION\020\001\022\023\n\017ANY_" + - "RESERVATION\020\002\022\030\n\024SPECIFIC_RESERVATION\020\003\"" + - "\331\022\n\010Instance\022\021\n\004name\030\001 \001(\tB\003\340A\003\022;\n\010vm_im" + - "age\030\002 \001(\0132\'.google.cloud.notebooks.v1bet" + - "a1.VmImageH\000\022I\n\017container_image\030\003 \001(\0132.." + - "google.cloud.notebooks.v1beta1.Container" + - "ImageH\000\022\033\n\023post_startup_script\030\004 \001(\t\022\026\n\t" + - "proxy_uri\030\005 \001(\tB\003\340A\003\022\034\n\017instance_owners\030" + - "\006 \003(\tB\003\340A\004\022\027\n\017service_account\030\007 \001(\t\022\031\n\014m" + - "achine_type\030\010 \001(\tB\003\340A\002\022V\n\022accelerator_co" + - "nfig\030\t \001(\0132:.google.cloud.notebooks.v1be" + - "ta1.Instance.AcceleratorConfig\022B\n\005state\030" + - "\n \001(\0162..google.cloud.notebooks.v1beta1.I" + - "nstance.StateB\003\340A\003\022\032\n\022install_gpu_driver" + - "\030\013 \001(\010\022\036\n\026custom_gpu_driver_path\030\014 \001(\t\022N" + - "\n\016boot_disk_type\030\r \001(\01621.google.cloud.no" + - "tebooks.v1beta1.Instance.DiskTypeB\003\340A\004\022\036" + - "\n\021boot_disk_size_gb\030\016 \001(\003B\003\340A\004\022N\n\016data_d" + - "isk_type\030\031 \001(\01621.google.cloud.notebooks." + - "v1beta1.Instance.DiskTypeB\003\340A\004\022\036\n\021data_d" + - "isk_size_gb\030\032 \001(\003B\003\340A\004\022 \n\023no_remove_data" + - "_disk\030\033 \001(\010B\003\340A\004\022U\n\017disk_encryption\030\017 \001(" + - "\01627.google.cloud.notebooks.v1beta1.Insta" + - "nce.DiskEncryptionB\003\340A\004\022\024\n\007kms_key\030\020 \001(\t" + - "B\003\340A\004\022\024\n\014no_public_ip\030\021 \001(\010\022\027\n\017no_proxy_" + - "access\030\022 \001(\010\022\017\n\007network\030\023 \001(\t\022\016\n\006subnet\030" + - "\024 \001(\t\022D\n\006labels\030\025 \003(\01324.google.cloud.not" + - "ebooks.v1beta1.Instance.LabelsEntry\022H\n\010m" + - "etadata\030\026 \003(\01326.google.cloud.notebooks.v" + - "1beta1.Instance.MetadataEntry\022G\n\010nic_typ" + - "e\030\034 \001(\01620.google.cloud.notebooks.v1beta1" + - ".Instance.NicTypeB\003\340A\001\022V\n\024reservation_af" + - "finity\030\035 \001(\01323.google.cloud.notebooks.v1" + - "beta1.ReservationAffinityB\003\340A\001\022\033\n\016can_ip" + - "_forward\030\037 \001(\010B\003\340A\001\0224\n\013create_time\030\027 \001(\013" + - "2\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upd" + - "ate_time\030\030 \001(\0132\032.google.protobuf.Timesta" + - "mpB\003\340A\003\032o\n\021AcceleratorConfig\022F\n\004type\030\001 \001" + - "(\01628.google.cloud.notebooks.v1beta1.Inst" + - "ance.AcceleratorType\022\022\n\ncore_count\030\002 \001(\003" + - "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + - "\001(\t:\0028\001\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + - "\005value\030\002 \001(\t:\0028\001\"\206\002\n\017AcceleratorType\022 \n\034" + - "ACCELERATOR_TYPE_UNSPECIFIED\020\000\022\024\n\020NVIDIA" + - "_TESLA_K80\020\001\022\025\n\021NVIDIA_TESLA_P100\020\002\022\025\n\021N" + - "VIDIA_TESLA_V100\020\003\022\023\n\017NVIDIA_TESLA_P4\020\004\022" + - "\023\n\017NVIDIA_TESLA_T4\020\005\022\027\n\023NVIDIA_TESLA_T4_" + - "VWS\020\010\022\031\n\025NVIDIA_TESLA_P100_VWS\020\t\022\027\n\023NVID" + - "IA_TESLA_P4_VWS\020\n\022\n\n\006TPU_V2\020\006\022\n\n\006TPU_V3\020" + - "\007\"\303\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010ST" + - "ARTING\020\001\022\020\n\014PROVISIONING\020\002\022\n\n\006ACTIVE\020\003\022\014" + - "\n\010STOPPING\020\004\022\013\n\007STOPPED\020\005\022\013\n\007DELETED\020\006\022\r" + - "\n\tUPGRADING\020\007\022\020\n\014INITIALIZING\020\010\022\017\n\013REGIS" + - "TERING\020\t\022\016\n\nSUSPENDING\020\n\022\r\n\tSUSPENDED\020\013\"" + - "S\n\010DiskType\022\031\n\025DISK_TYPE_UNSPECIFIED\020\000\022\017" + - "\n\013PD_STANDARD\020\001\022\n\n\006PD_SSD\020\002\022\017\n\013PD_BALANC" + - "ED\020\003\"E\n\016DiskEncryption\022\037\n\033DISK_ENCRYPTIO" + - "N_UNSPECIFIED\020\000\022\010\n\004GMEK\020\001\022\010\n\004CMEK\020\002\">\n\007N" + - "icType\022\030\n\024UNSPECIFIED_NIC_TYPE\020\000\022\016\n\nVIRT" + - "IO_NET\020\001\022\t\n\005GVNIC\020\002:O\352AL\n!notebooks.goog" + - "leapis.com/Instance\022\'projects/{project}/" + - "instances/{instance}B\r\n\013environmentB\344\001\n\"" + - "com.google.cloud.notebooks.v1beta1B\rInst" + - "anceProtoP\001ZGgoogle.golang.org/genproto/" + - "googleapis/cloud/notebooks/v1beta1;noteb" + - "ooks\252\002\036Google.Cloud.Notebooks.V1Beta1\312\002\036" + - "Google\\Cloud\\Notebooks\\V1beta1\352\002!Google:" + - ":Cloud::Notebooks::V1beta1b\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.cloud.notebooks.v1beta1.EnvironmentProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_notebooks_v1beta1_ReservationAffinity_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_notebooks_v1beta1_ReservationAffinity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_ReservationAffinity_descriptor, - new java.lang.String[] { "ConsumeReservationType", "Key", "Values", }); - internal_static_google_cloud_notebooks_v1beta1_Instance_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_notebooks_v1beta1_Instance_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_Instance_descriptor, - new java.lang.String[] { "Name", "VmImage", "ContainerImage", "PostStartupScript", "ProxyUri", "InstanceOwners", "ServiceAccount", "MachineType", "AcceleratorConfig", "State", "InstallGpuDriver", "CustomGpuDriverPath", "BootDiskType", "BootDiskSizeGb", "DataDiskType", "DataDiskSizeGb", "NoRemoveDataDisk", "DiskEncryption", "KmsKey", "NoPublicIp", "NoProxyAccess", "Network", "Subnet", "Labels", "Metadata", "NicType", "ReservationAffinity", "CanIpForward", "CreateTime", "UpdateTime", "Environment", }); - internal_static_google_cloud_notebooks_v1beta1_Instance_AcceleratorConfig_descriptor = - internal_static_google_cloud_notebooks_v1beta1_Instance_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_notebooks_v1beta1_Instance_AcceleratorConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_Instance_AcceleratorConfig_descriptor, - new java.lang.String[] { "Type", "CoreCount", }); - internal_static_google_cloud_notebooks_v1beta1_Instance_LabelsEntry_descriptor = - internal_static_google_cloud_notebooks_v1beta1_Instance_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_notebooks_v1beta1_Instance_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_Instance_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_notebooks_v1beta1_Instance_MetadataEntry_descriptor = - internal_static_google_cloud_notebooks_v1beta1_Instance_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_notebooks_v1beta1_Instance_MetadataEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_Instance_MetadataEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.notebooks.v1beta1.EnvironmentProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/NotebooksProto.java b/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/NotebooksProto.java deleted file mode 100644 index 18070b1bbae5..000000000000 --- a/owl-bot-staging/java-notebooks/v1beta1/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/NotebooksProto.java +++ /dev/null @@ -1,506 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/notebooks/v1beta1/service.proto - -package com.google.cloud.notebooks.v1beta1; - -public final class NotebooksProto { - private NotebooksProto() {} - 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_cloud_notebooks_v1beta1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1beta1_ListInstancesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_ListInstancesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1beta1_ListInstancesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_ListInstancesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1beta1_GetInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_GetInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1beta1_CreateInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_CreateInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1beta1_RegisterInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_RegisterInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1beta1_SetInstanceAcceleratorRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_SetInstanceAcceleratorRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1beta1_SetInstanceMachineTypeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_SetInstanceMachineTypeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1beta1_DeleteInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_DeleteInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1beta1_StartInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_StartInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1beta1_StopInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_StopInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1beta1_ResetInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_ResetInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_MetadataEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_MetadataEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceInternalRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceInternalRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1beta1_GetEnvironmentRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_GetEnvironmentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1beta1_CreateEnvironmentRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_CreateEnvironmentRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_notebooks_v1beta1_DeleteEnvironmentRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_notebooks_v1beta1_DeleteEnvironmentRequest_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/cloud/notebooks/v1beta1/service" + - ".proto\022\036google.cloud.notebooks.v1beta1\032\034" + - "google/api/annotations.proto\032\027google/api" + - "/client.proto\032\037google/api/field_behavior" + - ".proto\0320google/cloud/notebooks/v1beta1/e" + - "nvironment.proto\032-google/cloud/notebooks" + - "/v1beta1/instance.proto\032#google/longrunn" + - "ing/operations.proto\032\037google/protobuf/ti" + - "mestamp.proto\"\357\001\n\021OperationMetadata\022/\n\013c" + - "reate_time\030\001 \001(\0132\032.google.protobuf.Times" + - "tamp\022,\n\010end_time\030\002 \001(\0132\032.google.protobuf" + - ".Timestamp\022\016\n\006target\030\003 \001(\t\022\014\n\004verb\030\004 \001(\t" + - "\022\026\n\016status_message\030\005 \001(\t\022\036\n\026requested_ca" + - "ncellation\030\006 \001(\010\022\023\n\013api_version\030\007 \001(\t\022\020\n" + - "\010endpoint\030\010 \001(\t\"R\n\024ListInstancesRequest\022" + - "\023\n\006parent\030\001 \001(\tB\003\340A\002\022\021\n\tpage_size\030\002 \001(\005\022" + - "\022\n\npage_token\030\003 \001(\t\"\202\001\n\025ListInstancesRes" + - "ponse\022;\n\tinstances\030\001 \003(\0132(.google.cloud." + - "notebooks.v1beta1.Instance\022\027\n\017next_page_" + - "token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\'\n\022GetI" + - "nstanceRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\"\207\001\n\025Cr" + - "eateInstanceRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002" + - "\022\030\n\013instance_id\030\002 \001(\tB\003\340A\002\022?\n\010instance\030\003" + - " \001(\0132(.google.cloud.notebooks.v1beta1.In" + - "stanceB\003\340A\002\"H\n\027RegisterInstanceRequest\022\023" + - "\n\006parent\030\001 \001(\tB\003\340A\002\022\030\n\013instance_id\030\002 \001(\t" + - "B\003\340A\002\"\230\001\n\035SetInstanceAcceleratorRequest\022" + - "\021\n\004name\030\001 \001(\tB\003\340A\002\022K\n\004type\030\002 \001(\01628.googl" + - "e.cloud.notebooks.v1beta1.Instance.Accel" + - "eratorTypeB\003\340A\002\022\027\n\ncore_count\030\003 \001(\003B\003\340A\002" + - "\"M\n\035SetInstanceMachineTypeRequest\022\021\n\004nam" + - "e\030\001 \001(\tB\003\340A\002\022\031\n\014machine_type\030\002 \001(\tB\003\340A\002\"" + - "\262\001\n\030SetInstanceLabelsRequest\022\021\n\004name\030\001 \001" + - "(\tB\003\340A\002\022T\n\006labels\030\002 \003(\0132D.google.cloud.n" + - "otebooks.v1beta1.SetInstanceLabelsReques" + - "t.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" + - "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"*\n\025DeleteInstanceRe" + - "quest\022\021\n\004name\030\001 \001(\tB\003\340A\002\")\n\024StartInstanc" + - "eRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\"(\n\023StopInsta" + - "nceRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\")\n\024ResetIn" + - "stanceRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\"\316\001\n\031Rep" + - "ortInstanceInfoRequest\022\021\n\004name\030\001 \001(\tB\003\340A" + - "\002\022\022\n\005vm_id\030\002 \001(\tB\003\340A\002\022Y\n\010metadata\030\003 \003(\0132" + - "G.google.cloud.notebooks.v1beta1.ReportI" + - "nstanceInfoRequest.MetadataEntry\032/\n\rMeta" + - "dataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + - "\001\">\n\034IsInstanceUpgradeableRequest\022\036\n\021not" + - "ebook_instance\030\001 \001(\tB\003\340A\002\"z\n\035IsInstanceU" + - "pgradeableResponse\022\023\n\013upgradeable\030\001 \001(\010\022" + - "\027\n\017upgrade_version\030\002 \001(\t\022\024\n\014upgrade_info" + - "\030\003 \001(\t\022\025\n\rupgrade_image\030\004 \001(\t\"+\n\026Upgrade" + - "InstanceRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\"G\n\036Up" + - "gradeInstanceInternalRequest\022\021\n\004name\030\001 \001" + - "(\tB\003\340A\002\022\022\n\005vm_id\030\002 \001(\tB\003\340A\002\"U\n\027ListEnvir" + - "onmentsRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\021\n\tp" + - "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\213\001\n\030L" + - "istEnvironmentsResponse\022A\n\014environments\030" + - "\001 \003(\0132+.google.cloud.notebooks.v1beta1.E" + - "nvironment\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013u" + - "nreachable\030\003 \003(\t\"*\n\025GetEnvironmentReques" + - "t\022\021\n\004name\030\001 \001(\tB\003\340A\002\"\223\001\n\030CreateEnvironme" + - "ntRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\033\n\016enviro" + - "nment_id\030\002 \001(\tB\003\340A\002\022E\n\013environment\030\003 \001(\013" + - "2+.google.cloud.notebooks.v1beta1.Enviro" + - "nmentB\003\340A\002\"-\n\030DeleteEnvironmentRequest\022\021" + - "\n\004name\030\001 \001(\tB\003\340A\0022\201 \n\017NotebookService\022\270\001" + - "\n\rListInstances\0224.google.cloud.notebooks" + - ".v1beta1.ListInstancesRequest\0325.google.c" + - "loud.notebooks.v1beta1.ListInstancesResp" + - "onse\":\202\323\344\223\0024\0222/v1beta1/{parent=projects/" + - "*/locations/*}/instances\022\247\001\n\013GetInstance" + - "\0222.google.cloud.notebooks.v1beta1.GetIns" + - "tanceRequest\032(.google.cloud.notebooks.v1" + - "beta1.Instance\":\202\323\344\223\0024\0222/v1beta1/{name=p" + - "rojects/*/locations/*/instances/*}\022\314\001\n\016C" + - "reateInstance\0225.google.cloud.notebooks.v" + - "1beta1.CreateInstanceRequest\032\035.google.lo" + - "ngrunning.Operation\"d\202\323\344\223\002>\"2/v1beta1/{p" + - "arent=projects/*/locations/*}/instances:" + - "\010instance\312A\035\n\010Instance\022\021OperationMetadat" + - "a\022\322\001\n\020RegisterInstance\0227.google.cloud.no" + - "tebooks.v1beta1.RegisterInstanceRequest\032" + - "\035.google.longrunning.Operation\"f\202\323\344\223\002@\";" + - "/v1beta1/{parent=projects/*/locations/*}" + - "/instances:register:\001*\312A\035\n\010Instance\022\021Ope" + - "rationMetadata\022\344\001\n\026SetInstanceAccelerato" + - "r\022=.google.cloud.notebooks.v1beta1.SetIn" + - "stanceAcceleratorRequest\032\035.google.longru" + - "nning.Operation\"l\202\323\344\223\002F2A/v1beta1/{name=" + - "projects/*/locations/*/instances/*}:setA" + - "ccelerator:\001*\312A\035\n\010Instance\022\021OperationMet" + - "adata\022\344\001\n\026SetInstanceMachineType\022=.googl" + - "e.cloud.notebooks.v1beta1.SetInstanceMac" + - "hineTypeRequest\032\035.google.longrunning.Ope" + - "ration\"l\202\323\344\223\002F2A/v1beta1/{name=projects/" + - "*/locations/*/instances/*}:setMachineTyp" + - "e:\001*\312A\035\n\010Instance\022\021OperationMetadata\022\325\001\n" + - "\021SetInstanceLabels\0228.google.cloud.notebo" + - "oks.v1beta1.SetInstanceLabelsRequest\032\035.g" + - "oogle.longrunning.Operation\"g\202\323\344\223\002A2\"9/v1bet" + - "a1/{name=projects/*/locations/*/instance" + - "s/*}:report:\001*\312A\035\n\010Instance\022\021OperationMe" + - "tadata\022\356\001\n\025IsInstanceUpgradeable\022<.googl" + - "e.cloud.notebooks.v1beta1.IsInstanceUpgr" + - "adeableRequest\032=.google.cloud.notebooks." + - "v1beta1.IsInstanceUpgradeableResponse\"X\210" + - "\002\001\202\323\344\223\002O\022M/v1beta1/{notebook_instance=pr" + - "ojects/*/locations/*/instances/*}:isUpgr" + - "adeable\022\322\001\n\017UpgradeInstance\0226.google.clo" + - "ud.notebooks.v1beta1.UpgradeInstanceRequ" + - "est\032\035.google.longrunning.Operation\"h\210\002\001\202" + - "\323\344\223\002?\":/v1beta1/{name=projects/*/locatio" + - "ns/*/instances/*}:upgrade:\001*\312A\035\n\010Instanc" + - "e\022\021OperationMetadata\022\352\001\n\027UpgradeInstance" + - "Internal\022>.google.cloud.notebooks.v1beta" + - "1.UpgradeInstanceInternalRequest\032\035.googl" + - "e.longrunning.Operation\"p\210\002\001\202\323\344\223\002G\"B/v1b" + - "eta1/{name=projects/*/locations/*/instan" + - "ces/*}:upgradeInternal:\001*\312A\035\n\010Instance\022\021" + - "OperationMetadata\022\304\001\n\020ListEnvironments\0227" + - ".google.cloud.notebooks.v1beta1.ListEnvi" + - "ronmentsRequest\0328.google.cloud.notebooks" + - ".v1beta1.ListEnvironmentsResponse\"=\202\323\344\223\002" + - "7\0225/v1beta1/{parent=projects/*/locations" + - "/*}/environments\022\263\001\n\016GetEnvironment\0225.go" + - "ogle.cloud.notebooks.v1beta1.GetEnvironm" + - "entRequest\032+.google.cloud.notebooks.v1be" + - "ta1.Environment\"=\202\323\344\223\0027\0225/v1beta1/{name=" + - "projects/*/locations/*/environments/*}\022\333" + - "\001\n\021CreateEnvironment\0228.google.cloud.note" + - "books.v1beta1.CreateEnvironmentRequest\032\035" + - ".google.longrunning.Operation\"m\202\323\344\223\002D\"5/" + - "v1beta1/{parent=projects/*/locations/*}/" + - "environments:\013environment\312A \n\013Environmen" + - "t\022\021OperationMetadata\022\330\001\n\021DeleteEnvironme" + - "nt\0228.google.cloud.notebooks.v1beta1.Dele" + - "teEnvironmentRequest\032\035.google.longrunnin" + - "g.Operation\"j\202\323\344\223\0027*5/v1beta1/{name=proj" + - "ects/*/locations/*/environments/*}\312A*\n\025g" + - "oogle.protobuf.Empty\022\021OperationMetadata\032" + - "L\312A\030notebooks.googleapis.com\322A.https://w" + - "ww.googleapis.com/auth/cloud-platformB\345\001" + - "\n\"com.google.cloud.notebooks.v1beta1B\016No" + - "tebooksProtoP\001ZGgoogle.golang.org/genpro" + - "to/googleapis/cloud/notebooks/v1beta1;no" + - "tebooks\252\002\036Google.Cloud.Notebooks.V1Beta1" + - "\312\002\036Google\\Cloud\\Notebooks\\V1beta1\352\002!Goog" + - "le::Cloud::Notebooks::V1beta1b\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.cloud.notebooks.v1beta1.EnvironmentProto.getDescriptor(), - com.google.cloud.notebooks.v1beta1.InstanceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_notebooks_v1beta1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_notebooks_v1beta1_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", "Endpoint", }); - internal_static_google_cloud_notebooks_v1beta1_ListInstancesRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_notebooks_v1beta1_ListInstancesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_ListInstancesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_notebooks_v1beta1_ListInstancesResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_notebooks_v1beta1_ListInstancesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_ListInstancesResponse_descriptor, - new java.lang.String[] { "Instances", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_notebooks_v1beta1_GetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_notebooks_v1beta1_GetInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_GetInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_notebooks_v1beta1_CreateInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_notebooks_v1beta1_CreateInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_CreateInstanceRequest_descriptor, - new java.lang.String[] { "Parent", "InstanceId", "Instance", }); - internal_static_google_cloud_notebooks_v1beta1_RegisterInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_notebooks_v1beta1_RegisterInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_RegisterInstanceRequest_descriptor, - new java.lang.String[] { "Parent", "InstanceId", }); - internal_static_google_cloud_notebooks_v1beta1_SetInstanceAcceleratorRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_notebooks_v1beta1_SetInstanceAcceleratorRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_SetInstanceAcceleratorRequest_descriptor, - new java.lang.String[] { "Name", "Type", "CoreCount", }); - internal_static_google_cloud_notebooks_v1beta1_SetInstanceMachineTypeRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_notebooks_v1beta1_SetInstanceMachineTypeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_SetInstanceMachineTypeRequest_descriptor, - new java.lang.String[] { "Name", "MachineType", }); - internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_descriptor, - new java.lang.String[] { "Name", "Labels", }); - internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_LabelsEntry_descriptor = - internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_SetInstanceLabelsRequest_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_notebooks_v1beta1_DeleteInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_notebooks_v1beta1_DeleteInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_DeleteInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_notebooks_v1beta1_StartInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_notebooks_v1beta1_StartInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_StartInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_notebooks_v1beta1_StopInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_notebooks_v1beta1_StopInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_StopInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_notebooks_v1beta1_ResetInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_notebooks_v1beta1_ResetInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_ResetInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_descriptor, - new java.lang.String[] { "Name", "VmId", "Metadata", }); - internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_MetadataEntry_descriptor = - internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_MetadataEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_ReportInstanceInfoRequest_MetadataEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableRequest_descriptor, - new java.lang.String[] { "NotebookInstance", }); - internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableResponse_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_IsInstanceUpgradeableResponse_descriptor, - new java.lang.String[] { "Upgradeable", "UpgradeVersion", "UpgradeInfo", "UpgradeImage", }); - internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceInternalRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceInternalRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_UpgradeInstanceInternalRequest_descriptor, - new java.lang.String[] { "Name", "VmId", }); - internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_ListEnvironmentsResponse_descriptor, - new java.lang.String[] { "Environments", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_notebooks_v1beta1_GetEnvironmentRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_notebooks_v1beta1_GetEnvironmentRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_GetEnvironmentRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_notebooks_v1beta1_CreateEnvironmentRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_notebooks_v1beta1_CreateEnvironmentRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_CreateEnvironmentRequest_descriptor, - new java.lang.String[] { "Parent", "EnvironmentId", "Environment", }); - internal_static_google_cloud_notebooks_v1beta1_DeleteEnvironmentRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_notebooks_v1beta1_DeleteEnvironmentRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_notebooks_v1beta1_DeleteEnvironmentRequest_descriptor, - new java.lang.String[] { "Name", }); - 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.oauthScopes); - 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.cloud.notebooks.v1beta1.EnvironmentProto.getDescriptor(); - com.google.cloud.notebooks.v1beta1.InstanceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -}