diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 5ff6c87c..3d2f8282 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:13b7387edb404234610d30473ac48210ae7fe42a136335ee2b2f8a07c4c7f6a5 + digest: sha256:a4d7b2cfc6a9d6b378a6b2458740eae15fcab28854bd23dad3a15102d2e47c87 diff --git a/.github/.OwlBot.yaml b/.github/.OwlBot.yaml index a5734254..57692b3b 100644 --- a/.github/.OwlBot.yaml +++ b/.github/.OwlBot.yaml @@ -24,9 +24,20 @@ deep-preserve-regex: - "/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: -- source: "/google/cloud/notebooks/(v.*)/.*-java/proto-google-.*/src" - dest: "/owl-bot-staging/$1/proto-google-cloud-notebooks-$1/src" -- source: "/google/cloud/notebooks/(v.*)/.*-java/grpc-google-.*/src" - dest: "/owl-bot-staging/$1/grpc-google-cloud-notebooks-$1/src" +- source: "/google/cloud/notebooks/v1/.*-java/proto-google-cloud-notebooks-v1-java/src/main/java/com/google/cloud/notebooks/v1/" + dest: "/owl-bot-staging/v1/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/" + +- source: "/google/cloud/notebooks/v1/.*-java/proto-google-cloud-notebooks-v1-java/src/main/proto/google/cloud/notebooks/v1/" + dest: "/owl-bot-staging/v1/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/" + +- source: "/google/cloud/notebooks/v1beta1/.*-java/proto-google-cloud-notebooks-v1beta1-java/src" + dest: "/owl-bot-staging/v1beta1/proto-google-cloud-notebooks-v1beta1/src" + +- source: "/google/cloud/notebooks/v1/.*-java/grpc-google-cloud-notebooks-v1-java/src/main/java/com/google/cloud/notebooks/v1/" + dest: "/owl-bot-staging/v1/grpc-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/" + +- source: "/google/cloud/notebooks/v1beta1/.*-java/grpc-google-cloud-notebooks-v1beta1-java/src" + dest: "/owl-bot-staging/v1beta1/grpc-google-cloud-notebooks-v1beta1/src" + - source: "/google/cloud/notebooks/(v.*)/.*-java/gapic-google-.*/src" dest: "/owl-bot-staging/$1/google-cloud-notebooks/src" diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2425d723..05de1f60 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,13 +8,11 @@ jobs: units: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: java: [8, 11, 17] steps: - uses: actions/checkout@v2 - - uses: stCarolas/setup-maven@v4 - with: - maven-version: 3.8.1 - uses: actions/setup-java@v2 with: distribution: zulu @@ -27,9 +25,6 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v2 - - uses: stCarolas/setup-maven@v4 - with: - maven-version: 3.8.1 - uses: actions/setup-java@v2 with: distribution: zulu @@ -45,9 +40,6 @@ jobs: java: [8, 11, 17] steps: - uses: actions/checkout@v2 - - uses: stCarolas/setup-maven@v4 - with: - maven-version: 3.8.1 - uses: actions/setup-java@v2 with: distribution: zulu @@ -58,13 +50,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: stCarolas/setup-maven@v4 - with: - maven-version: 3.8.1 - uses: actions/setup-java@v2 with: distribution: zulu - java-version: 8 + java-version: 11 - run: java -version - run: .kokoro/build.sh env: @@ -73,9 +62,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: stCarolas/setup-maven@v4 - with: - maven-version: 3.8.1 - uses: actions/setup-java@v2 with: distribution: zulu diff --git a/.kokoro/build.sh b/.kokoro/build.sh index 565a48b3..24ad54c2 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -69,6 +69,11 @@ integration) verify RETURN_CODE=$? ;; +graalvm) + # Run Unit and Integration Tests with Native Image + mvn -ntp -Pnative -Penable-integration-tests test + RETURN_CODE=$? + ;; samples) SAMPLES_DIR=samples # only run ITs in snapshot/ on presubmit PRs. run ITs in all 3 samples/ subdirectories otherwise. @@ -86,7 +91,6 @@ samples) pushd ${SAMPLES_DIR} mvn -B \ - -Penable-samples \ -ntp \ -DtrimStackTrace=false \ -Dclirr.skip=true \ diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh index 9a5105d7..d7476cfe 100755 --- a/.kokoro/dependencies.sh +++ b/.kokoro/dependencies.sh @@ -38,15 +38,13 @@ function determineMavenOpts() { | sed -E 's/^(1\.[0-9]\.0).*$/\1/g' ) - case $javaVersion in - "17") + if [[ $javaVersion == 17* ]] + then # MaxPermSize is no longer supported as of jdk 17 echo -n "-Xmx1024m" - ;; - *) + else echo -n "-Xmx1024m -XX:MaxPermSize=128m" - ;; - esac + fi } export MAVEN_OPTS=$(determineMavenOpts) diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg new file mode 100644 index 00000000..4c7225ec --- /dev/null +++ b/.kokoro/presubmit/graalvm-native.cfg @@ -0,0 +1,33 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/graalvm" +} + +env_vars: { + key: "JOB_TYPE" + value: "graalvm" +} + +# TODO: remove this after we've migrated all tests and scripts +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_CLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "secret_manager/java-it-service-account" +} + +env_vars: { + key: "SECRET_MANAGER_KEYS" + value: "java-it-service-account" +} diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh index cc254b4e..3765b210 100755 --- a/.kokoro/release/publish_javadoc11.sh +++ b/.kokoro/release/publish_javadoc11.sh @@ -36,13 +36,9 @@ mvn clean install -B -q -DskipTests=true export NAME=google-cloud-notebooks export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) -# V3 generates docfx yml from javadoc -# generate yml -mvn clean site -B -q -P docFX - -# copy README to docfx-yml dir and rename index.md -cp README.md target/docfx-yml/index.md -# copy CHANGELOG to docfx-yml dir and rename history.md +# cloud RAD generation +mvn clean javadoc:aggregate -B -q -P docFX +# include CHANGELOG cp CHANGELOG.md target/docfx-yml/history.md pushd target/docfx-yml diff --git a/.repo-metadata.json b/.repo-metadata.json index f27de364..22f61c34 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -3,7 +3,7 @@ "name_pretty": "AI Platform Notebooks", "product_documentation": "https://cloud.google.com/ai-platform-notebooks", "api_description": "is a managed service that offers an integrated and secure JupyterLab environment for data scientists and machine learning developers to experiment, develop, and deploy models into production. Users can create instances running JupyterLab that come pre-installed with the latest data science and machine learning frameworks in a single click.", - "client_documentation": "https://googleapis.dev/java/google-cloud-notebooks/latest/index.html", + "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-notebooks/latest/history", "release_level": "beta", "transport": "grpc", "language": "java", diff --git a/CHANGELOG.md b/CHANGELOG.md index 1956275b..d11097fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,27 @@ # Changelog +### [0.6.1](https://www.github.com/googleapis/java-notebooks/compare/v0.6.0...v0.6.1) (2021-12-06) + + +### Bug Fixes + +* **java:** add -ntp flag to native image testing command ([#1299](https://www.github.com/googleapis/java-notebooks/issues/1299)) ([#293](https://www.github.com/googleapis/java-notebooks/issues/293)) ([0b99148](https://www.github.com/googleapis/java-notebooks/commit/0b99148379eeb65d5e0637735f78bf2b5e2a74f8)) +* **java:** java 17 dependency arguments ([#1266](https://www.github.com/googleapis/java-notebooks/issues/1266)) ([#278](https://www.github.com/googleapis/java-notebooks/issues/278)) ([41de5f8](https://www.github.com/googleapis/java-notebooks/commit/41de5f805e9afec1470104f0e690f62a367b5a09)) +* remove location proto ([4131cb6](https://www.github.com/googleapis/java-notebooks/commit/4131cb6c75d0d6604a78754cc521b0e08d58a499)) + + +### Documentation + +* fix typos and docstring formatting ([#275](https://www.github.com/googleapis/java-notebooks/issues/275)) ([d01f502](https://www.github.com/googleapis/java-notebooks/commit/d01f50232082a43911774e765c7b4d8e12075040)) +* Fixed several broken links and formatting issues in the reference documentation ([#269](https://www.github.com/googleapis/java-notebooks/issues/269)) ([609f7e9](https://www.github.com/googleapis/java-notebooks/commit/609f7e9d603f55ee591199251c10288c531dc54f)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.4.0 ([#276](https://www.github.com/googleapis/java-notebooks/issues/276)) ([8af9ed8](https://www.github.com/googleapis/java-notebooks/commit/8af9ed805a128f76c0311b0239ed2ba619cbc502)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.0 ([#286](https://www.github.com/googleapis/java-notebooks/issues/286)) ([acf2917](https://www.github.com/googleapis/java-notebooks/commit/acf2917f7109fac517e3ee598dc104cf4d5451aa)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.1 ([#292](https://www.github.com/googleapis/java-notebooks/issues/292)) ([4131cb6](https://www.github.com/googleapis/java-notebooks/commit/4131cb6c75d0d6604a78754cc521b0e08d58a499)) + ## [0.6.0](https://www.github.com/googleapis/java-notebooks/compare/v0.5.0...v0.6.0) (2021-09-27) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f2dbdee0..b65dd279 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -53,12 +53,12 @@ mvn -Penable-integration-tests clean verify ## Code Samples -Code Samples must be bundled in separate Maven modules, and guarded by a -Maven profile with the name `enable-samples`. +All code samples must be in compliance with the [java sample formatting guide][3]. +Code Samples must be bundled in separate Maven modules. The samples must be separate from the primary project for a few reasons: -1. Primary projects have a minimum Java version of Java 7 whereas samples have - a minimum Java version of Java 8. Due to this we need the ability to +1. Primary projects have a minimum Java version of Java 8 whereas samples can have + Java version of Java 11. Due to this we need the ability to selectively exclude samples from a build run. 2. Many code samples depend on external GCP services and need credentials to access the service. @@ -68,39 +68,16 @@ The samples must be separate from the primary project for a few reasons: ### Building ```bash -mvn -Penable-samples clean verify +mvn clean verify ``` Some samples require access to GCP services and require a service account: ```bash export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service/account.json -mvn -Penable-samples clean verify +mvn clean verify ``` -### Profile Config - -1. To add samples in a profile to your Maven project, add the following to your -`pom.xml` - - ```xml - - [...] - - - enable-samples - - sample - - - - [...] - - ``` - -2. [Activate](#profile-activation) the profile. -3. Define your samples in a normal Maven project in the `samples/` directory. - ### Code Formatting Code in this repo is formatted with @@ -110,30 +87,6 @@ To run formatting on your project, you can run: mvn com.coveo:fmt-maven-plugin:format ``` -### Profile Activation - -To include code samples when building and testing the project, enable the -`enable-samples` Maven profile. - -#### Command line - -To activate the Maven profile on the command line add `-Penable-samples` to your -Maven command. - -#### Maven `settings.xml` - -To activate the Maven profile in your `~/.m2/settings.xml` add an entry of -`enable-samples` following the instructions in [Active Profiles][2]. - -This method has the benefit of applying to all projects you build (and is -respected by IntelliJ IDEA) and is recommended if you are going to be -contributing samples to several projects. - -#### IntelliJ IDEA - -To activate the Maven Profile inside IntelliJ IDEA, follow the instructions in -[Activate Maven profiles][3] to activate `enable-samples`. - [1]: https://cloud.google.com/docs/authentication/getting-started#creating_a_service_account [2]: https://maven.apache.org/settings.html#Active_Profiles -[3]: https://www.jetbrains.com/help/idea/work-with-maven-profiles.html#activate_maven_profiles +[3]: https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md \ No newline at end of file diff --git a/README.md b/README.md index a5279d9f..4d3cd608 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-notebooks - 0.5.0 + 0.6.0 ``` @@ -30,13 +30,13 @@ If you are using Maven, add this to your pom.xml file: If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-notebooks:0.5.0' +implementation 'com.google.cloud:google-cloud-notebooks:0.6.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "0.5.0" +libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "0.6.0" ``` ## Authentication @@ -85,7 +85,7 @@ AI Platform Notebooks uses gRPC for the transport layer. ## Supported Java Versions -Java 7 or above is required for using this client. +Java 8 or above is required for using this client. Google's Java client libraries, [Google Cloud Client Libraries][cloudlibs] @@ -157,7 +157,6 @@ Apache 2.0 - See [LICENSE][license] for more information. Java Version | Status ------------ | ------ -Java 7 | [![Kokoro CI][kokoro-badge-image-1]][kokoro-badge-link-1] Java 8 | [![Kokoro CI][kokoro-badge-image-2]][kokoro-badge-link-2] Java 8 OSX | [![Kokoro CI][kokoro-badge-image-3]][kokoro-badge-link-3] Java 8 Windows | [![Kokoro CI][kokoro-badge-image-4]][kokoro-badge-link-4] @@ -166,7 +165,7 @@ Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5] Java is a registered trademark of Oracle and/or its affiliates. [product-docs]: https://cloud.google.com/ai-platform-notebooks -[javadocs]: https://googleapis.dev/java/google-cloud-notebooks/latest/index.html +[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-notebooks/latest/history [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 diff --git a/google-cloud-notebooks-bom/pom.xml b/google-cloud-notebooks-bom/pom.xml index 16fa1b5a..2be24db8 100644 --- a/google-cloud-notebooks-bom/pom.xml +++ b/google-cloud-notebooks-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-notebooks-bom - 0.6.0 + 0.6.1 pom com.google.cloud google-cloud-shared-config - 1.0.3 + 1.2.2 Google AI Platform Notebooks BOM @@ -56,27 +56,27 @@ com.google.cloud google-cloud-notebooks - 0.6.0 + 0.6.1 com.google.api.grpc grpc-google-cloud-notebooks-v1beta1 - 0.6.0 + 0.6.1 com.google.api.grpc grpc-google-cloud-notebooks-v1 - 0.6.0 + 0.6.1 com.google.api.grpc proto-google-cloud-notebooks-v1beta1 - 0.6.0 + 0.6.1 com.google.api.grpc proto-google-cloud-notebooks-v1 - 0.6.0 + 0.6.1 diff --git a/google-cloud-notebooks/pom.xml b/google-cloud-notebooks/pom.xml index 23d73f47..0a32cf25 100644 --- a/google-cloud-notebooks/pom.xml +++ b/google-cloud-notebooks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-notebooks - 0.6.0 + 0.6.1 jar Google AI Platform Notebooks https://github.com/googleapis/java-notebooks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-notebooks-parent - 0.6.0 + 0.6.1 google-cloud-notebooks diff --git a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceClient.java b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceClient.java index b6036db7..f7428351 100644 --- a/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceClient.java +++ b/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceClient.java @@ -203,7 +203,7 @@ public final ListRuntimesPagedResponse listRuntimes(LocationName parent) { *
{@code
    * try (ManagedNotebookServiceClient managedNotebookServiceClient =
    *     ManagedNotebookServiceClient.create()) {
-   *   String parent = RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString();
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Runtime element : managedNotebookServiceClient.listRuntimes(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -229,7 +229,7 @@ public final ListRuntimesPagedResponse listRuntimes(String parent) {
    *     ManagedNotebookServiceClient.create()) {
    *   ListRuntimesRequest request =
    *       ListRuntimesRequest.newBuilder()
-   *           .setParent(RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -257,7 +257,7 @@ public final ListRuntimesPagedResponse listRuntimes(ListRuntimesRequest request)
    *     ManagedNotebookServiceClient.create()) {
    *   ListRuntimesRequest request =
    *       ListRuntimesRequest.newBuilder()
-   *           .setParent(RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -286,7 +286,7 @@ public final ListRuntimesPagedResponse listRuntimes(ListRuntimesRequest request)
    *     ManagedNotebookServiceClient.create()) {
    *   ListRuntimesRequest request =
    *       ListRuntimesRequest.newBuilder()
-   *           .setParent(RuntimeName.of("[PROJECT]", "[LOCATION]", "[RUNTIME]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
diff --git a/grpc-google-cloud-notebooks-v1/clirr-ignored-differences.xml b/grpc-google-cloud-notebooks-v1/clirr-ignored-differences.xml
new file mode 100644
index 00000000..5bfda308
--- /dev/null
+++ b/grpc-google-cloud-notebooks-v1/clirr-ignored-differences.xml
@@ -0,0 +1,8 @@
+
+
+
+  
+    com/google/cloud/location/*
+    8001
+  
+
diff --git a/grpc-google-cloud-notebooks-v1/pom.xml b/grpc-google-cloud-notebooks-v1/pom.xml
index a29264b5..d64c670d 100644
--- a/grpc-google-cloud-notebooks-v1/pom.xml
+++ b/grpc-google-cloud-notebooks-v1/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   grpc-google-cloud-notebooks-v1
-  0.6.0
+  0.6.1
   grpc-google-cloud-notebooks-v1
   GRPC library for google-cloud-notebooks
   
     com.google.cloud
     google-cloud-notebooks-parent
-    0.6.0
+    0.6.1
   
   
     
diff --git a/grpc-google-cloud-notebooks-v1/src/main/java/com/google/cloud/location/LocationsGrpc.java b/grpc-google-cloud-notebooks-v1/src/main/java/com/google/cloud/location/LocationsGrpc.java
deleted file mode 100644
index 16f28b5c..00000000
--- a/grpc-google-cloud-notebooks-v1/src/main/java/com/google/cloud/location/LocationsGrpc.java
+++ /dev/null
@@ -1,476 +0,0 @@
-/*
- * 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.location;
-
-import static io.grpc.MethodDescriptor.generateFullMethodName;
-
-/**
- *
- *
- * 
- * An abstract interface that provides location-related information for
- * a service. Service-specific metadata is provided through the
- * [Location.metadata][google.cloud.location.Location.metadata] field.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/location/locations.proto") -public final class LocationsGrpc { - - private LocationsGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.location.Locations"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.location.ListLocationsRequest, - com.google.cloud.location.ListLocationsResponse> - getListLocationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListLocations", - requestType = com.google.cloud.location.ListLocationsRequest.class, - responseType = com.google.cloud.location.ListLocationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.location.ListLocationsRequest, - com.google.cloud.location.ListLocationsResponse> - getListLocationsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.location.ListLocationsRequest, - com.google.cloud.location.ListLocationsResponse> - getListLocationsMethod; - if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) { - synchronized (LocationsGrpc.class) { - if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) { - LocationsGrpc.getListLocationsMethod = - getListLocationsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLocations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.location.ListLocationsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.location.ListLocationsResponse.getDefaultInstance())) - .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("ListLocations")) - .build(); - } - } - } - return getListLocationsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location> - getGetLocationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetLocation", - requestType = com.google.cloud.location.GetLocationRequest.class, - responseType = com.google.cloud.location.Location.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location> - getGetLocationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location> - getGetLocationMethod; - if ((getGetLocationMethod = LocationsGrpc.getGetLocationMethod) == null) { - synchronized (LocationsGrpc.class) { - if ((getGetLocationMethod = LocationsGrpc.getGetLocationMethod) == null) { - LocationsGrpc.getGetLocationMethod = - getGetLocationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLocation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.location.GetLocationRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.location.Location.getDefaultInstance())) - .setSchemaDescriptor(new LocationsMethodDescriptorSupplier("GetLocation")) - .build(); - } - } - } - return getGetLocationMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static LocationsStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public LocationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LocationsStub(channel, callOptions); - } - }; - return LocationsStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static LocationsBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public LocationsBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LocationsBlockingStub(channel, callOptions); - } - }; - return LocationsBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static LocationsFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public LocationsFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LocationsFutureStub(channel, callOptions); - } - }; - return LocationsFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * An abstract interface that provides location-related information for
-   * a service. Service-specific metadata is provided through the
-   * [Location.metadata][google.cloud.location.Location.metadata] field.
-   * 
- */ - public abstract static class LocationsImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists information about the supported locations for this service.
-     * 
- */ - public void listLocations( - com.google.cloud.location.ListLocationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListLocationsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets information about a location.
-     * 
- */ - public void getLocation( - com.google.cloud.location.GetLocationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetLocationMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListLocationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.location.ListLocationsRequest, - com.google.cloud.location.ListLocationsResponse>( - this, METHODID_LIST_LOCATIONS))) - .addMethod( - getGetLocationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.location.GetLocationRequest, - com.google.cloud.location.Location>(this, METHODID_GET_LOCATION))) - .build(); - } - } - - /** - * - * - *
-   * An abstract interface that provides location-related information for
-   * a service. Service-specific metadata is provided through the
-   * [Location.metadata][google.cloud.location.Location.metadata] field.
-   * 
- */ - public static final class LocationsStub extends io.grpc.stub.AbstractAsyncStub { - private LocationsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected LocationsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LocationsStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists information about the supported locations for this service.
-     * 
- */ - public void listLocations( - com.google.cloud.location.ListLocationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListLocationsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets information about a location.
-     * 
- */ - public void getLocation( - com.google.cloud.location.GetLocationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetLocationMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * An abstract interface that provides location-related information for
-   * a service. Service-specific metadata is provided through the
-   * [Location.metadata][google.cloud.location.Location.metadata] field.
-   * 
- */ - public static final class LocationsBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private LocationsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected LocationsBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LocationsBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists information about the supported locations for this service.
-     * 
- */ - public com.google.cloud.location.ListLocationsResponse listLocations( - com.google.cloud.location.ListLocationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListLocationsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets information about a location.
-     * 
- */ - public com.google.cloud.location.Location getLocation( - com.google.cloud.location.GetLocationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetLocationMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * An abstract interface that provides location-related information for
-   * a service. Service-specific metadata is provided through the
-   * [Location.metadata][google.cloud.location.Location.metadata] field.
-   * 
- */ - public static final class LocationsFutureStub - extends io.grpc.stub.AbstractFutureStub { - private LocationsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected LocationsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LocationsFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists information about the supported locations for this service.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.location.ListLocationsResponse> - listLocations(com.google.cloud.location.ListLocationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListLocationsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets information about a location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getLocation(com.google.cloud.location.GetLocationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetLocationMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_LOCATIONS = 0; - private static final int METHODID_GET_LOCATION = 1; - - 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 LocationsImplBase serviceImpl; - private final int methodId; - - MethodHandlers(LocationsImplBase 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_LOCATIONS: - serviceImpl.listLocations( - (com.google.cloud.location.ListLocationsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_LOCATION: - serviceImpl.getLocation( - (com.google.cloud.location.GetLocationRequest) 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 LocationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - LocationsBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.location.LocationsProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Locations"); - } - } - - private static final class LocationsFileDescriptorSupplier - extends LocationsBaseDescriptorSupplier { - LocationsFileDescriptorSupplier() {} - } - - private static final class LocationsMethodDescriptorSupplier - extends LocationsBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - LocationsMethodDescriptorSupplier(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 (LocationsGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new LocationsFileDescriptorSupplier()) - .addMethod(getListLocationsMethod()) - .addMethod(getGetLocationMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceGrpc.java b/grpc-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceGrpc.java index 88f3db3a..42a7770f 100644 --- a/grpc-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceGrpc.java +++ b/grpc-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ManagedNotebookServiceGrpc.java @@ -27,6 +27,7 @@ @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() {} diff --git a/grpc-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceGrpc.java b/grpc-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceGrpc.java index 15c975b3..eaff33d9 100644 --- a/grpc-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceGrpc.java +++ b/grpc-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/NotebookServiceGrpc.java @@ -27,6 +27,7 @@ @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() {} diff --git a/grpc-google-cloud-notebooks-v1beta1/pom.xml b/grpc-google-cloud-notebooks-v1beta1/pom.xml index 27b42cba..64b9cc57 100644 --- a/grpc-google-cloud-notebooks-v1beta1/pom.xml +++ b/grpc-google-cloud-notebooks-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-notebooks-v1beta1 - 0.6.0 + 0.6.1 grpc-google-cloud-notebooks-v1beta1 GRPC library for grpc-google-cloud-notebooks-v1beta1 com.google.cloud google-cloud-notebooks-parent - 0.6.0 + 0.6.1 diff --git a/grpc-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceGrpc.java b/grpc-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceGrpc.java index c2fabf0f..2858762a 100644 --- a/grpc-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceGrpc.java +++ b/grpc-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/NotebookServiceGrpc.java @@ -27,6 +27,7 @@ @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() {} diff --git a/pom.xml b/pom.xml index 742b7fd9..f3ef8a12 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-notebooks-parent pom - 0.6.0 + 0.6.1 Google AI Platform Notebooks Parent https://github.com/googleapis/java-notebooks @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.0.3 + 1.2.2 @@ -61,33 +61,33 @@ com.google.cloud google-cloud-notebooks - 0.6.0 + 0.6.1 com.google.api.grpc proto-google-cloud-notebooks-v1 - 0.6.0 + 0.6.1 com.google.api.grpc grpc-google-cloud-notebooks-v1 - 0.6.0 + 0.6.1 com.google.api.grpc proto-google-cloud-notebooks-v1beta1 - 0.6.0 + 0.6.1 com.google.api.grpc grpc-google-cloud-notebooks-v1beta1 - 0.6.0 + 0.6.1 com.google.cloud google-cloud-shared-dependencies - 2.3.0 + 2.5.1 pom import diff --git a/proto-google-cloud-notebooks-v1/clirr-ignored-differences.xml b/proto-google-cloud-notebooks-v1/clirr-ignored-differences.xml index 45196096..2b0ba25d 100644 --- a/proto-google-cloud-notebooks-v1/clirr-ignored-differences.xml +++ b/proto-google-cloud-notebooks-v1/clirr-ignored-differences.xml @@ -20,6 +20,10 @@ com/google/cloud/notebooks/v1/*OrBuilder * get*(*) + + com/google/cloud/location/* + 8001 + 7012 com/google/cloud/notebooks/v1/*OrBuilder diff --git a/proto-google-cloud-notebooks-v1/pom.xml b/proto-google-cloud-notebooks-v1/pom.xml index 5095e66f..20ce0780 100644 --- a/proto-google-cloud-notebooks-v1/pom.xml +++ b/proto-google-cloud-notebooks-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-notebooks-v1 - 0.6.0 + 0.6.1 proto-google-cloud-notebooks-v1 Proto library for google-cloud-notebooks com.google.cloud google-cloud-notebooks-parent - 0.6.0 + 0.6.1 diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/location/GetLocationRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/location/GetLocationRequest.java deleted file mode 100644 index 6b7c7e0a..00000000 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/location/GetLocationRequest.java +++ /dev/null @@ -1,634 +0,0 @@ -/* - * 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/location/locations.proto - -package com.google.cloud.location; - -/** - * - * - *
- * The request message for [Locations.GetLocation][google.cloud.location.Locations.GetLocation].
- * 
- * - * Protobuf type {@code google.cloud.location.GetLocationRequest} - */ -public final class GetLocationRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.location.GetLocationRequest) - GetLocationRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetLocationRequest.newBuilder() to construct. - private GetLocationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetLocationRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetLocationRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private GetLocationRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_GetLocationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.location.GetLocationRequest.class, - com.google.cloud.location.GetLocationRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Resource name for the location.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Resource name for the location.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.location.GetLocationRequest)) { - return super.equals(obj); - } - com.google.cloud.location.GetLocationRequest other = - (com.google.cloud.location.GetLocationRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.location.GetLocationRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.location.GetLocationRequest 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.location.GetLocationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.location.GetLocationRequest parseFrom( - 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.location.GetLocationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.location.GetLocationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.location.GetLocationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.location.GetLocationRequest 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.location.GetLocationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.location.GetLocationRequest 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.location.GetLocationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.location.GetLocationRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.location.GetLocationRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * The request message for [Locations.GetLocation][google.cloud.location.Locations.GetLocation].
-   * 
- * - * Protobuf type {@code google.cloud.location.GetLocationRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.location.GetLocationRequest) - com.google.cloud.location.GetLocationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_GetLocationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.location.GetLocationRequest.class, - com.google.cloud.location.GetLocationRequest.Builder.class); - } - - // Construct using com.google.cloud.location.GetLocationRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_GetLocationRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.location.GetLocationRequest getDefaultInstanceForType() { - return com.google.cloud.location.GetLocationRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.location.GetLocationRequest build() { - com.google.cloud.location.GetLocationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.location.GetLocationRequest buildPartial() { - com.google.cloud.location.GetLocationRequest result = - new com.google.cloud.location.GetLocationRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.location.GetLocationRequest) { - return mergeFrom((com.google.cloud.location.GetLocationRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.location.GetLocationRequest other) { - if (other == com.google.cloud.location.GetLocationRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.location.GetLocationRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.location.GetLocationRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Resource name for the location.
-     * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Resource name for the location.
-     * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Resource name for the location.
-     * 
- * - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Resource name for the location.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Resource name for the location.
-     * 
- * - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.location.GetLocationRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.location.GetLocationRequest) - private static final com.google.cloud.location.GetLocationRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.location.GetLocationRequest(); - } - - public static com.google.cloud.location.GetLocationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetLocationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetLocationRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.location.GetLocationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java deleted file mode 100644 index a8f3d0f9..00000000 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/location/GetLocationRequestOrBuilder.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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/location/locations.proto - -package com.google.cloud.location; - -public interface GetLocationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.location.GetLocationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Resource name for the location.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Resource name for the location.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/location/ListLocationsRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/location/ListLocationsRequest.java deleted file mode 100644 index e1b3af7f..00000000 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/location/ListLocationsRequest.java +++ /dev/null @@ -1,1082 +0,0 @@ -/* - * 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/location/locations.proto - -package com.google.cloud.location; - -/** - * - * - *
- * The request message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
- * 
- * - * Protobuf type {@code google.cloud.location.ListLocationsRequest} - */ -public final class ListLocationsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.location.ListLocationsRequest) - ListLocationsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListLocationsRequest.newBuilder() to construct. - private ListLocationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListLocationsRequest() { - name_ = ""; - filter_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListLocationsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListLocationsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.location.ListLocationsRequest.class, - com.google.cloud.location.ListLocationsRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The resource that owns the locations collection, if applicable.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The resource that owns the locations collection, if applicable.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; - /** - * - * - *
-   * The standard list filter.
-   * 
- * - * string filter = 2; - * - * @return The filter. - */ - @java.lang.Override - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } - } - /** - * - * - *
-   * The standard list filter.
-   * 
- * - * string filter = 2; - * - * @return The bytes for filter. - */ - @java.lang.Override - 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); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; - /** - * - * - *
-   * The standard list page size.
-   * 
- * - * int32 page_size = 3; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * The standard list page token.
-   * 
- * - * string page_token = 4; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - * - * - *
-   * The standard list page token.
-   * 
- * - * string page_token = 4; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!getFilterBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); - } - if (pageSize_ != 0) { - output.writeInt32(3, pageSize_); - } - if (!getPageTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!getFilterBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); - } - if (!getPageTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.location.ListLocationsRequest)) { - return super.equals(obj); - } - com.google.cloud.location.ListLocationsRequest other = - (com.google.cloud.location.ListLocationsRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.location.ListLocationsRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.location.ListLocationsRequest 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.location.ListLocationsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.location.ListLocationsRequest parseFrom( - 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.location.ListLocationsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.location.ListLocationsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.location.ListLocationsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.location.ListLocationsRequest 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.location.ListLocationsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.location.ListLocationsRequest 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.location.ListLocationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.location.ListLocationsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.location.ListLocationsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * The request message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
-   * 
- * - * Protobuf type {@code google.cloud.location.ListLocationsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.location.ListLocationsRequest) - com.google.cloud.location.ListLocationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.location.ListLocationsRequest.class, - com.google.cloud.location.ListLocationsRequest.Builder.class); - } - - // Construct using com.google.cloud.location.ListLocationsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - filter_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.location.ListLocationsRequest getDefaultInstanceForType() { - return com.google.cloud.location.ListLocationsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.location.ListLocationsRequest build() { - com.google.cloud.location.ListLocationsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.location.ListLocationsRequest buildPartial() { - com.google.cloud.location.ListLocationsRequest result = - new com.google.cloud.location.ListLocationsRequest(this); - result.name_ = name_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.location.ListLocationsRequest) { - return mergeFrom((com.google.cloud.location.ListLocationsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.location.ListLocationsRequest other) { - if (other == com.google.cloud.location.ListLocationsRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.location.ListLocationsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.location.ListLocationsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The resource that owns the locations collection, if applicable.
-     * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The resource that owns the locations collection, if applicable.
-     * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The resource that owns the locations collection, if applicable.
-     * 
- * - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The resource that owns the locations collection, if applicable.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The resource that owns the locations collection, if applicable.
-     * 
- * - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object filter_ = ""; - /** - * - * - *
-     * The standard list filter.
-     * 
- * - * string filter = 2; - * - * @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; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The standard list filter.
-     * 
- * - * string filter = 2; - * - * @return The bytes for filter. - */ - 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); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The standard list filter.
-     * 
- * - * string filter = 2; - * - * @param value The filter to set. - * @return This builder for chaining. - */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filter_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The standard list filter.
-     * 
- * - * string filter = 2; - * - * @return This builder for chaining. - */ - public Builder clearFilter() { - - filter_ = getDefaultInstance().getFilter(); - onChanged(); - return this; - } - /** - * - * - *
-     * The standard list filter.
-     * 
- * - * string filter = 2; - * - * @param value The bytes for filter to set. - * @return This builder for chaining. - */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filter_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * The standard list page size.
-     * 
- * - * int32 page_size = 3; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * The standard list page size.
-     * 
- * - * int32 page_size = 3; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The standard list page size.
-     * 
- * - * int32 page_size = 3; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * The standard list page token.
-     * 
- * - * string page_token = 4; - * - * @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; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The standard list page token.
-     * 
- * - * string page_token = 4; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The standard list page token.
-     * 
- * - * string page_token = 4; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The standard list page token.
-     * 
- * - * string page_token = 4; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * The standard list page token.
-     * 
- * - * string page_token = 4; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.location.ListLocationsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.location.ListLocationsRequest) - private static final com.google.cloud.location.ListLocationsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.location.ListLocationsRequest(); - } - - public static com.google.cloud.location.ListLocationsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLocationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListLocationsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.location.ListLocationsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java deleted file mode 100644 index 3a3f39a7..00000000 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/location/ListLocationsRequestOrBuilder.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * 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/location/locations.proto - -package com.google.cloud.location; - -public interface ListLocationsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.location.ListLocationsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The resource that owns the locations collection, if applicable.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The resource that owns the locations collection, if applicable.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * The standard list filter.
-   * 
- * - * string filter = 2; - * - * @return The filter. - */ - java.lang.String getFilter(); - /** - * - * - *
-   * The standard list filter.
-   * 
- * - * string filter = 2; - * - * @return The bytes for filter. - */ - com.google.protobuf.ByteString getFilterBytes(); - - /** - * - * - *
-   * The standard list page size.
-   * 
- * - * int32 page_size = 3; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * The standard list page token.
-   * 
- * - * string page_token = 4; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * The standard list page token.
-   * 
- * - * string page_token = 4; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/location/ListLocationsResponse.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/location/ListLocationsResponse.java deleted file mode 100644 index 8e7553c0..00000000 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/location/ListLocationsResponse.java +++ /dev/null @@ -1,1126 +0,0 @@ -/* - * 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/location/locations.proto - -package com.google.cloud.location; - -/** - * - * - *
- * The response message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
- * 
- * - * Protobuf type {@code google.cloud.location.ListLocationsResponse} - */ -public final class ListLocationsResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.location.ListLocationsResponse) - ListLocationsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListLocationsResponse.newBuilder() to construct. - private ListLocationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListLocationsResponse() { - locations_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListLocationsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private ListLocationsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - locations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - locations_.add( - input.readMessage( - com.google.cloud.location.Location.parser(), extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - locations_ = java.util.Collections.unmodifiableList(locations_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.location.ListLocationsResponse.class, - com.google.cloud.location.ListLocationsResponse.Builder.class); - } - - public static final int LOCATIONS_FIELD_NUMBER = 1; - private java.util.List locations_; - /** - * - * - *
-   * A list of locations that matches the specified filter in the request.
-   * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - @java.lang.Override - public java.util.List getLocationsList() { - return locations_; - } - /** - * - * - *
-   * A list of locations that matches the specified filter in the request.
-   * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - @java.lang.Override - public java.util.List - getLocationsOrBuilderList() { - return locations_; - } - /** - * - * - *
-   * A list of locations that matches the specified filter in the request.
-   * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - @java.lang.Override - public int getLocationsCount() { - return locations_.size(); - } - /** - * - * - *
-   * A list of locations that matches the specified filter in the request.
-   * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - @java.lang.Override - public com.google.cloud.location.Location getLocations(int index) { - return locations_.get(index); - } - /** - * - * - *
-   * A list of locations that matches the specified filter in the request.
-   * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - @java.lang.Override - public com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder(int index) { - return locations_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * The standard List next-page token.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * The standard List next-page token.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < locations_.size(); i++) { - output.writeMessage(1, locations_.get(i)); - } - if (!getNextPageTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < locations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, locations_.get(i)); - } - if (!getNextPageTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.location.ListLocationsResponse)) { - return super.equals(obj); - } - com.google.cloud.location.ListLocationsResponse other = - (com.google.cloud.location.ListLocationsResponse) obj; - - if (!getLocationsList().equals(other.getLocationsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getLocationsCount() > 0) { - hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; - hash = (53 * hash) + getLocationsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.location.ListLocationsResponse parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.location.ListLocationsResponse 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.location.ListLocationsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.location.ListLocationsResponse parseFrom( - 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.location.ListLocationsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.location.ListLocationsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.location.ListLocationsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.location.ListLocationsResponse 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.location.ListLocationsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.location.ListLocationsResponse 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.location.ListLocationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.location.ListLocationsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.location.ListLocationsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * The response message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations].
-   * 
- * - * Protobuf type {@code google.cloud.location.ListLocationsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.location.ListLocationsResponse) - com.google.cloud.location.ListLocationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.location.ListLocationsResponse.class, - com.google.cloud.location.ListLocationsResponse.Builder.class); - } - - // Construct using com.google.cloud.location.ListLocationsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getLocationsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (locationsBuilder_ == null) { - locations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - locationsBuilder_.clear(); - } - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_ListLocationsResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.location.ListLocationsResponse getDefaultInstanceForType() { - return com.google.cloud.location.ListLocationsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.location.ListLocationsResponse build() { - com.google.cloud.location.ListLocationsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.location.ListLocationsResponse buildPartial() { - com.google.cloud.location.ListLocationsResponse result = - new com.google.cloud.location.ListLocationsResponse(this); - int from_bitField0_ = bitField0_; - if (locationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - locations_ = java.util.Collections.unmodifiableList(locations_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.locations_ = locations_; - } else { - result.locations_ = locationsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.location.ListLocationsResponse) { - return mergeFrom((com.google.cloud.location.ListLocationsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.location.ListLocationsResponse other) { - if (other == com.google.cloud.location.ListLocationsResponse.getDefaultInstance()) - return this; - if (locationsBuilder_ == null) { - if (!other.locations_.isEmpty()) { - if (locations_.isEmpty()) { - locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLocationsIsMutable(); - locations_.addAll(other.locations_); - } - onChanged(); - } - } else { - if (!other.locations_.isEmpty()) { - if (locationsBuilder_.isEmpty()) { - locationsBuilder_.dispose(); - locationsBuilder_ = null; - locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00000001); - locationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getLocationsFieldBuilder() - : null; - } else { - locationsBuilder_.addAllMessages(other.locations_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.location.ListLocationsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.location.ListLocationsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.util.List locations_ = - java.util.Collections.emptyList(); - - private void ensureLocationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - locations_ = new java.util.ArrayList(locations_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.location.Location, - com.google.cloud.location.Location.Builder, - com.google.cloud.location.LocationOrBuilder> - locationsBuilder_; - - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public java.util.List getLocationsList() { - if (locationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(locations_); - } else { - return locationsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public int getLocationsCount() { - if (locationsBuilder_ == null) { - return locations_.size(); - } else { - return locationsBuilder_.getCount(); - } - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public com.google.cloud.location.Location getLocations(int index) { - if (locationsBuilder_ == null) { - return locations_.get(index); - } else { - return locationsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public Builder setLocations(int index, com.google.cloud.location.Location value) { - if (locationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.set(index, value); - onChanged(); - } else { - locationsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public Builder setLocations( - int index, com.google.cloud.location.Location.Builder builderForValue) { - if (locationsBuilder_ == null) { - ensureLocationsIsMutable(); - locations_.set(index, builderForValue.build()); - onChanged(); - } else { - locationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public Builder addLocations(com.google.cloud.location.Location value) { - if (locationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.add(value); - onChanged(); - } else { - locationsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public Builder addLocations(int index, com.google.cloud.location.Location value) { - if (locationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLocationsIsMutable(); - locations_.add(index, value); - onChanged(); - } else { - locationsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public Builder addLocations(com.google.cloud.location.Location.Builder builderForValue) { - if (locationsBuilder_ == null) { - ensureLocationsIsMutable(); - locations_.add(builderForValue.build()); - onChanged(); - } else { - locationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public Builder addLocations( - int index, com.google.cloud.location.Location.Builder builderForValue) { - if (locationsBuilder_ == null) { - ensureLocationsIsMutable(); - locations_.add(index, builderForValue.build()); - onChanged(); - } else { - locationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public Builder addAllLocations( - java.lang.Iterable values) { - if (locationsBuilder_ == null) { - ensureLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, locations_); - onChanged(); - } else { - locationsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public Builder clearLocations() { - if (locationsBuilder_ == null) { - locations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - locationsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public Builder removeLocations(int index) { - if (locationsBuilder_ == null) { - ensureLocationsIsMutable(); - locations_.remove(index); - onChanged(); - } else { - locationsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public com.google.cloud.location.Location.Builder getLocationsBuilder(int index) { - return getLocationsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder(int index) { - if (locationsBuilder_ == null) { - return locations_.get(index); - } else { - return locationsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public java.util.List - getLocationsOrBuilderList() { - if (locationsBuilder_ != null) { - return locationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(locations_); - } - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public com.google.cloud.location.Location.Builder addLocationsBuilder() { - return getLocationsFieldBuilder() - .addBuilder(com.google.cloud.location.Location.getDefaultInstance()); - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public com.google.cloud.location.Location.Builder addLocationsBuilder(int index) { - return getLocationsFieldBuilder() - .addBuilder(index, com.google.cloud.location.Location.getDefaultInstance()); - } - /** - * - * - *
-     * A list of locations that matches the specified filter in the request.
-     * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - public java.util.List getLocationsBuilderList() { - return getLocationsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.location.Location, - com.google.cloud.location.Location.Builder, - com.google.cloud.location.LocationOrBuilder> - getLocationsFieldBuilder() { - if (locationsBuilder_ == null) { - locationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.location.Location, - com.google.cloud.location.Location.Builder, - com.google.cloud.location.LocationOrBuilder>( - locations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - locations_ = null; - } - return locationsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * The standard List next-page token.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The standard List next-page token.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The standard List next-page token.
-     * 
- * - * string next_page_token = 2; - * - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The standard List next-page token.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * The standard List next-page token.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.location.ListLocationsResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.location.ListLocationsResponse) - private static final com.google.cloud.location.ListLocationsResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.location.ListLocationsResponse(); - } - - public static com.google.cloud.location.ListLocationsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListLocationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListLocationsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.location.ListLocationsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java deleted file mode 100644 index 704771cc..00000000 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/location/ListLocationsResponseOrBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * 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/location/locations.proto - -package com.google.cloud.location; - -public interface ListLocationsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.location.ListLocationsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A list of locations that matches the specified filter in the request.
-   * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - java.util.List getLocationsList(); - /** - * - * - *
-   * A list of locations that matches the specified filter in the request.
-   * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - com.google.cloud.location.Location getLocations(int index); - /** - * - * - *
-   * A list of locations that matches the specified filter in the request.
-   * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - int getLocationsCount(); - /** - * - * - *
-   * A list of locations that matches the specified filter in the request.
-   * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - java.util.List getLocationsOrBuilderList(); - /** - * - * - *
-   * A list of locations that matches the specified filter in the request.
-   * 
- * - * repeated .google.cloud.location.Location locations = 1; - */ - com.google.cloud.location.LocationOrBuilder getLocationsOrBuilder(int index); - - /** - * - * - *
-   * The standard List next-page token.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * The standard List next-page token.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/location/Location.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/location/Location.java deleted file mode 100644 index 7b7bfc86..00000000 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/location/Location.java +++ /dev/null @@ -1,1615 +0,0 @@ -/* - * 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/location/locations.proto - -package com.google.cloud.location; - -/** - * - * - *
- * A resource that represents Google Cloud Platform location.
- * 
- * - * Protobuf type {@code google.cloud.location.Location} - */ -public final class Location extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.location.Location) - LocationOrBuilder { - private static final long serialVersionUID = 0L; - // Use Location.newBuilder() to construct. - private Location(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Location() { - name_ = ""; - locationId_ = ""; - displayName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Location(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Location( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; - } - case 26: - { - com.google.protobuf.Any.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - locationId_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_Location_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 2: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_Location_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.location.Location.class, - com.google.cloud.location.Location.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Resource name for the location, which may vary between implementations.
-   * For example: `"projects/example-project/locations/us-east1"`
-   * 
- * - * string name = 1; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Resource name for the location, which may vary between implementations.
-   * For example: `"projects/example-project/locations/us-east1"`
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOCATION_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object locationId_; - /** - * - * - *
-   * The canonical id for this location. For example: `"us-east1"`.
-   * 
- * - * string location_id = 4; - * - * @return The locationId. - */ - @java.lang.Override - public java.lang.String getLocationId() { - java.lang.Object ref = locationId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - locationId_ = s; - return s; - } - } - /** - * - * - *
-   * The canonical id for this location. For example: `"us-east1"`.
-   * 
- * - * string location_id = 4; - * - * @return The bytes for locationId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getLocationIdBytes() { - java.lang.Object ref = locationId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - locationId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 5; - private volatile java.lang.Object displayName_; - /** - * - * - *
-   * The friendly name for this location, typically a nearby city name.
-   * For example, "Tokyo".
-   * 
- * - * string display_name = 5; - * - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - * - * - *
-   * The friendly name for this location, typically a nearby city name.
-   * For example, "Tokyo".
-   * 
- * - * string display_name = 5; - * - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LABELS_FIELD_NUMBER = 2; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_Location_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 labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * - * - *
-   * Cross-service attributes for the location. For example
-   *     {"cloud.googleapis.com/region": "us-east1"}
-   * 
- * - * map<string, string> labels = 2; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-   * Cross-service attributes for the location. For example
-   *     {"cloud.googleapis.com/region": "us-east1"}
-   * 
- * - * map<string, string> labels = 2; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-   * Cross-service attributes for the location. For example
-   *     {"cloud.googleapis.com/region": "us-east1"}
-   * 
- * - * 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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * Cross-service attributes for the location. For example
-   *     {"cloud.googleapis.com/region": "us-east1"}
-   * 
- * - * map<string, string> labels = 2; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int METADATA_FIELD_NUMBER = 3; - private com.google.protobuf.Any metadata_; - /** - * - * - *
-   * Service-specific metadata. For example the available capacity at the given
-   * location.
-   * 
- * - * .google.protobuf.Any metadata = 3; - * - * @return Whether the metadata field is set. - */ - @java.lang.Override - public boolean hasMetadata() { - return metadata_ != null; - } - /** - * - * - *
-   * Service-specific metadata. For example the available capacity at the given
-   * location.
-   * 
- * - * .google.protobuf.Any metadata = 3; - * - * @return The metadata. - */ - @java.lang.Override - public com.google.protobuf.Any getMetadata() { - return metadata_ == null ? com.google.protobuf.Any.getDefaultInstance() : metadata_; - } - /** - * - * - *
-   * Service-specific metadata. For example the available capacity at the given
-   * location.
-   * 
- * - * .google.protobuf.Any metadata = 3; - */ - @java.lang.Override - public com.google.protobuf.AnyOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 2); - if (metadata_ != null) { - output.writeMessage(3, getMetadata()); - } - if (!getLocationIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, locationId_); - } - if (!getDisplayNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - 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__); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata()); - } - if (!getLocationIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, locationId_); - } - if (!getDisplayNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.location.Location)) { - return super.equals(obj); - } - com.google.cloud.location.Location other = (com.google.cloud.location.Location) obj; - - if (!getName().equals(other.getName())) return false; - if (!getLocationId().equals(other.getLocationId())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata().equals(other.getMetadata())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + LOCATION_ID_FIELD_NUMBER; - hash = (53 * hash) + getLocationId().hashCode(); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.location.Location parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.location.Location 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.location.Location parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.location.Location parseFrom( - 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.location.Location parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.location.Location parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.location.Location parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.location.Location 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.location.Location parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.location.Location 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.location.Location parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.location.Location parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.location.Location prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * A resource that represents Google Cloud Platform location.
-   * 
- * - * Protobuf type {@code google.cloud.location.Location} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.location.Location) - com.google.cloud.location.LocationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_Location_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 2: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 2: - return internalGetMutableLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_Location_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.location.Location.class, - com.google.cloud.location.Location.Builder.class); - } - - // Construct using com.google.cloud.location.Location.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - locationId_ = ""; - - displayName_ = ""; - - internalGetMutableLabels().clear(); - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.location.LocationsProto - .internal_static_google_cloud_location_Location_descriptor; - } - - @java.lang.Override - public com.google.cloud.location.Location getDefaultInstanceForType() { - return com.google.cloud.location.Location.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.location.Location build() { - com.google.cloud.location.Location result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.location.Location buildPartial() { - com.google.cloud.location.Location result = new com.google.cloud.location.Location(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.locationId_ = locationId_; - result.displayName_ = displayName_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.location.Location) { - return mergeFrom((com.google.cloud.location.Location) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.location.Location other) { - if (other == com.google.cloud.location.Location.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getLocationId().isEmpty()) { - locationId_ = other.locationId_; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - onChanged(); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.location.Location parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.location.Location) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Resource name for the location, which may vary between implementations.
-     * For example: `"projects/example-project/locations/us-east1"`
-     * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Resource name for the location, which may vary between implementations.
-     * For example: `"projects/example-project/locations/us-east1"`
-     * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Resource name for the location, which may vary between implementations.
-     * For example: `"projects/example-project/locations/us-east1"`
-     * 
- * - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Resource name for the location, which may vary between implementations.
-     * For example: `"projects/example-project/locations/us-east1"`
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Resource name for the location, which may vary between implementations.
-     * For example: `"projects/example-project/locations/us-east1"`
-     * 
- * - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object locationId_ = ""; - /** - * - * - *
-     * The canonical id for this location. For example: `"us-east1"`.
-     * 
- * - * string location_id = 4; - * - * @return The locationId. - */ - public java.lang.String getLocationId() { - java.lang.Object ref = locationId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - locationId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The canonical id for this location. For example: `"us-east1"`.
-     * 
- * - * string location_id = 4; - * - * @return The bytes for locationId. - */ - public com.google.protobuf.ByteString getLocationIdBytes() { - java.lang.Object ref = locationId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - locationId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The canonical id for this location. For example: `"us-east1"`.
-     * 
- * - * string location_id = 4; - * - * @param value The locationId to set. - * @return This builder for chaining. - */ - public Builder setLocationId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - locationId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The canonical id for this location. For example: `"us-east1"`.
-     * 
- * - * string location_id = 4; - * - * @return This builder for chaining. - */ - public Builder clearLocationId() { - - locationId_ = getDefaultInstance().getLocationId(); - onChanged(); - return this; - } - /** - * - * - *
-     * The canonical id for this location. For example: `"us-east1"`.
-     * 
- * - * string location_id = 4; - * - * @param value The bytes for locationId to set. - * @return This builder for chaining. - */ - public Builder setLocationIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - locationId_ = value; - onChanged(); - return this; - } - - private java.lang.Object displayName_ = ""; - /** - * - * - *
-     * The friendly name for this location, typically a nearby city name.
-     * For example, "Tokyo".
-     * 
- * - * string display_name = 5; - * - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The friendly name for this location, typically a nearby city name.
-     * For example, "Tokyo".
-     * 
- * - * string display_name = 5; - * - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The friendly name for this location, typically a nearby city name.
-     * For example, "Tokyo".
-     * 
- * - * string display_name = 5; - * - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - displayName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The friendly name for this location, typically a nearby city name.
-     * For example, "Tokyo".
-     * 
- * - * string display_name = 5; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - - displayName_ = getDefaultInstance().getDisplayName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The friendly name for this location, typically a nearby city name.
-     * For example, "Tokyo".
-     * 
- * - * string display_name = 5; - * - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - displayName_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged(); - ; - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - * - * - *
-     * Cross-service attributes for the location. For example
-     *     {"cloud.googleapis.com/region": "us-east1"}
-     * 
- * - * map<string, string> labels = 2; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - * - * - *
-     * Cross-service attributes for the location. For example
-     *     {"cloud.googleapis.com/region": "us-east1"}
-     * 
- * - * map<string, string> labels = 2; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - * - * - *
-     * Cross-service attributes for the location. For example
-     *     {"cloud.googleapis.com/region": "us-east1"}
-     * 
- * - * 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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * Cross-service attributes for the location. For example
-     *     {"cloud.googleapis.com/region": "us-east1"}
-     * 
- * - * map<string, string> labels = 2; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * Cross-service attributes for the location. For example
-     *     {"cloud.googleapis.com/region": "us-east1"}
-     * 
- * - * map<string, string> labels = 2; - */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - return internalGetMutableLabels().getMutableMap(); - } - /** - * - * - *
-     * Cross-service attributes for the location. For example
-     *     {"cloud.googleapis.com/region": "us-east1"}
-     * 
- * - * map<string, string> labels = 2; - */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * Cross-service attributes for the location. For example
-     *     {"cloud.googleapis.com/region": "us-east1"}
-     * 
- * - * map<string, string> labels = 2; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - return this; - } - - private com.google.protobuf.Any metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, - com.google.protobuf.Any.Builder, - com.google.protobuf.AnyOrBuilder> - metadataBuilder_; - /** - * - * - *
-     * Service-specific metadata. For example the available capacity at the given
-     * location.
-     * 
- * - * .google.protobuf.Any metadata = 3; - * - * @return Whether the metadata field is set. - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - * - * - *
-     * Service-specific metadata. For example the available capacity at the given
-     * location.
-     * 
- * - * .google.protobuf.Any metadata = 3; - * - * @return The metadata. - */ - public com.google.protobuf.Any getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.protobuf.Any.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Service-specific metadata. For example the available capacity at the given
-     * location.
-     * 
- * - * .google.protobuf.Any metadata = 3; - */ - public Builder setMetadata(com.google.protobuf.Any value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Service-specific metadata. For example the available capacity at the given
-     * location.
-     * 
- * - * .google.protobuf.Any metadata = 3; - */ - public Builder setMetadata(com.google.protobuf.Any.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Service-specific metadata. For example the available capacity at the given
-     * location.
-     * 
- * - * .google.protobuf.Any metadata = 3; - */ - public Builder mergeMetadata(com.google.protobuf.Any value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = com.google.protobuf.Any.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Service-specific metadata. For example the available capacity at the given
-     * location.
-     * 
- * - * .google.protobuf.Any metadata = 3; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Service-specific metadata. For example the available capacity at the given
-     * location.
-     * 
- * - * .google.protobuf.Any metadata = 3; - */ - public com.google.protobuf.Any.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Service-specific metadata. For example the available capacity at the given
-     * location.
-     * 
- * - * .google.protobuf.Any metadata = 3; - */ - public com.google.protobuf.AnyOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? com.google.protobuf.Any.getDefaultInstance() : metadata_; - } - } - /** - * - * - *
-     * Service-specific metadata. For example the available capacity at the given
-     * location.
-     * 
- * - * .google.protobuf.Any metadata = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, - com.google.protobuf.Any.Builder, - com.google.protobuf.AnyOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, - com.google.protobuf.Any.Builder, - com.google.protobuf.AnyOrBuilder>(getMetadata(), getParentForChildren(), isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.location.Location) - } - - // @@protoc_insertion_point(class_scope:google.cloud.location.Location) - private static final com.google.cloud.location.Location DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.location.Location(); - } - - public static com.google.cloud.location.Location getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Location parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Location(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.location.Location getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/location/LocationOrBuilder.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/location/LocationOrBuilder.java deleted file mode 100644 index 98ab25de..00000000 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/location/LocationOrBuilder.java +++ /dev/null @@ -1,201 +0,0 @@ -/* - * 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/location/locations.proto - -package com.google.cloud.location; - -public interface LocationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.location.Location) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Resource name for the location, which may vary between implementations.
-   * For example: `"projects/example-project/locations/us-east1"`
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Resource name for the location, which may vary between implementations.
-   * For example: `"projects/example-project/locations/us-east1"`
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * The canonical id for this location. For example: `"us-east1"`.
-   * 
- * - * string location_id = 4; - * - * @return The locationId. - */ - java.lang.String getLocationId(); - /** - * - * - *
-   * The canonical id for this location. For example: `"us-east1"`.
-   * 
- * - * string location_id = 4; - * - * @return The bytes for locationId. - */ - com.google.protobuf.ByteString getLocationIdBytes(); - - /** - * - * - *
-   * The friendly name for this location, typically a nearby city name.
-   * For example, "Tokyo".
-   * 
- * - * string display_name = 5; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - * - * - *
-   * The friendly name for this location, typically a nearby city name.
-   * For example, "Tokyo".
-   * 
- * - * string display_name = 5; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - - /** - * - * - *
-   * Cross-service attributes for the location. For example
-   *     {"cloud.googleapis.com/region": "us-east1"}
-   * 
- * - * map<string, string> labels = 2; - */ - int getLabelsCount(); - /** - * - * - *
-   * Cross-service attributes for the location. For example
-   *     {"cloud.googleapis.com/region": "us-east1"}
-   * 
- * - * map<string, string> labels = 2; - */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - /** - * - * - *
-   * Cross-service attributes for the location. For example
-   *     {"cloud.googleapis.com/region": "us-east1"}
-   * 
- * - * map<string, string> labels = 2; - */ - java.util.Map getLabelsMap(); - /** - * - * - *
-   * Cross-service attributes for the location. For example
-   *     {"cloud.googleapis.com/region": "us-east1"}
-   * 
- * - * map<string, string> labels = 2; - */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); - /** - * - * - *
-   * Cross-service attributes for the location. For example
-   *     {"cloud.googleapis.com/region": "us-east1"}
-   * 
- * - * map<string, string> labels = 2; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Service-specific metadata. For example the available capacity at the given
-   * location.
-   * 
- * - * .google.protobuf.Any metadata = 3; - * - * @return Whether the metadata field is set. - */ - boolean hasMetadata(); - /** - * - * - *
-   * Service-specific metadata. For example the available capacity at the given
-   * location.
-   * 
- * - * .google.protobuf.Any metadata = 3; - * - * @return The metadata. - */ - com.google.protobuf.Any getMetadata(); - /** - * - * - *
-   * Service-specific metadata. For example the available capacity at the given
-   * location.
-   * 
- * - * .google.protobuf.Any metadata = 3; - */ - com.google.protobuf.AnyOrBuilder getMetadataOrBuilder(); -} diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/location/LocationsProto.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/location/LocationsProto.java deleted file mode 100644 index d2b6da30..00000000 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/location/LocationsProto.java +++ /dev/null @@ -1,150 +0,0 @@ -/* - * 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/location/locations.proto - -package com.google.cloud.location; - -public final class LocationsProto { - private LocationsProto() {} - - 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_location_ListLocationsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_location_ListLocationsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_location_GetLocationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_location_Location_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_Location_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_location_Location_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_location_Location_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/location/locations.proto\022" - + "\025google.cloud.location\032\034google/api/annot" - + "ations.proto\032\031google/protobuf/any.proto\032" - + "\027google/api/client.proto\"[\n\024ListLocation" - + "sRequest\022\014\n\004name\030\001 \001(\t\022\016\n\006filter\030\002 \001(\t\022\021" - + "\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"d\n" - + "\025ListLocationsResponse\0222\n\tlocations\030\001 \003(" - + "\0132\037.google.cloud.location.Location\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t\"\"\n\022GetLocationReques" - + "t\022\014\n\004name\030\001 \001(\t\"\327\001\n\010Location\022\014\n\004name\030\001 \001" - + "(\t\022\023\n\013location_id\030\004 \001(\t\022\024\n\014display_name\030" - + "\005 \001(\t\022;\n\006labels\030\002 \003(\0132+.google.cloud.loc" - + "ation.Location.LabelsEntry\022&\n\010metadata\030\003" - + " \001(\0132\024.google.protobuf.Any\032-\n\013LabelsEntr" - + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\0012\244\003\n\tLo" - + "cations\022\253\001\n\rListLocations\022+.google.cloud" - + ".location.ListLocationsRequest\032,.google." - + "cloud.location.ListLocationsResponse\"?\202\323" - + "\344\223\0029\022\024/v1/{name=locations}Z!\022\037/v1/{name=" - + "projects/*}/locations\022\236\001\n\013GetLocation\022)." - + "google.cloud.location.GetLocationRequest" - + "\032\037.google.cloud.location.Location\"C\202\323\344\223\002" - + "=\022\026/v1/{name=locations/*}Z#\022!/v1/{name=p" - + "rojects/*/locations/*}\032H\312A\024cloud.googlea" - + "pis.com\322A.https://www.googleapis.com/aut" - + "h/cloud-platformBo\n\031com.google.cloud.loc" - + "ationB\016LocationsProtoP\001Z=google.golang.o" - + "rg/genproto/googleapis/cloud/location;lo" - + "cation\370\001\001b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - }); - internal_static_google_cloud_location_ListLocationsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_location_ListLocationsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_ListLocationsRequest_descriptor, - new java.lang.String[] { - "Name", "Filter", "PageSize", "PageToken", - }); - internal_static_google_cloud_location_ListLocationsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_location_ListLocationsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_ListLocationsResponse_descriptor, - new java.lang.String[] { - "Locations", "NextPageToken", - }); - internal_static_google_cloud_location_GetLocationRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_location_GetLocationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_GetLocationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_location_Location_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_location_Location_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_Location_descriptor, - new java.lang.String[] { - "Name", "LocationId", "DisplayName", "Labels", "Metadata", - }); - internal_static_google_cloud_location_Location_LabelsEntry_descriptor = - internal_static_google_cloud_location_Location_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_location_Location_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_location_Location_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.oauthScopes); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ContainerImage.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ContainerImage.java index 69434695..3061fd5e 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ContainerImage.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ContainerImage.java @@ -236,10 +236,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getRepositoryBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repository_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, repository_); } - if (!getTagBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tag_); } unknownFields.writeTo(output); @@ -251,10 +251,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getRepositoryBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repository_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, repository_); } - if (!getTagBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tag_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateEnvironmentRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateEnvironmentRequest.java index f7170573..b129f61b 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateEnvironmentRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateEnvironmentRequest.java @@ -307,10 +307,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (!getEnvironmentIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, environmentId_); } if (environment_ != null) { @@ -325,10 +325,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (!getEnvironmentIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, environmentId_); } if (environment_ != null) { diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateExecutionRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateExecutionRequest.java index b0e6ea01..fd8f913e 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateExecutionRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateExecutionRequest.java @@ -307,10 +307,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (!getExecutionIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(executionId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, executionId_); } if (execution_ != null) { @@ -325,10 +325,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (!getExecutionIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(executionId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, executionId_); } if (execution_ != null) { diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateInstanceRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateInstanceRequest.java index da6101cf..4f238930 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateInstanceRequest.java @@ -303,10 +303,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (!getInstanceIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceId_); } if (instance_ != null) { @@ -321,10 +321,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (!getInstanceIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_); } if (instance_ != null) { diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateRuntimeRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateRuntimeRequest.java index bdf6d50b..d957c543 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateRuntimeRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateRuntimeRequest.java @@ -302,10 +302,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (!getRuntimeIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runtimeId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, runtimeId_); } if (runtime_ != null) { @@ -320,10 +320,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (!getRuntimeIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runtimeId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, runtimeId_); } if (runtime_ != null) { diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateScheduleRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateScheduleRequest.java index b673bb80..24cbd934 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateScheduleRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/CreateScheduleRequest.java @@ -307,10 +307,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (!getScheduleIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scheduleId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, scheduleId_); } if (schedule_ != null) { @@ -325,10 +325,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (!getScheduleIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scheduleId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, scheduleId_); } if (schedule_ != null) { diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteEnvironmentRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteEnvironmentRequest.java index c2ec7898..0e4f3425 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteEnvironmentRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteEnvironmentRequest.java @@ -176,7 +176,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -188,7 +188,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteExecutionRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteExecutionRequest.java index 4de3e3e8..2f5a7f42 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteExecutionRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteExecutionRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteInstanceRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteInstanceRequest.java index 49fc1cf3..a7cc9323 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteInstanceRequest.java @@ -176,7 +176,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -188,7 +188,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteRuntimeRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteRuntimeRequest.java index 8bec7ca6..74eb4be9 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteRuntimeRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteRuntimeRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteScheduleRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteScheduleRequest.java index 64fbd29d..baf3a38c 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteScheduleRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/DeleteScheduleRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EncryptionConfig.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EncryptionConfig.java index c2cf6ca4..cd1242fc 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EncryptionConfig.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/EncryptionConfig.java @@ -181,7 +181,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getKmsKeyBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kmsKey_); } unknownFields.writeTo(output); @@ -193,7 +193,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getKmsKeyBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kmsKey_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Environment.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Environment.java index 23dff700..e83c6787 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Environment.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Environment.java @@ -600,13 +600,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } if (imageTypeCase_ == 6) { @@ -615,7 +615,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (imageTypeCase_ == 7) { output.writeMessage(7, (com.google.cloud.notebooks.v1.ContainerImage) imageType_); } - if (!getPostStartupScriptBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postStartupScript_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, postStartupScript_); } if (createTime_ != null) { @@ -630,13 +630,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (imageTypeCase_ == 6) { @@ -649,7 +649,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 7, (com.google.cloud.notebooks.v1.ContainerImage) imageType_); } - if (!getPostStartupScriptBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postStartupScript_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, postStartupScript_); } if (createTime_ != null) { diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Execution.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Execution.java index 08c9fe71..a0b06e47 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Execution.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Execution.java @@ -571,7 +571,7 @@ public com.google.cloud.notebooks.v1.ExecutionTemplateOrBuilder getExecutionTemp * *
    * Output only. The resource name of the execute. Format:
-   * `projects/{project_id}/locations/{location}/execution/{execution_id}
+   * `projects/{project_id}/locations/{location}/execution/{execution_id}`
    * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -595,7 +595,7 @@ public java.lang.String getName() { * *
    * Output only. The resource name of the execute. Format:
-   * `projects/{project_id}/locations/{location}/execution/{execution_id}
+   * `projects/{project_id}/locations/{location}/execution/{execution_id}`
    * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -968,13 +968,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (executionTemplate_ != null) { output.writeMessage(1, getExecutionTemplate()); } - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); } if (createTime_ != null) { @@ -986,10 +986,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (state_ != com.google.cloud.notebooks.v1.Execution.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(7, state_); } - if (!getOutputNotebookFileBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputNotebookFile_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, outputNotebookFile_); } - if (!getJobUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, jobUri_); } unknownFields.writeTo(output); @@ -1004,13 +1004,13 @@ public int getSerializedSize() { if (executionTemplate_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getExecutionTemplate()); } - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } if (createTime_ != null) { @@ -1022,10 +1022,10 @@ public int getSerializedSize() { if (state_ != com.google.cloud.notebooks.v1.Execution.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); } - if (!getOutputNotebookFileBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputNotebookFile_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, outputNotebookFile_); } - if (!getJobUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, jobUri_); } size += unknownFields.getSerializedSize(); @@ -1622,7 +1622,7 @@ public com.google.cloud.notebooks.v1.ExecutionTemplate.Builder getExecutionTempl * *
      * Output only. The resource name of the execute. Format:
-     * `projects/{project_id}/locations/{location}/execution/{execution_id}
+     * `projects/{project_id}/locations/{location}/execution/{execution_id}`
      * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1645,7 +1645,7 @@ public java.lang.String getName() { * *
      * Output only. The resource name of the execute. Format:
-     * `projects/{project_id}/locations/{location}/execution/{execution_id}
+     * `projects/{project_id}/locations/{location}/execution/{execution_id}`
      * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1668,7 +1668,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Output only. The resource name of the execute. Format:
-     * `projects/{project_id}/locations/{location}/execution/{execution_id}
+     * `projects/{project_id}/locations/{location}/execution/{execution_id}`
      * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1690,7 +1690,7 @@ public Builder setName(java.lang.String value) { * *
      * Output only. The resource name of the execute. Format:
-     * `projects/{project_id}/locations/{location}/execution/{execution_id}
+     * `projects/{project_id}/locations/{location}/execution/{execution_id}`
      * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1708,7 +1708,7 @@ public Builder clearName() { * *
      * Output only. The resource name of the execute. Format:
-     * `projects/{project_id}/locations/{location}/execution/{execution_id}
+     * `projects/{project_id}/locations/{location}/execution/{execution_id}`
      * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionOrBuilder.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionOrBuilder.java index 1fbf4964..78c0702a 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionOrBuilder.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionOrBuilder.java @@ -63,7 +63,7 @@ public interface ExecutionOrBuilder * *
    * Output only. The resource name of the execute. Format:
-   * `projects/{project_id}/locations/{location}/execution/{execution_id}
+   * `projects/{project_id}/locations/{location}/execution/{execution_id}`
    * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -76,7 +76,7 @@ public interface ExecutionOrBuilder * *
    * Output only. The resource name of the execute. Format:
-   * `projects/{project_id}/locations/{location}/execution/{execution_id}
+   * `projects/{project_id}/locations/{location}/execution/{execution_id}`
    * 
* * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionTemplate.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionTemplate.java index 8dbb4a2d..19b8b48b 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionTemplate.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionTemplate.java @@ -1741,7 +1741,7 @@ public interface DataprocParametersOrBuilder * *
      * URI for cluster used to run Dataproc execution.
-     * Format: 'projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}
+     * Format: `projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}`
      * 
* * string cluster = 1; @@ -1754,7 +1754,7 @@ public interface DataprocParametersOrBuilder * *
      * URI for cluster used to run Dataproc execution.
-     * Format: 'projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}
+     * Format: `projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}`
      * 
* * string cluster = 1; @@ -1863,7 +1863,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
      * URI for cluster used to run Dataproc execution.
-     * Format: 'projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}
+     * Format: `projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}`
      * 
* * string cluster = 1; @@ -1887,7 +1887,7 @@ public java.lang.String getCluster() { * *
      * URI for cluster used to run Dataproc execution.
-     * Format: 'projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}
+     * Format: `projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}`
      * 
* * string cluster = 1; @@ -1921,7 +1921,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getClusterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cluster_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cluster_); } unknownFields.writeTo(output); @@ -1933,7 +1933,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getClusterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cluster_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cluster_); } size += unknownFields.getSerializedSize(); @@ -2244,7 +2244,7 @@ public Builder mergeFrom( * *
        * URI for cluster used to run Dataproc execution.
-       * Format: 'projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}
+       * Format: `projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}`
        * 
* * string cluster = 1; @@ -2267,7 +2267,7 @@ public java.lang.String getCluster() { * *
        * URI for cluster used to run Dataproc execution.
-       * Format: 'projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}
+       * Format: `projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}`
        * 
* * string cluster = 1; @@ -2290,7 +2290,7 @@ public com.google.protobuf.ByteString getClusterBytes() { * *
        * URI for cluster used to run Dataproc execution.
-       * Format: 'projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}
+       * Format: `projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}`
        * 
* * string cluster = 1; @@ -2312,7 +2312,7 @@ public Builder setCluster(java.lang.String value) { * *
        * URI for cluster used to run Dataproc execution.
-       * Format: 'projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}
+       * Format: `projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}`
        * 
* * string cluster = 1; @@ -2330,7 +2330,7 @@ public Builder clearCluster() { * *
        * URI for cluster used to run Dataproc execution.
-       * Format: 'projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}
+       * Format: `projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}`
        * 
* * string cluster = 1; @@ -2804,8 +2804,8 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { *
    * Path to the notebook file to execute.
    * Must be in a Google Cloud Storage bucket.
-   * Format: gs://{project_id}/{folder}/{notebook_file_name}
-   * Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook.ipynb
+   * Format: `gs://{project_id}/{folder}/{notebook_file_name}`
+   * Ex: `gs://notebook_user/scheduled_notebooks/sentiment_notebook.ipynb`
    * 
* * string input_notebook_file = 5; @@ -2830,8 +2830,8 @@ public java.lang.String getInputNotebookFile() { *
    * Path to the notebook file to execute.
    * Must be in a Google Cloud Storage bucket.
-   * Format: gs://{project_id}/{folder}/{notebook_file_name}
-   * Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook.ipynb
+   * Format: `gs://{project_id}/{folder}/{notebook_file_name}`
+   * Ex: `gs://notebook_user/scheduled_notebooks/sentiment_notebook.ipynb`
    * 
* * string input_notebook_file = 5; @@ -2914,8 +2914,8 @@ public com.google.protobuf.ByteString getContainerImageUriBytes() { *
    * Path to the notebook folder to write to.
    * Must be in a Google Cloud Storage bucket path.
-   * Format: gs://{project_id}/{folder}
-   * Ex: gs://notebook_user/scheduled_notebooks
+   * Format: `gs://{project_id}/{folder}`
+   * Ex: `gs://notebook_user/scheduled_notebooks`
    * 
* * string output_notebook_folder = 7; @@ -2940,8 +2940,8 @@ public java.lang.String getOutputNotebookFolder() { *
    * Path to the notebook folder to write to.
    * Must be in a Google Cloud Storage bucket path.
-   * Format: gs://{project_id}/{folder}
-   * Ex: gs://notebook_user/scheduled_notebooks
+   * Format: `gs://{project_id}/{folder}`
+   * Ex: `gs://notebook_user/scheduled_notebooks`
    * 
* * string output_notebook_folder = 7; @@ -2971,7 +2971,7 @@ public com.google.protobuf.ByteString getOutputNotebookFolderBytes() { * Ref https://papermill.readthedocs.io/en/latest/usage-parameterize.html on * how to specifying parameters in the input notebook and pass them here * in an YAML file. - * Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook_params.yaml + * Ex: `gs://notebook_user/scheduled_notebooks/sentiment_notebook_params.yaml` *
* * string params_yaml_file = 8; @@ -2998,7 +2998,7 @@ public java.lang.String getParamsYamlFile() { * Ref https://papermill.readthedocs.io/en/latest/usage-parameterize.html on * how to specifying parameters in the input notebook and pass them here * in an YAML file. - * Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook_params.yaml + * Ex: `gs://notebook_user/scheduled_notebooks/sentiment_notebook_params.yaml` * * * string params_yaml_file = 8; @@ -3233,7 +3233,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(1, scaleTier_); } - if (!getMasterTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, masterType_); } if (acceleratorConfig_ != null) { @@ -3241,22 +3241,22 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); - if (!getInputNotebookFileBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputNotebookFile_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, inputNotebookFile_); } - if (!getContainerImageUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerImageUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, containerImageUri_); } - if (!getOutputNotebookFolderBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputNotebookFolder_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, outputNotebookFolder_); } - if (!getParamsYamlFileBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(paramsYamlFile_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, paramsYamlFile_); } - if (!getParametersBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parameters_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, parameters_); } - if (!getServiceAccountBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, serviceAccount_); } if (jobType_ @@ -3282,7 +3282,7 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, scaleTier_); } - if (!getMasterTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(masterType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, masterType_); } if (acceleratorConfig_ != null) { @@ -3298,22 +3298,22 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } - if (!getInputNotebookFileBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inputNotebookFile_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, inputNotebookFile_); } - if (!getContainerImageUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerImageUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, containerImageUri_); } - if (!getOutputNotebookFolderBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(outputNotebookFolder_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, outputNotebookFolder_); } - if (!getParamsYamlFileBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(paramsYamlFile_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, paramsYamlFile_); } - if (!getParametersBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parameters_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, parameters_); } - if (!getServiceAccountBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, serviceAccount_); } if (jobType_ @@ -4628,8 +4628,8 @@ public Builder putAllLabels(java.util.Map va *
      * Path to the notebook file to execute.
      * Must be in a Google Cloud Storage bucket.
-     * Format: gs://{project_id}/{folder}/{notebook_file_name}
-     * Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook.ipynb
+     * Format: `gs://{project_id}/{folder}/{notebook_file_name}`
+     * Ex: `gs://notebook_user/scheduled_notebooks/sentiment_notebook.ipynb`
      * 
* * string input_notebook_file = 5; @@ -4653,8 +4653,8 @@ public java.lang.String getInputNotebookFile() { *
      * Path to the notebook file to execute.
      * Must be in a Google Cloud Storage bucket.
-     * Format: gs://{project_id}/{folder}/{notebook_file_name}
-     * Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook.ipynb
+     * Format: `gs://{project_id}/{folder}/{notebook_file_name}`
+     * Ex: `gs://notebook_user/scheduled_notebooks/sentiment_notebook.ipynb`
      * 
* * string input_notebook_file = 5; @@ -4678,8 +4678,8 @@ public com.google.protobuf.ByteString getInputNotebookFileBytes() { *
      * Path to the notebook file to execute.
      * Must be in a Google Cloud Storage bucket.
-     * Format: gs://{project_id}/{folder}/{notebook_file_name}
-     * Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook.ipynb
+     * Format: `gs://{project_id}/{folder}/{notebook_file_name}`
+     * Ex: `gs://notebook_user/scheduled_notebooks/sentiment_notebook.ipynb`
      * 
* * string input_notebook_file = 5; @@ -4702,8 +4702,8 @@ public Builder setInputNotebookFile(java.lang.String value) { *
      * Path to the notebook file to execute.
      * Must be in a Google Cloud Storage bucket.
-     * Format: gs://{project_id}/{folder}/{notebook_file_name}
-     * Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook.ipynb
+     * Format: `gs://{project_id}/{folder}/{notebook_file_name}`
+     * Ex: `gs://notebook_user/scheduled_notebooks/sentiment_notebook.ipynb`
      * 
* * string input_notebook_file = 5; @@ -4722,8 +4722,8 @@ public Builder clearInputNotebookFile() { *
      * Path to the notebook file to execute.
      * Must be in a Google Cloud Storage bucket.
-     * Format: gs://{project_id}/{folder}/{notebook_file_name}
-     * Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook.ipynb
+     * Format: `gs://{project_id}/{folder}/{notebook_file_name}`
+     * Ex: `gs://notebook_user/scheduled_notebooks/sentiment_notebook.ipynb`
      * 
* * string input_notebook_file = 5; @@ -4870,8 +4870,8 @@ public Builder setContainerImageUriBytes(com.google.protobuf.ByteString value) { *
      * Path to the notebook folder to write to.
      * Must be in a Google Cloud Storage bucket path.
-     * Format: gs://{project_id}/{folder}
-     * Ex: gs://notebook_user/scheduled_notebooks
+     * Format: `gs://{project_id}/{folder}`
+     * Ex: `gs://notebook_user/scheduled_notebooks`
      * 
* * string output_notebook_folder = 7; @@ -4895,8 +4895,8 @@ public java.lang.String getOutputNotebookFolder() { *
      * Path to the notebook folder to write to.
      * Must be in a Google Cloud Storage bucket path.
-     * Format: gs://{project_id}/{folder}
-     * Ex: gs://notebook_user/scheduled_notebooks
+     * Format: `gs://{project_id}/{folder}`
+     * Ex: `gs://notebook_user/scheduled_notebooks`
      * 
* * string output_notebook_folder = 7; @@ -4920,8 +4920,8 @@ public com.google.protobuf.ByteString getOutputNotebookFolderBytes() { *
      * Path to the notebook folder to write to.
      * Must be in a Google Cloud Storage bucket path.
-     * Format: gs://{project_id}/{folder}
-     * Ex: gs://notebook_user/scheduled_notebooks
+     * Format: `gs://{project_id}/{folder}`
+     * Ex: `gs://notebook_user/scheduled_notebooks`
      * 
* * string output_notebook_folder = 7; @@ -4944,8 +4944,8 @@ public Builder setOutputNotebookFolder(java.lang.String value) { *
      * Path to the notebook folder to write to.
      * Must be in a Google Cloud Storage bucket path.
-     * Format: gs://{project_id}/{folder}
-     * Ex: gs://notebook_user/scheduled_notebooks
+     * Format: `gs://{project_id}/{folder}`
+     * Ex: `gs://notebook_user/scheduled_notebooks`
      * 
* * string output_notebook_folder = 7; @@ -4964,8 +4964,8 @@ public Builder clearOutputNotebookFolder() { *
      * Path to the notebook folder to write to.
      * Must be in a Google Cloud Storage bucket path.
-     * Format: gs://{project_id}/{folder}
-     * Ex: gs://notebook_user/scheduled_notebooks
+     * Format: `gs://{project_id}/{folder}`
+     * Ex: `gs://notebook_user/scheduled_notebooks`
      * 
* * string output_notebook_folder = 7; @@ -4993,7 +4993,7 @@ public Builder setOutputNotebookFolderBytes(com.google.protobuf.ByteString value * Ref https://papermill.readthedocs.io/en/latest/usage-parameterize.html on * how to specifying parameters in the input notebook and pass them here * in an YAML file. - * Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook_params.yaml + * Ex: `gs://notebook_user/scheduled_notebooks/sentiment_notebook_params.yaml` * * * string params_yaml_file = 8; @@ -5019,7 +5019,7 @@ public java.lang.String getParamsYamlFile() { * Ref https://papermill.readthedocs.io/en/latest/usage-parameterize.html on * how to specifying parameters in the input notebook and pass them here * in an YAML file. - * Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook_params.yaml + * Ex: `gs://notebook_user/scheduled_notebooks/sentiment_notebook_params.yaml` * * * string params_yaml_file = 8; @@ -5045,7 +5045,7 @@ public com.google.protobuf.ByteString getParamsYamlFileBytes() { * Ref https://papermill.readthedocs.io/en/latest/usage-parameterize.html on * how to specifying parameters in the input notebook and pass them here * in an YAML file. - * Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook_params.yaml + * Ex: `gs://notebook_user/scheduled_notebooks/sentiment_notebook_params.yaml` * * * string params_yaml_file = 8; @@ -5070,7 +5070,7 @@ public Builder setParamsYamlFile(java.lang.String value) { * Ref https://papermill.readthedocs.io/en/latest/usage-parameterize.html on * how to specifying parameters in the input notebook and pass them here * in an YAML file. - * Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook_params.yaml + * Ex: `gs://notebook_user/scheduled_notebooks/sentiment_notebook_params.yaml` * * * string params_yaml_file = 8; @@ -5091,7 +5091,7 @@ public Builder clearParamsYamlFile() { * Ref https://papermill.readthedocs.io/en/latest/usage-parameterize.html on * how to specifying parameters in the input notebook and pass them here * in an YAML file. - * Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook_params.yaml + * Ex: `gs://notebook_user/scheduled_notebooks/sentiment_notebook_params.yaml` * * * string params_yaml_file = 8; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionTemplateOrBuilder.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionTemplateOrBuilder.java index ff1ccbc1..d7b7663a 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionTemplateOrBuilder.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ExecutionTemplateOrBuilder.java @@ -284,8 +284,8 @@ public interface ExecutionTemplateOrBuilder *
    * Path to the notebook file to execute.
    * Must be in a Google Cloud Storage bucket.
-   * Format: gs://{project_id}/{folder}/{notebook_file_name}
-   * Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook.ipynb
+   * Format: `gs://{project_id}/{folder}/{notebook_file_name}`
+   * Ex: `gs://notebook_user/scheduled_notebooks/sentiment_notebook.ipynb`
    * 
* * string input_notebook_file = 5; @@ -299,8 +299,8 @@ public interface ExecutionTemplateOrBuilder *
    * Path to the notebook file to execute.
    * Must be in a Google Cloud Storage bucket.
-   * Format: gs://{project_id}/{folder}/{notebook_file_name}
-   * Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook.ipynb
+   * Format: `gs://{project_id}/{folder}/{notebook_file_name}`
+   * Ex: `gs://notebook_user/scheduled_notebooks/sentiment_notebook.ipynb`
    * 
* * string input_notebook_file = 5; @@ -346,8 +346,8 @@ public interface ExecutionTemplateOrBuilder *
    * Path to the notebook folder to write to.
    * Must be in a Google Cloud Storage bucket path.
-   * Format: gs://{project_id}/{folder}
-   * Ex: gs://notebook_user/scheduled_notebooks
+   * Format: `gs://{project_id}/{folder}`
+   * Ex: `gs://notebook_user/scheduled_notebooks`
    * 
* * string output_notebook_folder = 7; @@ -361,8 +361,8 @@ public interface ExecutionTemplateOrBuilder *
    * Path to the notebook folder to write to.
    * Must be in a Google Cloud Storage bucket path.
-   * Format: gs://{project_id}/{folder}
-   * Ex: gs://notebook_user/scheduled_notebooks
+   * Format: `gs://{project_id}/{folder}`
+   * Ex: `gs://notebook_user/scheduled_notebooks`
    * 
* * string output_notebook_folder = 7; @@ -379,7 +379,7 @@ public interface ExecutionTemplateOrBuilder * Ref https://papermill.readthedocs.io/en/latest/usage-parameterize.html on * how to specifying parameters in the input notebook and pass them here * in an YAML file. - * Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook_params.yaml + * Ex: `gs://notebook_user/scheduled_notebooks/sentiment_notebook_params.yaml` * * * string params_yaml_file = 8; @@ -395,7 +395,7 @@ public interface ExecutionTemplateOrBuilder * Ref https://papermill.readthedocs.io/en/latest/usage-parameterize.html on * how to specifying parameters in the input notebook and pass them here * in an YAML file. - * Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook_params.yaml + * Ex: `gs://notebook_user/scheduled_notebooks/sentiment_notebook_params.yaml` * * * string params_yaml_file = 8; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetEnvironmentRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetEnvironmentRequest.java index 74f2b33c..b0d36235 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetEnvironmentRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetEnvironmentRequest.java @@ -176,7 +176,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -188,7 +188,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetExecutionRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetExecutionRequest.java index bf472385..8a722304 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetExecutionRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetExecutionRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthRequest.java index 521b9547..accf459c 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceHealthRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceRequest.java index 67e9eeb0..58378ec7 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetInstanceRequest.java @@ -176,7 +176,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -188,7 +188,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetRuntimeRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetRuntimeRequest.java index 2c54d7d3..f7748556 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetRuntimeRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetRuntimeRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetScheduleRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetScheduleRequest.java index 8df84acb..744be8a4 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetScheduleRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/GetScheduleRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Instance.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Instance.java index 0c12db2b..ea33dd58 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Instance.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Instance.java @@ -2561,8 +2561,8 @@ com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder getGuestOsFe * SCSI. For performance characteristics of SCSI over NVMe, see Local SSD * performance. * Valid values: - * NVME - * SCSI + * * NVME + * * SCSI * * * string interface = 7; @@ -2581,8 +2581,8 @@ com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder getGuestOsFe * SCSI. For performance characteristics of SCSI over NVMe, see Local SSD * performance. * Valid values: - * NVME - * SCSI + * * NVME + * * SCSI * * * string interface = 7; @@ -2684,8 +2684,8 @@ com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder getGuestOsFe * 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. * Valid values: - * READ_ONLY - * READ_WRITE + * * READ_ONLY + * * READ_WRITE * * * string mode = 10; @@ -2700,8 +2700,8 @@ com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder getGuestOsFe * 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. * Valid values: - * READ_ONLY - * READ_WRITE + * * READ_ONLY + * * READ_WRITE * * * string mode = 10; @@ -2743,8 +2743,8 @@ com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder getGuestOsFe *
      * Indicates the type of the disk, either SCRATCH or PERSISTENT.
      * Valid values:
-     *     PERSISTENT
-     *     SCRATCH
+     * * PERSISTENT
+     * * SCRATCH
      * 
* * string type = 12; @@ -2758,8 +2758,8 @@ com.google.cloud.notebooks.v1.Instance.Disk.GuestOsFeatureOrBuilder getGuestOsFe *
      * Indicates the type of the disk, either SCRATCH or PERSISTENT.
      * Valid values:
-     *     PERSISTENT
-     *     SCRATCH
+     * * PERSISTENT
+     * * SCRATCH
      * 
* * string type = 12; @@ -2966,12 +2966,12 @@ public interface GuestOsFeatureOrBuilder * The ID of a supported feature. Read Enabling guest operating system * features to see a list of available options. * Valid values: - * FEATURE_TYPE_UNSPECIFIED - * MULTI_IP_SUBNET - * SECURE_BOOT - * UEFI_COMPATIBLE - * VIRTIO_SCSI_MULTIQUEUE - * WINDOWS + * * FEATURE_TYPE_UNSPECIFIED + * * MULTI_IP_SUBNET + * * SECURE_BOOT + * * UEFI_COMPATIBLE + * * VIRTIO_SCSI_MULTIQUEUE + * * WINDOWS * * * string type = 1; @@ -2986,12 +2986,12 @@ public interface GuestOsFeatureOrBuilder * The ID of a supported feature. Read Enabling guest operating system * features to see a list of available options. * Valid values: - * FEATURE_TYPE_UNSPECIFIED - * MULTI_IP_SUBNET - * SECURE_BOOT - * UEFI_COMPATIBLE - * VIRTIO_SCSI_MULTIQUEUE - * WINDOWS + * * FEATURE_TYPE_UNSPECIFIED + * * MULTI_IP_SUBNET + * * SECURE_BOOT + * * UEFI_COMPATIBLE + * * VIRTIO_SCSI_MULTIQUEUE + * * WINDOWS * * * string type = 1; @@ -3103,12 +3103,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * The ID of a supported feature. Read Enabling guest operating system * features to see a list of available options. * Valid values: - * FEATURE_TYPE_UNSPECIFIED - * MULTI_IP_SUBNET - * SECURE_BOOT - * UEFI_COMPATIBLE - * VIRTIO_SCSI_MULTIQUEUE - * WINDOWS + * * FEATURE_TYPE_UNSPECIFIED + * * MULTI_IP_SUBNET + * * SECURE_BOOT + * * UEFI_COMPATIBLE + * * VIRTIO_SCSI_MULTIQUEUE + * * WINDOWS * * * string type = 1; @@ -3134,12 +3134,12 @@ public java.lang.String getType() { * The ID of a supported feature. Read Enabling guest operating system * features to see a list of available options. * Valid values: - * FEATURE_TYPE_UNSPECIFIED - * MULTI_IP_SUBNET - * SECURE_BOOT - * UEFI_COMPATIBLE - * VIRTIO_SCSI_MULTIQUEUE - * WINDOWS + * * FEATURE_TYPE_UNSPECIFIED + * * MULTI_IP_SUBNET + * * SECURE_BOOT + * * UEFI_COMPATIBLE + * * VIRTIO_SCSI_MULTIQUEUE + * * WINDOWS * * * string type = 1; @@ -3173,7 +3173,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } unknownFields.writeTo(output); @@ -3185,7 +3185,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } size += unknownFields.getSerializedSize(); @@ -3493,12 +3493,12 @@ public Builder mergeFrom( * The ID of a supported feature. Read Enabling guest operating system * features to see a list of available options. * Valid values: - * FEATURE_TYPE_UNSPECIFIED - * MULTI_IP_SUBNET - * SECURE_BOOT - * UEFI_COMPATIBLE - * VIRTIO_SCSI_MULTIQUEUE - * WINDOWS + * * FEATURE_TYPE_UNSPECIFIED + * * MULTI_IP_SUBNET + * * SECURE_BOOT + * * UEFI_COMPATIBLE + * * VIRTIO_SCSI_MULTIQUEUE + * * WINDOWS * * * string type = 1; @@ -3523,12 +3523,12 @@ public java.lang.String getType() { * The ID of a supported feature. Read Enabling guest operating system * features to see a list of available options. * Valid values: - * FEATURE_TYPE_UNSPECIFIED - * MULTI_IP_SUBNET - * SECURE_BOOT - * UEFI_COMPATIBLE - * VIRTIO_SCSI_MULTIQUEUE - * WINDOWS + * * FEATURE_TYPE_UNSPECIFIED + * * MULTI_IP_SUBNET + * * SECURE_BOOT + * * UEFI_COMPATIBLE + * * VIRTIO_SCSI_MULTIQUEUE + * * WINDOWS * * * string type = 1; @@ -3553,12 +3553,12 @@ public com.google.protobuf.ByteString getTypeBytes() { * The ID of a supported feature. Read Enabling guest operating system * features to see a list of available options. * Valid values: - * FEATURE_TYPE_UNSPECIFIED - * MULTI_IP_SUBNET - * SECURE_BOOT - * UEFI_COMPATIBLE - * VIRTIO_SCSI_MULTIQUEUE - * WINDOWS + * * FEATURE_TYPE_UNSPECIFIED + * * MULTI_IP_SUBNET + * * SECURE_BOOT + * * UEFI_COMPATIBLE + * * VIRTIO_SCSI_MULTIQUEUE + * * WINDOWS * * * string type = 1; @@ -3582,12 +3582,12 @@ public Builder setType(java.lang.String value) { * The ID of a supported feature. Read Enabling guest operating system * features to see a list of available options. * Valid values: - * FEATURE_TYPE_UNSPECIFIED - * MULTI_IP_SUBNET - * SECURE_BOOT - * UEFI_COMPATIBLE - * VIRTIO_SCSI_MULTIQUEUE - * WINDOWS + * * FEATURE_TYPE_UNSPECIFIED + * * MULTI_IP_SUBNET + * * SECURE_BOOT + * * UEFI_COMPATIBLE + * * VIRTIO_SCSI_MULTIQUEUE + * * WINDOWS * * * string type = 1; @@ -3607,12 +3607,12 @@ public Builder clearType() { * The ID of a supported feature. Read Enabling guest operating system * features to see a list of available options. * Valid values: - * FEATURE_TYPE_UNSPECIFIED - * MULTI_IP_SUBNET - * SECURE_BOOT - * UEFI_COMPATIBLE - * VIRTIO_SCSI_MULTIQUEUE - * WINDOWS + * * FEATURE_TYPE_UNSPECIFIED + * * MULTI_IP_SUBNET + * * SECURE_BOOT + * * UEFI_COMPATIBLE + * * VIRTIO_SCSI_MULTIQUEUE + * * WINDOWS * * * string type = 1; @@ -3925,8 +3925,8 @@ public long getIndex() { * SCSI. For performance characteristics of SCSI over NVMe, see Local SSD * performance. * Valid values: - * NVME - * SCSI + * * NVME + * * SCSI * * * string interface = 7; @@ -3956,8 +3956,8 @@ public java.lang.String getInterface() { * SCSI. For performance characteristics of SCSI over NVMe, see Local SSD * performance. * Valid values: - * NVME - * SCSI + * * NVME + * * SCSI * * * string interface = 7; @@ -4106,8 +4106,8 @@ public 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. * Valid values: - * READ_ONLY - * READ_WRITE + * * READ_ONLY + * * READ_WRITE * * * string mode = 10; @@ -4133,8 +4133,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. * Valid values: - * READ_ONLY - * READ_WRITE + * * READ_ONLY + * * READ_WRITE * * * string mode = 10; @@ -4213,8 +4213,8 @@ public com.google.protobuf.ByteString getSourceBytes() { *
      * Indicates the type of the disk, either SCRATCH or PERSISTENT.
      * Valid values:
-     *     PERSISTENT
-     *     SCRATCH
+     * * PERSISTENT
+     * * SCRATCH
      * 
* * string type = 12; @@ -4239,8 +4239,8 @@ public java.lang.String getType() { *
      * Indicates the type of the disk, either SCRATCH or PERSISTENT.
      * Valid values:
-     *     PERSISTENT
-     *     SCRATCH
+     * * PERSISTENT
+     * * SCRATCH
      * 
* * string type = 12; @@ -4280,7 +4280,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (boot_ != false) { output.writeBool(2, boot_); } - if (!getDeviceNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, deviceName_); } if (diskSizeGb_ != 0L) { @@ -4292,22 +4292,22 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (index_ != 0L) { output.writeInt64(6, index_); } - if (!getInterfaceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(interface_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, interface_); } - if (!getKindBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, kind_); } for (int i = 0; i < licenses_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, licenses_.getRaw(i)); } - if (!getModeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, mode_); } - if (!getSourceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, source_); } - if (!getTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, type_); } unknownFields.writeTo(output); @@ -4325,7 +4325,7 @@ public int getSerializedSize() { if (boot_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, boot_); } - if (!getDeviceNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, deviceName_); } if (diskSizeGb_ != 0L) { @@ -4338,10 +4338,10 @@ public int getSerializedSize() { if (index_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, index_); } - if (!getInterfaceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(interface_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, interface_); } - if (!getKindBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, kind_); } { @@ -4352,13 +4352,13 @@ public int getSerializedSize() { size += dataSize; size += 1 * getLicensesList().size(); } - if (!getModeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, mode_); } - if (!getSourceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, source_); } - if (!getTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, type_); } size += unknownFields.getSerializedSize(); @@ -5623,8 +5623,8 @@ public Builder clearIndex() { * SCSI. For performance characteristics of SCSI over NVMe, see Local SSD * performance. * Valid values: - * NVME - * SCSI + * * NVME + * * SCSI * * * string interface = 7; @@ -5653,8 +5653,8 @@ public java.lang.String getInterface() { * SCSI. For performance characteristics of SCSI over NVMe, see Local SSD * performance. * Valid values: - * NVME - * SCSI + * * NVME + * * SCSI * * * string interface = 7; @@ -5683,8 +5683,8 @@ public com.google.protobuf.ByteString getInterfaceBytes() { * SCSI. For performance characteristics of SCSI over NVMe, see Local SSD * performance. * Valid values: - * NVME - * SCSI + * * NVME + * * SCSI * * * string interface = 7; @@ -5712,8 +5712,8 @@ public Builder setInterface(java.lang.String value) { * SCSI. For performance characteristics of SCSI over NVMe, see Local SSD * performance. * Valid values: - * NVME - * SCSI + * * NVME + * * SCSI * * * string interface = 7; @@ -5737,8 +5737,8 @@ public Builder clearInterface() { * SCSI. For performance characteristics of SCSI over NVMe, see Local SSD * performance. * Valid values: - * NVME - * SCSI + * * NVME + * * SCSI * * * string interface = 7; @@ -6062,8 +6062,8 @@ public Builder addLicensesBytes(com.google.protobuf.ByteString value) { * 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. * Valid values: - * READ_ONLY - * READ_WRITE + * * READ_ONLY + * * READ_WRITE * * * string mode = 10; @@ -6088,8 +6088,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. * Valid values: - * READ_ONLY - * READ_WRITE + * * READ_ONLY + * * READ_WRITE * * * string mode = 10; @@ -6114,8 +6114,8 @@ public com.google.protobuf.ByteString getModeBytes() { * 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. * Valid values: - * READ_ONLY - * READ_WRITE + * * READ_ONLY + * * READ_WRITE * * * string mode = 10; @@ -6139,8 +6139,8 @@ public Builder setMode(java.lang.String value) { * 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. * Valid values: - * READ_ONLY - * READ_WRITE + * * READ_ONLY + * * READ_WRITE * * * string mode = 10; @@ -6160,8 +6160,8 @@ public Builder clearMode() { * 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. * Valid values: - * READ_ONLY - * READ_WRITE + * * READ_ONLY + * * READ_WRITE * * * string mode = 10; @@ -6298,8 +6298,8 @@ public Builder setSourceBytes(com.google.protobuf.ByteString value) { *
        * Indicates the type of the disk, either SCRATCH or PERSISTENT.
        * Valid values:
-       *     PERSISTENT
-       *     SCRATCH
+       * * PERSISTENT
+       * * SCRATCH
        * 
* * string type = 12; @@ -6323,8 +6323,8 @@ public java.lang.String getType() { *
        * Indicates the type of the disk, either SCRATCH or PERSISTENT.
        * Valid values:
-       *     PERSISTENT
-       *     SCRATCH
+       * * PERSISTENT
+       * * SCRATCH
        * 
* * string type = 12; @@ -6348,8 +6348,8 @@ public com.google.protobuf.ByteString getTypeBytes() { *
        * Indicates the type of the disk, either SCRATCH or PERSISTENT.
        * Valid values:
-       *     PERSISTENT
-       *     SCRATCH
+       * * PERSISTENT
+       * * SCRATCH
        * 
* * string type = 12; @@ -6372,8 +6372,8 @@ public Builder setType(java.lang.String value) { *
        * Indicates the type of the disk, either SCRATCH or PERSISTENT.
        * Valid values:
-       *     PERSISTENT
-       *     SCRATCH
+       * * PERSISTENT
+       * * SCRATCH
        * 
* * string type = 12; @@ -6392,8 +6392,8 @@ public Builder clearType() { *
        * Indicates the type of the disk, either SCRATCH or PERSISTENT.
        * Valid values:
-       *     PERSISTENT
-       *     SCRATCH
+       * * PERSISTENT
+       * * SCRATCH
        * 
* * string type = 12; @@ -8528,19 +8528,19 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getSnapshotBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshot_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, snapshot_); } - if (!getVmImageBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmImage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, vmImage_); } - if (!getContainerImageBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerImage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, containerImage_); } - if (!getFrameworkBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(framework_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, framework_); } - if (!getVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, version_); } if (state_ @@ -8551,7 +8551,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (createTime_ != null) { output.writeMessage(7, getCreateTime()); } - if (!getTargetImageBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetImage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, targetImage_); } if (action_ @@ -8559,7 +8559,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(9, action_); } - if (!getTargetVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, targetVersion_); } unknownFields.writeTo(output); @@ -8571,19 +8571,19 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getSnapshotBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshot_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, snapshot_); } - if (!getVmImageBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmImage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vmImage_); } - if (!getContainerImageBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(containerImage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, containerImage_); } - if (!getFrameworkBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(framework_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, framework_); } - if (!getVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, version_); } if (state_ @@ -8594,7 +8594,7 @@ public int getSerializedSize() { if (createTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); } - if (!getTargetImageBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetImage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, targetImage_); } if (action_ @@ -8602,7 +8602,7 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, action_); } - if (!getTargetVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, targetVersion_); } size += unknownFields.getSerializedSize(); @@ -10382,7 +10382,7 @@ public com.google.cloud.notebooks.v1.ContainerImageOrBuilder getContainerImageOr *
    * Path to a Bash script that automatically runs after a notebook instance
    * fully boots up. The path must be a URL or
-   * Cloud Storage path (gs://path-to-file/file-name).
+   * Cloud Storage path (`gs://path-to-file/file-name`).
    * 
* * string post_startup_script = 4; @@ -10407,7 +10407,7 @@ 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
-   * Cloud Storage path (gs://path-to-file/file-name).
+   * Cloud Storage path (`gs://path-to-file/file-name`).
    * 
* * string post_startup_script = 4; @@ -11256,8 +11256,8 @@ public com.google.cloud.notebooks.v1.Instance.DiskOrBuilder getDisksOrBuilder(in * *
    * Optional. Shielded VM configuration.
-   * [Images using supported Shielded VM features]
-   * (https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
+   * [Images using supported Shielded VM
+   * features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
    * 
* * @@ -11275,8 +11275,8 @@ public boolean hasShieldedInstanceConfig() { * *
    * Optional. Shielded VM configuration.
-   * [Images using supported Shielded VM features]
-   * (https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
+   * [Images using supported Shielded VM
+   * features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
    * 
* * @@ -11296,8 +11296,8 @@ public com.google.cloud.notebooks.v1.Instance.ShieldedInstanceConfig getShielded * *
    * Optional. Shielded VM configuration.
-   * [Images using supported Shielded VM features]
-   * (https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
+   * [Images using supported Shielded VM
+   * features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
    * 
* * @@ -12014,7 +12014,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (environmentCase_ == 2) { @@ -12023,19 +12023,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (environmentCase_ == 3) { output.writeMessage(3, (com.google.cloud.notebooks.v1.ContainerImage) environment_); } - if (!getPostStartupScriptBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postStartupScript_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, postStartupScript_); } - if (!getProxyUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(proxyUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, proxyUri_); } for (int i = 0; i < instanceOwners_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, instanceOwners_.getRaw(i)); } - if (!getServiceAccountBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, serviceAccount_); } - if (!getMachineTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, machineType_); } if (acceleratorConfig_ != null) { @@ -12047,7 +12047,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (installGpuDriver_ != false) { output.writeBool(11, installGpuDriver_); } - if (!getCustomGpuDriverPathBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customGpuDriverPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, customGpuDriverPath_); } if (bootDiskType_ @@ -12062,7 +12062,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(15, diskEncryption_); } - if (!getKmsKeyBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, kmsKey_); } if (noPublicIp_ != false) { @@ -12071,10 +12071,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (noProxyAccess_ != false) { output.writeBool(18, noProxyAccess_); } - if (!getNetworkBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 19, network_); } - if (!getSubnetBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnet_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 20, subnet_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( @@ -12129,7 +12129,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (environmentCase_ == 2) { @@ -12142,10 +12142,10 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 3, (com.google.cloud.notebooks.v1.ContainerImage) environment_); } - if (!getPostStartupScriptBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postStartupScript_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, postStartupScript_); } - if (!getProxyUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(proxyUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, proxyUri_); } { @@ -12156,10 +12156,10 @@ public int getSerializedSize() { size += dataSize; size += 1 * getInstanceOwnersList().size(); } - if (!getServiceAccountBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, serviceAccount_); } - if (!getMachineTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, machineType_); } if (acceleratorConfig_ != null) { @@ -12171,7 +12171,7 @@ public int getSerializedSize() { if (installGpuDriver_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, installGpuDriver_); } - if (!getCustomGpuDriverPathBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customGpuDriverPath_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, customGpuDriverPath_); } if (bootDiskType_ @@ -12186,7 +12186,7 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, diskEncryption_); } - if (!getKmsKeyBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, kmsKey_); } if (noPublicIp_ != false) { @@ -12195,10 +12195,10 @@ public int getSerializedSize() { if (noProxyAccess_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, noProxyAccess_); } - if (!getNetworkBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, network_); } - if (!getSubnetBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnet_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, subnet_); } for (java.util.Map.Entry entry : @@ -13659,7 +13659,7 @@ public com.google.cloud.notebooks.v1.ContainerImageOrBuilder getContainerImageOr *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
-     * Cloud Storage path (gs://path-to-file/file-name).
+     * Cloud Storage path (`gs://path-to-file/file-name`).
      * 
* * string post_startup_script = 4; @@ -13683,7 +13683,7 @@ 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
-     * Cloud Storage path (gs://path-to-file/file-name).
+     * Cloud Storage path (`gs://path-to-file/file-name`).
      * 
* * string post_startup_script = 4; @@ -13707,7 +13707,7 @@ public com.google.protobuf.ByteString getPostStartupScriptBytes() { *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
-     * Cloud Storage path (gs://path-to-file/file-name).
+     * Cloud Storage path (`gs://path-to-file/file-name`).
      * 
* * string post_startup_script = 4; @@ -13730,7 +13730,7 @@ public Builder setPostStartupScript(java.lang.String value) { *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
-     * Cloud Storage path (gs://path-to-file/file-name).
+     * Cloud Storage path (`gs://path-to-file/file-name`).
      * 
* * string post_startup_script = 4; @@ -13749,7 +13749,7 @@ public Builder clearPostStartupScript() { *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
-     * Cloud Storage path (gs://path-to-file/file-name).
+     * Cloud Storage path (`gs://path-to-file/file-name`).
      * 
* * string post_startup_script = 4; @@ -16064,8 +16064,8 @@ public com.google.cloud.notebooks.v1.Instance.Disk.Builder addDisksBuilder(int i * *
      * Optional. Shielded VM configuration.
-     * [Images using supported Shielded VM features]
-     * (https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
+     * [Images using supported Shielded VM
+     * features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
      * 
* * @@ -16082,8 +16082,8 @@ public boolean hasShieldedInstanceConfig() { * *
      * Optional. Shielded VM configuration.
-     * [Images using supported Shielded VM features]
-     * (https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
+     * [Images using supported Shielded VM
+     * features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
      * 
* * @@ -16107,8 +16107,8 @@ public boolean hasShieldedInstanceConfig() { * *
      * Optional. Shielded VM configuration.
-     * [Images using supported Shielded VM features]
-     * (https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
+     * [Images using supported Shielded VM
+     * features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
      * 
* * @@ -16134,8 +16134,8 @@ public Builder setShieldedInstanceConfig( * *
      * Optional. Shielded VM configuration.
-     * [Images using supported Shielded VM features]
-     * (https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
+     * [Images using supported Shielded VM
+     * features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
      * 
* * @@ -16158,8 +16158,8 @@ public Builder setShieldedInstanceConfig( * *
      * Optional. Shielded VM configuration.
-     * [Images using supported Shielded VM features]
-     * (https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
+     * [Images using supported Shielded VM
+     * features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
      * 
* * @@ -16190,8 +16190,8 @@ public Builder mergeShieldedInstanceConfig( * *
      * Optional. Shielded VM configuration.
-     * [Images using supported Shielded VM features]
-     * (https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
+     * [Images using supported Shielded VM
+     * features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
      * 
* * @@ -16214,8 +16214,8 @@ public Builder clearShieldedInstanceConfig() { * *
      * Optional. Shielded VM configuration.
-     * [Images using supported Shielded VM features]
-     * (https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
+     * [Images using supported Shielded VM
+     * features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
      * 
* * @@ -16233,8 +16233,8 @@ public Builder clearShieldedInstanceConfig() { * *
      * Optional. Shielded VM configuration.
-     * [Images using supported Shielded VM features]
-     * (https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
+     * [Images using supported Shielded VM
+     * features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
      * 
* * @@ -16256,8 +16256,8 @@ public Builder clearShieldedInstanceConfig() { * *
      * Optional. Shielded VM configuration.
-     * [Images using supported Shielded VM features]
-     * (https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
+     * [Images using supported Shielded VM
+     * features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
      * 
* * diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceConfig.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceConfig.java index d68cb28e..b1e13884 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceConfig.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceConfig.java @@ -173,7 +173,7 @@ public com.google.protobuf.ByteString getNotebookUpgradeScheduleBytes() { * * *
-   * Verifies core internal services are running. More info: go/notebooks-health
+   * Verifies core internal services are running.
    * 
* * bool enable_health_monitoring = 2; @@ -199,7 +199,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNotebookUpgradeScheduleBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notebookUpgradeSchedule_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, notebookUpgradeSchedule_); } if (enableHealthMonitoring_ != false) { @@ -214,7 +214,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNotebookUpgradeScheduleBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notebookUpgradeSchedule_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, notebookUpgradeSchedule_); } if (enableHealthMonitoring_ != false) { @@ -632,7 +632,7 @@ public Builder setNotebookUpgradeScheduleBytes(com.google.protobuf.ByteString va * * *
-     * Verifies core internal services are running. More info: go/notebooks-health
+     * Verifies core internal services are running.
      * 
* * bool enable_health_monitoring = 2; @@ -647,7 +647,7 @@ public boolean getEnableHealthMonitoring() { * * *
-     * Verifies core internal services are running. More info: go/notebooks-health
+     * Verifies core internal services are running.
      * 
* * bool enable_health_monitoring = 2; @@ -665,7 +665,7 @@ public Builder setEnableHealthMonitoring(boolean value) { * * *
-     * Verifies core internal services are running. More info: go/notebooks-health
+     * Verifies core internal services are running.
      * 
* * bool enable_health_monitoring = 2; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceConfigOrBuilder.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceConfigOrBuilder.java index 4a0e02b3..20862eda 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceConfigOrBuilder.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceConfigOrBuilder.java @@ -54,7 +54,7 @@ public interface InstanceConfigOrBuilder * * *
-   * Verifies core internal services are running. More info: go/notebooks-health
+   * Verifies core internal services are running.
    * 
* * bool enable_health_monitoring = 2; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceOrBuilder.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceOrBuilder.java index 419d9c06..bcb1a05b 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceOrBuilder.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/InstanceOrBuilder.java @@ -126,7 +126,7 @@ public interface InstanceOrBuilder *
    * Path to a Bash script that automatically runs after a notebook instance
    * fully boots up. The path must be a URL or
-   * Cloud Storage path (gs://path-to-file/file-name).
+   * Cloud Storage path (`gs://path-to-file/file-name`).
    * 
* * string post_startup_script = 4; @@ -140,7 +140,7 @@ public interface InstanceOrBuilder *
    * Path to a Bash script that automatically runs after a notebook instance
    * fully boots up. The path must be a URL or
-   * Cloud Storage path (gs://path-to-file/file-name).
+   * Cloud Storage path (`gs://path-to-file/file-name`).
    * 
* * string post_startup_script = 4; @@ -739,8 +739,8 @@ public interface InstanceOrBuilder * *
    * Optional. Shielded VM configuration.
-   * [Images using supported Shielded VM features]
-   * (https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
+   * [Images using supported Shielded VM
+   * features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
    * 
* * @@ -755,8 +755,8 @@ public interface InstanceOrBuilder * *
    * Optional. Shielded VM configuration.
-   * [Images using supported Shielded VM features]
-   * (https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
+   * [Images using supported Shielded VM
+   * features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
    * 
* * @@ -771,8 +771,8 @@ public interface InstanceOrBuilder * *
    * Optional. Shielded VM configuration.
-   * [Images using supported Shielded VM features]
-   * (https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
+   * [Images using supported Shielded VM
+   * features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).
    * 
* * diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableRequest.java index 37e051e5..c7ff24f3 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableRequest.java @@ -176,7 +176,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNotebookInstanceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notebookInstance_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, notebookInstance_); } unknownFields.writeTo(output); @@ -188,7 +188,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNotebookInstanceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notebookInstance_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, notebookInstance_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableResponse.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableResponse.java index c0ea5a83..036f34d0 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableResponse.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/IsInstanceUpgradeableResponse.java @@ -320,13 +320,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (upgradeable_ != false) { output.writeBool(1, upgradeable_); } - if (!getUpgradeVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(upgradeVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, upgradeVersion_); } - if (!getUpgradeInfoBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(upgradeInfo_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, upgradeInfo_); } - if (!getUpgradeImageBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(upgradeImage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, upgradeImage_); } unknownFields.writeTo(output); @@ -341,13 +341,13 @@ public int getSerializedSize() { if (upgradeable_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, upgradeable_); } - if (!getUpgradeVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(upgradeVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, upgradeVersion_); } - if (!getUpgradeInfoBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(upgradeInfo_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, upgradeInfo_); } - if (!getUpgradeImageBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(upgradeImage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, upgradeImage_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsRequest.java index f25d5db2..e1556a0d 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsRequest.java @@ -256,13 +256,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -274,13 +274,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsResponse.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsResponse.java index 1a29f507..6de3a103 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsResponse.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListEnvironmentsResponse.java @@ -340,7 +340,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < environments_.size(); i++) { output.writeMessage(1, environments_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } for (int i = 0; i < unreachable_.size(); i++) { @@ -358,7 +358,7 @@ public int getSerializedSize() { for (int i = 0; i < environments_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, environments_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } { diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsRequest.java index 5f745b02..19047131 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsRequest.java @@ -272,7 +272,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { *
    * Filter applied to resulting executions. Currently only supports filtering
    * executions by a specified schedule_id.
-   * Format: "schedule_id=<Schedule_ID>"
+   * Format: `schedule_id=<Schedule_ID>`
    * 
* * string filter = 4; @@ -297,7 +297,7 @@ public java.lang.String getFilter() { *
    * Filter applied to resulting executions. Currently only supports filtering
    * executions by a specified schedule_id.
-   * Format: "schedule_id=<Schedule_ID>"
+   * Format: `schedule_id=<Schedule_ID>`
    * 
* * string filter = 4; @@ -380,19 +380,19 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); } - if (!getOrderByBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); } unknownFields.writeTo(output); @@ -404,19 +404,19 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); } - if (!getOrderByBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); } size += unknownFields.getSerializedSize(); @@ -1038,7 +1038,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { *
      * Filter applied to resulting executions. Currently only supports filtering
      * executions by a specified schedule_id.
-     * Format: "schedule_id=<Schedule_ID>"
+     * Format: `schedule_id=<Schedule_ID>`
      * 
* * string filter = 4; @@ -1062,7 +1062,7 @@ public java.lang.String getFilter() { *
      * Filter applied to resulting executions. Currently only supports filtering
      * executions by a specified schedule_id.
-     * Format: "schedule_id=<Schedule_ID>"
+     * Format: `schedule_id=<Schedule_ID>`
      * 
* * string filter = 4; @@ -1086,7 +1086,7 @@ public com.google.protobuf.ByteString getFilterBytes() { *
      * Filter applied to resulting executions. Currently only supports filtering
      * executions by a specified schedule_id.
-     * Format: "schedule_id=<Schedule_ID>"
+     * Format: `schedule_id=<Schedule_ID>`
      * 
* * string filter = 4; @@ -1109,7 +1109,7 @@ public Builder setFilter(java.lang.String value) { *
      * Filter applied to resulting executions. Currently only supports filtering
      * executions by a specified schedule_id.
-     * Format: "schedule_id=<Schedule_ID>"
+     * Format: `schedule_id=<Schedule_ID>`
      * 
* * string filter = 4; @@ -1128,7 +1128,7 @@ public Builder clearFilter() { *
      * Filter applied to resulting executions. Currently only supports filtering
      * executions by a specified schedule_id.
-     * Format: "schedule_id=<Schedule_ID>"
+     * Format: `schedule_id=<Schedule_ID>`
      * 
* * string filter = 4; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsRequestOrBuilder.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsRequestOrBuilder.java index 55e1f35d..941ea049 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsRequestOrBuilder.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsRequestOrBuilder.java @@ -100,7 +100,7 @@ public interface ListExecutionsRequestOrBuilder *
    * Filter applied to resulting executions. Currently only supports filtering
    * executions by a specified schedule_id.
-   * Format: "schedule_id=<Schedule_ID>"
+   * Format: `schedule_id=<Schedule_ID>`
    * 
* * string filter = 4; @@ -114,7 +114,7 @@ public interface ListExecutionsRequestOrBuilder *
    * Filter applied to resulting executions. Currently only supports filtering
    * executions by a specified schedule_id.
-   * Format: "schedule_id=<Schedule_ID>"
+   * Format: `schedule_id=<Schedule_ID>`
    * 
* * string filter = 4; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsResponse.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsResponse.java index f77ea302..6a926e3b 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsResponse.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsResponse.java @@ -267,9 +267,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
-   * Executions IDs that could not be reached. For example,
-   * ['projects/{project_id}/location/{location}/executions/imagenet_test1',
-   *  'projects/{project_id}/location/{location}/executions/classifier_train1'].
+   * Executions IDs that could not be reached. For example:
+   *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
+   *      'projects/{project_id}/location/{location}/executions/classifier_train1']
    * 
* * repeated string unreachable = 3; @@ -283,9 +283,9 @@ public com.google.protobuf.ProtocolStringList getUnreachableList() { * * *
-   * Executions IDs that could not be reached. For example,
-   * ['projects/{project_id}/location/{location}/executions/imagenet_test1',
-   *  'projects/{project_id}/location/{location}/executions/classifier_train1'].
+   * Executions IDs that could not be reached. For example:
+   *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
+   *      'projects/{project_id}/location/{location}/executions/classifier_train1']
    * 
* * repeated string unreachable = 3; @@ -299,9 +299,9 @@ public int getUnreachableCount() { * * *
-   * Executions IDs that could not be reached. For example,
-   * ['projects/{project_id}/location/{location}/executions/imagenet_test1',
-   *  'projects/{project_id}/location/{location}/executions/classifier_train1'].
+   * Executions IDs that could not be reached. For example:
+   *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
+   *      'projects/{project_id}/location/{location}/executions/classifier_train1']
    * 
* * repeated string unreachable = 3; @@ -316,9 +316,9 @@ public java.lang.String getUnreachable(int index) { * * *
-   * Executions IDs that could not be reached. For example,
-   * ['projects/{project_id}/location/{location}/executions/imagenet_test1',
-   *  'projects/{project_id}/location/{location}/executions/classifier_train1'].
+   * Executions IDs that could not be reached. For example:
+   *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
+   *      'projects/{project_id}/location/{location}/executions/classifier_train1']
    * 
* * repeated string unreachable = 3; @@ -347,7 +347,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < executions_.size(); i++) { output.writeMessage(1, executions_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } for (int i = 0; i < unreachable_.size(); i++) { @@ -365,7 +365,7 @@ public int getSerializedSize() { for (int i = 0; i < executions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, executions_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } { @@ -1212,9 +1212,9 @@ private void ensureUnreachableIsMutable() { * * *
-     * Executions IDs that could not be reached. For example,
-     * ['projects/{project_id}/location/{location}/executions/imagenet_test1',
-     *  'projects/{project_id}/location/{location}/executions/classifier_train1'].
+     * Executions IDs that could not be reached. For example:
+     *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
+     *      'projects/{project_id}/location/{location}/executions/classifier_train1']
      * 
* * repeated string unreachable = 3; @@ -1228,9 +1228,9 @@ public com.google.protobuf.ProtocolStringList getUnreachableList() { * * *
-     * Executions IDs that could not be reached. For example,
-     * ['projects/{project_id}/location/{location}/executions/imagenet_test1',
-     *  'projects/{project_id}/location/{location}/executions/classifier_train1'].
+     * Executions IDs that could not be reached. For example:
+     *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
+     *      'projects/{project_id}/location/{location}/executions/classifier_train1']
      * 
* * repeated string unreachable = 3; @@ -1244,9 +1244,9 @@ public int getUnreachableCount() { * * *
-     * Executions IDs that could not be reached. For example,
-     * ['projects/{project_id}/location/{location}/executions/imagenet_test1',
-     *  'projects/{project_id}/location/{location}/executions/classifier_train1'].
+     * Executions IDs that could not be reached. For example:
+     *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
+     *      'projects/{project_id}/location/{location}/executions/classifier_train1']
      * 
* * repeated string unreachable = 3; @@ -1261,9 +1261,9 @@ public java.lang.String getUnreachable(int index) { * * *
-     * Executions IDs that could not be reached. For example,
-     * ['projects/{project_id}/location/{location}/executions/imagenet_test1',
-     *  'projects/{project_id}/location/{location}/executions/classifier_train1'].
+     * Executions IDs that could not be reached. For example:
+     *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
+     *      'projects/{project_id}/location/{location}/executions/classifier_train1']
      * 
* * repeated string unreachable = 3; @@ -1278,9 +1278,9 @@ public com.google.protobuf.ByteString getUnreachableBytes(int index) { * * *
-     * Executions IDs that could not be reached. For example,
-     * ['projects/{project_id}/location/{location}/executions/imagenet_test1',
-     *  'projects/{project_id}/location/{location}/executions/classifier_train1'].
+     * Executions IDs that could not be reached. For example:
+     *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
+     *      'projects/{project_id}/location/{location}/executions/classifier_train1']
      * 
* * repeated string unreachable = 3; @@ -1302,9 +1302,9 @@ public Builder setUnreachable(int index, java.lang.String value) { * * *
-     * Executions IDs that could not be reached. For example,
-     * ['projects/{project_id}/location/{location}/executions/imagenet_test1',
-     *  'projects/{project_id}/location/{location}/executions/classifier_train1'].
+     * Executions IDs that could not be reached. For example:
+     *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
+     *      'projects/{project_id}/location/{location}/executions/classifier_train1']
      * 
* * repeated string unreachable = 3; @@ -1325,9 +1325,9 @@ public Builder addUnreachable(java.lang.String value) { * * *
-     * Executions IDs that could not be reached. For example,
-     * ['projects/{project_id}/location/{location}/executions/imagenet_test1',
-     *  'projects/{project_id}/location/{location}/executions/classifier_train1'].
+     * Executions IDs that could not be reached. For example:
+     *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
+     *      'projects/{project_id}/location/{location}/executions/classifier_train1']
      * 
* * repeated string unreachable = 3; @@ -1345,9 +1345,9 @@ public Builder addAllUnreachable(java.lang.Iterable values) { * * *
-     * Executions IDs that could not be reached. For example,
-     * ['projects/{project_id}/location/{location}/executions/imagenet_test1',
-     *  'projects/{project_id}/location/{location}/executions/classifier_train1'].
+     * Executions IDs that could not be reached. For example:
+     *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
+     *      'projects/{project_id}/location/{location}/executions/classifier_train1']
      * 
* * repeated string unreachable = 3; @@ -1364,9 +1364,9 @@ public Builder clearUnreachable() { * * *
-     * Executions IDs that could not be reached. For example,
-     * ['projects/{project_id}/location/{location}/executions/imagenet_test1',
-     *  'projects/{project_id}/location/{location}/executions/classifier_train1'].
+     * Executions IDs that could not be reached. For example:
+     *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
+     *      'projects/{project_id}/location/{location}/executions/classifier_train1']
      * 
* * repeated string unreachable = 3; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsResponseOrBuilder.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsResponseOrBuilder.java index 6a69cd6f..fb271a87 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsResponseOrBuilder.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListExecutionsResponseOrBuilder.java @@ -106,9 +106,9 @@ public interface ListExecutionsResponseOrBuilder * * *
-   * Executions IDs that could not be reached. For example,
-   * ['projects/{project_id}/location/{location}/executions/imagenet_test1',
-   *  'projects/{project_id}/location/{location}/executions/classifier_train1'].
+   * Executions IDs that could not be reached. For example:
+   *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
+   *      'projects/{project_id}/location/{location}/executions/classifier_train1']
    * 
* * repeated string unreachable = 3; @@ -120,9 +120,9 @@ public interface ListExecutionsResponseOrBuilder * * *
-   * Executions IDs that could not be reached. For example,
-   * ['projects/{project_id}/location/{location}/executions/imagenet_test1',
-   *  'projects/{project_id}/location/{location}/executions/classifier_train1'].
+   * Executions IDs that could not be reached. For example:
+   *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
+   *      'projects/{project_id}/location/{location}/executions/classifier_train1']
    * 
* * repeated string unreachable = 3; @@ -134,9 +134,9 @@ public interface ListExecutionsResponseOrBuilder * * *
-   * Executions IDs that could not be reached. For example,
-   * ['projects/{project_id}/location/{location}/executions/imagenet_test1',
-   *  'projects/{project_id}/location/{location}/executions/classifier_train1'].
+   * Executions IDs that could not be reached. For example:
+   *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
+   *      'projects/{project_id}/location/{location}/executions/classifier_train1']
    * 
* * repeated string unreachable = 3; @@ -149,9 +149,9 @@ public interface ListExecutionsResponseOrBuilder * * *
-   * Executions IDs that could not be reached. For example,
-   * ['projects/{project_id}/location/{location}/executions/imagenet_test1',
-   *  'projects/{project_id}/location/{location}/executions/classifier_train1'].
+   * Executions IDs that could not be reached. For example:
+   *     ['projects/{project_id}/location/{location}/executions/imagenet_test1',
+   *      'projects/{project_id}/location/{location}/executions/classifier_train1']
    * 
* * repeated string unreachable = 3; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesRequest.java index 0392006c..f013221d 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesRequest.java @@ -258,13 +258,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -276,13 +276,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesResponse.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesResponse.java index a725b897..00db8502 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesResponse.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListInstancesResponse.java @@ -347,7 +347,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < instances_.size(); i++) { output.writeMessage(1, instances_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } for (int i = 0; i < unreachable_.size(); i++) { @@ -365,7 +365,7 @@ public int getSerializedSize() { for (int i = 0; i < instances_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, instances_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } { diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesRequest.java index c8f97b59..0af4739f 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesRequest.java @@ -262,13 +262,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -280,13 +280,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesResponse.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesResponse.java index 0705de84..9d27c30d 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesResponse.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListRuntimesResponse.java @@ -347,7 +347,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < runtimes_.size(); i++) { output.writeMessage(1, runtimes_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } for (int i = 0; i < unreachable_.size(); i++) { @@ -365,7 +365,7 @@ public int getSerializedSize() { for (int i = 0; i < runtimes_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, runtimes_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } { diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesRequest.java index 4f139291..c61cd26b 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesRequest.java @@ -376,19 +376,19 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); } - if (!getOrderByBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); } unknownFields.writeTo(output); @@ -400,19 +400,19 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); } - if (!getOrderByBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesResponse.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesResponse.java index d37756ca..1b848f14 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesResponse.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesResponse.java @@ -267,9 +267,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
-   * Schedules that could not be reached. For example,
-   * ['projects/{project_id}/location/{location}/schedules/monthly_digest',
-   *  'projects/{project_id}/location/{location}/schedules/weekly_sentiment'].
+   * Schedules that could not be reached. For example:
+   *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
+   *      'projects/{project_id}/location/{location}/schedules/weekly_sentiment']
    * 
* * repeated string unreachable = 3; @@ -283,9 +283,9 @@ public com.google.protobuf.ProtocolStringList getUnreachableList() { * * *
-   * Schedules that could not be reached. For example,
-   * ['projects/{project_id}/location/{location}/schedules/monthly_digest',
-   *  'projects/{project_id}/location/{location}/schedules/weekly_sentiment'].
+   * Schedules that could not be reached. For example:
+   *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
+   *      'projects/{project_id}/location/{location}/schedules/weekly_sentiment']
    * 
* * repeated string unreachable = 3; @@ -299,9 +299,9 @@ public int getUnreachableCount() { * * *
-   * Schedules that could not be reached. For example,
-   * ['projects/{project_id}/location/{location}/schedules/monthly_digest',
-   *  'projects/{project_id}/location/{location}/schedules/weekly_sentiment'].
+   * Schedules that could not be reached. For example:
+   *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
+   *      'projects/{project_id}/location/{location}/schedules/weekly_sentiment']
    * 
* * repeated string unreachable = 3; @@ -316,9 +316,9 @@ public java.lang.String getUnreachable(int index) { * * *
-   * Schedules that could not be reached. For example,
-   * ['projects/{project_id}/location/{location}/schedules/monthly_digest',
-   *  'projects/{project_id}/location/{location}/schedules/weekly_sentiment'].
+   * Schedules that could not be reached. For example:
+   *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
+   *      'projects/{project_id}/location/{location}/schedules/weekly_sentiment']
    * 
* * repeated string unreachable = 3; @@ -347,7 +347,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < schedules_.size(); i++) { output.writeMessage(1, schedules_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } for (int i = 0; i < unreachable_.size(); i++) { @@ -365,7 +365,7 @@ public int getSerializedSize() { for (int i = 0; i < schedules_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, schedules_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } { @@ -1212,9 +1212,9 @@ private void ensureUnreachableIsMutable() { * * *
-     * Schedules that could not be reached. For example,
-     * ['projects/{project_id}/location/{location}/schedules/monthly_digest',
-     *  'projects/{project_id}/location/{location}/schedules/weekly_sentiment'].
+     * Schedules that could not be reached. For example:
+     *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
+     *      'projects/{project_id}/location/{location}/schedules/weekly_sentiment']
      * 
* * repeated string unreachable = 3; @@ -1228,9 +1228,9 @@ public com.google.protobuf.ProtocolStringList getUnreachableList() { * * *
-     * Schedules that could not be reached. For example,
-     * ['projects/{project_id}/location/{location}/schedules/monthly_digest',
-     *  'projects/{project_id}/location/{location}/schedules/weekly_sentiment'].
+     * Schedules that could not be reached. For example:
+     *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
+     *      'projects/{project_id}/location/{location}/schedules/weekly_sentiment']
      * 
* * repeated string unreachable = 3; @@ -1244,9 +1244,9 @@ public int getUnreachableCount() { * * *
-     * Schedules that could not be reached. For example,
-     * ['projects/{project_id}/location/{location}/schedules/monthly_digest',
-     *  'projects/{project_id}/location/{location}/schedules/weekly_sentiment'].
+     * Schedules that could not be reached. For example:
+     *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
+     *      'projects/{project_id}/location/{location}/schedules/weekly_sentiment']
      * 
* * repeated string unreachable = 3; @@ -1261,9 +1261,9 @@ public java.lang.String getUnreachable(int index) { * * *
-     * Schedules that could not be reached. For example,
-     * ['projects/{project_id}/location/{location}/schedules/monthly_digest',
-     *  'projects/{project_id}/location/{location}/schedules/weekly_sentiment'].
+     * Schedules that could not be reached. For example:
+     *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
+     *      'projects/{project_id}/location/{location}/schedules/weekly_sentiment']
      * 
* * repeated string unreachable = 3; @@ -1278,9 +1278,9 @@ public com.google.protobuf.ByteString getUnreachableBytes(int index) { * * *
-     * Schedules that could not be reached. For example,
-     * ['projects/{project_id}/location/{location}/schedules/monthly_digest',
-     *  'projects/{project_id}/location/{location}/schedules/weekly_sentiment'].
+     * Schedules that could not be reached. For example:
+     *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
+     *      'projects/{project_id}/location/{location}/schedules/weekly_sentiment']
      * 
* * repeated string unreachable = 3; @@ -1302,9 +1302,9 @@ public Builder setUnreachable(int index, java.lang.String value) { * * *
-     * Schedules that could not be reached. For example,
-     * ['projects/{project_id}/location/{location}/schedules/monthly_digest',
-     *  'projects/{project_id}/location/{location}/schedules/weekly_sentiment'].
+     * Schedules that could not be reached. For example:
+     *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
+     *      'projects/{project_id}/location/{location}/schedules/weekly_sentiment']
      * 
* * repeated string unreachable = 3; @@ -1325,9 +1325,9 @@ public Builder addUnreachable(java.lang.String value) { * * *
-     * Schedules that could not be reached. For example,
-     * ['projects/{project_id}/location/{location}/schedules/monthly_digest',
-     *  'projects/{project_id}/location/{location}/schedules/weekly_sentiment'].
+     * Schedules that could not be reached. For example:
+     *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
+     *      'projects/{project_id}/location/{location}/schedules/weekly_sentiment']
      * 
* * repeated string unreachable = 3; @@ -1345,9 +1345,9 @@ public Builder addAllUnreachable(java.lang.Iterable values) { * * *
-     * Schedules that could not be reached. For example,
-     * ['projects/{project_id}/location/{location}/schedules/monthly_digest',
-     *  'projects/{project_id}/location/{location}/schedules/weekly_sentiment'].
+     * Schedules that could not be reached. For example:
+     *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
+     *      'projects/{project_id}/location/{location}/schedules/weekly_sentiment']
      * 
* * repeated string unreachable = 3; @@ -1364,9 +1364,9 @@ public Builder clearUnreachable() { * * *
-     * Schedules that could not be reached. For example,
-     * ['projects/{project_id}/location/{location}/schedules/monthly_digest',
-     *  'projects/{project_id}/location/{location}/schedules/weekly_sentiment'].
+     * Schedules that could not be reached. For example:
+     *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
+     *      'projects/{project_id}/location/{location}/schedules/weekly_sentiment']
      * 
* * repeated string unreachable = 3; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesResponseOrBuilder.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesResponseOrBuilder.java index abe89074..2a2a66c2 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesResponseOrBuilder.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ListSchedulesResponseOrBuilder.java @@ -106,9 +106,9 @@ public interface ListSchedulesResponseOrBuilder * * *
-   * Schedules that could not be reached. For example,
-   * ['projects/{project_id}/location/{location}/schedules/monthly_digest',
-   *  'projects/{project_id}/location/{location}/schedules/weekly_sentiment'].
+   * Schedules that could not be reached. For example:
+   *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
+   *      'projects/{project_id}/location/{location}/schedules/weekly_sentiment']
    * 
* * repeated string unreachable = 3; @@ -120,9 +120,9 @@ public interface ListSchedulesResponseOrBuilder * * *
-   * Schedules that could not be reached. For example,
-   * ['projects/{project_id}/location/{location}/schedules/monthly_digest',
-   *  'projects/{project_id}/location/{location}/schedules/weekly_sentiment'].
+   * Schedules that could not be reached. For example:
+   *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
+   *      'projects/{project_id}/location/{location}/schedules/weekly_sentiment']
    * 
* * repeated string unreachable = 3; @@ -134,9 +134,9 @@ public interface ListSchedulesResponseOrBuilder * * *
-   * Schedules that could not be reached. For example,
-   * ['projects/{project_id}/location/{location}/schedules/monthly_digest',
-   *  'projects/{project_id}/location/{location}/schedules/weekly_sentiment'].
+   * Schedules that could not be reached. For example:
+   *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
+   *      'projects/{project_id}/location/{location}/schedules/weekly_sentiment']
    * 
* * repeated string unreachable = 3; @@ -149,9 +149,9 @@ public interface ListSchedulesResponseOrBuilder * * *
-   * Schedules that could not be reached. For example,
-   * ['projects/{project_id}/location/{location}/schedules/monthly_digest',
-   *  'projects/{project_id}/location/{location}/schedules/weekly_sentiment'].
+   * Schedules that could not be reached. For example:
+   *     ['projects/{project_id}/location/{location}/schedules/monthly_digest',
+   *      'projects/{project_id}/location/{location}/schedules/weekly_sentiment']
    * 
* * repeated string unreachable = 3; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDisk.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDisk.java index a2fc4cb7..dd8f1421 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDisk.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDisk.java @@ -22,7 +22,7 @@ * * *
- * An Local attached disk resource.
+ * A Local attached disk resource.
  * 
* * Protobuf type {@code google.cloud.notebooks.v1.LocalDisk} @@ -443,7 +443,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); } unknownFields.writeTo(output); @@ -455,7 +455,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); } size += unknownFields.getSerializedSize(); @@ -1261,8 +1261,8 @@ public com.google.cloud.notebooks.v1.LocalDiskInitializeParams getInitializePara * in any other format than SCSI. Local SSDs can use either NVME or SCSI. For * performance characteristics of SCSI over NVMe, see Local SSD performance. * Valid values: - * NVME - * SCSI + * * NVME + * * SCSI * * * string interface = 7; @@ -1291,8 +1291,8 @@ public java.lang.String getInterface() { * in any other format than SCSI. Local SSDs can use either NVME or SCSI. For * performance characteristics of SCSI over NVMe, see Local SSD performance. * Valid values: - * NVME - * SCSI + * * NVME + * * SCSI * * * string interface = 7; @@ -1431,8 +1431,8 @@ public 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. * Valid values: - * READ_ONLY - * READ_WRITE + * * READ_ONLY + * * READ_WRITE * * * string mode = 10; @@ -1458,8 +1458,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. * Valid values: - * READ_ONLY - * READ_WRITE + * * READ_ONLY + * * READ_WRITE * * * string mode = 10; @@ -1539,8 +1539,8 @@ public com.google.protobuf.ByteString getSourceBytes() { * Specifies the type of the disk, either SCRATCH or PERSISTENT. If not * specified, the default is PERSISTENT. * Valid values: - * PERSISTENT - * SCRATCH + * * PERSISTENT + * * SCRATCH * * * string type = 12; @@ -1566,8 +1566,8 @@ public java.lang.String getType() { * Specifies the type of the disk, either SCRATCH or PERSISTENT. If not * specified, the default is PERSISTENT. * Valid values: - * PERSISTENT - * SCRATCH + * * PERSISTENT + * * SCRATCH * * * string type = 12; @@ -1607,7 +1607,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (boot_ != false) { output.writeBool(2, boot_); } - if (!getDeviceNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, deviceName_); } for (int i = 0; i < guestOsFeatures_.size(); i++) { @@ -1619,22 +1619,22 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (initializeParams_ != null) { output.writeMessage(6, getInitializeParams()); } - if (!getInterfaceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(interface_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, interface_); } - if (!getKindBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, kind_); } for (int i = 0; i < licenses_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, licenses_.getRaw(i)); } - if (!getModeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, mode_); } - if (!getSourceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, source_); } - if (!getTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, type_); } unknownFields.writeTo(output); @@ -1652,7 +1652,7 @@ public int getSerializedSize() { if (boot_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, boot_); } - if (!getDeviceNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, deviceName_); } for (int i = 0; i < guestOsFeatures_.size(); i++) { @@ -1664,10 +1664,10 @@ public int getSerializedSize() { if (initializeParams_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getInitializeParams()); } - if (!getInterfaceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(interface_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, interface_); } - if (!getKindBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, kind_); } { @@ -1678,13 +1678,13 @@ public int getSerializedSize() { size += dataSize; size += 1 * getLicensesList().size(); } - if (!getModeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, mode_); } - if (!getSourceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, source_); } - if (!getTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, type_); } size += unknownFields.getSerializedSize(); @@ -1862,7 +1862,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * An Local attached disk resource.
+   * A Local attached disk resource.
    * 
* * Protobuf type {@code google.cloud.notebooks.v1.LocalDisk} @@ -3153,8 +3153,8 @@ public Builder clearInitializeParams() { * in any other format than SCSI. Local SSDs can use either NVME or SCSI. For * performance characteristics of SCSI over NVMe, see Local SSD performance. * Valid values: - * NVME - * SCSI + * * NVME + * * SCSI * * * string interface = 7; @@ -3182,8 +3182,8 @@ public java.lang.String getInterface() { * in any other format than SCSI. Local SSDs can use either NVME or SCSI. For * performance characteristics of SCSI over NVMe, see Local SSD performance. * Valid values: - * NVME - * SCSI + * * NVME + * * SCSI * * * string interface = 7; @@ -3211,8 +3211,8 @@ public com.google.protobuf.ByteString getInterfaceBytes() { * in any other format than SCSI. Local SSDs can use either NVME or SCSI. For * performance characteristics of SCSI over NVMe, see Local SSD performance. * Valid values: - * NVME - * SCSI + * * NVME + * * SCSI * * * string interface = 7; @@ -3239,8 +3239,8 @@ public Builder setInterface(java.lang.String value) { * in any other format than SCSI. Local SSDs can use either NVME or SCSI. For * performance characteristics of SCSI over NVMe, see Local SSD performance. * Valid values: - * NVME - * SCSI + * * NVME + * * SCSI * * * string interface = 7; @@ -3263,8 +3263,8 @@ public Builder clearInterface() { * in any other format than SCSI. Local SSDs can use either NVME or SCSI. For * performance characteristics of SCSI over NVMe, see Local SSD performance. * Valid values: - * NVME - * SCSI + * * NVME + * * SCSI * * * string interface = 7; @@ -3565,8 +3565,8 @@ public Builder addLicensesBytes(com.google.protobuf.ByteString value) { * 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. * Valid values: - * READ_ONLY - * READ_WRITE + * * READ_ONLY + * * READ_WRITE * * * string mode = 10; @@ -3591,8 +3591,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. * Valid values: - * READ_ONLY - * READ_WRITE + * * READ_ONLY + * * READ_WRITE * * * string mode = 10; @@ -3617,8 +3617,8 @@ public com.google.protobuf.ByteString getModeBytes() { * 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. * Valid values: - * READ_ONLY - * READ_WRITE + * * READ_ONLY + * * READ_WRITE * * * string mode = 10; @@ -3642,8 +3642,8 @@ public Builder setMode(java.lang.String value) { * 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. * Valid values: - * READ_ONLY - * READ_WRITE + * * READ_ONLY + * * READ_WRITE * * * string mode = 10; @@ -3663,8 +3663,8 @@ public Builder clearMode() { * 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. * Valid values: - * READ_ONLY - * READ_WRITE + * * READ_ONLY + * * READ_WRITE * * * string mode = 10; @@ -3802,8 +3802,8 @@ public Builder setSourceBytes(com.google.protobuf.ByteString value) { * Specifies the type of the disk, either SCRATCH or PERSISTENT. If not * specified, the default is PERSISTENT. * Valid values: - * PERSISTENT - * SCRATCH + * * PERSISTENT + * * SCRATCH * * * string type = 12; @@ -3828,8 +3828,8 @@ public java.lang.String getType() { * Specifies the type of the disk, either SCRATCH or PERSISTENT. If not * specified, the default is PERSISTENT. * Valid values: - * PERSISTENT - * SCRATCH + * * PERSISTENT + * * SCRATCH * * * string type = 12; @@ -3854,8 +3854,8 @@ public com.google.protobuf.ByteString getTypeBytes() { * Specifies the type of the disk, either SCRATCH or PERSISTENT. If not * specified, the default is PERSISTENT. * Valid values: - * PERSISTENT - * SCRATCH + * * PERSISTENT + * * SCRATCH * * * string type = 12; @@ -3879,8 +3879,8 @@ public Builder setType(java.lang.String value) { * Specifies the type of the disk, either SCRATCH or PERSISTENT. If not * specified, the default is PERSISTENT. * Valid values: - * PERSISTENT - * SCRATCH + * * PERSISTENT + * * SCRATCH * * * string type = 12; @@ -3900,8 +3900,8 @@ public Builder clearType() { * Specifies the type of the disk, either SCRATCH or PERSISTENT. If not * specified, the default is PERSISTENT. * Valid values: - * PERSISTENT - * SCRATCH + * * PERSISTENT + * * SCRATCH * * * string type = 12; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDiskInitializeParams.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDiskInitializeParams.java index 7963e2bd..201cc5a6 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDiskInitializeParams.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDiskInitializeParams.java @@ -624,10 +624,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); } - if (!getDiskNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, diskName_); } if (diskSizeGb_ != 0L) { @@ -649,10 +649,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); } - if (!getDiskNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(diskName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, diskName_); } if (diskSizeGb_ != 0L) { diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDiskOrBuilder.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDiskOrBuilder.java index 354704f1..2e0b53b0 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDiskOrBuilder.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/LocalDiskOrBuilder.java @@ -242,8 +242,8 @@ public interface LocalDiskOrBuilder * in any other format than SCSI. Local SSDs can use either NVME or SCSI. For * performance characteristics of SCSI over NVMe, see Local SSD performance. * Valid values: - * NVME - * SCSI + * * NVME + * * SCSI * * * string interface = 7; @@ -261,8 +261,8 @@ public interface LocalDiskOrBuilder * in any other format than SCSI. Local SSDs can use either NVME or SCSI. For * performance characteristics of SCSI over NVMe, see Local SSD performance. * Valid values: - * NVME - * SCSI + * * NVME + * * SCSI * * * string interface = 7; @@ -354,8 +354,8 @@ public interface LocalDiskOrBuilder * 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. * Valid values: - * READ_ONLY - * READ_WRITE + * * READ_ONLY + * * READ_WRITE * * * string mode = 10; @@ -370,8 +370,8 @@ public interface LocalDiskOrBuilder * 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. * Valid values: - * READ_ONLY - * READ_WRITE + * * READ_ONLY + * * READ_WRITE * * * string mode = 10; @@ -414,8 +414,8 @@ public interface LocalDiskOrBuilder * Specifies the type of the disk, either SCRATCH or PERSISTENT. If not * specified, the default is PERSISTENT. * Valid values: - * PERSISTENT - * SCRATCH + * * PERSISTENT + * * SCRATCH * * * string type = 12; @@ -430,8 +430,8 @@ public interface LocalDiskOrBuilder * Specifies the type of the disk, either SCRATCH or PERSISTENT. If not * specified, the default is PERSISTENT. * Valid values: - * PERSISTENT - * SCRATCH + * * PERSISTENT + * * SCRATCH * * * string type = 12; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/OperationMetadata.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/OperationMetadata.java index 48d61412..1ef9e6c6 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/OperationMetadata.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/OperationMetadata.java @@ -556,22 +556,22 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (endTime_ != null) { output.writeMessage(2, getEndTime()); } - if (!getTargetBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, target_); } - if (!getVerbBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, verb_); } - if (!getStatusMessageBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusMessage_); } if (requestedCancellation_ != false) { output.writeBool(6, requestedCancellation_); } - if (!getApiVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, apiVersion_); } - if (!getEndpointBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, endpoint_); } unknownFields.writeTo(output); @@ -589,22 +589,22 @@ public int getSerializedSize() { if (endTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } - if (!getTargetBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); } - if (!getVerbBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, verb_); } - if (!getStatusMessageBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); } - if (!getApiVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); } - if (!getEndpointBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, endpoint_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RegisterInstanceRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RegisterInstanceRequest.java index f3d485c7..079230f3 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RegisterInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RegisterInstanceRequest.java @@ -239,10 +239,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (!getInstanceIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceId_); } unknownFields.writeTo(output); @@ -254,10 +254,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (!getInstanceIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportInstanceInfoRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportInstanceInfoRequest.java index 044b7d81..44eb5fcb 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportInstanceInfoRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportInstanceInfoRequest.java @@ -365,10 +365,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getVmIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, vmId_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( @@ -382,10 +382,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getVmIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vmId_); } for (java.util.Map.Entry entry : diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportRuntimeEventRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportRuntimeEventRequest.java index c6d5d8a9..453bc527 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportRuntimeEventRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReportRuntimeEventRequest.java @@ -304,10 +304,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getVmIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, vmId_); } if (event_ != null) { @@ -322,10 +322,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getVmIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vmId_); } if (event_ != null) { diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReservationAffinity.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReservationAffinity.java index ad158571..1bd79990 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReservationAffinity.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ReservationAffinity.java @@ -487,7 +487,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io != com.google.cloud.notebooks.v1.ReservationAffinity.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, consumeReservationType_); } - if (!getKeyBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_); } for (int i = 0; i < values_.size(); i++) { @@ -506,7 +506,7 @@ public int getSerializedSize() { != com.google.cloud.notebooks.v1.ReservationAffinity.Type.TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, consumeReservationType_); } - if (!getKeyBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_); } { diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetInstanceRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetInstanceRequest.java index e8e50d92..b32765b2 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetInstanceRequest.java @@ -176,7 +176,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -188,7 +188,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetRuntimeRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetRuntimeRequest.java index b3f55080..2c3f5b35 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetRuntimeRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/ResetRuntimeRequest.java @@ -176,7 +176,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -188,7 +188,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RollbackInstanceRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RollbackInstanceRequest.java index 1b8f13ab..f09d72a0 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RollbackInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RollbackInstanceRequest.java @@ -235,10 +235,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getTargetSnapshotBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetSnapshot_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, targetSnapshot_); } unknownFields.writeTo(output); @@ -250,10 +250,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getTargetSnapshotBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetSnapshot_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, targetSnapshot_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Runtime.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Runtime.java index 5b82c16f..e9081fde 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Runtime.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Runtime.java @@ -1173,7 +1173,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (runtimeTypeCase_ == 2) { @@ -1210,7 +1210,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (runtimeTypeCase_ == 2) { diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAccessConfig.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAccessConfig.java index ea924bee..1364a78a 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAccessConfig.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeAccessConfig.java @@ -426,10 +426,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(1, accessType_); } - if (!getRuntimeOwnerBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runtimeOwner_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, runtimeOwner_); } - if (!getProxyUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(proxyUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, proxyUri_); } unknownFields.writeTo(output); @@ -447,10 +447,10 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, accessType_); } - if (!getRuntimeOwnerBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(runtimeOwner_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, runtimeOwner_); } - if (!getProxyUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(proxyUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, proxyUri_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeSoftwareConfig.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeSoftwareConfig.java index 044b698e..3b1347ae 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeSoftwareConfig.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeSoftwareConfig.java @@ -217,7 +217,7 @@ public com.google.protobuf.ByteString getNotebookUpgradeScheduleBytes() { * Default: True * * - * bool enable_health_monitoring = 2; + * optional bool enable_health_monitoring = 2; * * @return Whether the enableHealthMonitoring field is set. */ @@ -233,7 +233,7 @@ public boolean hasEnableHealthMonitoring() { * Default: True * * - * bool enable_health_monitoring = 2; + * optional bool enable_health_monitoring = 2; * * @return The enableHealthMonitoring. */ @@ -252,7 +252,7 @@ public boolean getEnableHealthMonitoring() { * Default: True * * - * bool idle_shutdown = 3; + * optional bool idle_shutdown = 3; * * @return Whether the idleShutdown field is set. */ @@ -268,7 +268,7 @@ public boolean hasIdleShutdown() { * Default: True * * - * bool idle_shutdown = 3; + * optional bool idle_shutdown = 3; * * @return The idleShutdown. */ @@ -283,7 +283,7 @@ public boolean getIdleShutdown() { * * *
-   * Time in minutes to wait before shuting down runtime. Default: 180 minutes
+   * Time in minutes to wait before shutting down runtime. Default: 180 minutes
    * 
* * int32 idle_shutdown_timeout = 4; @@ -372,7 +372,7 @@ public 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
-   * Cloud Storage path (gs://path-to-file/file-name).
+   * Cloud Storage path (`gs://path-to-file/file-name`).
    * 
* * string post_startup_script = 7; @@ -397,7 +397,7 @@ 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
-   * Cloud Storage path (gs://path-to-file/file-name).
+   * Cloud Storage path (`gs://path-to-file/file-name`).
    * 
* * string post_startup_script = 7; @@ -431,7 +431,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNotebookUpgradeScheduleBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notebookUpgradeSchedule_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, notebookUpgradeSchedule_); } if (((bitField0_ & 0x00000001) != 0)) { @@ -446,10 +446,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (installGpuDriver_ != false) { output.writeBool(5, installGpuDriver_); } - if (!getCustomGpuDriverPathBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customGpuDriverPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, customGpuDriverPath_); } - if (!getPostStartupScriptBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postStartupScript_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, postStartupScript_); } unknownFields.writeTo(output); @@ -461,7 +461,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNotebookUpgradeScheduleBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notebookUpgradeSchedule_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, notebookUpgradeSchedule_); } if (((bitField0_ & 0x00000001) != 0)) { @@ -476,10 +476,10 @@ public int getSerializedSize() { if (installGpuDriver_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, installGpuDriver_); } - if (!getCustomGpuDriverPathBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customGpuDriverPath_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, customGpuDriverPath_); } - if (!getPostStartupScriptBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postStartupScript_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, postStartupScript_); } size += unknownFields.getSerializedSize(); @@ -973,7 +973,7 @@ public Builder setNotebookUpgradeScheduleBytes(com.google.protobuf.ByteString va * Default: True * * - * bool enable_health_monitoring = 2; + * optional bool enable_health_monitoring = 2; * * @return Whether the enableHealthMonitoring field is set. */ @@ -989,7 +989,7 @@ public boolean hasEnableHealthMonitoring() { * Default: True * * - * bool enable_health_monitoring = 2; + * optional bool enable_health_monitoring = 2; * * @return The enableHealthMonitoring. */ @@ -1005,7 +1005,7 @@ public boolean getEnableHealthMonitoring() { * Default: True * * - * bool enable_health_monitoring = 2; + * optional bool enable_health_monitoring = 2; * * @param value The enableHealthMonitoring to set. * @return This builder for chaining. @@ -1024,7 +1024,7 @@ public Builder setEnableHealthMonitoring(boolean value) { * Default: True * * - * bool enable_health_monitoring = 2; + * optional bool enable_health_monitoring = 2; * * @return This builder for chaining. */ @@ -1044,7 +1044,7 @@ public Builder clearEnableHealthMonitoring() { * Default: True * * - * bool idle_shutdown = 3; + * optional bool idle_shutdown = 3; * * @return Whether the idleShutdown field is set. */ @@ -1060,7 +1060,7 @@ public boolean hasIdleShutdown() { * Default: True * * - * bool idle_shutdown = 3; + * optional bool idle_shutdown = 3; * * @return The idleShutdown. */ @@ -1076,7 +1076,7 @@ public boolean getIdleShutdown() { * Default: True * * - * bool idle_shutdown = 3; + * optional bool idle_shutdown = 3; * * @param value The idleShutdown to set. * @return This builder for chaining. @@ -1095,7 +1095,7 @@ public Builder setIdleShutdown(boolean value) { * Default: True * * - * bool idle_shutdown = 3; + * optional bool idle_shutdown = 3; * * @return This builder for chaining. */ @@ -1111,7 +1111,7 @@ public Builder clearIdleShutdown() { * * *
-     * Time in minutes to wait before shuting down runtime. Default: 180 minutes
+     * Time in minutes to wait before shutting down runtime. Default: 180 minutes
      * 
* * int32 idle_shutdown_timeout = 4; @@ -1126,7 +1126,7 @@ public int getIdleShutdownTimeout() { * * *
-     * Time in minutes to wait before shuting down runtime. Default: 180 minutes
+     * Time in minutes to wait before shutting down runtime. Default: 180 minutes
      * 
* * int32 idle_shutdown_timeout = 4; @@ -1144,7 +1144,7 @@ public Builder setIdleShutdownTimeout(int value) { * * *
-     * Time in minutes to wait before shuting down runtime. Default: 180 minutes
+     * Time in minutes to wait before shutting down runtime. Default: 180 minutes
      * 
* * int32 idle_shutdown_timeout = 4; @@ -1328,7 +1328,7 @@ public Builder setCustomGpuDriverPathBytes(com.google.protobuf.ByteString value) *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
-     * Cloud Storage path (gs://path-to-file/file-name).
+     * Cloud Storage path (`gs://path-to-file/file-name`).
      * 
* * string post_startup_script = 7; @@ -1352,7 +1352,7 @@ 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
-     * Cloud Storage path (gs://path-to-file/file-name).
+     * Cloud Storage path (`gs://path-to-file/file-name`).
      * 
* * string post_startup_script = 7; @@ -1376,7 +1376,7 @@ public com.google.protobuf.ByteString getPostStartupScriptBytes() { *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
-     * Cloud Storage path (gs://path-to-file/file-name).
+     * Cloud Storage path (`gs://path-to-file/file-name`).
      * 
* * string post_startup_script = 7; @@ -1399,7 +1399,7 @@ public Builder setPostStartupScript(java.lang.String value) { *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
-     * Cloud Storage path (gs://path-to-file/file-name).
+     * Cloud Storage path (`gs://path-to-file/file-name`).
      * 
* * string post_startup_script = 7; @@ -1418,7 +1418,7 @@ public Builder clearPostStartupScript() { *
      * Path to a Bash script that automatically runs after a notebook instance
      * fully boots up. The path must be a URL or
-     * Cloud Storage path (gs://path-to-file/file-name).
+     * Cloud Storage path (`gs://path-to-file/file-name`).
      * 
* * string post_startup_script = 7; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeSoftwareConfigOrBuilder.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeSoftwareConfigOrBuilder.java index a76173e0..b98f5b3f 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeSoftwareConfigOrBuilder.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/RuntimeSoftwareConfigOrBuilder.java @@ -58,7 +58,7 @@ public interface RuntimeSoftwareConfigOrBuilder * Default: True * * - * bool enable_health_monitoring = 2; + * optional bool enable_health_monitoring = 2; * * @return Whether the enableHealthMonitoring field is set. */ @@ -71,7 +71,7 @@ public interface RuntimeSoftwareConfigOrBuilder * Default: True * * - * bool enable_health_monitoring = 2; + * optional bool enable_health_monitoring = 2; * * @return The enableHealthMonitoring. */ @@ -85,7 +85,7 @@ public interface RuntimeSoftwareConfigOrBuilder * Default: True * * - * bool idle_shutdown = 3; + * optional bool idle_shutdown = 3; * * @return Whether the idleShutdown field is set. */ @@ -98,7 +98,7 @@ public interface RuntimeSoftwareConfigOrBuilder * Default: True * * - * bool idle_shutdown = 3; + * optional bool idle_shutdown = 3; * * @return The idleShutdown. */ @@ -108,7 +108,7 @@ public interface RuntimeSoftwareConfigOrBuilder * * *
-   * Time in minutes to wait before shuting down runtime. Default: 180 minutes
+   * Time in minutes to wait before shutting down runtime. Default: 180 minutes
    * 
* * int32 idle_shutdown_timeout = 4; @@ -163,7 +163,7 @@ public interface RuntimeSoftwareConfigOrBuilder *
    * Path to a Bash script that automatically runs after a notebook instance
    * fully boots up. The path must be a URL or
-   * Cloud Storage path (gs://path-to-file/file-name).
+   * Cloud Storage path (`gs://path-to-file/file-name`).
    * 
* * string post_startup_script = 7; @@ -177,7 +177,7 @@ public interface RuntimeSoftwareConfigOrBuilder *
    * Path to a Bash script that automatically runs after a notebook instance
    * fully boots up. The path must be a URL or
-   * Cloud Storage path (gs://path-to-file/file-name).
+   * Cloud Storage path (`gs://path-to-file/file-name`).
    * 
* * string post_startup_script = 7; diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Schedule.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Schedule.java index fe73fdf2..fe877d28 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Schedule.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/Schedule.java @@ -1006,22 +1006,22 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } if (state_ != com.google.cloud.notebooks.v1.Schedule.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(4, state_); } - if (!getCronScheduleBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cronSchedule_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, cronSchedule_); } - if (!getTimeZoneBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, timeZone_); } if (createTime_ != null) { @@ -1045,22 +1045,22 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { 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_); } - if (!getCronScheduleBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cronSchedule_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, cronSchedule_); } - if (!getTimeZoneBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, timeZone_); } if (createTime_ != null) { diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceAcceleratorRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceAcceleratorRequest.java index e3552951..96e65bdc 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceAcceleratorRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceAcceleratorRequest.java @@ -252,7 +252,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (type_ @@ -272,7 +272,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (type_ diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceLabelsRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceLabelsRequest.java index 8c63a5b3..e396e834 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceLabelsRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceLabelsRequest.java @@ -303,7 +303,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( @@ -317,7 +317,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (java.util.Map.Entry entry : diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceMachineTypeRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceMachineTypeRequest.java index 4a347306..238138eb 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceMachineTypeRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SetInstanceMachineTypeRequest.java @@ -235,10 +235,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getMachineTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, machineType_); } unknownFields.writeTo(output); @@ -250,10 +250,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getMachineTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, machineType_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartInstanceRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartInstanceRequest.java index 0fef1d01..b793cd57 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartInstanceRequest.java @@ -176,7 +176,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -188,7 +188,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartRuntimeRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartRuntimeRequest.java index dca5b2b5..30e23879 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartRuntimeRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StartRuntimeRequest.java @@ -176,7 +176,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -188,7 +188,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopInstanceRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopInstanceRequest.java index c5f585fa..4c78561d 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopInstanceRequest.java @@ -176,7 +176,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -188,7 +188,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopRuntimeRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopRuntimeRequest.java index 4000e19d..7b8b870d 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopRuntimeRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/StopRuntimeRequest.java @@ -176,7 +176,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -188,7 +188,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SwitchRuntimeRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SwitchRuntimeRequest.java index dba3ba62..103bea03 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SwitchRuntimeRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/SwitchRuntimeRequest.java @@ -299,10 +299,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getMachineTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, machineType_); } if (acceleratorConfig_ != null) { @@ -317,10 +317,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getMachineTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, machineType_); } if (acceleratorConfig_ != null) { diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/TriggerScheduleRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/TriggerScheduleRequest.java index 06ab3003..eba457c5 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/TriggerScheduleRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/TriggerScheduleRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceConfigRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceConfigRequest.java index f942b978..3d344425 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceConfigRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateInstanceConfigRequest.java @@ -240,7 +240,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (config_ != null) { @@ -255,7 +255,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (config_ != null) { diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateShieldedInstanceConfigRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateShieldedInstanceConfigRequest.java index 8a41220e..ddd7516e 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateShieldedInstanceConfigRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpdateShieldedInstanceConfigRequest.java @@ -249,7 +249,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (shieldedInstanceConfig_ != null) { @@ -264,7 +264,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (shieldedInstanceConfig_ != null) { diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceInternalRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceInternalRequest.java index d03f6615..7c6d70be 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceInternalRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceInternalRequest.java @@ -236,10 +236,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getVmIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, vmId_); } unknownFields.writeTo(output); @@ -251,10 +251,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getVmIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vmId_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceRequest.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceRequest.java index ce7a9880..eae9fd21 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/UpgradeInstanceRequest.java @@ -176,7 +176,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -188,7 +188,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachine.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachine.java index 14b5140d..0947e7de 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachine.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachine.java @@ -297,10 +297,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getInstanceNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceName_); } - if (!getInstanceIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceId_); } if (virtualMachineConfig_ != null) { @@ -315,10 +315,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getInstanceNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceName_); } - if (!getInstanceIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_); } if (virtualMachineConfig_ != null) { diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachineConfig.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachineConfig.java index c1e61b78..eca1cd4f 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachineConfig.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VirtualMachineConfig.java @@ -1503,10 +1503,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getZoneBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, zone_); } - if (!getMachineTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, machineType_); } for (int i = 0; i < containerImages_.size(); i++) { @@ -1524,10 +1524,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (acceleratorConfig_ != null) { output.writeMessage(7, getAcceleratorConfig()); } - if (!getNetworkBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, network_); } - if (!getSubnetBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnet_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, subnet_); } if (internalIpOnly_ != false) { @@ -1556,10 +1556,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getZoneBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, zone_); } - if (!getMachineTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, machineType_); } for (int i = 0; i < containerImages_.size(); i++) { @@ -1578,10 +1578,10 @@ public int getSerializedSize() { if (acceleratorConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getAcceleratorConfig()); } - if (!getNetworkBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, network_); } - if (!getSubnetBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnet_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, subnet_); } if (internalIpOnly_ != false) { diff --git a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VmImage.java b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VmImage.java index 6eba25da..3c768309 100644 --- a/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VmImage.java +++ b/proto-google-cloud-notebooks-v1/src/main/java/com/google/cloud/notebooks/v1/VmImage.java @@ -381,7 +381,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); } if (imageCase_ == 2) { @@ -399,7 +399,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getProjectBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); } if (imageCase_ == 2) { diff --git a/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/location/locations.proto b/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/location/locations.proto deleted file mode 100644 index a91766c9..00000000 --- a/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/location/locations.proto +++ /dev/null @@ -1,108 +0,0 @@ -// 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 -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.location; - -import "google/api/annotations.proto"; -import "google/protobuf/any.proto"; -import "google/api/client.proto"; - -option cc_enable_arenas = true; -option go_package = "google.golang.org/genproto/googleapis/cloud/location;location"; -option java_multiple_files = true; -option java_outer_classname = "LocationsProto"; -option java_package = "com.google.cloud.location"; - -// An abstract interface that provides location-related information for -// a service. Service-specific metadata is provided through the -// [Location.metadata][google.cloud.location.Location.metadata] field. -service Locations { - option (google.api.default_host) = "cloud.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - - // Lists information about the supported locations for this service. - rpc ListLocations(ListLocationsRequest) returns (ListLocationsResponse) { - option (google.api.http) = { - get: "/v1/{name=locations}" - additional_bindings { - get: "/v1/{name=projects/*}/locations" - } - }; - } - - // Gets information about a location. - rpc GetLocation(GetLocationRequest) returns (Location) { - option (google.api.http) = { - get: "/v1/{name=locations/*}" - additional_bindings { - get: "/v1/{name=projects/*/locations/*}" - } - }; - } -} - -// The request message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations]. -message ListLocationsRequest { - // The resource that owns the locations collection, if applicable. - string name = 1; - - // The standard list filter. - string filter = 2; - - // The standard list page size. - int32 page_size = 3; - - // The standard list page token. - string page_token = 4; -} - -// The response message for [Locations.ListLocations][google.cloud.location.Locations.ListLocations]. -message ListLocationsResponse { - // A list of locations that matches the specified filter in the request. - repeated Location locations = 1; - - // The standard List next-page token. - string next_page_token = 2; -} - -// The request message for [Locations.GetLocation][google.cloud.location.Locations.GetLocation]. -message GetLocationRequest { - // Resource name for the location. - string name = 1; -} - -// A resource that represents Google Cloud Platform location. -message Location { - // Resource name for the location, which may vary between implementations. - // For example: `"projects/example-project/locations/us-east1"` - string name = 1; - - // The canonical id for this location. For example: `"us-east1"`. - string location_id = 4; - - // The friendly name for this location, typically a nearby city name. - // For example, "Tokyo". - string display_name = 5; - - // Cross-service attributes for the location. For example - // - // {"cloud.googleapis.com/region": "us-east1"} - map labels = 2; - - // Service-specific metadata. For example the available capacity at the given - // location. - google.protobuf.Any metadata = 3; -} diff --git a/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/execution.proto b/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/execution.proto index 9d74e25a..cf341b94 100644 --- a/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/execution.proto +++ b/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/execution.proto @@ -42,7 +42,7 @@ message ExecutionTemplate { // Parameters used in Dataproc JobType executions. message DataprocParameters { // URI for cluster used to run Dataproc execution. - // Format: 'projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME} + // Format: `projects/{PROJECT_ID}/regions/{REGION}/clusters/{CLUSTER_NAME}` string cluster = 1; } @@ -204,8 +204,8 @@ message ExecutionTemplate { // Path to the notebook file to execute. // Must be in a Google Cloud Storage bucket. - // Format: gs://{project_id}/{folder}/{notebook_file_name} - // Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook.ipynb + // Format: `gs://{project_id}/{folder}/{notebook_file_name}` + // Ex: `gs://notebook_user/scheduled_notebooks/sentiment_notebook.ipynb` string input_notebook_file = 5; // Container Image URI to a DLVM @@ -216,15 +216,15 @@ message ExecutionTemplate { // Path to the notebook folder to write to. // Must be in a Google Cloud Storage bucket path. - // Format: gs://{project_id}/{folder} - // Ex: gs://notebook_user/scheduled_notebooks + // Format: `gs://{project_id}/{folder}` + // Ex: `gs://notebook_user/scheduled_notebooks` string output_notebook_folder = 7; // Parameters to be overridden in the notebook during execution. // Ref https://papermill.readthedocs.io/en/latest/usage-parameterize.html on // how to specifying parameters in the input notebook and pass them here // in an YAML file. - // Ex: gs://notebook_user/scheduled_notebooks/sentiment_notebook_params.yaml + // Ex: `gs://notebook_user/scheduled_notebooks/sentiment_notebook_params.yaml` string params_yaml_file = 8; // Parameters used within the 'input_notebook_file' notebook. @@ -294,7 +294,7 @@ message Execution { ExecutionTemplate execution_template = 1; // Output only. The resource name of the execute. Format: - // `projects/{project_id}/locations/{location}/execution/{execution_id} + // `projects/{project_id}/locations/{location}/execution/{execution_id}` string name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Name used for UI purposes. diff --git a/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/instance.proto b/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/instance.proto index f9f6a2f0..0e6ca82e 100644 --- a/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/instance.proto +++ b/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/instance.proto @@ -83,12 +83,13 @@ message Instance { // The ID of a supported feature. Read Enabling guest operating system // features to see a list of available options. // Valid values: - // FEATURE_TYPE_UNSPECIFIED - // MULTI_IP_SUBNET - // SECURE_BOOT - // UEFI_COMPATIBLE - // VIRTIO_SCSI_MULTIQUEUE - // WINDOWS + // + // * FEATURE_TYPE_UNSPECIFIED + // * MULTI_IP_SUBNET + // * SECURE_BOOT + // * UEFI_COMPATIBLE + // * VIRTIO_SCSI_MULTIQUEUE + // * WINDOWS string type = 1; } @@ -130,8 +131,9 @@ message Instance { // SCSI. For performance characteristics of SCSI over NVMe, see Local SSD // performance. // Valid values: - // NVME - // SCSI + // + // * NVME + // * SCSI string interface = 7; // Type of the resource. Always compute#attachedDisk for attached @@ -146,8 +148,9 @@ message Instance { // 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. // Valid values: - // READ_ONLY - // READ_WRITE + // + // * READ_ONLY + // * READ_WRITE string mode = 10; // Indicates a valid partial or full URL to an existing Persistent Disk @@ -156,8 +159,9 @@ message Instance { // Indicates the type of the disk, either SCRATCH or PERSISTENT. // Valid values: - // PERSISTENT - // SCRATCH + // + // * PERSISTENT + // * SCRATCH string type = 12; } @@ -373,7 +377,7 @@ message Instance { // Path to a Bash script that automatically runs after a notebook instance // fully boots up. The path must be a URL or - // Cloud Storage path (gs://path-to-file/file-name). + // Cloud Storage path (`gs://path-to-file/file-name`). string post_startup_script = 4; // Output only. The proxy endpoint that is used to access the Jupyter notebook. @@ -468,8 +472,8 @@ message Instance { repeated Disk disks = 28 [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. Shielded VM configuration. - // [Images using supported Shielded VM features] - // (https://cloud.google.com/compute/docs/instances/modifying-shielded-vm). + // [Images using supported Shielded VM + // features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm). ShieldedInstanceConfig shielded_instance_config = 30 [(google.api.field_behavior) = OPTIONAL]; // If true, no public IP will be assigned to this instance. diff --git a/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/instance_config.proto b/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/instance_config.proto index 9e11e74b..556bd176 100644 --- a/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/instance_config.proto +++ b/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/instance_config.proto @@ -30,6 +30,6 @@ message InstanceConfig { // Please follow the [cron format](https://en.wikipedia.org/wiki/Cron). string notebook_upgrade_schedule = 1; - // Verifies core internal services are running. More info: go/notebooks-health + // Verifies core internal services are running. bool enable_health_monitoring = 2; } diff --git a/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/runtime.proto b/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/runtime.proto index 8af478f2..a37ed2e0 100644 --- a/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/runtime.proto +++ b/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/runtime.proto @@ -185,7 +185,7 @@ message EncryptionConfig { string kms_key = 1; } -// An Local attached disk resource. +// A Local attached disk resource. message LocalDisk { // Optional. A list of features to enable on the guest operating system. // Applicable only for bootable images. @@ -252,8 +252,9 @@ message LocalDisk { // in any other format than SCSI. Local SSDs can use either NVME or SCSI. For // performance characteristics of SCSI over NVMe, see Local SSD performance. // Valid values: - // NVME - // SCSI + // + // * NVME + // * SCSI string interface = 7; // Output only. Type of the resource. Always compute#attachedDisk for attached disks. @@ -265,8 +266,9 @@ message LocalDisk { // 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. // Valid values: - // READ_ONLY - // READ_WRITE + // + // * READ_ONLY + // * READ_WRITE string mode = 10; // Specifies a valid partial or full URL to an existing Persistent Disk @@ -276,8 +278,9 @@ message LocalDisk { // Specifies the type of the disk, either SCRATCH or PERSISTENT. If not // specified, the default is PERSISTENT. // Valid values: - // PERSISTENT - // SCRATCH + // + // * PERSISTENT + // * SCRATCH string type = 12; } @@ -367,7 +370,7 @@ message RuntimeSoftwareConfig { // Default: True optional bool idle_shutdown = 3; - // Time in minutes to wait before shuting down runtime. Default: 180 minutes + // Time in minutes to wait before shutting down runtime. Default: 180 minutes int32 idle_shutdown_timeout = 4; // Install Nvidia Driver automatically. @@ -379,7 +382,7 @@ message RuntimeSoftwareConfig { // Path to a Bash script that automatically runs after a notebook instance // fully boots up. The path must be a URL or - // Cloud Storage path (gs://path-to-file/file-name). + // Cloud Storage path (`gs://path-to-file/file-name`). string post_startup_script = 7; } diff --git a/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/service.proto b/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/service.proto index aee7612a..14918ebc 100644 --- a/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/service.proto +++ b/proto-google-cloud-notebooks-v1/src/main/proto/google/cloud/notebooks/v1/service.proto @@ -786,9 +786,10 @@ message ListSchedulesResponse { // next list call. string next_page_token = 2; - // Schedules that could not be reached. For example, - // ['projects/{project_id}/location/{location}/schedules/monthly_digest', - // 'projects/{project_id}/location/{location}/schedules/weekly_sentiment']. + // Schedules that could not be reached. For example: + // + // ['projects/{project_id}/location/{location}/schedules/monthly_digest', + // 'projects/{project_id}/location/{location}/schedules/weekly_sentiment'] repeated string unreachable = 3; } @@ -866,7 +867,7 @@ message ListExecutionsRequest { // Filter applied to resulting executions. Currently only supports filtering // executions by a specified schedule_id. - // Format: "schedule_id=" + // Format: `schedule_id=` string filter = 4; // Sort by field. @@ -882,9 +883,10 @@ message ListExecutionsResponse { // next list call. string next_page_token = 2; - // Executions IDs that could not be reached. For example, - // ['projects/{project_id}/location/{location}/executions/imagenet_test1', - // 'projects/{project_id}/location/{location}/executions/classifier_train1']. + // Executions IDs that could not be reached. For example: + // + // ['projects/{project_id}/location/{location}/executions/imagenet_test1', + // 'projects/{project_id}/location/{location}/executions/classifier_train1'] repeated string unreachable = 3; } diff --git a/proto-google-cloud-notebooks-v1beta1/pom.xml b/proto-google-cloud-notebooks-v1beta1/pom.xml index e91b129c..53c473f7 100644 --- a/proto-google-cloud-notebooks-v1beta1/pom.xml +++ b/proto-google-cloud-notebooks-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-notebooks-v1beta1 - 0.6.0 + 0.6.1 proto-google-cloud-notebooks-v1beta1 PROTO library for proto-google-cloud-notebooks-v1beta1 com.google.cloud google-cloud-notebooks-parent - 0.6.0 + 0.6.1 diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ContainerImage.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ContainerImage.java index 8ad7baa1..37a80fd4 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ContainerImage.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ContainerImage.java @@ -236,10 +236,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getRepositoryBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repository_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, repository_); } - if (!getTagBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tag_); } unknownFields.writeTo(output); @@ -251,10 +251,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getRepositoryBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repository_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, repository_); } - if (!getTagBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tag_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateEnvironmentRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateEnvironmentRequest.java index bf0aee55..214104c2 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateEnvironmentRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateEnvironmentRequest.java @@ -307,10 +307,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (!getEnvironmentIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, environmentId_); } if (environment_ != null) { @@ -325,10 +325,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (!getEnvironmentIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, environmentId_); } if (environment_ != null) { diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateInstanceRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateInstanceRequest.java index 5b87d211..aa13ae6d 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/CreateInstanceRequest.java @@ -303,10 +303,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (!getInstanceIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceId_); } if (instance_ != null) { @@ -321,10 +321,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (!getInstanceIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_); } if (instance_ != null) { diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteEnvironmentRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteEnvironmentRequest.java index 2170d198..d53ce7ac 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteEnvironmentRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteEnvironmentRequest.java @@ -176,7 +176,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -188,7 +188,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteInstanceRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteInstanceRequest.java index 8565d25f..18319fa9 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/DeleteInstanceRequest.java @@ -176,7 +176,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -188,7 +188,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/Environment.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/Environment.java index bb870890..d5c95b17 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/Environment.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/Environment.java @@ -602,13 +602,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } if (imageTypeCase_ == 6) { @@ -617,7 +617,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (imageTypeCase_ == 7) { output.writeMessage(7, (com.google.cloud.notebooks.v1beta1.ContainerImage) imageType_); } - if (!getPostStartupScriptBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postStartupScript_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, postStartupScript_); } if (createTime_ != null) { @@ -632,13 +632,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (imageTypeCase_ == 6) { @@ -651,7 +651,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 7, (com.google.cloud.notebooks.v1beta1.ContainerImage) imageType_); } - if (!getPostStartupScriptBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postStartupScript_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, postStartupScript_); } if (createTime_ != null) { diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetEnvironmentRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetEnvironmentRequest.java index f8f8d025..30a219c8 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetEnvironmentRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetEnvironmentRequest.java @@ -176,7 +176,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -188,7 +188,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetInstanceRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetInstanceRequest.java index 7ac811db..a90c86df 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/GetInstanceRequest.java @@ -176,7 +176,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -188,7 +188,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/Instance.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/Instance.java index 84ad0f7e..744e9a68 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/Instance.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/Instance.java @@ -3481,7 +3481,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (environmentCase_ == 2) { @@ -3490,19 +3490,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (environmentCase_ == 3) { output.writeMessage(3, (com.google.cloud.notebooks.v1beta1.ContainerImage) environment_); } - if (!getPostStartupScriptBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postStartupScript_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, postStartupScript_); } - if (!getProxyUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(proxyUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, proxyUri_); } for (int i = 0; i < instanceOwners_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, instanceOwners_.getRaw(i)); } - if (!getServiceAccountBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, serviceAccount_); } - if (!getMachineTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, machineType_); } if (acceleratorConfig_ != null) { @@ -3514,7 +3514,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (installGpuDriver_ != false) { output.writeBool(11, installGpuDriver_); } - if (!getCustomGpuDriverPathBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customGpuDriverPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, customGpuDriverPath_); } if (bootDiskType_ @@ -3529,7 +3529,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(15, diskEncryption_); } - if (!getKmsKeyBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, kmsKey_); } if (noPublicIp_ != false) { @@ -3538,10 +3538,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (noProxyAccess_ != false) { output.writeBool(18, noProxyAccess_); } - if (!getNetworkBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 19, network_); } - if (!getSubnetBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnet_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 20, subnet_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( @@ -3573,7 +3573,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (environmentCase_ == 2) { @@ -3586,10 +3586,10 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 3, (com.google.cloud.notebooks.v1beta1.ContainerImage) environment_); } - if (!getPostStartupScriptBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postStartupScript_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, postStartupScript_); } - if (!getProxyUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(proxyUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, proxyUri_); } { @@ -3600,10 +3600,10 @@ public int getSerializedSize() { size += dataSize; size += 1 * getInstanceOwnersList().size(); } - if (!getServiceAccountBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, serviceAccount_); } - if (!getMachineTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, machineType_); } if (acceleratorConfig_ != null) { @@ -3615,7 +3615,7 @@ public int getSerializedSize() { if (installGpuDriver_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, installGpuDriver_); } - if (!getCustomGpuDriverPathBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customGpuDriverPath_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, customGpuDriverPath_); } if (bootDiskType_ @@ -3630,7 +3630,7 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, diskEncryption_); } - if (!getKmsKeyBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKey_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, kmsKey_); } if (noPublicIp_ != false) { @@ -3639,10 +3639,10 @@ public int getSerializedSize() { if (noProxyAccess_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, noProxyAccess_); } - if (!getNetworkBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, network_); } - if (!getSubnetBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnet_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, subnet_); } for (java.util.Map.Entry entry : diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableRequest.java index 2c049c8f..9a227397 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableRequest.java @@ -176,7 +176,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNotebookInstanceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notebookInstance_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, notebookInstance_); } unknownFields.writeTo(output); @@ -188,7 +188,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNotebookInstanceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(notebookInstance_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, notebookInstance_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableResponse.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableResponse.java index dd071008..6a17953c 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableResponse.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/IsInstanceUpgradeableResponse.java @@ -259,10 +259,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (upgradeable_ != false) { output.writeBool(1, upgradeable_); } - if (!getUpgradeVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(upgradeVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, upgradeVersion_); } - if (!getUpgradeInfoBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(upgradeInfo_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, upgradeInfo_); } unknownFields.writeTo(output); @@ -277,10 +277,10 @@ public int getSerializedSize() { if (upgradeable_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, upgradeable_); } - if (!getUpgradeVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(upgradeVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, upgradeVersion_); } - if (!getUpgradeInfoBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(upgradeInfo_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, upgradeInfo_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsRequest.java index e467ec08..2b7e5367 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsRequest.java @@ -256,13 +256,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -274,13 +274,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsResponse.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsResponse.java index 84e293e7..935f24a2 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsResponse.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListEnvironmentsResponse.java @@ -341,7 +341,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < environments_.size(); i++) { output.writeMessage(1, environments_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } for (int i = 0; i < unreachable_.size(); i++) { @@ -359,7 +359,7 @@ public int getSerializedSize() { for (int i = 0; i < environments_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, environments_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } { diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesRequest.java index 01d64c91..10d85064 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesRequest.java @@ -258,13 +258,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -276,13 +276,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesResponse.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesResponse.java index 9ce6939a..0754fdc3 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesResponse.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ListInstancesResponse.java @@ -347,7 +347,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < instances_.size(); i++) { output.writeMessage(1, instances_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } for (int i = 0; i < unreachable_.size(); i++) { @@ -365,7 +365,7 @@ public int getSerializedSize() { for (int i = 0; i < instances_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, instances_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } { diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/OperationMetadata.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/OperationMetadata.java index 8ec25147..f96b2e5e 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/OperationMetadata.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/OperationMetadata.java @@ -557,22 +557,22 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (endTime_ != null) { output.writeMessage(2, getEndTime()); } - if (!getTargetBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, target_); } - if (!getVerbBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, verb_); } - if (!getStatusMessageBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusMessage_); } if (requestedCancellation_ != false) { output.writeBool(6, requestedCancellation_); } - if (!getApiVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, apiVersion_); } - if (!getEndpointBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, endpoint_); } unknownFields.writeTo(output); @@ -590,22 +590,22 @@ public int getSerializedSize() { if (endTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } - if (!getTargetBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); } - if (!getVerbBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, verb_); } - if (!getStatusMessageBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); } - if (!getApiVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); } - if (!getEndpointBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, endpoint_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/RegisterInstanceRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/RegisterInstanceRequest.java index c01f5a28..b31235e2 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/RegisterInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/RegisterInstanceRequest.java @@ -239,10 +239,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (!getInstanceIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceId_); } unknownFields.writeTo(output); @@ -254,10 +254,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (!getInstanceIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ReportInstanceInfoRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ReportInstanceInfoRequest.java index 2e31cff2..8ec35b64 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ReportInstanceInfoRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ReportInstanceInfoRequest.java @@ -365,10 +365,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getVmIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, vmId_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( @@ -382,10 +382,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getVmIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vmId_); } for (java.util.Map.Entry entry : diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ResetInstanceRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ResetInstanceRequest.java index a9b77544..171ba82e 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ResetInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/ResetInstanceRequest.java @@ -176,7 +176,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -188,7 +188,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceAcceleratorRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceAcceleratorRequest.java index 12adbabc..2cc6212c 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceAcceleratorRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceAcceleratorRequest.java @@ -252,7 +252,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (type_ @@ -272,7 +272,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (type_ diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceLabelsRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceLabelsRequest.java index 9e09237f..e6441d4d 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceLabelsRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceLabelsRequest.java @@ -303,7 +303,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( @@ -317,7 +317,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (java.util.Map.Entry entry : diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceMachineTypeRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceMachineTypeRequest.java index f0aa76ca..b253f3c4 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceMachineTypeRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/SetInstanceMachineTypeRequest.java @@ -235,10 +235,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getMachineTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, machineType_); } unknownFields.writeTo(output); @@ -250,10 +250,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getMachineTypeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(machineType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, machineType_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StartInstanceRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StartInstanceRequest.java index e8f1ba0b..2cb4c845 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StartInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StartInstanceRequest.java @@ -176,7 +176,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -188,7 +188,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StopInstanceRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StopInstanceRequest.java index 79c07ba0..7225173f 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StopInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/StopInstanceRequest.java @@ -176,7 +176,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -188,7 +188,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceInternalRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceInternalRequest.java index 1eb14788..5e05ea88 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceInternalRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceInternalRequest.java @@ -236,10 +236,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getVmIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, vmId_); } unknownFields.writeTo(output); @@ -251,10 +251,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getVmIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vmId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, vmId_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceRequest.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceRequest.java index d9cae6ab..37b1abb4 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceRequest.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/UpgradeInstanceRequest.java @@ -176,7 +176,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -188,7 +188,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/VmImage.java b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/VmImage.java index c28cd29d..9b17f98d 100644 --- a/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/VmImage.java +++ b/proto-google-cloud-notebooks-v1beta1/src/main/java/com/google/cloud/notebooks/v1beta1/VmImage.java @@ -381,7 +381,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getProjectBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); } if (imageCase_ == 2) { @@ -399,7 +399,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getProjectBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); } if (imageCase_ == 2) { diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 70eddbb2..fd78fdbd 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-notebooks - 0.5.0 + 0.6.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 77cb28a3..467e1943 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-notebooks - 0.6.0 + 0.6.1 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 95d983c0..756a456e 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-notebooks - 0.5.0 + 0.6.0 diff --git a/versions.txt b/versions.txt index 1fd0c523..8f753b1e 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-cloud-notebooks:0.6.0:0.6.0 -grpc-google-cloud-notebooks-v1beta1:0.6.0:0.6.0 -grpc-google-cloud-notebooks-v1:0.6.0:0.6.0 -proto-google-cloud-notebooks-v1beta1:0.6.0:0.6.0 -proto-google-cloud-notebooks-v1:0.6.0:0.6.0 +google-cloud-notebooks:0.6.1:0.6.1 +grpc-google-cloud-notebooks-v1beta1:0.6.1:0.6.1 +grpc-google-cloud-notebooks-v1:0.6.1:0.6.1 +proto-google-cloud-notebooks-v1beta1:0.6.1:0.6.1 +proto-google-cloud-notebooks-v1:0.6.1:0.6.1